content
stringlengths 4
1.04M
| lang
stringclasses 358
values | score
int64 0
5
| repo_name
stringlengths 5
114
| repo_path
stringlengths 4
229
| repo_licenses
sequencelengths 1
8
|
---|---|---|---|---|---|
//===- FuzzerTracePC.cpp - PC tracing--------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Trace PCs.
// This module implements __sanitizer_cov_trace_pc_guard[_init],
// the callback required for -fsanitize-coverage=trace-pc-guard instrumentation.
//
//===----------------------------------------------------------------------===//
#include "FuzzerCorpus.h"
#include "FuzzerDefs.h"
#include "FuzzerDictionary.h"
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
#include "FuzzerTracePC.h"
#include "FuzzerValueBitMap.h"
#include <map>
#include <sanitizer/coverage_interface.h>
#include <set>
#include <sstream>
namespace fuzzer {
TracePC TPC;
void TracePC::HandleTrace(uint32_t *Guard, uintptr_t PC) {
uint32_t Idx = *Guard;
if (!Idx) return;
PCs[Idx % kNumPCs] = PC;
Counters[Idx % kNumCounters]++;
}
size_t TracePC::GetTotalPCCoverage() {
size_t Res = 0;
for (size_t i = 1; i < GetNumPCs(); i++)
if (PCs[i])
Res++;
return Res;
}
void TracePC::HandleInit(uint32_t *Start, uint32_t *Stop) {
if (Start == Stop || *Start) return;
assert(NumModules < sizeof(Modules) / sizeof(Modules[0]));
for (uint32_t *P = Start; P < Stop; P++)
*P = ++NumGuards;
Modules[NumModules].Start = Start;
Modules[NumModules].Stop = Stop;
NumModules++;
}
void TracePC::PrintModuleInfo() {
Printf("INFO: Loaded %zd modules (%zd guards): ", NumModules, NumGuards);
for (size_t i = 0; i < NumModules; i++)
Printf("[%p, %p), ", Modules[i].Start, Modules[i].Stop);
Printf("\n");
}
void TracePC::HandleCallerCallee(uintptr_t Caller, uintptr_t Callee) {
const uintptr_t kBits = 12;
const uintptr_t kMask = (1 << kBits) - 1;
uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits);
HandleValueProfile(Idx);
}
static bool IsInterestingCoverageFile(std::string &File) {
if (File.find("compiler-rt/lib/") != std::string::npos)
return false; // sanitizer internal.
if (File.find("/usr/lib/") != std::string::npos)
return false;
if (File.find("/usr/include/") != std::string::npos)
return false;
if (File == "<null>")
return false;
return true;
}
void TracePC::PrintNewPCs() {
if (DoPrintNewPCs) {
if (!PrintedPCs)
PrintedPCs = new std::set<uintptr_t>;
for (size_t i = 1; i < GetNumPCs(); i++)
if (PCs[i] && PrintedPCs->insert(PCs[i]).second)
PrintPC("\tNEW_PC: %p %F %L\n", "\tNEW_PC: %p\n", PCs[i]);
}
}
void TracePC::PrintCoverage() {
if (!EF->__sanitizer_symbolize_pc ||
!EF->__sanitizer_get_module_and_offset_for_pc) {
Printf("INFO: __sanitizer_symbolize_pc or "
"__sanitizer_get_module_and_offset_for_pc is not available,"
" not printing coverage\n");
return;
}
std::map<std::string, std::vector<uintptr_t>> CoveredPCsPerModule;
std::map<std::string, uintptr_t> ModuleOffsets;
std::set<std::string> CoveredDirs, CoveredFiles, CoveredFunctions,
CoveredLines;
Printf("COVERAGE:\n");
for (size_t i = 1; i < GetNumPCs(); i++) {
if (!PCs[i]) continue;
std::string FileStr = DescribePC("%s", PCs[i]);
if (!IsInterestingCoverageFile(FileStr)) continue;
std::string FixedPCStr = DescribePC("%p", PCs[i]);
std::string FunctionStr = DescribePC("%F", PCs[i]);
std::string LineStr = DescribePC("%l", PCs[i]);
char ModulePathRaw[4096] = ""; // What's PATH_MAX in portable C++?
void *OffsetRaw = nullptr;
if (!EF->__sanitizer_get_module_and_offset_for_pc(
reinterpret_cast<void *>(PCs[i]), ModulePathRaw,
sizeof(ModulePathRaw), &OffsetRaw))
continue;
std::string Module = ModulePathRaw;
uintptr_t FixedPC = std::stol(FixedPCStr, 0, 16);
uintptr_t PcOffset = reinterpret_cast<uintptr_t>(OffsetRaw);
ModuleOffsets[Module] = FixedPC - PcOffset;
CoveredPCsPerModule[Module].push_back(PcOffset);
CoveredFunctions.insert(FunctionStr);
CoveredFiles.insert(FileStr);
CoveredDirs.insert(DirName(FileStr));
if (!CoveredLines.insert(FileStr + ":" + LineStr).second)
continue;
Printf("COVERED: %s %s:%s\n", FunctionStr.c_str(),
FileStr.c_str(), LineStr.c_str());
}
std::string CoveredDirsStr;
for (auto &Dir : CoveredDirs) {
if (!CoveredDirsStr.empty())
CoveredDirsStr += ",";
CoveredDirsStr += Dir;
}
Printf("COVERED_DIRS: %s\n", CoveredDirsStr.c_str());
for (auto &M : CoveredPCsPerModule) {
std::set<std::string> UncoveredFiles, UncoveredFunctions;
std::map<std::string, std::set<int> > UncoveredLines; // Func+File => lines
auto &ModuleName = M.first;
auto &CoveredOffsets = M.second;
uintptr_t ModuleOffset = ModuleOffsets[ModuleName];
std::sort(CoveredOffsets.begin(), CoveredOffsets.end());
Printf("MODULE_WITH_COVERAGE: %s\n", ModuleName.c_str());
// sancov does not yet fully support DSOs.
// std::string Cmd = "sancov -print-coverage-pcs " + ModuleName;
std::string Cmd = "objdump -d " + ModuleName +
" | grep 'call.*__sanitizer_cov_trace_pc_guard' | awk -F: '{print $1}'";
std::string SanCovOutput;
if (!ExecuteCommandAndReadOutput(Cmd, &SanCovOutput)) {
Printf("INFO: Command failed: %s\n", Cmd.c_str());
continue;
}
std::istringstream ISS(SanCovOutput);
std::string S;
while (std::getline(ISS, S, '\n')) {
uintptr_t PcOffset = std::stol(S, 0, 16);
if (!std::binary_search(CoveredOffsets.begin(), CoveredOffsets.end(),
PcOffset)) {
uintptr_t PC = ModuleOffset + PcOffset;
auto FileStr = DescribePC("%s", PC);
if (!IsInterestingCoverageFile(FileStr)) continue;
if (CoveredFiles.count(FileStr) == 0) {
UncoveredFiles.insert(FileStr);
continue;
}
auto FunctionStr = DescribePC("%F", PC);
if (CoveredFunctions.count(FunctionStr) == 0) {
UncoveredFunctions.insert(FunctionStr);
continue;
}
std::string LineStr = DescribePC("%l", PC);
uintptr_t Line = std::stoi(LineStr);
std::string FileLineStr = FileStr + ":" + LineStr;
if (CoveredLines.count(FileLineStr) == 0)
UncoveredLines[FunctionStr + " " + FileStr].insert(Line);
}
}
for (auto &FileLine: UncoveredLines)
for (int Line : FileLine.second)
Printf("UNCOVERED_LINE: %s:%d\n", FileLine.first.c_str(), Line);
for (auto &Func : UncoveredFunctions)
Printf("UNCOVERED_FUNC: %s\n", Func.c_str());
for (auto &File : UncoveredFiles)
Printf("UNCOVERED_FILE: %s\n", File.c_str());
}
}
void TracePC::DumpCoverage() {
__sanitizer_dump_coverage(PCs, GetNumPCs());
}
// Value profile.
// We keep track of various values that affect control flow.
// These values are inserted into a bit-set-based hash map.
// Every new bit in the map is treated as a new coverage.
//
// For memcmp/strcmp/etc the interesting value is the length of the common
// prefix of the parameters.
// For cmp instructions the interesting value is a XOR of the parameters.
// The interesting value is mixed up with the PC and is then added to the map.
ATTRIBUTE_NO_SANITIZE_MEMORY
void TracePC::AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2,
size_t n) {
if (!n) return;
size_t Len = std::min(n, (size_t)32);
const uint8_t *A1 = reinterpret_cast<const uint8_t *>(s1);
const uint8_t *A2 = reinterpret_cast<const uint8_t *>(s2);
size_t I = 0;
for (; I < Len; I++)
if (A1[I] != A2[I])
break;
size_t PC = reinterpret_cast<size_t>(caller_pc);
size_t Idx = I;
// if (I < Len)
// Idx += __builtin_popcountl((A1[I] ^ A2[I])) - 1;
TPC.HandleValueProfile((PC & 4095) | (Idx << 12));
}
ATTRIBUTE_NO_SANITIZE_MEMORY
void TracePC::AddValueForStrcmp(void *caller_pc, const char *s1, const char *s2,
size_t n) {
if (!n) return;
size_t Len = std::min(n, (size_t)32);
const uint8_t *A1 = reinterpret_cast<const uint8_t *>(s1);
const uint8_t *A2 = reinterpret_cast<const uint8_t *>(s2);
size_t I = 0;
for (; I < Len; I++)
if (A1[I] != A2[I] || A1[I] == 0)
break;
size_t PC = reinterpret_cast<size_t>(caller_pc);
size_t Idx = I;
// if (I < Len && A1[I])
// Idx += __builtin_popcountl((A1[I] ^ A2[I])) - 1;
TPC.HandleValueProfile((PC & 4095) | (Idx << 12));
}
template <class T>
ATTRIBUTE_TARGET_POPCNT
#ifdef __clang__ // g++ can't handle this __attribute__ here :(
__attribute__((always_inline))
#endif // __clang__
void TracePC::HandleCmp(void *PC, T Arg1, T Arg2) {
uintptr_t PCuint = reinterpret_cast<uintptr_t>(PC);
uint64_t ArgXor = Arg1 ^ Arg2;
uint64_t ArgDistance = __builtin_popcountl(ArgXor) + 1; // [1,65]
uintptr_t Idx = ((PCuint & 4095) + 1) * ArgDistance;
if (sizeof(T) == 4)
TORC4.Insert(ArgXor, Arg1, Arg2);
else if (sizeof(T) == 8)
TORC8.Insert(ArgXor, Arg1, Arg2);
HandleValueProfile(Idx);
}
} // namespace fuzzer
extern "C" {
__attribute__((visibility("default")))
void __sanitizer_cov_trace_pc_guard(uint32_t *Guard) {
uintptr_t PC = (uintptr_t)__builtin_return_address(0);
fuzzer::TPC.HandleTrace(Guard, PC);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_pc_guard_init(uint32_t *Start, uint32_t *Stop) {
fuzzer::TPC.HandleInit(Start, Stop);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_pc_indir(uintptr_t Callee) {
uintptr_t PC = (uintptr_t)__builtin_return_address(0);
fuzzer::TPC.HandleCallerCallee(PC, Callee);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Arg1, Arg2);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_cmp4(uint32_t Arg1, uint32_t Arg2) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Arg1, Arg2);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_cmp2(uint16_t Arg1, uint16_t Arg2) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Arg1, Arg2);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_cmp1(uint8_t Arg1, uint8_t Arg2) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Arg1, Arg2);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_switch(uint64_t Val, uint64_t *Cases) {
// Updates the value profile based on the relative position of Val and Cases.
// We want to handle one random case at every call (handling all is slow).
// Since none of the arguments contain any random bits we use a thread-local
// counter to choose the random case to handle.
static thread_local size_t Counter;
Counter++;
uint64_t N = Cases[0];
uint64_t *Vals = Cases + 2;
char *PC = (char*)__builtin_return_address(0);
// We need a random number < N using Counter as a seed. But w/o DIV.
// * find a power of two >= N
// * mask Counter with this power of two.
// * maybe subtract N.
size_t Nlog = sizeof(long) * 8 - __builtin_clzl((long)N);
size_t PowerOfTwoGeN = 1U << Nlog;
assert(PowerOfTwoGeN >= N);
size_t Idx = Counter & (PowerOfTwoGeN - 1);
if (Idx >= N)
Idx -= N;
assert(Idx < N);
uint64_t TwoIn32 = 1ULL << 32;
if ((Val | Vals[Idx]) < TwoIn32)
fuzzer::TPC.HandleCmp(PC + Idx, static_cast<uint32_t>(Val),
static_cast<uint32_t>(Vals[Idx]));
else
fuzzer::TPC.HandleCmp(PC + Idx, Val, Vals[Idx]);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_div4(uint32_t Val) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Val, (uint32_t)0);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_div8(uint64_t Val) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Val, (uint64_t)0);
}
__attribute__((visibility("default")))
void __sanitizer_cov_trace_gep(uintptr_t Idx) {
fuzzer::TPC.HandleCmp(__builtin_return_address(0), Idx, (uintptr_t)0);
}
} // extern "C"
| C++ | 4 | sdmg15/json | test/thirdparty/Fuzzer/FuzzerTracePC.cpp | [
"MIT"
] |
/* @generated */
digraph cfg {
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_1" [label="1: Start super_example_main\nFormals: argc:int argv:char**\nLocals: a:objc_object* \n " color=yellow style=filled]
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_1" -> "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" ;
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_2" [label="2: Exit super_example_main \n " color=yellow style=filled]
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" [label="3: Call _objc_autoreleasePoolPush \n n$0=_fun__objc_autoreleasePoolPush() [line 39, column 3]\n " shape="box"]
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" -> "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_5" ;
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_4" [label="4: Call _objc_autoreleasePoolPop \n n$1=_fun__objc_autoreleasePoolPop() [line 39, column 3]\n " shape="box"]
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_4" -> "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_2" ;
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_5" [label="5: DeclStmt \n VARIABLE_DECLARED(a:objc_object*); [line 40, column 5]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=ASuper):unsigned long) [line 40, column 21]\n n$3=_fun_NSObject.init(n$2:ASuper*) virtual [line 40, column 21]\n *&a:objc_object*=n$3 [line 40, column 5]\n " shape="box"]
"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_5" -> "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_4" ;
"dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_1" [label="1: Start ASuper.dealloc\nFormals: self:ASuper*\nLocals: \n " color=yellow style=filled]
"dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_1" -> "dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_3" ;
"dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_2" [label="2: Exit ASuper.dealloc \n " color=yellow style=filled]
"dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_3" [label="3: Call dealloc \n " shape="box"]
"dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_3" -> "dealloc#ASuper#instance.d4e2053955a905d19c2f334e81096e84_2" ;
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_1" [label="1: Start ASuper.init\nFormals: self:ASuper*\nLocals: \n " color=yellow style=filled]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_1" -> "init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_6" ;
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_2" [label="2: Exit ASuper.init \n " color=yellow style=filled]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_3" [label="3: Return Stmt \n n$0=*&self:ASuper* [line 33, column 10]\n " shape="box"]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_3" -> "init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_4" ;
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_4" [label="4: Return Stmt \n *&return:objc_object*=n$0 [line 33, column 3]\n " shape="box"]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_4" -> "init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_2" ;
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_5" [label="5: BinaryOperatorStmt: Assign \n n$1=*&self:ASuper* [line 32, column 3]\n *n$1.a:int=4 [line 32, column 3]\n " shape="box"]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_5" -> "init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_3" ;
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_6" [label="6: BinaryOperatorStmt: Assign \n n$2=*&self:ASuper* [line 31, column 10]\n n$3=_fun_BSuper.init(n$2:ASuper*) [line 31, column 10]\n *&self:ASuper*=n$3 [line 31, column 3]\n " shape="box"]
"init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_6" -> "init#ASuper#instance.9832dae2a83c036d9d82b45709c4855e_5" ;
"dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_1" [label="1: Start BSuper.dealloc\nFormals: self:BSuper*\nLocals: \n " color=yellow style=filled]
"dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_1" -> "dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_3" ;
"dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_2" [label="2: Exit BSuper.dealloc \n " color=yellow style=filled]
"dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_3" [label="3: Call dealloc \n " shape="box"]
"dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_3" -> "dealloc#BSuper#instance.12f39640b96655b7899644ca00bba8a4_2" ;
"init#BSuper#instance.6678b088cbd2579c21b766781beb8030_1" [label="1: Start BSuper.init\nFormals: self:BSuper*\nLocals: \n " color=yellow style=filled]
"init#BSuper#instance.6678b088cbd2579c21b766781beb8030_1" -> "init#BSuper#instance.6678b088cbd2579c21b766781beb8030_3" ;
"init#BSuper#instance.6678b088cbd2579c21b766781beb8030_2" [label="2: Exit BSuper.init \n " color=yellow style=filled]
"init#BSuper#instance.6678b088cbd2579c21b766781beb8030_3" [label="3: Return Stmt \n *&return:objc_object*=null [line 17, column 3]\n " shape="box"]
"init#BSuper#instance.6678b088cbd2579c21b766781beb8030_3" -> "init#BSuper#instance.6678b088cbd2579c21b766781beb8030_2" ;
}
| Graphviz (DOT) | 3 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/objc/shared/field_superclass/SuperExample.m.dot | [
"MIT"
] |
server {
listen 80;
server_name mizamae2.ddns.net;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
autoindex on;
alias /home/pi/diy4dot0/site/static/;
}
location /media/{
autoindex on;
alias /home/pi/diy4dot0/src/media/;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/pi/run/diy4dot0.sock;
}
}
server {
listen 80;
server_name 192.168.0.160;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
autoindex on;
alias /home/pi/diy4dot0/site/static/;
}
location /media/{
autoindex on;
alias /home/pi/diy4dot0/src/media/;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/pi/run/diy4dot0.sock;
}
}
server {
listen 80 default_server;
return 444;
}
| Nginx | 4 | mizamae/DIY4dot0 | docs/Nginx/diy4dot0.nginxconf | [
"MIT"
] |
[38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;253;151;31mGeneral[0m[38;2;253;151;31m [0m[38;2;253;151;31mCommands[0m[38;2;253;151;31m [0m[38;2;253;151;31mManual[0m[38;2;248;248;242m [0m[38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m
[38;2;253;151;31mNAME[0m
[38;2;248;248;242m bat - a [0m[38;2;166;226;46mcat[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m clone with syntax highlighting and Git integration.[0m
[38;2;253;151;31mUSAGE[0m
[38;2;248;248;242m bat [0m[38;2;248;248;242m[[0m[38;2;248;248;242mOPTIONS[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242mFILE[0m[38;2;248;248;242m][0m[38;2;248;248;242m...[0m
[38;2;248;248;242m bat cache [0m[38;2;248;248;242m[[0m[38;2;248;248;242mCACHE-OPTIONS[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;166;226;46m--build[0m[38;2;249;38;114m|[0m[38;2;166;226;46m--clear[0m[38;2;248;248;242m][0m
[38;2;253;151;31mDESCRIPTION[0m
[38;2;248;248;242m bat prints the syntax-highlighted content of a collection of FILEs to[0m
[38;2;248;248;242m the terminal. If no FILE is specified, or when FILE is '-', it reads[0m
[38;2;248;248;242m from standard input.[0m
[38;2;248;248;242m bat supports a large number of programming and markup languages. It[0m
[38;2;248;248;242m also communicates with [0m[38;2;166;226;46mgit[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m to show modifications with respect to the[0m
[38;2;248;248;242m git index. bat automatically pipes its output through a pager (by de‐[0m
[38;2;248;248;242m fault: less).[0m
[38;2;248;248;242m Whenever the output of bat goes to a non-interactive terminal, i.e.[0m
[38;2;248;248;242m when the output is piped into another process or into a file, bat will[0m
[38;2;248;248;242m act as a drop-in replacement for [0m[38;2;166;226;46mcat[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m and fall back to printing the[0m
[38;2;248;248;242m plain file contents.[0m
[38;2;253;151;31mOPTIONS[0m
[38;2;248;248;242m General remarks: Command-line options like '[0m[38;2;166;226;46m-l[0m[38;2;248;248;242m'/'[0m[38;2;166;226;46m--language[0m[38;2;248;248;242m' that take[0m
[38;2;248;248;242m values can be specified as either '[0m[38;2;166;226;46m--language[0m[38;2;248;248;242m value', '[0m[38;2;166;226;46m--lan[0m[38;2;248;248;242m‐[0m
[38;2;248;248;242m guage=value', '[0m[38;2;166;226;46m-l[0m[38;2;248;248;242m value' or '[0m[38;2;166;226;46m-lvalue[0m[38;2;248;248;242m'.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-A[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--show-all[0m
[38;2;248;248;242m Show non-printable characters like space, tab or newline. Use[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--tabs[0m[38;2;248;248;242m' to control the width of the tab-placeholders.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-p[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--plain[0m
[38;2;248;248;242m Only show plain style, no decorations. This is an alias for[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mplain'[0m[38;2;248;248;242m. When '[0m[38;2;166;226;46m-p[0m[38;2;248;248;242m' is used twice ('[0m[38;2;166;226;46m-pp[0m[38;2;248;248;242m'), it also dis‐[0m
[38;2;248;248;242m ables automatic paging (alias for '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mplain[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--pager[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnever'[0m[38;2;248;248;242m).[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-l[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--language[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mlanguage[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Explicitly set the language for syntax highlighting. The lan‐[0m
[38;2;248;248;242m guage can be specified as a name (like 'C++' or 'LaTeX') or pos‐[0m
[38;2;248;248;242m sible file extension (like 'cpp', 'hpp' or 'md'). Use[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--list-languages[0m[38;2;248;248;242m' to show all supported language names and file[0m
[38;2;248;248;242m extensions.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-H[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m <N:M>...[0m
[38;2;248;248;242m Highlight the specified line ranges with a different background[0m
[38;2;248;248;242m color For example:[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m 40[0m
[38;2;248;248;242m highlights line 40[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m 30:40[0m
[38;2;248;248;242m highlights lines 30 to 40[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m :40[0m
[38;2;248;248;242m highlights lines 1 to 40[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--highlight-line[0m[38;2;248;248;242m 40:[0m
[38;2;248;248;242m highlights lines 40 to the end of the file[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--tabs[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mT[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Set the tab width to T spaces. Use a width of 0 to pass tabs[0m
[38;2;248;248;242m through directly[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--wrap[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mmode[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Specify the text-wrapping mode (*auto*, never, character). The[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--terminal-width[0m[38;2;248;248;242m' option can be used in addition to control the[0m
[38;2;248;248;242m output width.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--terminal-width[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwidth[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Explicitly set the width of the terminal instead of determining[0m
[38;2;248;248;242m it automatically. If prefixed with '+' or '-', the value will be[0m
[38;2;248;248;242m treated as an offset to the actual terminal width. See also:[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--wrap[0m[38;2;248;248;242m'.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-n[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--number[0m
[38;2;248;248;242m Only show line numbers, no other decorations. This is an alias[0m
[38;2;248;248;242m for '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31mnumbers'[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--color[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Specify when to use colored output. The automatic mode only en‐[0m
[38;2;248;248;242m ables colors if an interactive terminal is detected. Possible[0m
[38;2;248;248;242m values: *auto*, never, always.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--italic-text[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Specify when to use ANSI sequences for italic text in the out‐[0m
[38;2;248;248;242m put. Possible values: always, *never*.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--decorations[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Specify when to use the decorations that have been specified via[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--style[0m[38;2;248;248;242m'. The automatic mode only enables decorations if an in‐[0m
[38;2;248;248;242m teractive terminal is detected. Possible values: *auto*, never,[0m
[38;2;248;248;242m always.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-f[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--force-colorization[0m
[38;2;248;248;242m Alias for '[0m[38;2;166;226;46m--decorations[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways[0m[38;2;248;248;242m [0m[38;2;166;226;46m--color[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31malways'[0m[38;2;248;248;242m. This is useful[0m
[38;2;248;248;242m if the output of bat is piped to another program, but you want[0m
[38;2;248;248;242m to keep the colorization/decorations.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--paging[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mwhen[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Specify when to use the pager. To disable the pager, use '[0m[38;2;166;226;46m--pag[0m[38;2;248;248;242m‐[0m
[38;2;248;248;242m ing=never' or its alias, [0m[38;2;166;226;46m-P[0m[38;2;248;248;242m. To disable the pager permanently,[0m
[38;2;248;248;242m set BAT_PAGER to an empty string. To control which pager is[0m
[38;2;248;248;242m used, see the '[0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m' option. Possible values: *auto*, never,[0m
[38;2;248;248;242m always.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mcommand[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Determine which pager is used. This option will override the[0m
[38;2;248;248;242m PAGER and BAT_PAGER environment variables. The default pager is[0m
[38;2;248;248;242m 'less'. To control when the pager is used, see the '[0m[38;2;166;226;46m--paging[0m[38;2;248;248;242m'[0m
[38;2;248;248;242m option. Example: '[0m[38;2;166;226;46m--pager[0m[38;2;248;248;242m "less [0m[38;2;166;226;46m-RF[0m[38;2;248;248;242m"'.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-m[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--map-syntax[0m[38;2;248;248;242m <glob-pattern:syntax-name>...[0m
[38;2;248;248;242m Map a glob pattern to an existing syntax name. The glob pattern[0m
[38;2;248;248;242m is matched on the full path and the filename. For example, to[0m
[38;2;248;248;242m highlight *.build files with the Python syntax, use [0m[38;2;166;226;46m-m[0m
[38;2;248;248;242m '*.build:Python'. To highlight files named '.myignore' with the[0m
[38;2;248;248;242m Git Ignore syntax, use [0m[38;2;166;226;46m-m[0m[38;2;248;248;242m '.myignore:Git Ignore'.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--theme[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mtheme[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Set the theme for syntax highlighting. Use '[0m[38;2;166;226;46m--list-themes[0m[38;2;248;248;242m' to[0m
[38;2;248;248;242m see all available themes. To set a default theme, add the[0m
[38;2;248;248;242m '[0m[38;2;166;226;46m--theme[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31m"[0m[38;2;248;248;242m..."' option to the configuration file or export the[0m
[38;2;248;248;242m BAT_THEME environment variable (e.g.: export BAT_THEME="...").[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--list-themes[0m
[38;2;248;248;242m Display a list of supported themes for syntax highlighting.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--style[0m[38;2;248;248;242m <[0m[3;38;2;253;151;31mstyle-components[0m[38;2;248;248;242m>[0m
[38;2;248;248;242m Configure which elements (line numbers, file headers, grid bor‐[0m
[38;2;248;248;242m ders, Git modifications, ..) to display in addition to the file[0m
[38;2;248;248;242m contents. The argument is a comma-separated list of components[0m
[38;2;248;248;242m to display (e.g. 'numbers,changes,grid') or a pre-defined style[0m
[38;2;248;248;242m ('full'). To set a default style, add the '[0m[38;2;166;226;46m--style[0m[38;2;249;38;114m=[0m[3;38;2;253;151;31m"[0m[38;2;248;248;242m.."' option[0m
[38;2;248;248;242m to the configuration file or export the BAT_STYLE environment[0m
[38;2;248;248;242m variable (e.g.: export BAT_STYLE=".."). Possible values: *auto*,[0m
[38;2;248;248;242m full, plain, changes, header, grid, numbers, snip.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-r[0m[38;2;248;248;242m, [0m[38;2;166;226;46m--line-range[0m[38;2;248;248;242m <N:M>...[0m
[38;2;248;248;242m Only print the specified range of lines for each file. For exam‐[0m
[38;2;248;248;242m ple:[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--line-range[0m[38;2;248;248;242m 30:40[0m
[38;2;248;248;242m prints lines 30 to 40[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--line-range[0m[38;2;248;248;242m :40[0m
[38;2;248;248;242m prints lines 1 to 40[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--line-range[0m[38;2;248;248;242m 40:[0m
[38;2;248;248;242m prints lines 40 to the end of the file[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-L[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--list-languages[0m
[38;2;248;248;242m Display a list of supported languages for syntax highlighting.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-u[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--unbuffered[0m
[38;2;248;248;242m This option exists for POSIX-compliance reasons ('u' is for 'un‐[0m
[38;2;248;248;242m buffered'). The output is always unbuffered - this option is[0m
[38;2;248;248;242m simply ignored.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-h[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--help[0m
[38;2;248;248;242m Print this help message.[0m
[38;2;248;248;242m [0m[38;2;166;226;46m-V[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46m--version[0m
[38;2;248;248;242m Show version information.[0m
[38;2;253;151;31mPOSITIONAL ARGUMENTS[0m
[38;2;248;248;242m <FILE>...[0m
[38;2;248;248;242m Files to print and concatenate. Use a dash ('-') or no argument[0m
[38;2;248;248;242m at all to read from standard input.[0m
[38;2;253;151;31mSUBCOMMANDS[0m
[38;2;248;248;242m cache - Modify the syntax-definition and theme cache.[0m
[38;2;253;151;31mFILES[0m
[38;2;248;248;242m bat can also be customized with a configuration file. The location of[0m
[38;2;248;248;242m the file is dependent on your operating system. To get the default path[0m
[38;2;248;248;242m for your system, call:[0m
[38;2;248;248;242m bat [0m[38;2;166;226;46m--config-file[0m
[38;2;248;248;242m Alternatively, you can use the BAT_CONFIG_PATH environment variable to[0m
[38;2;248;248;242m point bat to a non-default location of the configuration file.[0m
[38;2;253;151;31mADDING CUSTOM LANGUAGES[0m
[38;2;248;248;242m bat supports Sublime Text .sublime-syntax language files, and can be[0m
[38;2;248;248;242m customized to add additional languages to your local installation. To[0m
[38;2;248;248;242m do this, add the .sublime-snytax language files to `$(bat [0m[38;2;166;226;46m--config-[0m
[38;2;248;248;242m dir)/syntaxes` and run `bat cache [0m[38;2;166;226;46m--build[0m[38;2;248;248;242m`.[0m
[38;2;248;248;242m Example:[0m
[38;2;248;248;242m mkdir [0m[38;2;166;226;46m-p[0m[38;2;248;248;242m "$(bat [0m[38;2;166;226;46m--config-dir[0m[38;2;248;248;242m)/syntaxes"[0m
[38;2;248;248;242m cd "$(bat [0m[38;2;166;226;46m--config-dir[0m[38;2;248;248;242m)/syntaxes"[0m
[38;2;248;248;242m # Put new '.sublime-syntax' language definition files[0m
[38;2;248;248;242m # in this folder (or its subdirectories), for example:[0m
[38;2;248;248;242m git clone https://github.com/tellnobody1/sublime-purescript-syntax[0m
[38;2;248;248;242m # And then build the cache.[0m
[38;2;248;248;242m bat cache [0m[38;2;166;226;46m--build[0m
[38;2;248;248;242m Once the cache is built, the new language will be visible in `bat[0m
[38;2;248;248;242m [0m[38;2;166;226;46m--list-languages[0m[38;2;248;248;242m`.[0m
[38;2;248;248;242m If you ever want to remove the custom languages, you can clear the[0m
[38;2;248;248;242m cache with `bat cache [0m[38;2;166;226;46m--clear[0m[38;2;248;248;242m`.[0m
[38;2;253;151;31mADDING CUSTOM THEMES[0m
[38;2;248;248;242m Similarly to custom languages, bat supports Sublime Text .tmTheme[0m
[38;2;248;248;242m themes. These can be installed to `$(bat [0m[38;2;166;226;46m--config-dir[0m[38;2;248;248;242m)/themes`, and[0m
[38;2;248;248;242m are added to the cache with `bat cache [0m[38;2;166;226;46m--build[0m[38;2;248;248;242m`.[0m
[38;2;253;151;31mMORE INFORMATION[0m
[38;2;248;248;242m For more information and up-to-date documentation, visit the bat repo:[0m
[38;2;248;248;242m https://github.com/sharkdp/bat[0m
[38;2;248;248;242m [0m[38;2;166;226;46mBAT[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m
| Groff | 4 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Manpage/bat-0.16.man | [
"Apache-2.0",
"MIT"
] |
open System
open Microsoft.AspNetCore.Builder
open Microsoft.Extensions.Hosting
[<EntryPoint>]
let main args =
let builder = WebApplication.CreateBuilder(args)
let app = builder.Build()
app.MapGet("/", Func<string>(fun () -> "Hello World!")) |> ignore
app.Run()
0 // Exit code
| F# | 3 | tomaswesterlund/aspnetcore | src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/Program.fs | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-editor .iPadShowKeyboard {
width: 58px;
min-width: 0;
height: 36px;
min-height: 0;
margin: 0;
padding: 0;
position: absolute;
resize: none;
overflow: hidden;
background: url('keyboard-light.svg') center center no-repeat;
border: 4px solid #F6F6F6;
border-radius: 4px;
}
.monaco-editor.vs-dark .iPadShowKeyboard {
background: url('keyboard-dark.svg') center center no-repeat;
border: 4px solid #252526;
} | CSS | 3 | sbj42/vscode | src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css | [
"MIT"
] |
-- This test file was converted from inner-join.sql.
CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1) AS GROUPING(a);
CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1) AS GROUPING(a);
CREATE TEMPORARY VIEW t3 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a);
CREATE TEMPORARY VIEW t4 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a);
CREATE TEMPORARY VIEW ta AS
SELECT udf(a) AS a, udf('a') AS tag FROM t1
UNION ALL
SELECT udf(a) AS a, udf('b') AS tag FROM t2;
CREATE TEMPORARY VIEW tb AS
SELECT udf(a) AS a, udf('a') AS tag FROM t3
UNION ALL
SELECT udf(a) AS a, udf('b') AS tag FROM t4;
SELECT tb.* FROM ta INNER JOIN tb ON ta.a = tb.a AND ta.tag = tb.tag;
| SQL | 3 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/udf/udf-inner-join.sql | [
"Apache-2.0"
] |
/*
Copyright 2015-2021 Scott Bezek and the splitflap contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
include<flap_dimensions.scad>;
include<global_constants.scad>;
use<flap_fonts.scad>;
// TODO: extract core flap spool dimensions used for vertical_keepout_size instead of using the full splitflap file
use<splitflap.scad>;
character_list = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,'";
// Facet number variable refers to a special variable "$fn" that is used to control the number of facets to generate an arc.
// Higher than 100 is not recommended according to the docs as it demands a lot resources
letter_facet_number = 100;
// Vertical keepout refers to the portion of bottom flaps that are visible stacked behind the frontmost flap.
vertical_keepout_mode = 1; // 0=ignore; 1=highlight; 2=cut
vertical_keepout_size_factor = 1.1; // Expand calculated keepout region by this factor. 1=no expansion, 1.5=50% expansion, etc
vertical_keepout_size = get_flap_arc_separation() * vertical_keepout_size_factor;
function get_character_list() = character_list;
function get_flap_index_for_letter(letter) = search(letter, character_list)[0];
function get_letter_for_front(flap_index) =
flap_index >= len(character_list) ? get_letter_for_front(flap_index - len(character_list)) :
flap_index < 0 ? get_letter_for_front(flap_index + len(character_list)) :
character_list[flap_index];
// The letter (bottom half) on the back of a flap is the same as the letter (top half) on the front of the next flap
function get_letter_for_back(flap_index) = get_letter_for_front(flap_index + 1);
module flap_2d(cut_tabs = true) {
translate([0, -flap_pin_width/2, 0])
difference() {
union() {
square([flap_width, flap_height - flap_corner_radius]);
// rounded corners
hull() {
translate([flap_corner_radius, flap_height - flap_corner_radius])
circle(r=flap_corner_radius, $fn=40);
translate([flap_width - flap_corner_radius, flap_height - flap_corner_radius])
circle(r=flap_corner_radius, $fn=40);
}
}
// spool tabs
if(cut_tabs) {
translate([-eps, flap_pin_width])
square([eps + flap_notch_depth, flap_notch_height]);
translate([flap_width - flap_notch_depth, flap_pin_width])
square([eps + flap_notch_depth, flap_notch_height]);
}
}
}
module _flap(flap_color) {
color(flap_color) {
translate([0, 0, -flap_thickness/2]) {
linear_extrude(height=flap_thickness) {
flap_2d();
}
}
}
}
module _draw_letter(letter) {
overrides = get_letter_overrides(letter);
height = is_undef(overrides[3]) ? get_font_setting("height") : overrides[3];
width = is_undef(overrides[4]) ? get_font_setting("width") : overrides[4];
translate([0, -flap_height * height, 0]) { // valign compensation
scale([width, 1, 1]) {
offset_x = is_undef(overrides[1]) ? get_font_setting("offset_x") : get_font_setting("offset_x") + overrides[1];
offset_y = is_undef(overrides[2]) ? get_font_setting("offset_y") : get_font_setting("offset_y") + overrides[2];
translate([offset_x, offset_y]) {
text(text=letter, size=flap_height * height * 2, font=get_font_setting("font"), halign="center", $fn=letter_facet_number);
}
}
}
}
module _flap_letter(letter, letter_color, flap_gap, front=true, bleed = 0) {
color(letter_color) {
translate([0, 0, front ? flap_thickness/2 + eps : -flap_thickness/2 - eps]) {
linear_extrude(height=0.1, center=true) {
intersection() {
difference() {
offset(r=bleed) {
flap_2d();
}
// Note that the verticle keepout (if applicable) is subtracted *after* the bleed is applied; otherwise
// text would bleed into the keepout zone.
if (vertical_keepout_mode > 0) {
vertical_keepout_width = flap_width + bleed*2; // keepout must expand by "bleed" on the left and right
translate([-bleed, flap_height - flap_pin_width/2 - vertical_keepout_size, 0]) {
square([vertical_keepout_width, vertical_keepout_size]);
}
}
// TODO: consider adding horizontal keepout; it may be undesirable for text to meet the sides of the flaps
// (or possibly extend beyond the sides if bleed > 0).
}
translate([flap_width/2, -flap_pin_width/2, 0]) {
rotation = front ? 0 : -180; // flip upside-down for back
gap_comp = (use_letter_gap_compensation() == true) ? -flap_gap/2 : 0;
translate([0, gap_comp, 0]) {
rotate([rotation, 0, 0]) {
_draw_letter(letter);
}
}
}
}
}
}
}
// Highlight any portion of the letter within the keepout region in red, if desired.
if (vertical_keepout_mode == 1) {
color([1,0,0]) {
translate([0, 0, front ? flap_thickness/2 + eps : -flap_thickness/2 - eps]) {
linear_extrude(height=1, center=true) {
intersection() {
offset(r=bleed) {
flap_2d();
}
translate([0, flap_height - flap_pin_width/2 - vertical_keepout_size, 0]) {
square([flap_width, vertical_keepout_size]);
}
translate([flap_width/2, -flap_pin_width/2, 0]) {
rotation = front ? 0 : -180; // flip upside-down for back
gap_comp = (use_letter_gap_compensation() == true) ? -flap_gap/2 : 0;
translate([0, gap_comp, 0]) {
rotate([rotation, 0, 0]) {
_draw_letter(letter);
}
}
}
}
}
}
}
}
}
module flap_with_letters(flap_color, letter_color, flap_index, flap_gap, flap=true, front_letter=true, back_letter=true, bleed=0) {
if (flap) {
_flap(flap_color);
}
if (front_letter) {
_flap_letter(get_letter_for_front(flap_index), letter_color, flap_gap, front=true, bleed=bleed);
}
if (back_letter) {
_flap_letter(get_letter_for_back(flap_index), letter_color, flap_gap, front=false, bleed=bleed);
}
}
// Example:
i = 1;
gap = 5;
flap_with_letters([1,0,0], [1,1,0], flap_index=i, flap_gap=gap, bleed=2);
translate([0, -flap_pin_width-gap, 0])
rotate([180, 0, 0]) {
flap_with_letters([1,0,0], [1,1,0], flap_index=i - 1, flap_gap=gap, bleed=2);
}
| OpenSCAD | 5 | tomihbk/splitflap | 3d/flap.scad | [
"Apache-2.0"
] |
#![warn(clippy::str_to_string)]
fn main() {
let hello = "hello world".to_string();
let msg = &hello[..];
msg.to_string();
}
| Rust | 3 | Eric-Arellano/rust | src/tools/clippy/tests/ui/str_to_string.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
- unless browser.modern?
.alert.alert-danger.alert-dismissible role="alert"
.container
button.close type="button" data-dismiss="alert"
span aria-hidden="true" ×
span.sr-only Close
span.text-important == t('.modern')
.alert.alert-danger.alert-dismissable.pusher-unavailable.hide role="alert"
.container
button.close type="button" data-dismiss="alert"
span aria-hidden="true" ×
span.sr-only Close
span.text-important == t('.pusher_unavailable')
| Slim | 2 | gsmlg/peatio | app/views/shared/_alert.html.slim | [
"MIT"
] |
#include-once
; Moved this stuff here to make the script easier to read/modify
Global Const $S_OK = 0
Global Const $sTag_CLRMetaHost = _
"GetRuntime hresult(wstr;struct*;ptr);" & _
"GetVersionFromFile hresult(ptr;ptr;ptr);" & _
"EnumerateInstalledRuntimes hresult(ptr);" & _
"EnumerateLoadedRuntimes hresult(ptr;ptr);" & _
"RequestRuntimeLoadedNotification hresult(ptr,ptr,ptr):" & _
"QueryLegacyV2RuntimeBinding hresult(ptr;ptr);" & _
"ExitProcess hresult(int);"
Global Const $sTagCLRRuntimeInfo = "GetVersionString hresult(ptr;ptr);" & _
"GetRuntimeDirectory hresult(ptr;ptr);" & _
"IsLoaded hresult(ptr;ptr);" & _
"LoadErrorString hresult(ptr;ptr;ptr;ptr);" & _
"LoadLibrary hresult(ptr;ptr);" & _
"GetProcAddress hresult(ptr;ptr);" & _
"GetInterface hresult(ptr;ptr;ptr);" & _
"IsLoadable hresult(Bool*);" & _
"SetDefaultStartupFlags hresult(ptr;ptr);" & _
"GetDefaultStartupFlags hresult(ptr;ptr;ptr);" & _
"BindAsLegacyV2Runtime hresult();" & _
"IsStarted hresult(ptr;ptr);"
Global Const $sTag_CLRRuntimeInfo = _
"GetVersionString hresult(ptr;ptr);" & _
"GetRuntimeDirectory hresult(ptr;ptr);" & _
"IsLoaded hresult(ptr;ptr);" & _
"LoadErrorString hresult(ptr;ptr;ptr;ptr);" & _
"LoadLibrary hresult(ptr;ptr);" & _
"GetProcAddress hresult(ptr;ptr);" & _
"GetInterface hresult(ptr;ptr;ptr);" & _
"IsLoadable hresult(Bool*);" & _
"SetDefaultStartupFlags hresult(ptr;ptr);" & _
"GetDefaultStartupFlags hresult(ptr;ptr;ptr);" & _
"BindAsLegacyV2Runtime hresult();" & _
"IsStarted hresult(ptr;ptr);"
Global Const $sTag_CLRRuntimeHost = _
"Start hresult();" & _
"Stop hresult();" & _
"SetHostControl hresult(ptr);" & _
"GetCLRControl hresult(ptr*);" & _
"UnloadAppDomain hresult(ptr;ptr);" & _
"ExecuteInAppDomain hresult(ptr;ptr;ptr);" & _
"GetCurrentAppDomainId hresult(ptr);" & _
"ExecuteApplication hresult(ptr;ptr;ptr;ptr;ptr;ptr);" & _
"ExecuteInDefaultAppDomain hresult(wstr;wstr;wstr;wstr;ptr*);"
Global Const $sTagEnumUnknown = "Next hresult(ulong;ptr*;ulong); Skip hresult(ptr); Reset hresult(); Clone hresult(ptr);"
Global Const $sIID_IDispatch = "{00020400-0000-0000-C000-000000000046}"
Global Const $sTag_IDispatch = _
"GetTypeInfoCount hresult(dword*);" & _ ; Retrieves the number of type information interfaces that an object provides (either 0 or 1).
"GetTypeInfo hresult(dword;dword;ptr*);" & _ ; Gets the type information for an object.
"GetIDsOfNames hresult(ptr;ptr;dword;dword;ptr);" & _ ; Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to Invoke.
"Invoke hresult(dword;ptr;dword;word;ptr;ptr;ptr;ptr);" ; Provides access to properties and methods exposed by an object.
Global Const $sIID_IAssembly = "{17156360-2F1A-384A-BC52-FDE93C215C5B}"
Global Const $sTag_IAssembly = _
$sTag_IDispatch & _
"get_ToString hresult(bstr*);" & _ ; Replaced "get_ToString hresult();" & _
"Equals hresult();" & _
"GetHashCode hresult();" & _
"GetType hresult(ptr*);" & _
"get_CodeBase hresult();" & _
"get_EscapedCodeBase hresult();" & _
"GetName hresult();" & _
"GetName_2 hresult();" & _
"get_FullName hresult(bstr*);" & _ ; Replaced "get_FullName hresult();" & _
"get_EntryPoint hresult(ptr*);" & _
"GetType_2 ptr(bstr);" & _
"GetType_3 hresult();" & _
"GetExportedTypes hresult();" & _
"GetTypes hresult(ptr*);" & _ ; Replaced "GetTypes hresult();" & _
"GetManifestResourceStream hresult();" & _
"GetManifestResourceStream_2 hresult();" & _
"GetFile hresult();" & _
"GetFiles hresult();" & _
"GetFiles_2 hresult();" & _
"GetManifestResourceNames hresult();" & _
"GetManifestResourceInfo hresult();" & _
"get_Location hresult();" & _
"get_Evidence hresult();" & _
"GetCustomAttributes hresult();" & _
"GetCustomAttributes_2 hresult();" & _
"IsDefined hresult();" & _
"GetObjectData hresult();" & _
"add_ModuleResolve hresult();" & _
"remove_ModuleResolve hresult();" & _
"GetType_4 hresult();" & _
"GetSatelliteAssembly hresult();" & _
"GetSatelliteAssembly_2 hresult();" & _
"LoadModule hresult();" & _
"LoadModule_2 hresult();" & _
"CreateInstance hresult(bstr;variant*);" & _
"CreateInstance_2 hresult(bstr;bool;variant*);" & _
"CreateInstance_3 hresult(bstr;bool;int;ptr;ptr;ptr;ptr;variant*);" & _
"GetLoadedModules hresult();" & _
"GetLoadedModules_2 hresult();" & _
"GetModules hresult();" & _
"GetModules_2 hresult();" & _
"GetModule hresult();" & _
"GetReferencedAssemblies hresult();" & _
"get_GlobalAssemblyCache hresult();"
Global Const $sIID_IType = "{BCA8B44D-AAD6-3A86-8AB7-03349F4F2DA2}"
Global Const $sTag_IType = _
$sTag_IDispatch & _
"get_ToString hresult(bstr*);" & _
"Equals hresult(variant;short*);" & _
"GetHashCode hresult(int*);" & _
"GetType hresult(ptr);" & _
"get_MemberType hresult(ptr);" & _
"get_name hresult(bstr*);" & _
"get_DeclaringType hresult(ptr);" & _
"get_ReflectedType hresult(ptr);" & _
"GetCustomAttributes hresult(ptr;short;ptr);" & _
"GetCustomAttributes_2 hresult(short;ptr);" & _
"IsDefined hresult(ptr;short;short*);" & _
"get_Guid hresult(ptr);" & _
"get_Module hresult(ptr);" & _
"get_Assembly hresult(ptr*);" & _
"get_TypeHandle hresult(ptr);" & _
"get_FullName hresult(bstr*);" & _
"get_Namespace hresult(bstr*);" & _
"get_AssemblyQualifiedName hresult(bstr*);" & _
"GetArrayRank hresult(int*);" & _
"get_BaseType hresult(ptr);" & _
"GetConstructors hresult(ptr;ptr);" & _
"GetInterface hresult(bstr;short;ptr);" & _
"GetInterfaces hresult(ptr);" & _
"FindInterfaces hresult(ptr;variant;ptr);" & _
"GetEvent hresult(bstr;ptr;ptr);" & _
"GetEvents hresult(ptr);" & _
"GetEvents_2 hresult(int;ptr);" & _
"GetNestedTypes hresult(int;ptr);" & _
"GetNestedType hresult(bstr;ptr;ptr);" & _
"GetMember hresult(bstr;ptr;ptr;ptr);" & _
"GetDefaultMembers hresult(ptr);" & _
"FindMembers hresult(ptr;ptr;ptr;variant;ptr);" & _
"GetElementType hresult(ptr);" & _
"IsSubclassOf hresult(ptr;short*);" & _
"IsInstanceOfType hresult(variant;short*);" & _
"IsAssignableFrom hresult(ptr;short*);" & _
"GetInterfaceMap hresult(ptr;ptr);" & _
"GetMethod hresult(bstr;ptr;ptr;ptr;ptr;ptr);" & _
"GetMethod_2 hresult(bstr;ptr;ptr);" & _
"GetMethods hresult(int;ptr);" & _
"GetField hresult(bstr;ptr;ptr);" & _
"GetFields hresult(int;ptr);" & _
"GetProperty hresult(bstr;ptr;ptr);" & _
"GetProperty_2 hresult(bstr;ptr;ptr;ptr;ptr;ptr;ptr);" & _
"GetProperties hresult(ptr;ptr);" & _
"GetMember_2 hresult(bstr;ptr;ptr);" & _
"GetMembers hresult(int;ptr);" & _
"InvokeMember hresult(bstr;ptr;ptr;variant;ptr;ptr;ptr;ptr;variant*);" & _
"get_UnderlyingSystemType hresult(ptr);" & _
"InvokeMember_2 hresult(bstr;int;ptr;variant;ptr;ptr;variant*);" & _
"InvokeMember_3 hresult(bstr;int;ptr;variant;ptr;variant*);" & _
"GetConstructor hresult(ptr;ptr;ptr;ptr;ptr;ptr);" & _
"GetConstructor_2 hresult(ptr;ptr;ptr;ptr;ptr);" & _
"GetConstructor_3 hresult(ptr;ptr);" & _
"GetConstructors_2 hresult(ptr);" & _
"get_TypeInitializer hresult(ptr);" & _
"GetMethod_3 hresult(bstr;ptr;ptr;ptr;ptr;ptr;ptr);" & _
"GetMethod_4 hresult(bstr;ptr;ptr;ptr);" & _
"GetMethod_5 hresult(bstr;ptr;ptr);" & _
"GetMethod_6 hresult(bstr;ptr);" & _
"GetMethods_2 hresult(ptr);" & _
"GetField_2 hresult(bstr;ptr);" & _
"GetFields_2 hresult(ptr);" & _
"GetInterface_2 hresult(bstr;ptr);" & _
"GetEvent_2 hresult(bstr;ptr);" & _
"GetProperty_3 hresult(bstr;ptr;ptr;ptr;ptr);" & _
"GetProperty_4 hresult(bstr;ptr;ptr;ptr);" & _
"GetProperty_5 hresult(bstr;ptr;ptr);" & _
"GetProperty_6 hresult(bstr;ptr;ptr);" & _
"GetProperty_7 hresult(bstr;ptr);" & _
"GetProperties_2 hresult(ptr);" & _
"GetNestedTypes_2 hresult(ptr);" & _
"GetNestedType_2 hresult(bstr;ptr);" & _
"GetMember_3 hresult(bstr;ptr);" & _
"GetMembers_2 hresult(ptr);" & _
"get_Attributes hresult(ptr);" & _
"get_IsNotPublic hresult(short*);" & _
"get_IsPublic hresult(short*);" & _
"get_IsNestedPublic hresult(short*);" & _
"get_IsNestedPrivate hresult(short*);" & _
"get_IsNestedFamily hresult(short*);" & _
"get_IsNestedAssembly hresult(short*);" & _
"get_IsNestedFamANDAssem hresult(short*);" & _
"get_IsNestedFamORAssem hresult(short*);" & _
"get_IsAutoLayout hresult(short*);" & _
"get_IsLayoutSequential hresult(short*);" & _
"get_IsExplicitLayout hresult(short*);" & _
"get_IsClass hresult(short*);" & _
"get_IsInterface hresult(short*);" & _
"get_IsValueType hresult(short*);" & _
"get_IsAbstract hresult(short*);" & _
"get_IsSealed hresult(short*);" & _
"get_IsEnum hresult(short*);" & _
"get_IsSpecialName hresult(short*);" & _
"get_IsImport hresult(short*);" & _
"get_IsSerializable hresult(short*);" & _
"get_IsAnsiClass hresult(short*);" & _
"get_IsUnicodeClass hresult(short*);" & _
"get_IsAutoClass hresult(short*);" & _
"get_IsArray hresult(short*);" & _
"get_IsByRef hresult(short*);" & _
"get_IsPointer hresult(short*);" & _
"get_IsPrimitive hresult(short*);" & _
"get_IsCOMObject hresult(short*);" & _
"get_HasElementType hresult(short*);" & _
"get_IsContextful hresult(short*);" & _
"get_IsMarshalByRef hresult(short*);" & _
"Equals_2 hresult(ptr;short*);"
Local Const $sIID_MethodInfo = "{FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F}"
Local Const $sTag_IMethodInfo = "GetTypeInfoCount hresult();" & _
"GetTypeInfo hresult();" & _
"GetIDsOfNames hresult();" & _
"Invoke hresult();" & _
"ToString hresult();" & _
"Equals hresult();" & _
"GetHashCode hresult();" & _
"GetType hresult();" & _
"MemberType hresult();" & _
"name hresult(bstr*);" & _
"DeclaringType hresult();" & _
"ReflectedType hresult();" & _
"GetCustomAttributes hresult();" & _
"GetCustomAttributes_2 hresult();" & _
"IsDefined hresult();" & _
"GetParameters hresult();" & _
"GetMethodImplementationFlags hresult();" & _
"MethodHandle hresult();" & _
"Attributes hresult();" & _
"CallingConvention hresult();" & _
"Invoke_2 hresult();" & _
"IsPublic hresult();" & _
"IsPrivate hresult();" & _
"IsFamily hresult();" & _
"IsAssembly hresult();" & _
"IsFamilyAndAssembly hresult();" & _
"IsFamilyOrAssembly hresult();" & _
"IsStatic hresult();" & _
"IsFinal hresult();" & _
"IsVirtual hresult();" & _
"IsHideBySig hresult();" & _
"IsAbstract hresult();" & _
"IsSpecialName hresult();" & _
"IsConstructor hresult();" & _
"Invoke_3 hresult(variant;ptr;variant*);" & _
"returnType hresult();" & _
"ReturnTypeCustomAttributes hresult();" & _
"GetBaseDefinition hresult();"
Local Const $sIID_AppDomain = "{05F696DC-2B29-3663-AD8B-C4389CF2A713}"
Local Const $sTag_AppDomain = _
"GetTypeInfoCount hresult();" & _
"GetTypeInfo hresult();" & _
"GetIDsOfNames hresult();" & _
"Invoke hresult();" & _
"get_ToString hresult();" & _
"Equals hresult();" & _
"GetHashCode hresult();" & _
"GetType hresult();" & _
"InitializeLifetimeService hresult();" & _
"GetLifetimeService hresult();" & _
"get_Evidence hresult();" & _
"add_DomainUnload hresult();" & _
"remove_DomainUnload hresult();" & _
"add_AssemblyLoad hresult();" & _
"remove_AssemblyLoad hresult();" & _
"add_ProcessExit hresult();" & _
"remove_ProcessExit hresult();" & _
"add_TypeResolve hresult();" & _
"remove_TypeResolve hresult();" & _
"add_ResourceResolve hresult();" & _
"remove_ResourceResolve hresult();" & _
"add_AssemblyResolve hresult();" & _
"remove_AssemblyResolve hresult();" & _
"add_UnhandledException hresult();" & _
"remove_UnhandledException hresult();" & _
"DefineDynamicAssembly hresult();" & _
"DefineDynamicAssembly_2 hresult();" & _
"DefineDynamicAssembly_3 hresult();" & _
"DefineDynamicAssembly_4 hresult();" & _
"DefineDynamicAssembly_5 hresult();" & _
"DefineDynamicAssembly_6 hresult();" & _
"DefineDynamicAssembly_7 hresult();" & _
"DefineDynamicAssembly_8 hresult();" & _
"DefineDynamicAssembly_9 hresult();" & _
"CreateInstance hresult();" & _
"CreateInstanceFrom hresult();" & _
"CreateInstance_2 hresult();" & _
"CreateInstanceFrom_2 hresult();" & _
"CreateInstance_3 hresult();" & _
"CreateInstanceFrom_3 hresult();" & _
"Load hresult();" & _
"Load_2 hresult(bstr;ptr*);" & _
"Load_3 hresult(ptr;ptr*);" & _
"Load_4 hresult();" & _
"Load_5 hresult();" & _
"Load_6 hresult();" & _
"Load_7 hresult();" & _
"ExecuteAssembly hresult();" & _
"ExecuteAssembly_2 hresult();" & _
"ExecuteAssembly_3 hresult();" & _
"get_FriendlyName hresult();" & _
"get_BaseDirectory hresult();" & _
"get_RelativeSearchPath hresult();" & _
"get_ShadowCopyFiles hresult();" & _
"GetAssemblies hresult();" & _
"AppendPrivatePath hresult();" & _
"ClearPrivatePath hresult();" & _
"SetShadowCopyPath hresult();" & _
"ClearShadowCopyPath hresult();" & _
"SetCachePath hresult();" & _
"SetData hresult();" & _
"GetData hresult();" & _
"SetAppDomainPolicy hresult();" & _
"SetThreadPrincipal hresult();" & _
"SetPrincipalPolicy hresult();" & _
"DoCallBack hresult();" & _
"get_DynamicDirectory hresult();"
Local Const $sCLSID_CorRuntimeHost = "{CB2F6723-AB3A-11D2-9C40-00C04FA30A3E}"
Local Const $sIID_ICorRuntimeHost = "{CB2F6722-AB3A-11D2-9C40-00C04FA30A3E}"
Local $tCLSID_CorRuntimeHost = _WinAPI_CLSIDFromString($sCLSID_CorRuntimeHost)
Local $tIID_ICorRuntimeHost = _WinAPI_CLSIDFromString($sIID_ICorRuntimeHost)
Local Const $sTag_ICorRuntimeHost = _
"CreateLogicalThreadState hresult();" & _
"DeleteLogicalThreadState hresult();" & _
"SwitchInLogicalThreadState hresult();" & _
"SwitchOutLogicalThreadState hresult();" & _
"LocksHeldByLogicalThread hresult();" & _
"MapFile hresult();" & _
"GetConfiguration hresult();" & _
"Start hresult();" & _
"Stop hresult();" & _
"CreateDomain hresult();" & _
"GetDefaultDomain hresult(ptr*);" & _
"EnumDomains hresult();" & _
"NextDomain hresult();" & _
"CloseEnum hresult();" & _
"CreateDomainEx hresult();" & _
"CreateDomainSetup hresult();" & _
"CreateEvidence hresult();" & _
"UnloadDomain hresult();" & _
"CurrentDomain hresult();"
#Region CLSID & IID
Global Const $sCLSID_CLRMetaHost = "{9280188d-0e8e-4867-b30c-7fa83884e8de}"
Global Const $sIID_ICLRMetaHost = "{d332db9e-b9b3-4125-8207-a14884f53216}"
Global Const $sIID_ICLRRuntimeInfo = "{BD39D1D2-BA2F-486a-89B0-B4B0CB466891}"
Global Const $sCLSID_CLRRuntimeHost = "{90F1A06E-7712-4762-86B5-7A5EBA6BDB02}"
Global Const $sIID_ICLRRuntimeHost = "{90F1A06C-7712-4762-86B5-7A5EBA6BDB02}"
Global Const $sIID_IEnumUnknown = "{00000100-0000-0000-C000-000000000046}"
Global $tCLSID_CLRMetaHost = _WinAPI_CLSIDFromString($sCLSID_CLRMetaHost)
Global $tIID_ICLRMetaHost = _WinAPI_CLSIDFromString($sIID_ICLRMetaHost)
Global $tIID_ICLRRuntimeInfo = _WinAPI_CLSIDFromString($sIID_ICLRRuntimeInfo)
Global $tCLSID_CLRRuntimeHost = _WinAPI_CLSIDFromString($sCLSID_CLRRuntimeHost)
Global $tIID_ICLRRuntimeHost = _WinAPI_CLSIDFromString($sIID_ICLRRuntimeHost)
Global $tIID_IEnumUnknown = _WinAPI_CLSIDFromString($sIID_IEnumUnknown)
#EndRegion CLSID & IID
Func _WinAPI_CLSIDFromString($sGUID)
Local $tGUID = DllStructCreate('ulong Data1;ushort Data2;ushort Data3;byte Data4[8]')
Local $iRet = DllCall('ole32.dll', 'uint', 'CLSIDFromString', 'wstr', $sGUID, 'ptr', DllStructGetPtr($tGUID))
If (@error) Or ($iRet[0]) Then
Return SetError(@error, @extended, 0)
EndIf
Return $tGUID
EndFunc ;==>_WinAPI_CLSIDFromString
| AutoIt | 3 | ohio813/OffensiveAutoIt | Execution/ExecuteAssembly/Includes/CLRConsts.au3 | [
"BSD-2-Clause"
] |
// Bootstrap
@import 'vendor-bootstrap.less';
@import (less) '../fonts/font-awesome.css';
| Less | 1 | KarlParkinson/mitmproxy | web/src/css/vendor.less | [
"MIT"
] |
template(name="editor")
a.fa.fa-copy(title="{{_ 'copy-text-to-clipboard'}}")
span.copied-tooltip {{_ 'copied'}}
textarea.editor(
dir="auto"
class="{{class}}"
id=id
autofocus=autofocus
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock
template(name="viewer")
.viewer(dir="auto")
+mentions
+markdown
{{> UI.contentBlock }}
| Jade | 3 | Knitter/wekan | client/components/main/editor.jade | [
"MIT"
] |
XXV
library ieee;
use ieee.std_logic_1164.all;
use work.std_logic_1164_ktp.all;
use work.RPC_PAC_def.all;
package RPC_PAC_patt is
constant TT_MPAC_CFG_ID :THV(3 downto 0) := "XXXX";
constant TT_MPAC_OR_LIMIT :natural := 0; --| 0...3
XXN
constant TT_GBSORT_INPUTS :natural := 12;
constant PACLogPlainsDecl :TPACLogPlainsDecl := (
--PAC_INDEX
--| PAC_MODEL
--| | logplane 1 size .........logplane 6 size
XXP
constant LogPlainConn :TLogPlainConn := (
--PAC_INDEX Logplane LinkChannel LinkLeftBit
--| PAC_MODEL | Link | LogPlaneLeftBit
--| | | | | | | LinkBitsCount
--------------------------------------------------------------
XXC
constant PACCellQuality :TPACCellQuality := (
XXQ
constant PACPattTable :TPACPattTable := (
--PAC_INDEX
--| PAC_MODEL
--| | Ref Group Index
--| | | Qualit Tab index
--| | | | Plane1 Plane2 Plane3 Plane4 Plane5 Plane6 sign code pat number
XXS
constant GBSortDecl :TGBSortDecl := (
--PAC_INDEX
--| PAC_MODEL
--| | GBSORT_INPUT_INDEX
XXG
end RPC_PAC_patt;
| VHDL | 3 | ckamtsikis/cmssw | L1TriggerConfig/RPCTriggerConfig/test/pacTemplate.vhd | [
"Apache-2.0"
] |
PUT /q=08aP8931Ltyl9nqyJvjMaRCOgDV3uONtAdHABjoZUG6KAP6h3Vh97O3GJjjovXYgNdrhxc7TriXoAmeehZMJx88EyhcPXO0f09Nvd128SZnxZ2r5jFDELkn26reKRysODSLBZLfjU3vxLzLXKWeFOFJKcZYRH9V7hC98DDS4ZsS7weUksBuK6m86aLNHHHB0Xbyxv1TiDbOWYIzKxV0eZKyk0CaDLDiR0CRuMOf4rwBeuHoMrumzafrFI5iL72ANQZmOvKdk1qQeXkRqEG11YU0kF7f1hSlmgiIgg5maWiBsA9sAg36IIXZMWwJF63zpMgAyjTT8l4pQhSBfhY2xbGAWmLGpyd1rlBm0O5LCoKpnQuTACm2azi0x6a1Qbry9flQBO4jHge2dXiD1si6Gh5q8fZu8ZQ7LLWii2u4rGB7E4XlhnClrCHg5vJmjYf2AItYPA0ogsiIdEEQGpzMJPqrp8Icn5kAAimWF1aCYaDjcdSgWI48PnoxlzIHX50EPFcPOSLecjkstD9z66H554sUXfWn3Mk9lnOUlse6nx0u1YClFK4UFXp98ru9eBBr7pkAsfZ34yPskayGyXPPyzWyBfVd28UuvdEG47SMdyqEpX0rFdk67fAYij0PWMK79mDmGAS37O821o18XUbu0GQjsqAGVMN9LDIAliD9QqtlwdEnplKkUyyZ7GAFJCFffgzppU9CjA2FbPX6ZjTOi4sPoYEyhyeQKVqAe9keYeDpU2qDwq83XEDQUKvP0w48GyavSmdBcrMXjUsu0PfdYpSaKwarrUB3i93HgoQB3ZJIR4lW6iPRTmm28OEKq2MIJGAoTXxCZYM5UacRldlqQOj6JkYz6y7ppWOjJ9yiCUEenuvfcItgmw9HIgGA59JxO8NDLEZLSONfuIgiV7wjsJnxuTOlU4vkjV7fTuOeU91xez7UKhaTqqEW3XBUSLjhKi3IkZg7ukrGZTWPhijFv2EZwEWDAyLlHvZB4X738zGJUlEX1k52EHwrKVKdLfePcaOjAGKsongHBFYxYC8vBBLuKm9RWexKCT14M25pCGloJXZ4OpBRfDQA2kobLUcEXEpzqRBPGN2JdNSBOFlUtUxWKnnPBM6r9S356l3k1o9zTIPeoIitWRjASs4A0iwYc8p5vv5Kt8KtsmW7Xv8dlU8HbZHsy3LI7O9BpUH8cJubqdEhooKABkx71pdcsZGhZb6epyTiPyvOhdJ7tNtFy3KQOameqTgGyd53Z42eZ0AjaOEvnzermi2E0xo3MMHFhB74TFtNAI3ppxxyqknc1mzUqZ49Wi8YPBg9ids6IgZvddBQYvwEozkmyGAkatQtt9TD4LjU3TyyUlhNG21q7CzEEl8NNsVrV6QyHsfw7E5w7XcoT7OQkBYoZwHIAjfekehnpc2llRtRY5m43fPVasmsVazOR36DRSLZJPHAqUDO0LInu9mgP57Mnz9CgylEmdE2aaYs426rnTFR3G3CfjLofHfjaLOkAegr4W3jx6MNMMOMZw2u46YTCnlfbBK6ZA1UYeAH1DIQJykcSQESinC8HpYIJt9A8g7UT0awzRP1F9nHa3wDnaAHndQYKMrjzlWo8ejQ0XHWgHhqnWHgW4h9sOnJckH00CYK1fHUKASJ3D8kOKax6uplexfz6BCvAoL9zm5TjeB1yxrpLp9NjjTWSKG2HOZhPkGpdEqU4mjnN2AkUVACPGos5YLBmTnSrdOEGZJDlAvJOUt800Mu3BYc1MiDIB6LMSSV5RsIUDFOzNletGQoq4G3yHZmx78uEse5vUTPFF3KT8LCrssqdIU9H97Npgf6N5j8arQ7ykLzN459jJaUzpGIo6uowPnUSatDf9GAvAmWNvsVTz6bYiAV71C7QF0C7UolYIQY6DHJEHejgX2YMEovWNLPL50eeC51h4DdPNv5G4ZdNtQTRVybYBZMpetGDiFmXN0JKa1sKHOSZxdrhKjxDIhrYVyCcRUMQ0sjGGHFuOcRszr6E5igEMtsebHQ3KYiGd5B27LikpUHhk61rgZlulHdMoS6YgQs6SV6UMVNku6sCw529xhUciDwRMhsbAjDlahYbrGa3NryxyV5LrXONGGKCchCqv7vDMdAtPrVr8M2vL5MySQAC3g90iugGQcLH3hCf9f1Kn5X0hM4KZTfwOPJhlfJsMRNhssiDoXaycUvOUS58266yPDlitPIAzO03XClm4EDPXGIwcwiFr7FcDo3tQIMZVy87i48Zb80s3zAYRiBIS0vO3RKGx3OGN5zid2B7MfnfLzvpvgZoirHhAqXffnym5abpZNzGuo5GowTRA2Ptk4Ve2JFoHACWpD6HiGnRZ9QVOmPICoQrSUQw45Jlk9onKJz5Erhnx0943Uno6tMJ5jbrWBNiIO7i04xzRBgujeiAJvuQkVDX2QLKRxZ7s6rhdfOaq6R6uL108gEzzlXOLqTTJXgM63rcUWNbE7wsIXcCFSF59LLJ7G5Qea33suxdDX6DcK4a0VMZoxmWPtCi1dAT9ggJqc2Sh7mkAqizaB16RXZvSydchpdVj6s4qn4ivr0HKHdAstX0XZ0FFU6lOiNmU3vasMg2uaVG8tyuG8N8VsuXIOQs7xtFxDhilYb8MQ9vES9pWfWPSXFlJAq4XKPY8a0JOIx57EQuWHo3uWgRTIRThvZP9YYzSnjGIHwjS8JeppICHofADXZhJ0uDQaQs7MiXEALpGmT3W6w0G3tBdZcuTDkWx1HsT5jd9jQeJpgD2VxdKh8U4Q3vANTAuwBXLJ2P0stS8Q72JWgNPwKYTY9cPoaGZlUFGgVsq8CdEFH9yW0c27G5s5sfHsyep6t4VxIHHMOX2GmMRyGxDI33am1J7ZmJ1NyXiwkHxtPH5QBpU2PMu2Guf3xIxlk3snMkMAsGO0vYfqO9tdIgdxMYO3HZTYv99OXaHcNQ5u0pRZZyVrNOIPurkEOdJy0nowPemIgUuHWh8vQCuDZav1m35AOl6ftSFuChSm5KstEWnC7q8mJ0juJEBkCRmQphP3V1pqiDjz6YA90qEe7MA3nzT0nHG8A1hWlqcPVPNz4qWNF6Fq1ub4075aXO0H7Krb6rhWGb3ZRPjpb4BKN8jGFQrBUMZprtjAJ67BnfmYgE0mmGLV2QP10gYS1T06kBRyrtp7he6wsPiBPJ7wxPLHNUN2SGQHBTSKagndM99fuaga5Sw9OT8Fzdo7xUJXfhJ97gUnNDrknal0B00NMNvajZeQQTJyBsVSwBZtZ45ZCcq1idc7GWC0MITSk58cIVkSPXbrERUaygyY13dPeEVzjVi9aVJwUF6eJu1s8u3FCJqp2GoWIItwvZO69asX75fekFkmFpNavxM0X0dZC01TTPpV6E6PJoIfW8C06CKNHV7Gk2mkTWGSwUG4xD2L3G3XarodHDcmumFJX9Xviv0rvm38SCtin6OpjH8MHYDrj1OxTJbC2VclJxv73z2BDBquosKOik0fmgbPZN0FUTmjBEwHTvqd5QHTwb3nOpEz3X6YCF0lrcrQc0uhyr7gBGBs86nUBWFRp1LKjIRVTVXDipajqNDTQGNZtzvR9MUf1yJJV07inbrlPOENd7rHpKCrJtoZXOkDqInaIqoMCG3DVd353BGmZNJEKOa3DnL7fb9zwuHlvHAfCco7ZS4wAV87trWkp6skXux9v5WhkumbUyGq4ia6DM1PuqqnFfBTAWDzJsnggAJrzr8O7JbDtaXwcW9sqaOb0S6NvnUDZqiNdDQPMDOKvXRJJJQdf1FSrPCCSPEEWO1SeVwictj7rTbpWGRoukwhgJALys95pGGOQxCPzRGrtVFnGcsLN1CwI3wLbmDnNKUv3KpOLEOPRxQXeXuJRIiYCFum44c0wNr731DvHn3YEJMH4iwFONl1rolEL4w6KFUOCq7ekrE5iyUt1V32PNtuUshXRjOYjBval29JMH5GoqZlGhCczzHMA61cmuzqdFwiPCB9yzqvJTg8TqMNvwKJztFIQK4mc5Ev5rRVSozD796AVRKT8rZF39IA1kmCLdXqz7CCC8x4QjjDpxjKCXP5HkWf9mp2FNBjE3pAeaEc6Vk2ENLlW8WVCe HTTP/1.0\r\n
\r\n
| HTTP | 0 | ashishmjn/gunicorn | tests/requests/invalid/006.http | [
"MIT"
] |
#
# Automatically generated file; DO NOT EDIT.
# Linux/s390 5.4.15 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=70500
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y
CONFIG_CC_HAS_ASM_GOTO=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_WARN_MAYBE_UNINITIALIZED=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_HEADER_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_HAVE_KERNEL_UNCOMPRESSED=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_UNCOMPRESSED is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_USELIB is not set
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ is not set
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
CONFIG_TREE_SRCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not set
CONFIG_LOG_BUF_SHIFT=17
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_NUMA_BALANCING=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_SWAP_ENABLED=y
CONFIG_MEMCG_KMEM=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
CONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
# CONFIG_SGETMASK_SYSCALL is not set
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_FHANDLE=y
CONFIG_POSIX_TIMERS=y
CONFIG_PRINTK=y
CONFIG_PRINTK_NMI=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_FUTEX_PI=y
CONFIG_HAVE_FUTEX_CMPXCHG=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_BASE_RELATIVE=y
CONFIG_BPF_SYSCALL=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_USERFAULTFD=y
CONFIG_RSEQ=y
# CONFIG_DEBUG_RSEQ is not set
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_MEMCG_SYSFS_ON is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
CONFIG_SLAB_MERGE_DEFAULT=y
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
CONFIG_SLUB_CPU_PARTIAL=y
CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_AUDIT_ARCH=y
CONFIG_NO_IOPORT_MAP=y
# CONFIG_PCI_QUIRKS is not set
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_S390=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_PGTABLE_LEVELS=5
CONFIG_HAVE_LIVEPATCH=y
CONFIG_LIVEPATCH=y
#
# Processor type and features
#
CONFIG_HAVE_MARCH_Z900_FEATURES=y
CONFIG_HAVE_MARCH_Z990_FEATURES=y
CONFIG_HAVE_MARCH_Z9_109_FEATURES=y
CONFIG_HAVE_MARCH_Z10_FEATURES=y
CONFIG_HAVE_MARCH_Z196_FEATURES=y
# CONFIG_MARCH_Z900 is not set
# CONFIG_MARCH_Z990 is not set
# CONFIG_MARCH_Z9_109 is not set
# CONFIG_MARCH_Z10 is not set
CONFIG_MARCH_Z196=y
# CONFIG_MARCH_ZEC12 is not set
# CONFIG_MARCH_Z13 is not set
# CONFIG_MARCH_Z14 is not set
# CONFIG_MARCH_Z15 is not set
CONFIG_MARCH_ZEC12_TUNE=y
# CONFIG_TUNE_DEFAULT is not set
# CONFIG_TUNE_Z900 is not set
# CONFIG_TUNE_Z990 is not set
# CONFIG_TUNE_Z9_109 is not set
# CONFIG_TUNE_Z10 is not set
# CONFIG_TUNE_Z196 is not set
CONFIG_TUNE_ZEC12=y
# CONFIG_TUNE_Z13 is not set
# CONFIG_TUNE_Z14 is not set
# CONFIG_TUNE_Z15 is not set
CONFIG_64BIT=y
CONFIG_COMPAT=y
CONFIG_COMPAT_VDSO=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_SMP=y
CONFIG_NR_CPUS=512
CONFIG_HOTPLUG_CPU=y
CONFIG_NODES_SPAN_OTHER_NODES=y
CONFIG_NUMA=y
CONFIG_NODES_SHIFT=4
#
# Select NUMA modes
#
# CONFIG_NUMA_EMU is not set
# end of Select NUMA modes
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
CONFIG_SCHED_BOOK=y
CONFIG_SCHED_DRAWER=y
CONFIG_SCHED_TOPOLOGY=y
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
CONFIG_ARCH_HAS_KEXEC_PURGATORY=y
CONFIG_KEXEC_SIG=y
CONFIG_ARCH_RANDOM=y
# CONFIG_KERNEL_NOBP is not set
CONFIG_EXPOLINE=y
# CONFIG_EXPOLINE_OFF is not set
CONFIG_EXPOLINE_AUTO=y
# CONFIG_EXPOLINE_FULL is not set
CONFIG_RELOCATABLE=y
CONFIG_RANDOMIZE_BASE=y
# end of Processor type and features
#
# Memory setup
#
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_FORCE_MAX_ZONEORDER=9
CONFIG_MAX_PHYSMEM_BITS=46
CONFIG_PACK_STACK=y
# CONFIG_WARN_DYNAMIC_STACK is not set
# end of Memory setup
#
# I/O subsystem
#
CONFIG_QDIO=y
CONFIG_PCI_NR_FUNCTIONS=128
CONFIG_HAS_IOMEM=y
CONFIG_CHSC_SCH=y
CONFIG_SCM_BUS=y
# CONFIG_EADM_SCH is not set
CONFIG_VFIO_CCW=y
# end of I/O subsystem
#
# Dump support
#
CONFIG_CRASH_DUMP=y
# end of Dump support
CONFIG_SECCOMP=y
#
# Power Management
#
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_ARCH_SAVE_PAGE_KEYS=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# end of Power Management
CONFIG_CCW=y
CONFIG_HAVE_PNETID=y
#
# Virtualization
#
# CONFIG_PROTECTED_VIRTUALIZATION_GUEST is not set
CONFIG_PFAULT=y
# CONFIG_CMM is not set
CONFIG_APPLDATA_BASE=y
# CONFIG_APPLDATA_MEM is not set
# CONFIG_APPLDATA_OS is not set
# CONFIG_APPLDATA_NET_SUM is not set
# CONFIG_S390_HYPFS_FS is not set
CONFIG_HAVE_KVM=y
CONFIG_VIRTUALIZATION=y
# CONFIG_KVM is not set
# CONFIG_VHOST_NET is not set
# CONFIG_VHOST_VSOCK is not set
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
CONFIG_S390_GUEST=y
# end of Virtualization
#
# General architecture-dependent options
#
CONFIG_CRASH_CORE=y
CONFIG_KEXEC_CORE=y
# CONFIG_OPROFILE is not set
CONFIG_HAVE_OPROFILE=y
CONFIG_KPROBES=y
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_NMI=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_HAVE_ASM_MODVERSIONS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
CONFIG_HAVE_RCU_TABLE_FREE=y
CONFIG_HAVE_MMU_GATHER_NO_GATHER=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_CC_HAS_STACKPROTECTOR_NONE=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING=y
CONFIG_ARCH_HAS_SCALED_CPUTIME=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_COPY_THREAD_TLS=y
CONFIG_CLONE_BACKWARDS2=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OLD_SIGACTION=y
CONFIG_COMPAT_OLD_SIGACTION=y
CONFIG_64BIT_TIME=y
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_HAVE_ARCH_VMAP_STACK=y
CONFIG_VMAP_STACK=y
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
# CONFIG_REFCOUNT_FULL is not set
# CONFIG_LOCK_EVENT_COUNTS is not set
CONFIG_ARCH_HAS_MEM_ENCRYPT=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_PLUGIN_HOSTCC=""
CONFIG_HAVE_GCC_PLUGINS=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULE_SIG_FORMAT=y
CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODVERSIONS=y
CONFIG_ASM_MODVERSIONS=y
CONFIG_MODULE_REL_CRCS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set
CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set
CONFIG_MODULE_SIG_HASH="sha256"
# CONFIG_MODULE_COMPRESS is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
CONFIG_UNUSED_SYMBOLS=y
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLK_RQ_ALLOC_TIME=y
CONFIG_BLK_SCSI_REQUEST=y
CONFIG_BLK_DEV_BSG=y
CONFIG_BLK_DEV_BSGLIB=y
CONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_ZONED is not set
CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set
# CONFIG_BLK_CMDLINE_PARSER is not set
CONFIG_BLK_WBT=y
CONFIG_BLK_CGROUP_IOLATENCY=y
CONFIG_BLK_CGROUP_IOCOST=y
CONFIG_BLK_WBT_MQ=y
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
CONFIG_IBM_PARTITION=y
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not set
CONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
# end of Partition Types
CONFIG_BLOCK_COMPAT=y
CONFIG_BLK_MQ_PCI=y
CONFIG_BLK_MQ_VIRTIO=y
CONFIG_BLK_PM=y
#
# IO Schedulers
#
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers
CONFIG_ASN1=y
CONFIG_ARCH_INLINE_SPIN_TRYLOCK=y
CONFIG_ARCH_INLINE_SPIN_TRYLOCK_BH=y
CONFIG_ARCH_INLINE_SPIN_LOCK=y
CONFIG_ARCH_INLINE_SPIN_LOCK_BH=y
CONFIG_ARCH_INLINE_SPIN_LOCK_IRQ=y
CONFIG_ARCH_INLINE_SPIN_LOCK_IRQSAVE=y
CONFIG_ARCH_INLINE_SPIN_UNLOCK=y
CONFIG_ARCH_INLINE_SPIN_UNLOCK_BH=y
CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE=y
CONFIG_ARCH_INLINE_READ_TRYLOCK=y
CONFIG_ARCH_INLINE_READ_LOCK=y
CONFIG_ARCH_INLINE_READ_LOCK_BH=y
CONFIG_ARCH_INLINE_READ_LOCK_IRQ=y
CONFIG_ARCH_INLINE_READ_LOCK_IRQSAVE=y
CONFIG_ARCH_INLINE_READ_UNLOCK=y
CONFIG_ARCH_INLINE_READ_UNLOCK_BH=y
CONFIG_ARCH_INLINE_READ_UNLOCK_IRQ=y
CONFIG_ARCH_INLINE_READ_UNLOCK_IRQRESTORE=y
CONFIG_ARCH_INLINE_WRITE_TRYLOCK=y
CONFIG_ARCH_INLINE_WRITE_LOCK=y
CONFIG_ARCH_INLINE_WRITE_LOCK_BH=y
CONFIG_ARCH_INLINE_WRITE_LOCK_IRQ=y
CONFIG_ARCH_INLINE_WRITE_LOCK_IRQSAVE=y
CONFIG_ARCH_INLINE_WRITE_UNLOCK=y
CONFIG_ARCH_INLINE_WRITE_UNLOCK_BH=y
CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE=y
CONFIG_INLINE_SPIN_TRYLOCK=y
CONFIG_INLINE_SPIN_TRYLOCK_BH=y
CONFIG_INLINE_SPIN_LOCK=y
CONFIG_INLINE_SPIN_LOCK_BH=y
CONFIG_INLINE_SPIN_LOCK_IRQ=y
CONFIG_INLINE_SPIN_LOCK_IRQSAVE=y
CONFIG_INLINE_SPIN_UNLOCK_BH=y
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE=y
CONFIG_INLINE_READ_TRYLOCK=y
CONFIG_INLINE_READ_LOCK=y
CONFIG_INLINE_READ_LOCK_BH=y
CONFIG_INLINE_READ_LOCK_IRQ=y
CONFIG_INLINE_READ_LOCK_IRQSAVE=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_BH=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK_IRQRESTORE=y
CONFIG_INLINE_WRITE_TRYLOCK=y
CONFIG_INLINE_WRITE_LOCK=y
CONFIG_INLINE_WRITE_LOCK_BH=y
CONFIG_INLINE_WRITE_LOCK_IRQ=y
CONFIG_INLINE_WRITE_LOCK_IRQSAVE=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_BH=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
CONFIG_FREEZER=y
#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ARCH_BINFMT_ELF_STATE=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#
CONFIG_SPARSEMEM=y
CONFIG_NEED_MULTIPLE_NODES=y
CONFIG_HAVE_MEMORY_PRESENT=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_HAVE_MEMBLOCK_PHYS_MAP=y
CONFIG_HAVE_FAST_GUP=y
CONFIG_ARCH_KEEP_MEMBLOCK=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_CONTIG_ALLOC=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_BOUNCE=y
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_TRANSPARENT_HUGEPAGE=y
CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
CONFIG_TRANSPARENT_HUGE_PAGECACHE=y
CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y
CONFIG_CMA=y
# CONFIG_CMA_DEBUG is not set
# CONFIG_CMA_DEBUGFS is not set
CONFIG_CMA_AREAS=7
CONFIG_MEM_SOFT_DIRTY=y
# CONFIG_ZSWAP is not set
# CONFIG_ZPOOL is not set
# CONFIG_ZBUD is not set
# CONFIG_ZSMALLOC is not set
CONFIG_DEFERRED_STRUCT_PAGE_INIT=y
CONFIG_IDLE_PAGE_TRACKING=y
CONFIG_PERCPU_STATS=y
CONFIG_GUP_BENCHMARK=y
# CONFIG_READ_ONLY_THP_FOR_FS is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
# end of Memory Management options
CONFIG_NET=y
CONFIG_NET_INGRESS=y
CONFIG_SKB_EXTENSIONS=y
#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
CONFIG_UNIX_SCM=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_TLS is not set
CONFIG_XFRM=y
CONFIG_XFRM_ALGO=y
CONFIG_XFRM_USER=y
# CONFIG_XFRM_INTERFACE is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
# CONFIG_NET_KEY is not set
CONFIG_IUCV=y
# CONFIG_AFIUCV is not set
# CONFIG_XDP_SOCKETS is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_FIB_TRIE_STATS is not set
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
CONFIG_IP_MROUTE_COMMON=y
CONFIG_IP_MROUTE=y
CONFIG_IP_MROUTE_MULTIPLE_TABLES=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
# CONFIG_NET_IPVTI is not set
# CONFIG_NET_FOU is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not set
CONFIG_TCP_CONG_CUBIC=y
# CONFIG_TCP_CONG_WESTWOOD is not set
# CONFIG_TCP_CONG_HTCP is not set
# CONFIG_TCP_CONG_HSTCP is not set
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not set
# CONFIG_TCP_CONG_NV is not set
# CONFIG_TCP_CONG_SCALABLE is not set
# CONFIG_TCP_CONG_LP is not set
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not set
# CONFIG_TCP_CONG_ILLINOIS is not set
# CONFIG_TCP_CONG_DCTCP is not set
# CONFIG_TCP_CONG_CDG is not set
# CONFIG_TCP_CONG_BBR is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_PREF=y
# CONFIG_IPV6_ROUTE_INFO is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_ILA is not set
# CONFIG_IPV6_VTI is not set
# CONFIG_IPV6_SIT is not set
# CONFIG_IPV6_TUNNEL is not set
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
# CONFIG_IPV6_MROUTE is not set
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_NETLABEL is not set
CONFIG_NETWORK_SECMARK=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_INGRESS=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_FAMILY_BRIDGE=y
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
# CONFIG_NETFILTER_NETLINK_OSF is not set
CONFIG_NF_CONNTRACK=y
# CONFIG_NF_LOG_NETDEV is not set
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
# CONFIG_NF_CONNTRACK_ZONES is not set
CONFIG_NF_CONNTRACK_PROCFS=y
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CONNTRACK_TIMEOUT=y
CONFIG_NF_CONNTRACK_TIMESTAMP=y
CONFIG_NF_CONNTRACK_LABELS=y
CONFIG_NF_CT_PROTO_DCCP=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CT_PROTO_UDPLITE=y
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_SNMP is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
CONFIG_NF_CT_NETLINK=y
# CONFIG_NF_CT_NETLINK_TIMEOUT is not set
CONFIG_NF_NAT=y
# CONFIG_NF_TABLES is not set
CONFIG_NETFILTER_XTABLES=y
#
# Xtables combined modules
#
# CONFIG_NETFILTER_XT_MARK is not set
# CONFIG_NETFILTER_XT_CONNMARK is not set
#
# Xtables targets
#
# CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_CONNSECMARK is not set
# CONFIG_NETFILTER_XT_TARGET_HMARK is not set
# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set
# CONFIG_NETFILTER_XT_TARGET_LOG is not set
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
CONFIG_NETFILTER_XT_NAT=y
# CONFIG_NETFILTER_XT_TARGET_NETMAP is not set
# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
# CONFIG_NETFILTER_XT_TARGET_MASQUERADE is not set
# CONFIG_NETFILTER_XT_TARGET_TEE is not set
# CONFIG_NETFILTER_XT_TARGET_SECMARK is not set
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
#
# Xtables matches
#
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
# CONFIG_NETFILTER_XT_MATCH_CPU is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ECN is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
# CONFIG_NETFILTER_XT_MATCH_HL is not set
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set
# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
# CONFIG_NETFILTER_XT_MATCH_L2TP is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not set
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
# CONFIG_NETFILTER_XT_MATCH_OSF is not set
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set
# CONFIG_NETFILTER_XT_MATCH_STATE is not set
# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# end of Core Netfilter Configuration
# CONFIG_IP_SET is not set
# CONFIG_IP_VS is not set
#
# IP: Netfilter Configuration
#
CONFIG_NF_DEFRAG_IPV4=y
# CONFIG_NF_SOCKET_IPV4 is not set
# CONFIG_NF_TPROXY_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
# CONFIG_NF_LOG_IPV4 is not set
# CONFIG_NF_REJECT_IPV4 is not set
CONFIG_IP_NF_IPTABLES=y
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_TTL is not set
CONFIG_IP_NF_FILTER=y
# CONFIG_IP_NF_TARGET_REJECT is not set
# CONFIG_IP_NF_TARGET_SYNPROXY is not set
CONFIG_IP_NF_NAT=y
# CONFIG_IP_NF_TARGET_MASQUERADE is not set
# CONFIG_IP_NF_TARGET_NETMAP is not set
# CONFIG_IP_NF_TARGET_REDIRECT is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_SECURITY is not set
# CONFIG_IP_NF_ARPTABLES is not set
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#
# CONFIG_NF_SOCKET_IPV6 is not set
# CONFIG_NF_TPROXY_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
# CONFIG_NF_REJECT_IPV6 is not set
# CONFIG_NF_LOG_IPV6 is not set
# CONFIG_IP6_NF_IPTABLES is not set
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=y
# CONFIG_NF_CONNTRACK_BRIDGE is not set
# CONFIG_BRIDGE_NF_EBTABLES is not set
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
CONFIG_STP=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
CONFIG_LLC=y
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not set
CONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#
# CONFIG_NET_SCH_CBQ is not set
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not set
# CONFIG_NET_SCH_PRIO is not set
# CONFIG_NET_SCH_MULTIQ is not set
# CONFIG_NET_SCH_RED is not set
# CONFIG_NET_SCH_SFB is not set
# CONFIG_NET_SCH_SFQ is not set
# CONFIG_NET_SCH_TEQL is not set
# CONFIG_NET_SCH_TBF is not set
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not set
# CONFIG_NET_SCH_TAPRIO is not set
# CONFIG_NET_SCH_GRED is not set
# CONFIG_NET_SCH_DSMARK is not set
# CONFIG_NET_SCH_NETEM is not set
# CONFIG_NET_SCH_DRR is not set
# CONFIG_NET_SCH_MQPRIO is not set
# CONFIG_NET_SCH_SKBPRIO is not set
# CONFIG_NET_SCH_CHOKE is not set
# CONFIG_NET_SCH_QFQ is not set
# CONFIG_NET_SCH_CODEL is not set
CONFIG_NET_SCH_FQ_CODEL=y
# CONFIG_NET_SCH_CAKE is not set
# CONFIG_NET_SCH_FQ is not set
# CONFIG_NET_SCH_HHF is not set
# CONFIG_NET_SCH_PIE is not set
# CONFIG_NET_SCH_INGRESS is not set
# CONFIG_NET_SCH_PLUG is not set
# CONFIG_NET_SCH_DEFAULT is not set
#
# Classification
#
CONFIG_NET_CLS=y
# CONFIG_NET_CLS_BASIC is not set
# CONFIG_NET_CLS_TCINDEX is not set
# CONFIG_NET_CLS_ROUTE4 is not set
# CONFIG_NET_CLS_FW is not set
# CONFIG_NET_CLS_U32 is not set
# CONFIG_NET_CLS_RSVP is not set
# CONFIG_NET_CLS_RSVP6 is not set
# CONFIG_NET_CLS_FLOW is not set
CONFIG_NET_CLS_CGROUP=y
# CONFIG_NET_CLS_BPF is not set
# CONFIG_NET_CLS_FLOWER is not set
# CONFIG_NET_CLS_MATCHALL is not set
# CONFIG_NET_EMATCH is not set
CONFIG_NET_CLS_ACT=y
# CONFIG_NET_ACT_POLICE is not set
# CONFIG_NET_ACT_GACT is not set
# CONFIG_NET_ACT_MIRRED is not set
# CONFIG_NET_ACT_SAMPLE is not set
# CONFIG_NET_ACT_IPT is not set
# CONFIG_NET_ACT_NAT is not set
# CONFIG_NET_ACT_PEDIT is not set
# CONFIG_NET_ACT_SIMP is not set
# CONFIG_NET_ACT_SKBEDIT is not set
# CONFIG_NET_ACT_CSUM is not set
# CONFIG_NET_ACT_MPLS is not set
# CONFIG_NET_ACT_VLAN is not set
# CONFIG_NET_ACT_BPF is not set
# CONFIG_NET_ACT_CONNMARK is not set
# CONFIG_NET_ACT_CTINFO is not set
# CONFIG_NET_ACT_SKBMOD is not set
# CONFIG_NET_ACT_IFE is not set
# CONFIG_NET_ACT_TUNNEL_KEY is not set
# CONFIG_NET_ACT_CT is not set
# CONFIG_NET_TC_SKB_EXT is not set
CONFIG_NET_SCH_FIFO=y
# CONFIG_DCB is not set
CONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
CONFIG_VSOCKETS=y
# CONFIG_VSOCKETS_DIAG is not set
CONFIG_VIRTIO_VSOCKETS=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
# CONFIG_NETLINK_DIAG is not set
CONFIG_MPLS=y
# CONFIG_NET_MPLS_GSO is not set
# CONFIG_MPLS_ROUTING is not set
# CONFIG_NET_NSH is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set
# CONFIG_NET_NCSI is not set
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_STREAM_PARSER is not set
CONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing
# end of Networking options
# CONFIG_CAN is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
CONFIG_FIB_RULES=y
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_PSAMPLE is not set
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not set
CONFIG_GRO_CELLS=y
CONFIG_FAILOVER=y
CONFIG_HAVE_EBPF_JIT=y
#
# Device Drivers
#
CONFIG_HAVE_PCI=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
# CONFIG_PCIEPORTBUS is not set
CONFIG_PCI_MSI=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set
CONFIG_HOTPLUG_PCI_S390=y
#
# PCI controller drivers
#
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support
#
# DesignWare PCI Core Support
#
# end of DesignWare PCI Core Support
# end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER is not set
# CONFIG_FW_LOADER_COMPRESS is not set
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#
# end of Bus devices
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not set
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SKD is not set
# CONFIG_BLK_DEV_SX8 is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=32768
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
#
# S/390 block device drivers
#
# CONFIG_BLK_DEV_XPRAM is not set
# CONFIG_DCSSBLK is not set
CONFIG_DASD=y
CONFIG_DASD_PROFILE=y
CONFIG_DASD_ECKD=y
CONFIG_DASD_FBA=y
CONFIG_DASD_DIAG=y
CONFIG_DASD_EER=y
CONFIG_VIRTIO_BLK=y
# CONFIG_VIRTIO_BLK_SCSI is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set
#
# NVME Support
#
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_NVME_FC is not set
# end of NVME Support
#
# Misc devices
#
# CONFIG_DUMMY_IRQ is not set
# CONFIG_PHANTOM is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_SRAM is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_93CX6 is not set
# end of EEPROM support
# CONFIG_CB710_CORE is not set
#
# Texas Instruments shared transport line discipline
#
# end of Texas Instruments shared transport line discipline
#
# Altera FPGA firmware download module (requires I2C)
#
#
# Intel MIC & related support
#
#
# Intel MIC Bus Driver
#
#
# SCIF Bus Driver
#
#
# VOP Bus Driver
#
# CONFIG_VOP_BUS is not set
#
# Intel MIC Host Driver
#
#
# Intel MIC Card Driver
#
#
# SCIF Driver
#
#
# Intel MIC Coprocessor State Management (COSM) Drivers
#
#
# VOP Driver
#
# end of Intel MIC & related support
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
# CONFIG_HABANA_AI is not set
# end of Misc devices
#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
# CONFIG_SCSI_SCAN_ASYNC is not set
#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
CONFIG_SCSI_FC_ATTRS=y
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
CONFIG_ZFCP=y
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
CONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_CHELSIO_FCOE is not set
CONFIG_SCSI_DH=y
CONFIG_SCSI_DH_RDAC=y
# CONFIG_SCSI_DH_HP_SW is not set
CONFIG_SCSI_DH_EMC=y
CONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
# CONFIG_ATA is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID456 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not set
# CONFIG_BCACHE is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
# CONFIG_DM_UNSTRIPED is not set
# CONFIG_DM_CRYPT is not set
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_THIN_PROVISIONING is not set
# CONFIG_DM_CACHE is not set
# CONFIG_DM_WRITECACHE is not set
# CONFIG_DM_ERA is not set
# CONFIG_DM_CLONE is not set
# CONFIG_DM_MIRROR is not set
# CONFIG_DM_RAID is not set
# CONFIG_DM_ZERO is not set
CONFIG_DM_MULTIPATH=y
# CONFIG_DM_MULTIPATH_QL is not set
# CONFIG_DM_MULTIPATH_ST is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
CONFIG_DM_UEVENT=y
# CONFIG_DM_FLAKEY is not set
# CONFIG_DM_VERITY is not set
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
# CONFIG_DM_INTEGRITY is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_GTP is not set
# CONFIG_MACSEC is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
CONFIG_VIRTIO_NET=y
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set
#
# CAIF transport drivers
#
CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_ALTERA_TSE is not set
# CONFIG_NET_VENDOR_AMAZON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_AURORA is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_NET_VENDOR_CORTINA is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
# CONFIG_NET_VENDOR_GOOGLE is not set
# CONFIG_NET_VENDOR_HP is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_MARVELL is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETERION is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PACKET_ENGINES is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_MDIO_DEVICE is not set
# CONFIG_PHYLIB is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
#
# S/390 network device drivers
#
# CONFIG_LCS is not set
# CONFIG_CTCM is not set
# CONFIG_NETIUCV is not set
# CONFIG_SMSGIUCV is not set
CONFIG_QETH=y
CONFIG_QETH_L2=y
CONFIG_QETH_L3=y
CONFIG_CCWGROUP=y
# end of S/390 network device drivers
#
# Host-side USB support is needed for USB Network Adapter support
#
#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_NETDEVSIM is not set
CONFIG_NET_FAILOVER=y
# CONFIG_NVM is not set
#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
# CONFIG_RMI4_CORE is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports
# end of Input device support
#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=0
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_NULL_TTY is not set
CONFIG_LDISC_AUTOLOAD=y
CONFIG_DEVMEM=y
# CONFIG_DEVKMEM is not set
#
# Serial drivers
#
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# end of Serial drivers
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_TTY_PRINTK is not set
CONFIG_HVC_DRIVER=y
CONFIG_HVC_IUCV=y
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_HW_RANDOM_S390=y
# CONFIG_APPLICOM is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
CONFIG_HW_RANDOM_TPM=y
# CONFIG_TCG_VTPM_PROXY is not set
CONFIG_DEVPORT=y
#
# S/390 character device drivers
#
CONFIG_TN3270=y
CONFIG_TN3270_TTY=y
CONFIG_TN3270_FS=y
CONFIG_TN3270_CONSOLE=y
CONFIG_TN3215=y
CONFIG_TN3215_CONSOLE=y
CONFIG_CCW_CONSOLE=y
CONFIG_SCLP_TTY=y
CONFIG_SCLP_CONSOLE=y
CONFIG_SCLP_VT220_TTY=y
CONFIG_SCLP_VT220_CONSOLE=y
# CONFIG_HMC_DRV is not set
# CONFIG_SCLP_OFB is not set
# CONFIG_S390_TAPE is not set
# CONFIG_VMLOGRDR is not set
CONFIG_VMCP=y
CONFIG_VMCP_CMA_SIZE=4
# CONFIG_MONREADER is not set
# CONFIG_MONWRITER is not set
# CONFIG_S390_VMUR is not set
# CONFIG_XILLYBUS is not set
# end of Character devices
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
#
# I2C support
#
# CONFIG_I2C is not set
# end of I2C support
# CONFIG_I3C is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
# CONFIG_PPS is not set
#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
# end of PTP clock support
# CONFIG_PINCTRL is not set
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_AVS is not set
# CONFIG_POWER_RESET is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_CORE=y
CONFIG_WATCHDOG_NOWAYOUT=y
CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=y
CONFIG_WATCHDOG_OPEN_TIMEOUT=0
# CONFIG_WATCHDOG_SYSFS is not set
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_I6300ESB_WDT is not set
# CONFIG_DIAG288_WATCHDOG is not set
#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set
CONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_MADERA is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_TQMX86 is not set
# CONFIG_MFD_VX855 is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not set
# CONFIG_RC_CORE is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#
# CONFIG_DRM is not set
# CONFIG_DRM_DP_CEC is not set
#
# ARM devices
#
# end of ARM devices
#
# ACP (Audio CoProcessor) Configuration
#
# end of ACP (Audio CoProcessor) Configuration
#
# Frame buffer Devices
#
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#
# CONFIG_LCD_CLASS_DEVICE is not set
# CONFIG_BACKLIGHT_CLASS_DEVICE is not set
# end of Backlight & LCD device support
#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
# CONFIG_LOGO is not set
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#
# CONFIG_HID is not set
# end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
# CONFIG_DMADEVICES is not set
#
# DMABUF options
#
CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_SELFTESTS is not set
# end of DMABUF options
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
CONFIG_VFIO_IOMMU_TYPE1=y
CONFIG_VFIO=y
# CONFIG_VFIO_NOIOMMU is not set
# CONFIG_VFIO_PCI is not set
CONFIG_VFIO_MDEV=y
CONFIG_VFIO_MDEV_DEVICE=y
# CONFIG_VIRT_DRIVERS is not set
CONFIG_VIRTIO=y
CONFIG_VIRTIO_MENU=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_BALLOON is not set
CONFIG_VIRTIO_INPUT=y
# CONFIG_VIRTIO_MMIO is not set
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
# CONFIG_GREYBUS is not set
# CONFIG_STAGING is not set
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#
# end of Clock Source drivers
# CONFIG_MAILBOX is not set
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_S390_IOMMU=y
CONFIG_S390_CCW_IOMMU=y
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Aspeed SoC drivers
#
# end of Aspeed SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# CONFIG_XILINX_VCU is not set
# end of Xilinx SoC drivers
# end of SOC (System On Chip) specific Drivers
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
#
# IRQ chip support
#
# end of IRQ chip support
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# end of PHY Subsystem
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
# end of Performance monitor support
# CONFIG_RAS is not set
#
# Android
#
# CONFIG_ANDROID is not set
# end of Android
# CONFIG_LIBNVDIMM is not set
CONFIG_DAX=y
# CONFIG_DEV_DAX is not set
# CONFIG_NVMEM is not set
#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support
# CONFIG_FPGA is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# end of Device Drivers
#
# File systems
#
# CONFIG_VALIDATE_FS_PARSER is not set
CONFIG_FS_IOMAP=y
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
CONFIG_JBD2_DEBUG=y
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_ONLINE_SCRUB is not set
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
# CONFIG_GFS2_FS is not set
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
CONFIG_FS_DAX=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_MANDATORY_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_VERITY=y
# CONFIG_FS_VERITY_DEBUG is not set
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
CONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QUOTA_DEBUG is not set
# CONFIG_QFMT_V1 is not set
# CONFIG_QFMT_V2 is not set
CONFIG_QUOTACTL=y
# CONFIG_AUTOFS4_FS is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_FUSE_FS=y
# CONFIG_CUSE is not set
# CONFIG_VIRTIO_FS is not set
CONFIG_OVERLAY_FS=y
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
# CONFIG_OVERLAY_FS_INDEX is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
# CONFIG_UDF_FS is not set
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set
# end of DOS/FAT/NT Filesystems
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
# CONFIG_PROC_VMCORE_DEVICE_DUMP is not set
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_PROC_CHILDREN=y
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_MEMFD_CREATE=y
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
# CONFIG_CONFIGFS_FS is not set
# end of Pseudo filesystems
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_9P_FS=y
# CONFIG_9P_FS_POSIX_ACL is not set
# CONFIG_9P_FS_SECURITY is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
CONFIG_UNICODE=y
# CONFIG_UNICODE_NORMALIZATION_SELFTEST is not set
# end of File systems
#
# Security options
#
CONFIG_KEYS=y
CONFIG_KEYS_COMPAT=y
# CONFIG_KEYS_REQUEST_CACHE is not set
CONFIG_PERSISTENT_KEYRINGS=y
CONFIG_BIG_KEYS=y
# CONFIG_TRUSTED_KEYS is not set
# CONFIG_ENCRYPTED_KEYS is not set
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
CONFIG_SECURITY=y
CONFIG_SECURITY_WRITABLE_HOOKS=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
# CONFIG_SECURITY_NETWORK_XFRM is not set
# CONFIG_SECURITY_PATH is not set
CONFIG_LSM_MMAP_MIN_ADDR=65536
CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
# CONFIG_HARDENED_USERCOPY is not set
# CONFIG_FORTIFY_SOURCE is not set
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=0
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
# CONFIG_IMA_TEMPLATE is not set
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
CONFIG_IMA_APPRAISE_BOOTPARAM=y
# CONFIG_IMA_APPRAISE_MODSIG is not set
CONFIG_IMA_TRUSTED_KEYRING=y
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
# CONFIG_EVM is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="yama,loadpin,safesetid,integrity,selinux,smack,tomoyo,apparmor"
#
# Kernel hardening options
#
#
# Memory initialization
#
CONFIG_INIT_STACK_NONE=y
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
# end of Memory initialization
# end of Kernel hardening options
# end of Security options
CONFIG_XOR_BLOCKS=y
CONFIG_CRYPTO=y
#
# Crypto core or helper
#
CONFIG_CRYPTO_FIPS=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
# CONFIG_CRYPTO_MANAGER_EXTRA_TESTS is not set
CONFIG_CRYPTO_GF128MUL=y
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
# CONFIG_CRYPTO_PCRYPT is not set
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set
#
# Public-key cryptography
#
CONFIG_CRYPTO_RSA=y
# CONFIG_CRYPTO_DH is not set
# CONFIG_CRYPTO_ECDH is not set
# CONFIG_CRYPTO_ECRDSA is not set
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
CONFIG_CRYPTO_GCM=y
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
# CONFIG_CRYPTO_AEGIS128 is not set
CONFIG_CRYPTO_SEQIV=y
# CONFIG_CRYPTO_ECHAINIV is not set
#
# Block modes
#
CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CFB is not set
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_OFB is not set
# CONFIG_CRYPTO_PCBC is not set
CONFIG_CRYPTO_XTS=y
# CONFIG_CRYPTO_KEYWRAP is not set
# CONFIG_CRYPTO_ADIANTUM is not set
# CONFIG_CRYPTO_ESSIV is not set
#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set
#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_XXHASH is not set
CONFIG_CRYPTO_CRCT10DIF=y
CONFIG_CRYPTO_GHASH=y
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_LIB_SHA256=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
# CONFIG_CRYPTO_SHA3 is not set
# CONFIG_CRYPTO_SM3 is not set
# CONFIG_CRYPTO_STREEBOG is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
#
# Ciphers
#
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_TI is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
CONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set
# CONFIG_CRYPTO_ZSTD is not set
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not set
# CONFIG_CRYPTO_DRBG_CTR is not set
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_HW=y
# CONFIG_ZCRYPT is not set
CONFIG_CRYPTO_SHA1_S390=y
CONFIG_CRYPTO_SHA256_S390=y
CONFIG_CRYPTO_SHA512_S390=y
CONFIG_CRYPTO_SHA3_256_S390=y
CONFIG_CRYPTO_SHA3_512_S390=y
CONFIG_CRYPTO_DES_S390=y
CONFIG_CRYPTO_AES_S390=y
CONFIG_S390_PRNG=y
CONFIG_CRYPTO_GHASH_S390=y
CONFIG_CRYPTO_CRC32_S390=y
# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set
# CONFIG_CRYPTO_DEV_VIRTIO is not set
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
CONFIG_X509_CERTIFICATE_PARSER=y
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not set
CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not set
# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set
#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#
CONFIG_RAID6_PQ=y
CONFIG_RAID6_PQ_BENCHMARK=y
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_FIND_FIRST_BIT=y
# CONFIG_CORDIC is not set
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
# CONFIG_CRC_CCITT is not set
CONFIG_CRC16=y
CONFIG_CRC_T10DIF=y
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC64 is not set
# CONFIG_CRC4 is not set
# CONFIG_CRC7 is not set
CONFIG_LIBCRC32C=y
# CONFIG_CRC8 is not set
CONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_IA64=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_HAS_DMA=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_ARCH_HAS_FORCE_DMA_UNENCRYPTED=y
CONFIG_SWIOTLB=y
CONFIG_DMA_CMA=y
#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_SEL_MBYTES=y
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
# CONFIG_CMA_SIZE_SEL_MAX is not set
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
CONFIG_SGL_ALLOC=y
CONFIG_IOMMU_HELPER=y
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_OID_REGISTRY=y
CONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SG_POOL=y
CONFIG_ARCH_STACKWALK=y
CONFIG_SBITMAP=y
# CONFIG_STRING_SELFTEST is not set
# end of Library routines
#
# Kernel hacking
#
#
# printk and dmesg options
#
CONFIG_PRINTK_TIME=y
# CONFIG_PRINTK_CALLER is not set
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_CONSOLE_LOGLEVEL_QUIET=4
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_DYNAMIC_DEBUG is not set
# end of printk and dmesg options
#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
CONFIG_DEBUG_INFO_DWARF4=y
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_GDB_SCRIPTS=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_INSTALL is not set
CONFIG_OPTIMIZE_INLINING=y
CONFIG_DEBUG_SECTION_MISMATCH=y
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
CONFIG_MAGIC_SYSRQ_SERIAL=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y
#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_PAGE_OWNER is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_PER_CPU_MAPS is not set
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_CC_HAS_KASAN_GENERIC=y
# CONFIG_KASAN is not set
CONFIG_KASAN_STACK=1
# end of Memory Debugging
CONFIG_ARCH_HAS_KCOV=y
CONFIG_CC_HAS_SANCOV_TRACE_PC=y
# CONFIG_KCOV is not set
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Lockups and Hangs
#
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_WQ_WATCHDOG is not set
# end of Debug Lockups and Hangs
CONFIG_PANIC_ON_OOPS=y
CONFIG_PANIC_ON_OOPS_VALUE=1
CONFIG_PANIC_TIMEOUT=0
CONFIG_SCHED_DEBUG=y
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
# CONFIG_SCHED_STACK_END_CHECK is not set
# CONFIG_DEBUG_TIMEKEEPING is not set
#
# Lock Debugging (spinlocks, mutexes, etc...)
#
CONFIG_LOCK_DEBUGGING_SUPPORT=y
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_RWSEMS is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)
CONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_PLIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#
# CONFIG_RCU_PERF_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=60
CONFIG_RCU_TRACE=y
# CONFIG_RCU_EQS_DEBUG is not set
# end of RCU Debugging
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
CONFIG_LATENCYTOP=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_NOP_MCOUNT=y
CONFIG_TRACER_MAX_TRACE=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
# CONFIG_PREEMPTIRQ_EVENTS is not set
# CONFIG_IRQSOFF_TRACER is not set
CONFIG_SCHED_TRACER=y
# CONFIG_HWLAT_TRACER is not set
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
CONFIG_STACK_TRACER=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_KPROBE_EVENTS=y
CONFIG_UPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
CONFIG_PROBE_EVENTS=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_FUNCTION_PROFILER=y
CONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not set
CONFIG_TRACING_MAP=y
CONFIG_HIST_TRIGGERS=y
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_TEST_SORT is not set
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
CONFIG_ATOMIC64_SELFTEST=y
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_STRSCPY is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_BITFIELD is not set
# CONFIG_TEST_UUID is not set
# CONFIG_TEST_XARRAY is not set
# CONFIG_TEST_OVERFLOW is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_HASH is not set
# CONFIG_TEST_IDA is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_VMALLOC is not set
# CONFIG_TEST_USER_COPY is not set
# CONFIG_TEST_BPF is not set
# CONFIG_TEST_BLACKHOLE_DEV is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_STACKINIT is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_MEMTEST is not set
CONFIG_BUG_ON_DATA_CORRUPTION=y
# CONFIG_SAMPLES is not set
CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not set
CONFIG_UBSAN_ALIGNMENT=y
CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not set
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_S390_PTDUMP=y
CONFIG_EARLY_PRINTK=y
# end of Kernel hacking
| Logos | 2 | eadamsintel/kata-containers | tools/packaging/kernel/configs/s390_kata_kvm_5.4.x | [
"Apache-2.0"
] |
"""
0
"""
import System.Threading
import System.Threading.Tasks
import System
callable MyDel[of U](ref u as U) as Task
class MyClass[of T]:
public static def Meth(ref t as T) as Task:
t = Default(T)
return Task.Run(async ({ await(Task.Delay(1)); TestCase.Count++ }))
public myDel as MyDel[of T]
public event myEvent as MyDel[of T]
[async] public def TriggerEvent(p as T) as Task:
try:
await myEvent(p)
except:
TestCase.Count += 5
struct TestCase:
public static Count = 0
private tests as int
[async] public def Run():
tests = 0
try:
tests++;
var ms = MyClass[of string]()
ms.myDel = MyClass[of string].Meth;
var str = ""
await ms.myDel(str)
tests++
ms.myEvent += MyClass[of string].Meth
await ms.TriggerEvent(str)
ensure:
Driver.Result = TestCase.Count - self.tests
//When test complete, set the flag.
Driver.CompletedSignal.Set()
class Driver:
public static Result = -1
public static CompletedSignal = AutoResetEvent(false)
static def Main():
var t = TestCase()
t.Run()
Driver.CompletedSignal.WaitOne()
// 0 - success
// 1 - failed (test completed)
// -1 - failed (test incomplete - deadlock, etc)
Console.WriteLine(Driver.Result)
| Boo | 4 | popcatalin81/boo | tests/testcases/async/delegate-async.boo | [
"BSD-3-Clause"
] |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "go_asm.h"
#include "textflag.h"
// Caller must confirm availability of vx facility before calling.
TEXT ·Index(SB),NOSPLIT|NOFRAME,$0-56
LMG a_base+0(FP), R1, R2 // R1=&s[0], R2=len(s)
LMG b_base+24(FP), R3, R4 // R3=&sep[0], R4=len(sep)
MOVD $ret+48(FP), R5
BR indexbody<>(SB)
// Caller must confirm availability of vx facility before calling.
TEXT ·IndexString(SB),NOSPLIT|NOFRAME,$0-40
LMG a_base+0(FP), R1, R2 // R1=&s[0], R2=len(s)
LMG b_base+16(FP), R3, R4 // R3=&sep[0], R4=len(sep)
MOVD $ret+32(FP), R5
BR indexbody<>(SB)
// s: string we are searching
// sep: string to search for
// R1=&s[0], R2=len(s)
// R3=&sep[0], R4=len(sep)
// R5=&ret (int)
// Caller must confirm availability of vx facility before calling.
TEXT indexbody<>(SB),NOSPLIT|NOFRAME,$0
CMPBGT R4, R2, notfound
ADD R1, R2
SUB R4, R2 // R2=&s[len(s)-len(sep)] (last valid index)
CMPBEQ R4, $0, notfound
SUB $1, R4 // R4=len(sep)-1 for use as VLL index
VLL R4, (R3), V0 // contains first 16 bytes of sep
MOVD R1, R7
index2plus:
CMPBNE R4, $1, index3plus
MOVD $15(R7), R9
CMPBGE R9, R2, index2to16
VGBM $0xaaaa, V31 // 0xff00ff00ff00ff00...
VONE V16
VREPH $0, V0, V1
CMPBGE R9, R2, index2to16
index2loop:
VL 0(R7), V2 // 16 bytes, even indices
VL 1(R7), V4 // 16 bytes, odd indices
VCEQH V1, V2, V5 // compare even indices
VCEQH V1, V4, V6 // compare odd indices
VSEL V5, V6, V31, V7 // merge even and odd indices
VFEEBS V16, V7, V17 // find leftmost index, set condition to 1 if found
BLT foundV17
MOVD $16(R7), R7 // R7+=16
ADD $15, R7, R9
CMPBLE R9, R2, index2loop // continue if (R7+15) <= R2 (last index to search)
CMPBLE R7, R2, index2to16
BR notfound
index3plus:
CMPBNE R4, $2, index4plus
ADD $15, R7, R9
CMPBGE R9, R2, index2to16
MOVD $1, R0
VGBM $0xaaaa, V31 // 0xff00ff00ff00ff00...
VONE V16
VREPH $0, V0, V1
VREPB $2, V0, V8
index3loop:
VL (R7), V2 // load 16-bytes into V2
VLL R0, 16(R7), V3 // load 2-bytes into V3
VSLDB $1, V2, V3, V4 // V4=(V2:V3)<<1
VSLDB $2, V2, V3, V9 // V9=(V2:V3)<<2
VCEQH V1, V2, V5 // compare 2-byte even indices
VCEQH V1, V4, V6 // compare 2-byte odd indices
VCEQB V8, V9, V10 // compare last bytes
VSEL V5, V6, V31, V7 // merge even and odd indices
VN V7, V10, V7 // AND indices with last byte
VFEEBS V16, V7, V17 // find leftmost index, set condition to 1 if found
BLT foundV17
MOVD $16(R7), R7 // R7+=16
ADD $15, R7, R9
CMPBLE R9, R2, index3loop // continue if (R7+15) <= R2 (last index to search)
CMPBLE R7, R2, index2to16
BR notfound
index4plus:
CMPBNE R4, $3, index5plus
ADD $15, R7, R9
CMPBGE R9, R2, index2to16
MOVD $2, R0
VGBM $0x8888, V29 // 0xff000000ff000000...
VGBM $0x2222, V30 // 0x0000ff000000ff00...
VGBM $0xcccc, V31 // 0xffff0000ffff0000...
VONE V16
VREPF $0, V0, V1
index4loop:
VL (R7), V2 // load 16-bytes into V2
VLL R0, 16(R7), V3 // load 3-bytes into V3
VSLDB $1, V2, V3, V4 // V4=(V2:V3)<<1
VSLDB $2, V2, V3, V9 // V9=(V2:V3)<<1
VSLDB $3, V2, V3, V10 // V10=(V2:V3)<<1
VCEQF V1, V2, V5 // compare index 0, 4, ...
VCEQF V1, V4, V6 // compare index 1, 5, ...
VCEQF V1, V9, V11 // compare index 2, 6, ...
VCEQF V1, V10, V12 // compare index 3, 7, ...
VSEL V5, V6, V29, V13 // merge index 0, 1, 4, 5, ...
VSEL V11, V12, V30, V14 // merge index 2, 3, 6, 7, ...
VSEL V13, V14, V31, V7 // final merge
VFEEBS V16, V7, V17 // find leftmost index, set condition to 1 if found
BLT foundV17
MOVD $16(R7), R7 // R7+=16
ADD $15, R7, R9
CMPBLE R9, R2, index4loop // continue if (R7+15) <= R2 (last index to search)
CMPBLE R7, R2, index2to16
BR notfound
index5plus:
CMPBGT R4, $15, index17plus
index2to16:
CMPBGT R7, R2, notfound
MOVD $1(R7), R8
CMPBGT R8, R2, index2to16tail
index2to16loop:
// unrolled 2x
VLL R4, (R7), V1
VLL R4, 1(R7), V2
VCEQGS V0, V1, V3
BEQ found
MOVD $1(R7), R7
VCEQGS V0, V2, V4
BEQ found
MOVD $1(R7), R7
CMPBLT R7, R2, index2to16loop
CMPBGT R7, R2, notfound
index2to16tail:
VLL R4, (R7), V1
VCEQGS V0, V1, V2
BEQ found
BR notfound
index17plus:
CMPBGT R4, $31, index33plus
SUB $16, R4, R0
VLL R0, 16(R3), V1
VONE V7
index17to32loop:
VL (R7), V2
VLL R0, 16(R7), V3
VCEQG V0, V2, V4
VCEQG V1, V3, V5
VN V4, V5, V6
VCEQGS V6, V7, V8
BEQ found
MOVD $1(R7), R7
CMPBLE R7, R2, index17to32loop
BR notfound
index33plus:
CMPBGT R4, $47, index49plus
SUB $32, R4, R0
VL 16(R3), V1
VLL R0, 32(R3), V2
VONE V11
index33to48loop:
VL (R7), V3
VL 16(R7), V4
VLL R0, 32(R7), V5
VCEQG V0, V3, V6
VCEQG V1, V4, V7
VCEQG V2, V5, V8
VN V6, V7, V9
VN V8, V9, V10
VCEQGS V10, V11, V12
BEQ found
MOVD $1(R7), R7
CMPBLE R7, R2, index33to48loop
BR notfound
index49plus:
CMPBGT R4, $63, index65plus
SUB $48, R4, R0
VL 16(R3), V1
VL 32(R3), V2
VLL R0, 48(R3), V3
VONE V15
index49to64loop:
VL (R7), V4
VL 16(R7), V5
VL 32(R7), V6
VLL R0, 48(R7), V7
VCEQG V0, V4, V8
VCEQG V1, V5, V9
VCEQG V2, V6, V10
VCEQG V3, V7, V11
VN V8, V9, V12
VN V10, V11, V13
VN V12, V13, V14
VCEQGS V14, V15, V16
BEQ found
MOVD $1(R7), R7
CMPBLE R7, R2, index49to64loop
notfound:
MOVD $-1, (R5)
RET
index65plus:
// not implemented
MOVD $0, (R0)
RET
foundV17: // index is in doubleword V17[0]
VLGVG $0, V17, R8
ADD R8, R7
found:
SUB R1, R7
MOVD R7, (R5)
RET
| GAS | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | src/internal/bytealg/index_s390x.s | [
"BSD-3-Clause"
] |
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Close Duplicated Tabs
# @raycast.mode silent
# Optional parameters:
# @raycast.packageName Safari
# @raycast.icon images/safari.png
# @Documentation:
# @raycast.author Thomas Paul Mann
# @raycast.authorURL https://github.com/thomaspaulmann
# @raycast.description Close tabs with the same URL.
tell window 1 of application "Safari"
set visitedURLs to {}
set closedTabs to 0
set allTabs to tabs
repeat with i from length of allTabs to 1 by -1
set currentTab to item i of allTabs
set currentURL to URL of currentTab
if visitedURLs contains currentURL then
close currentTab
set closedTabs to closedTabs + 1
else
copy currentURL to end of visitedURLs
end if
end repeat
if closedTabs is equal to 1 then
log "Closed 1 duplicated tab"
else if closedTabs is greater than 1 then
log "Closed " & closedTabs & " duplicated tab"
else
log "No duplicated tabs found"
end if
end | AppleScript | 4 | daviddzhou/script-commands | commands/apps/safari/safari-close-duplicated-tabs.applescript | [
"MIT"
] |
if ! (( $+commands[curl] )); then
echo "rand-quote plugin needs curl to work" >&2
return
fi
function quote {
setopt localoptions nopromptsubst
# Get random quote data
local data
data="$(command curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" \
| iconv -c -f ISO-8859-1 -t UTF-8 \
| command grep -a -m 1 'dt class="quote"')"
# Exit if could not fetch random quote
[[ -n "$data" ]] || return 0
local quote author
quote=$(sed -e 's|</dt>.*||g' -e 's|.*html||g' -e 's|^[^a-zA-Z]*||' -e 's|</a..*$||g' <<< "$data")
author=$(sed -e 's|.*/quotes/||g' -e 's|<.*||g' -e 's|.*">||g' <<< "$data")
print -P "%F{3}${author}%f: “%F{5}${quote}%f”"
}
| Shell | 5 | sshishov/ohmyzsh | plugins/rand-quote/rand-quote.plugin.zsh | [
"MIT"
] |
--TEST--
ReflectionClass::getReflectionConstants() with $filter
--FILE--
<?php
class A {
public const PUBLIC_CONST = 'BAR';
public const ANOTHER_PUBLIC_CONST = 'BAZ';
protected const PROTECTED_CONST = 'FOO';
private const PRIVATE_CONST = 'QUOZ';
}
class B {
public const PUBLIC_CONST = 'BAR';
protected const ANOTHER_PROTECTED_CONST = 'BAZ';
protected const PROTECTED_CONST = 'FOO';
private const PRIVATE_CONST = 'QUOZ';
}
class C {
public const PUBLIC_CONST = 'BAR';
protected const PROTECTED_CONST = 'FOO';
private const PRIVATE_CONST = 'QUOZ';
private const ANOTHER_PRIVATE_CONST = 'BAZ';
}
$reflectionClassA = new ReflectionClass(A::class);
var_dump($reflectionClassA->getReflectionConstants(ReflectionClassConstant::IS_PUBLIC));
$reflectionClassB = new ReflectionClass(B::class);
var_dump($reflectionClassB->getReflectionConstants(ReflectionClassConstant::IS_PROTECTED));
$reflectionClassC = new ReflectionClass(C::class);
var_dump($reflectionClassC->getReflectionConstants(ReflectionClassConstant::IS_PRIVATE));
?>
--EXPECTF--
array(2) {
[0]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "PUBLIC_CONST"
["class"]=>
string(%d) "A"
}
[1]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "ANOTHER_PUBLIC_CONST"
["class"]=>
string(%d) "A"
}
}
array(2) {
[0]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "ANOTHER_PROTECTED_CONST"
["class"]=>
string(%d) "B"
}
[1]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "PROTECTED_CONST"
["class"]=>
string(%d) "B"
}
}
array(2) {
[0]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "PRIVATE_CONST"
["class"]=>
string(%d) "C"
}
[1]=>
object(ReflectionClassConstant)#%d (%d) {
["name"]=>
string(%d) "ANOTHER_PRIVATE_CONST"
["class"]=>
string(%d) "C"
}
}
| PHP | 4 | NathanFreeman/php-src | ext/reflection/tests/ReflectionClass_getReflectionConstants_filter.phpt | [
"PHP-3.01"
] |
#if 0
#unknown_test This is a test
#endif
main() {}
| PAWN | 0 | pawn-lang/pawn | source/compiler/tests/ignore_unknown_directives_gh_426.pwn | [
"Zlib"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
USING System.Collections.Generic
USING System.Collections
USING System.Xml
using System.Text
ENUM DBServerItemType
MEMBER DBServer
MEMBER @@Field
MEMBER Index
MEMBER Order
END ENUM
CLASS DBServerBinary
PROTECT cName AS STRING
PROTECT eType AS DBServerItemType
PROTECT aBytes AS BYTE[]
STATIC PROTECT aBinaries AS ArrayList
STATIC CONSTRUCTOR()
aBinaries := ArrayList{}
RETURN
CONSTRUCTOR(_cName AS STRING , _eType AS DBServerItemType , _aBytes AS BYTE[])
SELF:cName := _cName
SELF:eType := _eType
SELF:aBytes := _aBytes
RETURN
STATIC METHOD Reset() AS VOID
aBinaries:Clear()
RETURN
ACCESS Bytes AS BYTE[]
RETURN SELF:aBytes
STATIC METHOD Add(cName AS STRING , eType AS DBServerItemType , aBytes AS BYTE[]) AS VOID
LOCAL oBinary AS DBServerBinary
LOCAL oTest AS DBServerBinary
LOCAL n AS INT
oBinary := DBServerBinary{cName , eType , aBytes}
FOR n := 0 UPTO aBinaries:Count - 1
oTest := (DBServerBinary)aBinaries[n]
IF oTest:eType == eType .and. oTest:cName:ToUpper() == cName:ToUpper()
// for some reason sometimes orders are duplicated, let's keep the last one
aBinaries[n] := oBinary
RETURN
END IF
NEXT
aBinaries:Add(oBinary)
RETURN
STATIC METHOD Get(cName AS STRING , eType AS DBServerItemType) AS ArrayList
LOCAL oBinary AS DBServerBinary
LOCAL aRet AS ArrayList
LOCAL n AS INT
aRet := ArrayList{}
FOR n := 0 UPTO aBinaries:Count - 1
oBinary := (DBServerBinary)aBinaries[n]
IF oBinary:eType == eType
IF oBinary:cName:ToUpper():StartsWith(cName:ToUpper())
aRet:Add(oBinary)
END IF
END IF
NEXT
RETURN aRet
END CLASS
CLASS VODBServerItem
EXPORT cName AS STRING
EXPORT eType AS DBServerItemType
EXPORT aProperties AS System.Collections.Specialized.NameValueCollection
EXPORT aOrders AS ArrayList
CONSTRUCTOR(_eType AS DBServerItemType)
SELF:aProperties := System.Collections.Specialized.NameValueCollection{}
SELF:cName := ""
SELF:eType := _eType
IF SELF:eType == DBServerItemType.Index
SELF:aOrders := ArrayList{}
END IF
RETURN
END CLASS
CLASS VODBServerDescription
EXPORT oItem AS VODBServerItem
EXPORT aFields AS ArrayList
EXPORT aIndexes AS ArrayList
EXPORT cName AS STRING
CONSTRUCTOR()
SELF:oItem := VODBServerItem{DBServerItemType.DBServer}
SELF:aFields := ArrayList{}
SELF:aIndexes := ArrayList{}
RETURN
STATIC METHOD LoadFromBinary(aBytes AS BYTE[]) AS VODBServerDescription
RETURN VODBServerEditor.OpenVNdbs(aBytes , "")
METHOD SaveToDocument(cFileName AS STRING) AS LOGIC
RETURN VODBServerEditor.SaveToXml(SELF , cFileName)
END CLASS
PARTIAL CLASS VODBServerEditor
STATIC METHOD OpenVNdbs(aBytes AS BYTE[] , cBaseName AS STRING) AS VODBServerDescription
LOCAL oDescr AS VODBServerDescription
LOCAL oItem AS VODBServerItem
LOCAL oBinary AS DBServerBinary
LOCAL aFields AS ArrayList
LOCAL aIndexes AS ArrayList
LOCAL aOrders AS ArrayList
LOCAL oField AS VODBServerItem
LOCAL oIndex AS VODBServerItem
LOCAL oOrder AS VODBServerItem
LOCAL cValue AS STRING
LOCAL nValue AS INT
LOCAL n,m AS INT
LOCAL aSorted AS SortedList
LOCAL nPos AS INT
oDescr := VODBServerDescription{}
oItem := oDescr:oItem
aSorted := SortedList{}
cValue := __ReadNextVNDBString(aBytes , nPos , 128)
oDescr:cName := cValue
oItem:aProperties:Add("classname" , cValue)
oItem:aProperties:Add("hlcaption" , __ReadNextVNDBString(aBytes , nPos , 64))
oItem:aProperties:Add("hldescription" , __ReadNextVNDBString(aBytes , nPos , 255))
oItem:aProperties:Add("hlhelpcontext" , __ReadNextVNDBString(aBytes , nPos , 64))
nValue := 2 - __ReadNextVNDBInt16(aBytes , nPos)
IF nValue != 0
oItem:aProperties:Add("share" , iif(nValue == 1 , "True" , "False"))
END IF
nValue := 2 - __ReadNextVNDBInt16(aBytes , nPos)
IF nValue != 0
oItem:aProperties:Add("ro" , iif(nValue == 1 , "True" , "False"))
END IF
oItem:aProperties:Add("rdd" , __ReadNextVNDBString(aBytes , nPos , 260))
oItem:aProperties:Add("filename" , __ReadNextVNDBString(aBytes , nPos , 260))
oItem:aProperties:Add("noaccass" , iif(__ReadNextVNDBByte(aBytes , nPos) >= 128 , "Yes" , "No"))
__ReadNextVNDBInt16(aBytes , nPos)
oItem:aProperties:Add("superclass" , __ReadNextVNDBString(aBytes , nPos , 80))
aFields := DBServerBinary.Get(oDescr:cName + "_" , DBServerItemType.Field)
FOR n := 0 UPTO aFields:Count -1
oBinary := (DBServerBinary)aFields[n]
aBytes := oBinary:Bytes
nPos := 0
oField := VODBServerItem{DBServerItemType.Field}
cValue := __ReadNextVNDBString(aBytes , nPos , 128)
oField:cName := cValue
oField:aProperties:Add("fldname" , cValue)
__ReadNextVNDBString(aBytes , nPos , 128)
__ReadNextVNDBString(aBytes , nPos , 64)
__ReadNextVNDBString(aBytes , nPos , 255)
__ReadNextVNDBString(aBytes , nPos , 64)
oField:aProperties:Add("included" , __ReadNextVNDBByte(aBytes , nPos):ToString())
m := __ReadNextVNDBInt16(aBytes , nPos)
DO WHILE aSorted:ContainsKey(m)
m ++
END DO
oField:aProperties:Add("pos" , m:ToString())
aSorted:Add(m , oField)
oField:aProperties:Add("FieldSpec" , __ReadNextVNDBString(aBytes , nPos , 128))
NEXT
FOR n := 0 UPTO aSorted:Count - 1
oField := (VODBServerItem)aSorted:GetByIndex(n)
oDescr:aFields:Add(oField)
NEXT
aIndexes := DBServerBinary.Get(oDescr:cName + "_" , DBServerItemType.Index)
IF aIndexes:Count != 0
oItem:aProperties:Add("order" , "1")
END IF
FOR n := 0 UPTO aIndexes:Count - 1
oBinary := (DBServerBinary)aIndexes[n]
aBytes := oBinary:Bytes
nPos := 0
oIndex := VODBServerItem{DBServerItemType.Index}
cValue := __ReadNextVNDBString(aBytes , nPos , 128)
oIndex:cName := cValue
oIndex:aProperties:Add("name" , cValue)
oIndex:aProperties:Add("filename" , __ReadNextVNDBString(aBytes , nPos , 260))
oDescr:aIndexes:Add(oIndex)
aOrders := DBServerBinary.Get(oDescr:cName + "_" + oIndex:cName + "_" , DBServerItemType.Order)
FOR m := 0 UPTO aOrders:Count - 1
oBinary := (DBServerBinary)aOrders[m]
aBytes := oBinary:Bytes
nPos := 0
oOrder := VODBServerItem{DBServerItemType.Order}
cValue := __ReadNextVNDBString(aBytes , nPos , 128)
oOrder:cName := cValue
oOrder:aProperties:Add("tag" , cValue)
oOrder:aProperties:Add("Duplicate" , iif(__ReadNextVNDBByte(aBytes , nPos) == 1 , "Yes" , "No"))
oOrder:aProperties:Add("Ascending" , iif(__ReadNextVNDBByte(aBytes , nPos) == 1 , "Yes" , "No"))
oOrder:aProperties:Add("KeyExp" , __ReadNextVNDBString(aBytes , nPos , 256))
oOrder:aProperties:Add("ForExp" , __ReadNextVNDBString(aBytes , nPos , 256))
oIndex:aOrders:Add(oOrder)
NEXT
NEXT
RETURN oDescr
STATIC METHOD SaveToXml(oDescr AS VODBServerDescription , cFileName AS STRING) AS LOGIC
LOCAL oField AS VODBServerItem
LOCAL oIndex AS VODBServerItem
LOCAL oOrder AS VODBServerItem
LOCAL oItem AS VODBServerItem
LOCAL oDocument AS XmlDocument
LOCAL oDesigners AS XmlNode
LOCAL oMainNode AS XmlNode
LOCAL oXmlNode AS XmlNode
LOCAL oSubNode AS XmlNode
LOCAL oIndexNode,oOrderNode AS XmlNode
LOCAL n,m,k AS INT
oDocument := XmlDocument{}
oDocument:AppendChild(oDocument:CreateXmlDeclaration("1.0" , "utf-8" , NULL))
oDesigners := oDocument:CreateElement("Designers")
oDocument:AppendChild(oDesigners)
oMainNode := oDocument:CreateElement("DBServer")
Funcs.ApplyNameAttribute(oDocument , oMainNode , oDescr:cName)
oDesigners:AppendChild(oMainNode)
oItem := oDescr:oItem
FOR n := 0 UPTO oItem:aProperties:Count - 1
Funcs.AppendElement(oDocument , oMainNode , oItem:aProperties:GetKey(n) , oItem:aProperties[n])
NEXT
oXmlNode := oDocument:CreateElement("Fields")
oMainNode:AppendChild(oXmlNode)
FOR m := 0 UPTO oDescr:aFields:Count - 1
oField := (VODBServerItem)oDescr:aFields[m]
oSubNode := oDocument:CreateElement("Field")
Funcs.ApplyNameAttribute(oDocument , oSubNode , oField:cName)
oXmlNode:AppendChild(oSubNode)
FOR n := 0 UPTO oField:aProperties:Count - 1
Funcs.AppendElement(oDocument , oSubNode , oField:aProperties:GetKey(n) , oField:aProperties[n])
NEXT
NEXT
oXmlNode := oDocument:CreateElement("Indexes")
oMainNode:AppendChild(oXmlNode)
FOR m := 0 UPTO oDescr:aIndexes:Count - 1
oIndex := (VODBServerItem)oDescr:aIndexes[m]
oSubNode := oDocument:CreateElement("Index")
Funcs.ApplyNameAttribute(oDocument , oSubNode , oIndex:cName)
FOR n := 0 UPTO oIndex:aProperties:Count - 1
Funcs.AppendElement(oDocument , oSubNode , oIndex:aProperties:GetKey(n) , oIndex:aProperties[n])
NEXT
oIndexNode := oDocument:CreateElement("Orders")
oSubNode:AppendChild(oIndexNode)
FOR k := 0 UPTO oIndex:aOrders:Count - 1
oOrder := (VODBServerItem)oIndex:aOrders[k]
oOrderNode := oDocument:CreateElement("Order")
Funcs.ApplyNameAttribute(oDocument , oOrderNode , oOrder:cName)
oIndexNode:AppendChild(oOrderNode)
FOR n := 0 UPTO oOrder:aProperties:Count - 1
Funcs.AppendElement(oDocument , oOrderNode , oOrder:aProperties:GetKey(n) , oOrder:aProperties[n])
NEXT
NEXT
oXmlNode:AppendChild(oSubNode)
NEXT
oDocument:Save(cFileName)
RETURN TRUE
INTERNAL STATIC METHOD __ReadNextVNDBString(aBytes AS BYTE[] , nPos REF INT , nChars AS INT) AS STRING
LOCAL cRet AS STRING
LOCAL nLength AS INT
LOCAL n AS INT
IF nPos + nChars > aBytes:Length
nChars := aBytes:Length - nPos
END IF
FOR n := 0 UPTO nChars - 1
IF aBytes[nPos + n + 1] == 0
EXIT
ELSE
nLength := n + 1
END IF
NEXT
IF nLength != 0
cRet := Encoding.Default:GetString(aBytes , nPos , nLength)
ELSE
cRet := ""
END IF
nPos += nChars
RETURN cRet:Trim()
INTERNAL STATIC METHOD __ReadNextVNDBInt16(aBytes AS BYTE[] , nPos REF INT) AS INT
LOCAL nRet AS INT
nRet := (INT)aBytes[nPos + 1] + ((INT)aBytes[nPos + 2]) * 256
IF nRet == 65535
nRet := -1
END IF
nPos += 2
RETURN nRet
INTERNAL STATIC METHOD __ReadNextVNDBByte(aBytes AS BYTE[] , nPos REF INT) AS BYTE
nPos += 1
RETURN aBytes[nPos]
END CLASS
CLASS VOMenuDescription
INTERNAL oMainItem AS VOMenuItem
INTERNAL cName AS STRING
CONSTRUCTOR()
SUPER()
SELF:oMainItem := VOMenuItem{}
RETURN
STATIC METHOD LoadFromBinary(aBytes AS BYTE[]) AS VOMenuDescription
RETURN VOMenuEditor.OpenVNmnu(aBytes)
METHOD SaveToDocument(cFileName AS STRING) AS LOGIC
RETURN VOMenuEditor.SaveToXml(SELF , cFileName)
ACCESS Name AS STRING
RETURN SELF:cName
ASSIGN InheritFrom(cValue AS STRING)
SELF:SetValue("Inherit" , cValue)
RETURN
ASSIGN ToolbarInheritFrom(cValue AS STRING)
SELF:SetValue("ToolbarInherit" , cValue)
RETURN
ASSIGN Ribbon(cValue AS STRING)
SELF:SetValue("Ribbon" , cValue)
RETURN
PROTECTED METHOD SetValue(cName AS STRING , cValue AS STRING) AS VOID
LOCAL n AS INT
FOR n := 0 UPTO SELF:oMainItem:aProperties:Count - 1
IF SELF:oMainItem:aProperties:GetKey(n):ToUpper() == cName:ToUpper()
SELF:oMainItem:aProperties:Set(cName , cValue)
RETURN
END IF
NEXT
SELF:oMainItem:aProperties:Add(cName , cValue)
RETURN
END CLASS
CLASS VOMenuItem
EXPORT nDepth AS INT
EXPORT aProperties AS System.Collections.Specialized.NameValueCollection
EXPORT aSubItems AS ArrayList
CONSTRUCTOR()
SELF:aProperties := System.Collections.Specialized.NameValueCollection{}
SELF:aSubItems := ArrayList{}
RETURN
END CLASS
PARTIAL CLASS VOMenuEditor
STATIC METHOD OpenVNmnu(aBytes AS BYTE[]) AS VOMenuDescription
LOCAL oDescr AS VOMenuDescription
LOCAL oItem, oBase AS VOMenuItem
LOCAL aItems AS ArrayList
LOCAL cValue AS STRING
LOCAL nByte AS BYTE
LOCAL nPos AS INT
LOCAL n AS INT
oDescr := VOMenuDescription{}
nPos := 1
cValue := __ReadNextVNMnuString(aBytes , nPos)
oDescr:cName := cValue
oDescr:oMainItem:aProperties:Add("Name" , cValue)
DO WHILE TRUE
oItem := __ReadVNMnuItem(aBytes , nPos)
IF oItem == NULL
EXIT
END IF
aItems := oDescr:oMainItem:aSubItems
FOR n := 1 UPTO oItem:nDepth
IF aItems:Count != 0
oBase := (VOMenuItem)aItems[aItems:Count - 1]
aItems := oBase:aSubItems
END IF
NEXT
aItems:Add(oItem)
ENDDO
oItem := oDescr:oMainItem
nPos ++
nByte := aBytes[nPos]
IF nByte == 78 // N
cValue := "No Toolbar"
ELSEIF nByte == 70 // F
cValue := "Flat Toolbar"
ELSE // Y
cValue := "Raised Toolbar"
ENDIF
oItem:aProperties:Add("Toolbar" , cValue)
nPos += 2
nByte := aBytes[nPos]
IF nByte == 84 // T
cValue := "Text"
ELSEIF nByte == 73 // I
cValue := "Icon"
ELSE // other
cValue := "Text and Icon"
ENDIF
oItem:aProperties:Add("Show" , cValue)
nPos += 3
oItem:aProperties:Add("UseBands" , iif(aBytes[nPos] >= 128 , "Yes" , "No"))
IF aBytes:Length > nPos + 5 .and. aBytes[nPos + 1] == 5 .and. aBytes[nPos + 2] == 7 .and. aBytes[nPos + 3] == 76
nPos += 4
oItem:aProperties:Add("Inherit" , __ReadNextVNMnuString(aBytes , nPos))
oItem:aProperties:Add("ToolbarInherit" , __ReadNextVNMnuString(aBytes , nPos))
ELSE
oItem:aProperties:Add("Inherit" , "")
oItem:aProperties:Add("ToolbarInherit" , "")
END IF
RETURN oDescr
PROTECTED STATIC METHOD __ReadVNMnuItem(aBytes AS BYTE[] , nPos REF INT) AS VOMenuItem
LOCAL nButtonID AS INT
LOCAL oItem AS VOMenuItem
LOCAL cValue AS STRING
LOCAL nValue AS INT
LOCAL nAt AS INT
oItem := VOMenuItem{}
IF aBytes[nPos + 1] < 48 .or. aBytes[nPos + 1] > 57
RETURN NULL
END IF
cValue := __ReadNextVNMnuString(aBytes , nPos , FALSE)
oItem:nDepth := Funcs.Val(cValue)
oItem:aProperties:Add("Caption" , __ReadNextVNMnuString(aBytes , nPos))
cValue := __ReadNextVNMnuString(aBytes , nPos) // Menu ID
// oItem:nMenuID := Funcs.Val(cValue)
cValue := __ReadNextVNMnuString(aBytes , nPos)
nAt := cValue:IndexOf('\t') + 1
IF nAt != 0
oItem:aProperties:Add("EventName" , Left(cValue , (DWORD)nAt - 1):Trim())
oItem:aProperties:Add("ID" , SubStr(cValue , nAt + 1):Trim())
ELSE
oItem:aProperties:Add("EventName" , cValue:Trim())
oItem:aProperties:Add("ID" , "")
END IF
oItem:aProperties:Add("Description" , __ReadNextVNMnuString(aBytes , nPos))
oItem:aProperties:Add("HelpContext" , __ReadNextVNMnuString(aBytes , nPos))
oItem:aProperties:Add("Accelerator" , __ReadNextVNMnuAccel(aBytes , nPos):ToString())
cValue := __ReadNextVNMnuString(aBytes , nPos , FALSE)
nValue := Funcs.Val(cValue)
oItem:aProperties:Add("Enabled" , iif((nValue & 2) != 0 , "Yes" , "No"))
oItem:aProperties:Add("Checked" , iif((nValue & 1) != 0 , "Yes" , "No"))
cValue := __ReadNextVNMnuString(aBytes , nPos , FALSE)
IF !cValue == "-1"
nButtonID := Funcs.Val(cValue)
IF nButtonID >= 1 .and. nButtonID < VOMenuEditor.VOMenuToolBar:Count + 1
oItem:aProperties:Add("ButtonBmp" , VOMenuEditor.VOMenuToolBar:GetName(nButtonID - 1))
ELSE
oItem:aProperties:Add("ButtonBmp" , "")
END IF
ELSE
oItem:aProperties:Add("ButtonBmp" , "")
ENDIF
cValue := __ReadNextVNMnuString(aBytes , nPos)
IF cValue:Length > 8
cValue := cValue:Substring(8)
ELSE
cValue := ""
ENDIF
oItem:aProperties:Add("ButtonCaption" , cValue)
cValue := __ReadNextVNMnuString(aBytes , nPos)
IF cValue:Length > 8
cValue := cValue:Substring(8)
ELSE
cValue := ""
ENDIF
oItem:aProperties:Add("ButtonTooltip" , cValue)
cValue := __ReadNextVNMnuString(aBytes , nPos , FALSE)
oItem:aProperties:Add("ButtonPos" , cValue)
RETURN oItem
PROTECTED STATIC METHOD __ReadNextVNMnuString(aBytes AS BYTE[] , nPos REF INT) AS STRING
RETURN __ReadNextVNMnuString(aBytes , nPos , TRUE)
PROTECTED STATIC METHOD __ReadNextVNMnuString(aBytes AS BYTE[] , nPos REF INT , lTranslate AS LOGIC) AS STRING
LOCAL oRead AS List<BYTE>
LOCAL cRet AS STRING
LOCAL bByte AS BYTE
LOCAL n AS INT
oRead := List<BYTE>{}
cRet := ""
DO WHILE nPos <= aBytes:Length
bByte := aBytes[nPos]
DO CASE
CASE bByte == 13
nPos ++
EXIT
CASE bByte == 9 .or. bByte >= 32
oRead:Add(bByte)
END CASE
nPos ++
END DO
IF oRead:Count > 0
IF lTranslate
LOCAL aRead AS BYTE[]
aRead := BYTE[]{oRead:Count}
FOR n := 1 UPTO oRead:Count
aRead[n] := oRead[n - 1]
NEXT
cRet := Encoding.Default:GetString(aRead , 0 , aRead:Length)
ELSE
LOCAL oBuilder AS StringBuilder
oBuilder := StringBuilder{oRead:Count}
FOR n := 0 UPTO oRead:Count - 1
oBuilder:Append((Char)oRead[n])
NEXT
cRet := oBuilder:ToString()
END IF
END IF
RETURN cRet:Trim()
PROTECTED STATIC METHOD __ReadNextVNMnuAccel(aBytes AS BYTE[] , nPos REF INT) AS MenuAccelerator
LOCAL cAccelerator AS STRING
LOCAL nAccelerator AS INT
LOCAL bModif AS BYTE
LOCAL n AS INT
cAccelerator := ""
IF aBytes[nPos] == 10
nPos ++
END IF
IF aBytes[nPos] == 13
nPos ++
RETURN MenuAccelerator{"" , FALSE , FALSE , FALSE}
END IF
bModif := aBytes[nPos]
IF bModif >= 48 .and. bModif <= 55
nPos ++
DO WHILE aBytes[nPos] != 13
cAccelerator += ChrW(aBytes[nPos])
nPos ++
END DO
nPos ++
FOR n := 0 UPTO VOMenuEditor.AccelKeys:Count - 1
IF VOMenuEditor.AccelKeys:GetName(n) == cAccelerator
RETURN MenuAccelerator{cAccelerator , (bModif & 4) != 0 , (bModif & 2) != 0 , (bModif & 1) != 0}
END IF
NEXT
ELSE
nPos ++
nAccelerator := (INT)aBytes[nPos]
nPos += 4
bModif := aBytes[nPos]
IF bModif > 7
bModif -= 8
END IF
DO WHILE aBytes[nPos] != 13
nPos ++
END DO
nPos ++
FOR n := 0 UPTO VOMenuEditor.AccelKeys:Count - 1
IF (INT)VOMenuEditor.AccelKeys:GetValue(n) == nAccelerator
RETURN MenuAccelerator{VOMenuEditor.AccelKeys:GetName(n) , (bModif & 2) != 0 , (bModif & 1) != 0 , (bModif & 4) != 0}
END IF
NEXT
END IF
RETURN MenuAccelerator{"" , FALSE , FALSE , FALSE}
STATIC METHOD SaveToXml(oDescr AS VOMenuDescription , cFileName AS STRING) AS LOGIC
LOCAL oDocument AS XmlDocument
LOCAL lSuccess AS LOGIC
oDocument := XmlDocument{}
lSuccess := SaveToXml(oDescr , oDocument)
IF lSuccess
TRY
oDocument:Save(cFileName)
CATCH
lSuccess := FALSE
END TRY
END IF
RETURN lSuccess
STATIC METHOD SaveToXml(oDescr AS VOMenuDescription , oDocument AS XmlDocument) AS LOGIC
LOCAL oDesigners AS XmlNode
LOCAL oMainNode AS XmlNode
LOCAL lSuccess AS LOGIC
oDocument:AppendChild(oDocument:CreateXmlDeclaration("1.0" , "utf-8" , NULL))
oDesigners := oDocument:CreateElement("Designers")
oDocument:AppendChild(oDesigners)
oMainNode := oDocument:CreateElement("VOMenu")
Funcs.ApplyNameAttribute(oDocument , oMainNode , oDescr:Name)
oDesigners:AppendChild(oMainNode)
lSuccess := SaveToXml(oDocument , oDescr:oMainItem , oMainNode)
RETURN lSuccess
PROTECTED STATIC METHOD SaveToXml(oDocument AS XmlDocument , oParent AS VOMenuItem , oParentNode AS XmlNode) AS LOGIC
LOCAL oSubNode , oItemsNode AS XmlNode
LOCAL oItem AS VOMenuItem
LOCAL n AS INT
FOR n := 0 UPTO oParent:aProperties:Count - 1
// IF .not. oPair:Name:Name:EndsWith("ID")
IF oParent:aProperties:GetKey(n) != "MenuID"
Funcs.AppendElement(oDocument , oParentNode , oParent:aProperties:GetKey(n) , oParent:aProperties[n])
END IF
NEXT
IF oParent:aSubItems:Count != 0
oItemsNode := oDocument:CreateElement("MenuItems")
oParentNode:AppendChild(oItemsNode)
FOR n := 0 UPTO oParent:aSubItems:Count - 1
oItem := (VOMenuItem)oParent:aSubItems[n]
oSubNode := oDocument:CreateElement("MenuItem")
oItemsNode:AppendChild(oSubNode)
SaveToXml(oDocument , oItem , oSubNode)
NEXT
END IF
RETURN TRUE
STATIC EXPORT AccelKeys AS NameValueCollection
STATIC EXPORT VOMenuToolBar AS NameValueCollection
STATIC EXPORT VOMenuToolBarString AS STRING
STATIC CONSTRUCTOR()
LOCAL oCollection AS NameValueCollection
LOCAL n AS INT
oCollection := NameValueCollection{}
FOR n := 0x41 UPTO 0x5A // A..Z
oCollection:Add(ChrW((DWORD)n) , n)
NEXT
FOR n := 0x30 UPTO 0x39 // 0..9
oCollection:Add(ChrW((DWORD)n) , n)
NEXT
FOR n := 0x70 UPTO 0x87 // F1..F24
oCollection:Add("F" + (n - 0x6F):ToString() , n)
NEXT
FOR n := 0x60 UPTO 0x69 // N0..N9
oCollection:Add("Num " + (n - 0x60):ToString() , n)
NEXT
oCollection:Add("Page Down" , (INT)0x21)
oCollection:Add("Page Up" , (INT)0x22)
oCollection:Add("End" , (INT)0x23)
oCollection:Add("Home" , (INT)0x24)
oCollection:Add("Return" , (INT)0xD)
oCollection:Add("Pause" , (INT)0x13)
oCollection:Add("Caps Lock" , (INT)0x14)
oCollection:Add("Insert" , (INT)0x2D)
oCollection:Add("Delete" , (INT)0x2E)
oCollection:Add("Help" , (INT)0x2F)
oCollection:Add("Num Lock" , (INT)0x90)
oCollection:Add("Scroll Lock" , (INT)0x91)
oCollection:Add("*" , (INT)0x6B)
oCollection:Add("+" , (INT)0x6C)
oCollection:Add("-" , (INT)0x6D)
oCollection:Add("/" , (INT)0x6F)
VOMenuEditor.AccelKeys := oCollection
oCollection := NameValueCollection{}
oCollection:Add("New Sheet" , "IDT_NEWSHEET")
oCollection:Add("Open" , "IDT_OPEN")
oCollection:Add("Close" , "IDT_CLOSE")
oCollection:Add("Save" , "IDT_SAVE")
oCollection:Add("Print" , "IDT_PRINT")
oCollection:Add("Preview" , "IDT_PREVIEW")
oCollection:Add("Sum" , "IDT_SUM")
oCollection:Add("Bold" , "IDT_BOLD")
oCollection:Add("Italic" , "IDT_ITALIC")
oCollection:Add("Underline" , "IDT_UNDERLINE")
oCollection:Add("Cross Out" , "IDT_CROSSOUT")
oCollection:Add("Size+" , "IDT_SIZEPLUS")
oCollection:Add("Size-" , "IDT_SIZEMINUS")
oCollection:Add("Supersript" , "IDT_SUPERSCRIPT")
oCollection:Add("Subscript" , "IDT_SUBSCRIPT")
oCollection:Add("Currency" , "IDT_CURRENCY")
oCollection:Add("Percent" , "IDT_PERCENT")
oCollection:Add("Comma" , "IDT_COMMA")
oCollection:Add("Decimal+" , "IDT_DECIMALPLUS")
oCollection:Add("Decimal-" , "IDT_DECIMALMINUS")
oCollection:Add("Left" , "IDT_LEFT")
oCollection:Add("Center" , "IDT_CENTER")
oCollection:Add("Right" , "IDT_JUSTIFY")
oCollection:Add("Justify" , "IDT_RIGHT")
oCollection:Add("Add Text" , "IDT_ADDTEXT")
oCollection:Add("Center Text" , "IDT_CENTERTEXT")
oCollection:Add("Table" , "IDT_TABLE")
oCollection:Add("Border" , "IDT_BORDERRECT")
oCollection:Add("Edge" , "IDT_BORDERLOW")
oCollection:Add("Shading" , "IDT_LIGHTSHADING")
oCollection:Add("Copy" , "IDT_COPY")
oCollection:Add("Paste Format" , "IDT_PASTEFORMAT")
oCollection:Add("Paste Value" , "IDT_PASTEVALUE")
oCollection:Add("Undo" , "IDT_UNDO")
oCollection:Add("Repeat" , "IDT_REPEAT")
oCollection:Add("Zoom In" , "IDT_ZOOMIN")
oCollection:Add("Zoom Out" , "IDT_ZOOMOUT")
oCollection:Add("Sort A-Z" , "IDT_SORTATOZ")
oCollection:Add("Sort Z-A" , "IDT_SORTZTOA")
oCollection:Add("Lock" , "IDT_LOCK")
oCollection:Add("Outline" , "IDT_OUTLINESYMBOL")
oCollection:Add("Select Cell" , "IDT_SELECTCELL")
oCollection:Add("Scroll-" , "IDT_SCROLLMINUS")
oCollection:Add("Scroll+" , "IDT_SCROLLPLUS")
oCollection:Add("Button" , "IDT_BUTTON")
oCollection:Add("Picture" , "IDT_PICTURE")
oCollection:Add("Spell Checker" , "IDT_SPELLCHECK")
oCollection:Add("Calculate" , "IDT_CALCULATE")
oCollection:Add("Area" , "IDT_AREACHART")
oCollection:Add("Bar" , "IDT_BARCHART")
oCollection:Add("Column" , "IDT_COLUMNCHART")
oCollection:Add("Stack" , "IDT_STACKCHART")
oCollection:Add("Line" , "IDT_LINECHART")
oCollection:Add("Pie" , "IDT_PIECHART")
oCollection:Add("Scatter" , "IDT_SCATTERCHART")
oCollection:Add("3D Area" , "IDT_3DAREACHART")
oCollection:Add("3D Bar" , "IDT_3DBARCHART")
oCollection:Add("3D Column" , "IDT_3DCOLUMNCHART")
oCollection:Add("3D Col-Area" , "IDT_3DCOLUMNAREACHART")
oCollection:Add("3D Line" , "IDT_3DLINECHART")
oCollection:Add("3D Pie" , "IDT_3DPIECHART")
oCollection:Add("3D Surface" , "IDT_3DSURFACECHART")
oCollection:Add("Radar" , "IDT_RADARCHART")
oCollection:Add("Col-Line" , "IDT_COLUMNLINECHART")
oCollection:Add("Col-Stock" , "IDT_COLUMNSTOCKCHART")
oCollection:Add("Chart Format" , "IDT_CHARTFORMAT")
oCollection:Add("Edit Chart" , "IDT_EDITCHART")
oCollection:Add("Line" , "IDT_LINE")
oCollection:Add("Arrow" , "IDT_ARROW")
oCollection:Add("Freehand" , "IDT_FREEHAND")
oCollection:Add("Rectangle" , "IDT_RECTANGLE")
oCollection:Add("Ellipse" , "IDT_ELLIPSE")
oCollection:Add("Arc" , "IDT_ARC")
oCollection:Add("Polygon" , "IDT_POLYGON")
oCollection:Add("Filled Rect" , "IDT_FILLEDRECTANGLE")
oCollection:Add("Filled Ellipse" , "IDT_FILLEDELLIPSE")
oCollection:Add("Filled Arc" , "IDT_FILLEDARC")
oCollection:Add("Filled Polygon" , "IDT_FILLEDPOLYGON")
oCollection:Add("Select Object" , "IDT_SELECTOBJECT")
oCollection:Add("Edit Point" , "IDT_EDITPOINT")
oCollection:Add("Group" , "IDT_GROUP")
oCollection:Add("Ungroup" , "IDT_UNGROUP")
oCollection:Add("Front" , "IDT_FRONT")
oCollection:Add("Back" , "IDT_BACK")
oCollection:Add("Color" , "IDT_COLOR")
oCollection:Add("3D Frame" , "IDT_3DFRAME")
oCollection:Add("New Macro" , "IDT_NEWMACRO")
oCollection:Add("Function" , "IDT_FUNCTION")
oCollection:Add("CALC" , "IDT_CALC")
oCollection:Add("Go" , "IDT_GOMACRO")
oCollection:Add("Step" , "IDT_STEPMACRO")
oCollection:Add("Trace Out" , "IDT_TRACEOUTMACRO")
oCollection:Add("Trace In" , "IDT_TRACEINMACRO")
oCollection:Add("Run" , "IDT_RUNMACRO")
oCollection:Add("Skip" , "IDT_SKIPMACRO")
oCollection:Add("Reset" , "IDT_RESETMACRO")
oCollection:Add("Record" , "IDT_RECORDMACRO")
oCollection:Add("Stop" , "IDT_STOPMACRO")
oCollection:Add("Pause" , "IDT_PAUSEMACRO")
oCollection:Add("New" , "IDT_NEW")
oCollection:Add("Cut" , "IDT_CUT")
oCollection:Add("Paste" , "IDT_PASTE")
oCollection:Add("Number List" , "IDT_NUMBERLIST")
oCollection:Add("Bullet List" , "IDT_BULLETLIST")
oCollection:Add("Unindent" , "IDT_UNINDENT")
oCollection:Add("Indent" , "IDT_INDENT")
oCollection:Add("Col Format" , "IDT_COLUMNFORMAT")
oCollection:Add("Frame" , "IDT_FRAME")
oCollection:Add("Object" , "IDT_OBJECT")
oCollection:Add("Graph" , "IDT_GRAPH")
oCollection:Add("Envelope" , "IDT_ENVELOPE")
oCollection:Add("Page Layout" , "IDT_PAGELAYOUT")
oCollection:Add("Page Normal" , "IDT_PAGENORMAL")
oCollection:Add("Page Fit" , "IDT_PAGEFIT")
oCollection:Add("Left Tab" , "IDT_LEFTTAB")
oCollection:Add("Center Tab" , "IDT_CENTERTAB")
oCollection:Add("Right Tab" , "IDT_RIGHTTAB")
oCollection:Add("Decimal Tab" , "IDT_DECIMALTAB")
oCollection:Add("Paragraph" , "IDT_PARAGRAPH")
oCollection:Add("Help" , "IDT_HELP")
oCollection:Add("Delete" , "IDT_DELETE")
oCollection:Add("Time" , "IDT_TIME")
oCollection:Add("Mail" , "IDT_MAIL")
oCollection:Add("Tutorial" , "IDT_TUTORIAL")
oCollection:Add("Disk I/O" , "IDT_DISKETTEIO")
oCollection:Add("Find" , "IDT_FIND")
oCollection:Add("Previous Record" , "IDT_PREVREC")
oCollection:Add("Next Record" , "IDT_NEXTREC")
oCollection:Add("Start Record" , "IDT_STARTREC")
oCollection:Add("End Record" , "IDT_ENDREC")
oCollection:Add("View Table" , "IDT_VGBROWSE")
oCollection:Add("View Form" , "IDT_VFORM")
VOMenuEditor.VOMenuToolBar := oCollection
LOCAL oBuilder AS System.Text.StringBuilder
oBuilder := System.Text.StringBuilder{1000}
FOR n := 0 UPTO VOMenuEditor.VOMenuToolBar:Count - 1
IF n != 0
oBuilder:Append(",")
END IF
oBuilder:Append(VOMenuEditor.VOMenuToolBar:GetName(n))
NEXT
VOMenuEditor.VOMenuToolBarString := oBuilder:ToString()
RETURN
END CLASS
STATIC PARTIAL CLASS Funcs
INTERNAL STATIC METHOD Val(cValue AS STRING) AS INT
LOCAL nRet AS INT
Int32.TryParse(cValue , nRet)
RETURN nRet
STATIC METHOD ApplyNameAttribute(oDocument AS XmlDocument , oXmlNode AS XmlNode , cValue AS STRING) AS VOID
LOCAL oAttribute AS XmlAttribute
oAttribute := oDocument:CreateAttribute("Name")
oAttribute:Value := cValue
oXmlNode:Attributes:Append(oAttribute)
RETURN
STATIC METHOD AppendElement(oDocument AS XmlDocument , oXmlNode AS XmlNode , cName AS STRING , cValue AS STRING) AS VOID
LOCAL oElement AS XmlElement
oElement := oDocument:CreateElement(cName)
oElement:InnerText := cValue
oXmlNode:AppendChild(oElement)
RETURN
STATIC METHOD AppendElement(oDocument AS XmlDocument , oXmlNode AS XmlNode , cName AS STRING , nValue AS INT) AS VOID
AppendElement(oDocument , oXmlNode , cName , nValue:ToString())
RETURN
STATIC METHOD AppendElement(oDocument AS XmlDocument , oXmlNode AS XmlNode , cName AS STRING , lValue AS LOGIC) AS VOID
AppendElement(oDocument , oXmlNode , cName , iif(lValue , "Yes" , "No"))
RETURN
END CLASS
STRUCTURE NameValue
EXPORT Name AS STRING
EXPORT Value AS OBJECT
CONSTRUCTOR(_cName AS STRING , _oValue AS OBJECT)
SELF:Name := _cName
SELF:Value := _oValue
RETURN
END STRUCTURE
CLASS NameValueCollection IMPLEMENTS ICollection
PROTECT aCollection AS ArrayList
PROTECT oEnumerator AS NameValueEnumerator
CONSTRUCTOR()
SELF:aCollection := ArrayList{}
SELF:oEnumerator := NameValueEnumerator{SELF}
RETURN
METHOD Add(cName AS STRING , oValue AS OBJECT) AS VOID
SELF:aCollection:Add(NameValue{cName , oValue})
RETURN
METHOD Get(nIndex AS INT) AS NameValue
RETURN ((NameValue)SELF:aCollection[nIndex])
METHOD Set(nIndex AS INT , oValue AS OBJECT) AS VOID
LOCAL oPair AS NameValue
oPair := SELF:Get(nIndex)
oPair:Value := oValue
SELF:aCollection[nIndex] := oPair
RETURN
METHOD GetName(nIndex AS INT) AS STRING
RETURN ((NameValue)SELF:aCollection[nIndex]):Name
METHOD GetValue(nIndex AS INT) AS OBJECT
RETURN ((NameValue)SELF:aCollection[nIndex]):Value
METHOD GetNameIndex(cName AS STRING) AS INT
LOCAL n AS INT
cName := cName:ToUpper()
FOR n := 0 UPTO SELF:aCollection:Count - 1
IF ((NameValue)SELF:aCollection[n]):Name:ToUpper() == cName
RETURN n
END IF
NEXT
RETURN -1
METHOD GetValueIndex(oValue AS OBJECT) AS INT
LOCAL n AS INT
FOR n := 0 UPTO SELF:aCollection:Count - 1
IF ((NameValue)SELF:aCollection[n]):Value == oValue
RETURN n
END IF
NEXT
RETURN -1
VIRTUAL ACCESS Count() AS INT
RETURN SELF:aCollection:Count
VIRTUAL ACCESS IsSynchronized() AS LOGIC
RETURN FALSE
VIRTUAL ACCESS SyncRoot() AS OBJECT
RETURN NULL
VIRTUAL METHOD CopyTo(aArray AS System.Array , nIndex AS INT) AS VOID
RETURN
VIRTUAL METHOD GetEnumerator() AS IEnumerator
SELF:oEnumerator:Reset()
RETURN SELF:oEnumerator
END CLASS
CLASS NameValueEnumerator IMPLEMENTS IEnumerator
PROTECT oCollection AS NameValueCollection
PROTECT nIndex AS INT
CONSTRUCTOR(_oCollection AS NameValueCollection)
SELF:oCollection := _oCollection
SELF:Reset()
RETURN
VIRTUAL ACCESS Current() AS OBJECT
RETURN SELF:oCollection:Get(SELF:nIndex)
VIRTUAL METHOD MoveNext() AS LOGIC
SELF:nIndex ++
RETURN SELF:nIndex < SELF:oCollection:Count
VIRTUAL METHOD Reset() AS VOID
SELF:nIndex := -1
RETURN
END CLASS
CLASS MenuAccelerator
PROTECT cKey AS STRING
PROTECT lControl , lShift , lAlt AS LOGIC
CONSTRUCTOR(_cKey AS STRING , _lControl AS LOGIC , _lShift AS LOGIC , _lAlt AS LOGIC)
SUPER()
SELF:cKey := _cKey
SELF:lControl := _lControl
SELF:lShift := _lShift
SELF:lAlt := _lAlt
RETURN
ACCESS Key AS STRING
RETURN SELF:cKey
ACCESS Control AS LOGIC
RETURN SELF:lControl
ACCESS Shift AS LOGIC
RETURN SELF:lShift
ACCESS Alt AS LOGIC
RETURN SELF:lAlt
ACCESS IsEmpty AS LOGIC
RETURN SELF:cKey:Trim():Length == 0
ACCESS KeyValue AS INT
LOCAL n AS INT
FOR n := 0 UPTO VOMenuEditor.AccelKeys:Count - 1
IF VOMenuEditor.AccelKeys:GetName(n):ToUpper() == SELF:cKey:ToUpper()
RETURN (INT)VOMenuEditor.AccelKeys:GetValue(n)
END IF
NEXT
RETURN 0
METHOD ToString() AS STRING
LOCAL cRet AS STRING
IF SELF:IsEmpty
RETURN "None"
END IF
IF SELF:lAlt
cRet := "Alt+" + cRet
END IF
IF SELF:lControl
cRet := "Ctrl+" + cRet
END IF
IF SELF:lShift
cRet := "Shift+" + cRet
END IF
cRet += SELF:cKey
RETURN cRet
END CLASS
CLASS VOFieldSpecDescription
INTERNAL aItems AS ArrayList
CONSTRUCTOR()
SUPER()
SELF:aItems := ArrayList{}
RETURN
METHOD LoadFromBinary(aBytes AS BYTE[] , cName AS STRING) AS VOID
SELF:aItems:Add(VOFieldSpecEditor.OpenVNfs(aBytes , cName))
RETURN
METHOD SaveToDocument(cFileName AS STRING) AS LOGIC
RETURN VOFieldSpecEditor.SaveToXml(SELF , cFileName)
ACCESS IsEmpty AS LOGIC
RETURN SELF:aItems:Count == 0
END CLASS
CLASS VOFieldSpecItem
EXPORT aProperties AS System.Collections.Specialized.NameValueCollection
EXPORT cName AS STRING
CONSTRUCTOR()
SELF:aProperties := System.Collections.Specialized.NameValueCollection{}
SELF:cName := ""
RETURN
END CLASS
PARTIAL CLASS VOFieldSpecEditor
STATIC METHOD OpenVNfs(aBytes AS BYTE[] , cName AS STRING) AS VOFieldSpecItem
LOCAL oItem AS VOFieldSpecItem
LOCAL cValue AS STRING
LOCAL nPos AS INT
oItem := VOFieldSpecItem{}
oItem:cName := cName
oItem:aProperties:Add("classname" , cName)
nPos := 0
cValue := __ReadNextVNFsString(aBytes , nPos , 128)
oItem:aProperties:Add("HLName" , cValue)
cValue := __ReadNextVNFsString(aBytes , nPos , 64)
oItem:aProperties:Add("HLCaption" , cValue)
cValue := __ReadNextVNFsString(aBytes , nPos , 255)
oItem:aProperties:Add("HLDescription" , cValue)
cValue := __ReadNextVNFsString(aBytes , nPos , 64)
oItem:aProperties:Add("HLHelpContext" , cValue)
// oItem:aProperties:Add("Type" , __ReadNextVNFsString(aBytes , nPos , 1))
cValue := __ReadNextVNFsString(aBytes , nPos , 1)
SWITCH cValue
CASE "C"
cValue := "Character"
CASE "N"
cValue := "Numeric"
CASE "D"
cValue := "Date"
CASE "L"
cValue := "Logic"
CASE "M"
cValue := "Memo"
CASE "O"
cValue := "OLE"
CASE "X"
cValue := "Multimedia"
END SWITCH
oItem:aProperties:Add("Type" , cValue)
oItem:aProperties:Add("TypeDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("TypeHelp" , __ReadNextVNFsString(aBytes , nPos , 64))
oItem:aProperties:Add("Len" , __ReadNextVNFsInt16(aBytes , nPos):ToString())
oItem:aProperties:Add("LenDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("LenHelp" , __ReadNextVNFsString(aBytes , nPos , 64))
oItem:aProperties:Add("Dec" , __ReadNextVNFsInt16(aBytes , nPos):ToString())
oItem:aProperties:Add("Required" , iif(__ReadNextVNFsString(aBytes , nPos , 1) == "Y" , "Yes" , "No"))
oItem:aProperties:Add("ReqDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("ReqHelp" , __ReadNextVNFsString(aBytes , nPos , 64))
oItem:aProperties:Add("MinLen" , __ReadNextVNFsInt16(aBytes , nPos):ToString())
oItem:aProperties:Add("MinLenDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("MinLenHelp" , __ReadNextVNFsString(aBytes , nPos , 64))
oItem:aProperties:Add("MinRange" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("MaxRange" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("RangeDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("RangeHelp" , __ReadNextVNFsString(aBytes , nPos , 64))
oItem:aProperties:Add("Validation" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("ValidDiag" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("ValidHelp" , __ReadNextVNFsString(aBytes , nPos , 128))
oItem:aProperties:Add("Picture" , __ReadNextVNFsString(aBytes , nPos , 128))
nPos += 4
TRY
oItem:aProperties:Add("superclass" , __ReadNextVNFsString(aBytes , nPos , 80))
CATCH
NOP
END TRY
RETURN oItem
STATIC METHOD SaveToXml(oDescr AS VOFieldSpecDescription , cFileName AS STRING) AS LOGIC
LOCAL oDocument AS XmlDocument
LOCAL oElement AS XmlElement
LOCAL n AS INT
oDocument := XmlDocument{}
oDocument:AppendChild(oDocument:CreateXmlDeclaration("1.0" , "utf-8" , NULL))
oElement := oDocument:CreateElement("Designers")
oDocument:AppendChild(oElement)
FOR n := 0 UPTO oDescr:aItems:Count - 1
SaveToXml(oDocument , oElement , (VOFieldSpecItem)oDescr:aItems[n])
NEXT
oDocument:Save(cFileName)
RETURN TRUE
STATIC METHOD SaveToXml(oDocument AS XmlDocument , oXmlNode AS XmlNode , oItem AS VOFieldSpecItem) AS LOGIC
LOCAL oElement AS XmlElement
LOCAL n AS INT
oElement := oDocument:CreateElement("FieldSpec")
Funcs.ApplyNameAttribute(oDocument , oElement , oItem:cName)
FOR n := 0 UPTO oItem:aProperties:Count - 1
Funcs.AppendElement(oDocument , oElement , oItem:aProperties:GetKey(n) , oItem:aProperties[n])
NEXT
oXmlNode:AppendChild(oElement)
RETURN TRUE
INTERNAL STATIC METHOD __ReadNextVNFsString(aBytes AS BYTE[] , nPos REF INT , nChars AS INT) AS STRING
LOCAL cRet AS STRING
LOCAL nLength AS INT
LOCAL n AS INT
IF nPos + nChars > aBytes:Length
nChars := aBytes:Length - nPos
END IF
FOR n := 0 UPTO nChars - 1
IF aBytes[nPos + n + 1] == 0
EXIT
ELSE
nLength := n + 1
END IF
NEXT
IF nLength != 0
cRet := Encoding.Default:GetString(aBytes , nPos , nLength)
ELSE
cRet := ""
END IF
nPos += nChars
RETURN cRet:Trim()
INTERNAL STATIC METHOD __ReadNextVNFsInt16(aBytes AS BYTE[] , nPos REF INT) AS INT
LOCAL nRet AS INT
nRet := (INT)aBytes[nPos + 1] + ((INT)aBytes[nPos + 2]) * 256
IF nRet == 65535
nRet := -1
END IF
nPos += 2
RETURN nRet
END CLASS
| xBase | 4 | orangesocks/XSharpPublic | VisualStudio/XSharpVoEditors/Designers/VOEditorsShared.prg | [
"Apache-2.0"
] |
60 mtof 0.1 saw 1000 atone
| SourcePawn | 0 | aleatoricforest/Sporth | examples/blsaw.sp | [
"MIT"
] |
#include "mop.h"
MODULE = Class::MOP::Method PACKAGE = Class::MOP::Method
PROTOTYPES: DISABLE
BOOT:
INSTALL_SIMPLE_READER(Method, name);
INSTALL_SIMPLE_READER(Method, package_name);
INSTALL_SIMPLE_READER(Method, body);
bool
is_stub(self)
SV *self
PREINIT:
CV *const body = (CV *)SvRV( HeVAL( hv_fetch_ent((HV *)SvRV(self), KEY_FOR(body), 0, HASH_FOR(body)) ) );
CODE:
RETVAL = !( CvISXSUB(body) || CvROOT(body) );
OUTPUT:
RETVAL
| XS | 3 | skington/Moose | xs/Method.xs | [
"Artistic-1.0"
] |
/* line comment */
navigation {
color: blue
}
menu {
/* line comment inside */
border: 2px
}
/* block
comment */
sidebar {
color: red
}
invisible {
/* block
* comment
* inside */
color: #eee
}
| CSS | 2 | 0x7c48/mitmproxy | test/mitmproxy/contentviews/test_css_data/block-comment-formatted.css | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {MappingItem, RawSourceMap, SourceMapConsumer} from 'source-map';
import {NgtscTestEnvironment} from './env';
class TestSourceFile {
private lineStarts: number[];
constructor(public url: string, public contents: string) {
this.lineStarts = this.getLineStarts();
}
getSegment(key: 'generated'|'original', start: MappingItem|any, end: MappingItem|any): string {
const startLine = start[key + 'Line'];
const startCol = start[key + 'Column'];
const endLine = end[key + 'Line'];
const endCol = end[key + 'Column'];
return this.contents.substring(
this.lineStarts[startLine - 1] + startCol, this.lineStarts[endLine - 1] + endCol);
}
getSourceMapFileName(generatedContents: string): string {
const match = /\/\/# sourceMappingURL=(.+)/.exec(generatedContents);
if (!match) {
throw new Error('Generated contents does not contain a sourceMappingURL');
}
return match[1];
}
private getLineStarts(): number[] {
const lineStarts = [0];
let currentPos = 0;
const lines = this.contents.split('\n');
lines.forEach(line => {
currentPos += line.length + 1;
lineStarts.push(currentPos);
});
return lineStarts;
}
}
/**
* A mapping of a segment of generated text to a segment of source text.
*/
export interface SegmentMapping {
/** The generated text in this segment. */
generated: string;
/** The source text in this segment. */
source: string;
/** The URL of the source file for this segment. */
sourceUrl: string;
}
/**
* Process a generated file to extract human understandable segment mappings.
* These mappings are easier to compare in unit tests that the raw SourceMap mappings.
* @param env the environment that holds the source and generated files.
* @param generatedFileName The name of the generated file to process.
* @returns An array of segment mappings for each mapped segment in the given generated file.
*/
export function getMappedSegments(
env: NgtscTestEnvironment, generatedFileName: string): SegmentMapping[] {
const generated = new TestSourceFile(generatedFileName, env.getContents(generatedFileName));
const sourceMapFileName = generated.getSourceMapFileName(generated.contents);
const sources = new Map<string, TestSourceFile>();
const mappings: MappingItem[] = [];
const mapContents = env.getContents(sourceMapFileName);
const sourceMapConsumer = new SourceMapConsumer(JSON.parse(mapContents) as RawSourceMap);
sourceMapConsumer.eachMapping(item => {
if (!sources.has(item.source)) {
sources.set(item.source, new TestSourceFile(item.source, env.getContents(item.source)));
}
mappings.push(item);
});
const segments: SegmentMapping[] = [];
let currentMapping = mappings.shift();
while (currentMapping) {
const nextMapping = mappings.shift();
if (nextMapping) {
const source = sources.get(currentMapping.source)!;
const segment = {
generated: generated.getSegment('generated', currentMapping, nextMapping),
source: source.getSegment('original', currentMapping, nextMapping),
sourceUrl: source.url
};
if (segment.generated !== segment.source) {
segments.push(segment);
}
}
currentMapping = nextMapping;
}
return segments;
}
| TypeScript | 5 | John-Cassidy/angular | packages/compiler-cli/test/ngtsc/sourcemap_utils.ts | [
"MIT"
] |
/*
Module: fac
Copyright: (c) 2005 Galois Connections, Inc.
Author: Lee Pike, Galois Connections, Inc. <[email protected]>
*/
// Factorial
exports fac;
fac : B^32 -> B^8;
fac i = facs @@ i
where {
rec
idx : B^8^inf;
idx = [0] ## [x + 1 | x <- idx];
and
facs : B^8^inf;
facs = [1] ## [x * y | x <- facs | y <- drops{1} idx];
};
| MAXScript | 3 | mayankmanj/acl2 | books/workshops/2006/pike-shields-matthews/core_verifier/factorial/fac.mcr | [
"BSD-3-Clause"
] |
; -*- scheme -*-
; dictionaries ----------------------------------------------------------------
(define (dict-new) ())
(define (dict-extend dl key value)
(cond ((null? dl) (list (cons key value)))
((equal? key (caar dl)) (cons (cons key value) (cdr dl)))
(else (cons (car dl) (dict-extend (cdr dl) key value)))))
(define (dict-lookup dl key)
(cond ((null? dl) ())
((equal? key (caar dl)) (cdar dl))
(else (dict-lookup (cdr dl) key))))
(define (dict-keys dl) (map car dl))
; graphs ----------------------------------------------------------------------
(define (graph-empty) (dict-new))
(define (graph-connect g n1 n2)
(dict-extend
(dict-extend g n2 (cons n1 (dict-lookup g n2)))
n1
(cons n2 (dict-lookup g n1))))
(define (graph-adjacent? g n1 n2) (member n2 (dict-lookup g n1)))
(define (graph-neighbors g n) (dict-lookup g n))
(define (graph-nodes g) (dict-keys g))
(define (graph-add-node g n1) (dict-extend g n1 ()))
(define (graph-from-edges edge-list)
(if (null? edge-list)
(graph-empty)
(graph-connect (graph-from-edges (cdr edge-list))
(caar edge-list)
(cdar edge-list))))
; graph coloring --------------------------------------------------------------
(define (node-colorable? g coloring node-to-color color-of-node)
(not (member
color-of-node
(map
(lambda (n)
(let ((color-pair (assq n coloring)))
(if (pair? color-pair) (cdr color-pair) ())))
(graph-neighbors g node-to-color)))))
(define (try-each f lst)
(if (null? lst) #f
(let ((ret (f (car lst))))
(if ret ret (try-each f (cdr lst))))))
(define (color-node g coloring colors uncolored-nodes color)
(cond
((null? uncolored-nodes) coloring)
((node-colorable? g coloring (car uncolored-nodes) color)
(let ((new-coloring
(cons (cons (car uncolored-nodes) color) coloring)))
(try-each (lambda (c)
(color-node g new-coloring colors (cdr uncolored-nodes) c))
colors)))))
(define (color-graph g colors)
(if (null? colors)
(and (null? (graph-nodes g)) ())
(color-node g () colors (graph-nodes g) (car colors))))
(define (color-pairs pairs colors)
(color-graph (graph-from-edges pairs) colors))
; queens ----------------------------------------------------------------------
(define (can-attack x y)
(let ((x1 (mod x 5))
(y1 (truncate (/ x 5)))
(x2 (mod y 5))
(y2 (truncate (/ y 5))))
(or (= x1 x2) (= y1 y2) (= (abs (- y2 y1)) (abs (- x2 x1))))))
(define (generate-5x5-pairs)
(let ((result ()))
(dotimes (x 25)
(dotimes (y 25)
(if (and (not (= x y)) (can-attack x y))
(set! result (cons (cons x y) result)) ())))
result))
| Common Lisp | 4 | greimel/julia | src/flisp/color.lsp | [
"Zlib"
] |
****************************************************************************
* *
* Copyright 2018 ABSA Group Limited *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
****************************************************************************
01 RECORD.
05 ID PIC 9(1).
05 DATA.
10 FIELD PIC X.
10 DETAIL1 OCCURS 0 TO 2 TIMES
DEPENDING ON FIELD.
15 VAL1 PIC X.
10 DETAIL2 OCCURS 0 TO 2 TIMES
DEPENDING ON FIELD.
15 VAL2 PIC X.
| COBOL | 3 | yruslan/cobrix | data/test25_copybook.cob | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
@endpointMap = {
cn-beijing-gov-1 = 'imm-vpc.cn-beijing-gov-1.aliyuncs.com',
};
checkConfig(config);
@endpoint = getEndpoint('imm', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{
if (!Util.empty(endpoint)) {
return endpoint;
}
if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
return endpointMap[regionId];
}
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}
model CompareImageFacesRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUriA?: string(name='ImageUriA'),
imageUriB?: string(name='ImageUriB'),
faceIdA?: string(name='FaceIdA'),
faceIdB?: string(name='FaceIdB'),
}
model CompareImageFacesResponseBody = {
requestId?: string(name='RequestId'),
similarity?: float(name='Similarity'),
setId?: string(name='SetId'),
faceA?: {
faceId?: string(name='FaceId'),
faceAttributes?: {
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
}(name='FaceAttributes'),
}(name='FaceA'),
faceB?: {
faceId?: string(name='FaceId'),
faceAttributes?: {
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
}(name='FaceAttributes'),
}(name='FaceB'),
}
model CompareImageFacesResponse = {
headers: map[string]string(name='headers'),
body: CompareImageFacesResponseBody(name='body'),
}
async function compareImageFacesWithOptions(request: CompareImageFacesRequest, runtime: Util.RuntimeOptions): CompareImageFacesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CompareImageFaces', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function compareImageFaces(request: CompareImageFacesRequest): CompareImageFacesResponse {
var runtime = new Util.RuntimeOptions{};
return compareImageFacesWithOptions(request, runtime);
}
model ConvertOfficeFormatRequest {
project?: string(name='Project'),
srcUri?: string(name='SrcUri'),
tgtType?: string(name='TgtType'),
tgtUri?: string(name='TgtUri'),
srcType?: string(name='SrcType'),
startPage?: long(name='StartPage'),
endPage?: long(name='EndPage'),
maxSheetRow?: long(name='MaxSheetRow'),
maxSheetCol?: long(name='MaxSheetCol'),
maxSheetCount?: long(name='MaxSheetCount'),
sheetOnePage?: boolean(name='SheetOnePage'),
modelId?: string(name='ModelId'),
password?: string(name='Password'),
tgtFilePrefix?: string(name='TgtFilePrefix'),
tgtFileSuffix?: string(name='TgtFileSuffix'),
tgtFilePages?: string(name='TgtFilePages'),
fitToPagesTall?: boolean(name='FitToPagesTall'),
fitToPagesWide?: boolean(name='FitToPagesWide'),
pdfVector?: boolean(name='PdfVector'),
hidecomments?: boolean(name='Hidecomments'),
}
model ConvertOfficeFormatResponseBody = {
pageCount?: int32(name='PageCount'),
requestId?: string(name='RequestId'),
}
model ConvertOfficeFormatResponse = {
headers: map[string]string(name='headers'),
body: ConvertOfficeFormatResponseBody(name='body'),
}
async function convertOfficeFormatWithOptions(request: ConvertOfficeFormatRequest, runtime: Util.RuntimeOptions): ConvertOfficeFormatResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ConvertOfficeFormat', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function convertOfficeFormat(request: ConvertOfficeFormatRequest): ConvertOfficeFormatResponse {
var runtime = new Util.RuntimeOptions{};
return convertOfficeFormatWithOptions(request, runtime);
}
model CreateGrabFrameTaskRequest {
project?: string(name='Project'),
videoUri?: string(name='VideoUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
targetList?: string(name='TargetList'),
customMessage?: string(name='CustomMessage'),
}
model CreateGrabFrameTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateGrabFrameTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateGrabFrameTaskResponseBody(name='body'),
}
async function createGrabFrameTaskWithOptions(request: CreateGrabFrameTaskRequest, runtime: Util.RuntimeOptions): CreateGrabFrameTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateGrabFrameTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createGrabFrameTask(request: CreateGrabFrameTaskRequest): CreateGrabFrameTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createGrabFrameTaskWithOptions(request, runtime);
}
model CreateGroupFacesJobRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
}
model CreateGroupFacesJobResponseBody = {
jobType?: string(name='JobType'),
requestId?: string(name='RequestId'),
setId?: string(name='SetId'),
jobId?: string(name='JobId'),
}
model CreateGroupFacesJobResponse = {
headers: map[string]string(name='headers'),
body: CreateGroupFacesJobResponseBody(name='body'),
}
async function createGroupFacesJobWithOptions(request: CreateGroupFacesJobRequest, runtime: Util.RuntimeOptions): CreateGroupFacesJobResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateGroupFacesJob', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createGroupFacesJob(request: CreateGroupFacesJobRequest): CreateGroupFacesJobResponse {
var runtime = new Util.RuntimeOptions{};
return createGroupFacesJobWithOptions(request, runtime);
}
model CreateImageProcessTaskRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
targetList?: string(name='TargetList'),
}
model CreateImageProcessTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateImageProcessTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateImageProcessTaskResponseBody(name='body'),
}
async function createImageProcessTaskWithOptions(request: CreateImageProcessTaskRequest, runtime: Util.RuntimeOptions): CreateImageProcessTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateImageProcessTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createImageProcessTask(request: CreateImageProcessTaskRequest): CreateImageProcessTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createImageProcessTaskWithOptions(request, runtime);
}
model CreateMediaComplexTaskRequest {
project?: string(name='Project'),
parameters?: string(name='Parameters'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
}
model CreateMediaComplexTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateMediaComplexTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateMediaComplexTaskResponseBody(name='body'),
}
async function createMediaComplexTaskWithOptions(request: CreateMediaComplexTaskRequest, runtime: Util.RuntimeOptions): CreateMediaComplexTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateMediaComplexTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createMediaComplexTask(request: CreateMediaComplexTaskRequest): CreateMediaComplexTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createMediaComplexTaskWithOptions(request, runtime);
}
model CreateMergeFaceGroupsJobRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
groupIdFrom?: string(name='GroupIdFrom'),
groupIdTo?: string(name='GroupIdTo'),
customMessage?: string(name='CustomMessage'),
}
model CreateMergeFaceGroupsJobResponseBody = {
groupIdFrom?: string(name='GroupIdFrom'),
jobType?: string(name='JobType'),
requestId?: string(name='RequestId'),
setId?: string(name='SetId'),
groupIdTo?: string(name='GroupIdTo'),
jobId?: string(name='JobId'),
}
model CreateMergeFaceGroupsJobResponse = {
headers: map[string]string(name='headers'),
body: CreateMergeFaceGroupsJobResponseBody(name='body'),
}
async function createMergeFaceGroupsJobWithOptions(request: CreateMergeFaceGroupsJobRequest, runtime: Util.RuntimeOptions): CreateMergeFaceGroupsJobResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateMergeFaceGroupsJob', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createMergeFaceGroupsJob(request: CreateMergeFaceGroupsJobRequest): CreateMergeFaceGroupsJobResponse {
var runtime = new Util.RuntimeOptions{};
return createMergeFaceGroupsJobWithOptions(request, runtime);
}
model CreateOfficeConversionTaskRequest {
project?: string(name='Project'),
srcUri?: string(name='SrcUri'),
tgtType?: string(name='TgtType'),
tgtUri?: string(name='TgtUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
srcType?: string(name='SrcType'),
startPage?: long(name='StartPage'),
endPage?: long(name='EndPage'),
maxSheetRow?: long(name='MaxSheetRow'),
maxSheetCol?: long(name='MaxSheetCol'),
maxSheetCount?: long(name='MaxSheetCount'),
sheetOnePage?: boolean(name='SheetOnePage'),
modelId?: string(name='ModelId'),
password?: string(name='Password'),
tgtFilePrefix?: string(name='TgtFilePrefix'),
tgtFileSuffix?: string(name='TgtFileSuffix'),
tgtFilePages?: string(name='TgtFilePages'),
fitToPagesTall?: boolean(name='FitToPagesTall'),
fitToPagesWide?: boolean(name='FitToPagesWide'),
idempotentToken?: string(name='IdempotentToken'),
pdfVector?: boolean(name='PdfVector'),
hidecomments?: boolean(name='Hidecomments'),
displayDpi?: int32(name='DisplayDpi'),
userData?: string(name='UserData'),
}
model CreateOfficeConversionTaskResponseBody = {
status?: string(name='Status'),
taskId?: string(name='TaskId'),
requestId?: string(name='RequestId'),
percent?: int32(name='Percent'),
createTime?: string(name='CreateTime'),
tgtLoc?: string(name='TgtLoc'),
}
model CreateOfficeConversionTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateOfficeConversionTaskResponseBody(name='body'),
}
async function createOfficeConversionTaskWithOptions(request: CreateOfficeConversionTaskRequest, runtime: Util.RuntimeOptions): CreateOfficeConversionTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateOfficeConversionTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createOfficeConversionTask(request: CreateOfficeConversionTaskRequest): CreateOfficeConversionTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createOfficeConversionTaskWithOptions(request, runtime);
}
model CreateSetRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
setName?: string(name='SetName'),
}
model CreateSetResponseBody = {
videoCount?: int32(name='VideoCount'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
videoLength?: int32(name='VideoLength'),
setId?: string(name='SetId'),
imageCount?: int32(name='ImageCount'),
faceCount?: int32(name='FaceCount'),
setName?: string(name='SetName'),
modifyTime?: string(name='ModifyTime'),
}
model CreateSetResponse = {
headers: map[string]string(name='headers'),
body: CreateSetResponseBody(name='body'),
}
async function createSetWithOptions(request: CreateSetRequest, runtime: Util.RuntimeOptions): CreateSetResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateSet', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createSet(request: CreateSetRequest): CreateSetResponse {
var runtime = new Util.RuntimeOptions{};
return createSetWithOptions(request, runtime);
}
model CreateVideoAbstractTaskRequest {
project?: string(name='Project'),
videoUri?: string(name='VideoUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
targetVideoUri?: string(name='TargetVideoUri'),
targetClipsUri?: string(name='TargetClipsUri'),
abstractLength?: int32(name='AbstractLength'),
}
model CreateVideoAbstractTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateVideoAbstractTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateVideoAbstractTaskResponseBody(name='body'),
}
async function createVideoAbstractTaskWithOptions(request: CreateVideoAbstractTaskRequest, runtime: Util.RuntimeOptions): CreateVideoAbstractTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateVideoAbstractTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createVideoAbstractTask(request: CreateVideoAbstractTaskRequest): CreateVideoAbstractTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createVideoAbstractTaskWithOptions(request, runtime);
}
model CreateVideoAnalyseTaskRequest {
project?: string(name='Project'),
videoUri?: string(name='VideoUri'),
tgtUri?: string(name='TgtUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
}
model CreateVideoAnalyseTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateVideoAnalyseTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateVideoAnalyseTaskResponseBody(name='body'),
}
async function createVideoAnalyseTaskWithOptions(request: CreateVideoAnalyseTaskRequest, runtime: Util.RuntimeOptions): CreateVideoAnalyseTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateVideoAnalyseTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createVideoAnalyseTask(request: CreateVideoAnalyseTaskRequest): CreateVideoAnalyseTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createVideoAnalyseTaskWithOptions(request, runtime);
}
model CreateVideoCompressTaskRequest {
project?: string(name='Project'),
videoUri?: string(name='VideoUri'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
targetList?: string(name='TargetList'),
customMessage?: string(name='CustomMessage'),
targetContainer?: string(name='TargetContainer'),
targetSegment?: string(name='TargetSegment'),
}
model CreateVideoCompressTaskResponseBody = {
taskId?: string(name='TaskId'),
requestId?: string(name='RequestId'),
taskType?: string(name='TaskType'),
}
model CreateVideoCompressTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateVideoCompressTaskResponseBody(name='body'),
}
async function createVideoCompressTaskWithOptions(request: CreateVideoCompressTaskRequest, runtime: Util.RuntimeOptions): CreateVideoCompressTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateVideoCompressTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createVideoCompressTask(request: CreateVideoCompressTaskRequest): CreateVideoCompressTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createVideoCompressTaskWithOptions(request, runtime);
}
model CreateVideoProduceTaskRequest {
project?: string(name='Project'),
images?: string(name='Images'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
targetUri?: string(name='TargetUri'),
customMessage?: string(name='CustomMessage'),
music?: string(name='Music'),
width?: int32(name='Width'),
height?: int32(name='Height'),
templateName?: string(name='TemplateName'),
}
model CreateVideoProduceTaskResponseBody = {
taskType?: string(name='TaskType'),
requestId?: string(name='RequestId'),
taskId?: string(name='TaskId'),
}
model CreateVideoProduceTaskResponse = {
headers: map[string]string(name='headers'),
body: CreateVideoProduceTaskResponseBody(name='body'),
}
async function createVideoProduceTaskWithOptions(request: CreateVideoProduceTaskRequest, runtime: Util.RuntimeOptions): CreateVideoProduceTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('CreateVideoProduceTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function createVideoProduceTask(request: CreateVideoProduceTaskRequest): CreateVideoProduceTaskResponse {
var runtime = new Util.RuntimeOptions{};
return createVideoProduceTaskWithOptions(request, runtime);
}
model DecodeBlindWatermarkRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
originalImageUri?: string(name='OriginalImageUri'),
targetUri?: string(name='TargetUri'),
imageQuality?: int32(name='ImageQuality'),
model?: string(name='Model'),
}
model DecodeBlindWatermarkResponseBody = {
requestId?: string(name='RequestId'),
targetUri?: string(name='TargetUri'),
content?: string(name='Content'),
}
model DecodeBlindWatermarkResponse = {
headers: map[string]string(name='headers'),
body: DecodeBlindWatermarkResponseBody(name='body'),
}
async function decodeBlindWatermarkWithOptions(request: DecodeBlindWatermarkRequest, runtime: Util.RuntimeOptions): DecodeBlindWatermarkResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DecodeBlindWatermark', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function decodeBlindWatermark(request: DecodeBlindWatermarkRequest): DecodeBlindWatermarkResponse {
var runtime = new Util.RuntimeOptions{};
return decodeBlindWatermarkWithOptions(request, runtime);
}
model DeleteImageRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
}
model DeleteImageResponseBody = {
requestId?: string(name='RequestId'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
}
model DeleteImageResponse = {
headers: map[string]string(name='headers'),
body: DeleteImageResponseBody(name='body'),
}
async function deleteImageWithOptions(request: DeleteImageRequest, runtime: Util.RuntimeOptions): DeleteImageResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteImage', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteImage(request: DeleteImageRequest): DeleteImageResponse {
var runtime = new Util.RuntimeOptions{};
return deleteImageWithOptions(request, runtime);
}
model DeleteImageJobRequest {
project?: string(name='Project'),
jobType?: string(name='JobType'),
jobId?: string(name='JobId'),
}
model DeleteImageJobResponseBody = {
requestId?: string(name='RequestId'),
}
model DeleteImageJobResponse = {
headers: map[string]string(name='headers'),
body: DeleteImageJobResponseBody(name='body'),
}
async function deleteImageJobWithOptions(request: DeleteImageJobRequest, runtime: Util.RuntimeOptions): DeleteImageJobResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteImageJob', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteImageJob(request: DeleteImageJobRequest): DeleteImageJobResponse {
var runtime = new Util.RuntimeOptions{};
return deleteImageJobWithOptions(request, runtime);
}
model DeleteOfficeConversionTaskRequest {
project?: string(name='Project'),
taskId?: string(name='TaskId'),
}
model DeleteOfficeConversionTaskResponseBody = {
requestId?: string(name='RequestId'),
}
model DeleteOfficeConversionTaskResponse = {
headers: map[string]string(name='headers'),
body: DeleteOfficeConversionTaskResponseBody(name='body'),
}
async function deleteOfficeConversionTaskWithOptions(request: DeleteOfficeConversionTaskRequest, runtime: Util.RuntimeOptions): DeleteOfficeConversionTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteOfficeConversionTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteOfficeConversionTask(request: DeleteOfficeConversionTaskRequest): DeleteOfficeConversionTaskResponse {
var runtime = new Util.RuntimeOptions{};
return deleteOfficeConversionTaskWithOptions(request, runtime);
}
model DeleteProjectRequest {
project?: string(name='Project'),
}
model DeleteProjectResponseBody = {
requestId?: string(name='RequestId'),
}
model DeleteProjectResponse = {
headers: map[string]string(name='headers'),
body: DeleteProjectResponseBody(name='body'),
}
async function deleteProjectWithOptions(request: DeleteProjectRequest, runtime: Util.RuntimeOptions): DeleteProjectResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteProject', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteProject(request: DeleteProjectRequest): DeleteProjectResponse {
var runtime = new Util.RuntimeOptions{};
return deleteProjectWithOptions(request, runtime);
}
model DeleteSetRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
}
model DeleteSetResponseBody = {
setId?: string(name='SetId'),
requestId?: string(name='RequestId'),
}
model DeleteSetResponse = {
headers: map[string]string(name='headers'),
body: DeleteSetResponseBody(name='body'),
}
async function deleteSetWithOptions(request: DeleteSetRequest, runtime: Util.RuntimeOptions): DeleteSetResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteSet', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteSet(request: DeleteSetRequest): DeleteSetResponse {
var runtime = new Util.RuntimeOptions{};
return deleteSetWithOptions(request, runtime);
}
model DeleteVideoRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
videoUri?: string(name='VideoUri'),
resources?: boolean(name='Resources'),
}
model DeleteVideoResponseBody = {
requestId?: string(name='RequestId'),
videoUri?: string(name='VideoUri'),
setId?: string(name='SetId'),
}
model DeleteVideoResponse = {
headers: map[string]string(name='headers'),
body: DeleteVideoResponseBody(name='body'),
}
async function deleteVideoWithOptions(request: DeleteVideoRequest, runtime: Util.RuntimeOptions): DeleteVideoResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteVideo', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteVideo(request: DeleteVideoRequest): DeleteVideoResponse {
var runtime = new Util.RuntimeOptions{};
return deleteVideoWithOptions(request, runtime);
}
model DeleteVideoTaskRequest {
project?: string(name='Project'),
taskType?: string(name='TaskType'),
taskId?: string(name='TaskId'),
}
model DeleteVideoTaskResponseBody = {
requestId?: string(name='RequestId'),
}
model DeleteVideoTaskResponse = {
headers: map[string]string(name='headers'),
body: DeleteVideoTaskResponseBody(name='body'),
}
async function deleteVideoTaskWithOptions(request: DeleteVideoTaskRequest, runtime: Util.RuntimeOptions): DeleteVideoTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DeleteVideoTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function deleteVideoTask(request: DeleteVideoTaskRequest): DeleteVideoTaskResponse {
var runtime = new Util.RuntimeOptions{};
return deleteVideoTaskWithOptions(request, runtime);
}
model DescribeRegionsResponseBody = {
requestId?: string(name='RequestId'),
regions?: {
region?: [
{
regionId?: string(name='RegionId'),
projectTypes?: [ string ](name='ProjectTypes'),
}
](name='Region'),
}(name='Regions'),
}
model DescribeRegionsResponse = {
headers: map[string]string(name='headers'),
body: DescribeRegionsResponseBody(name='body'),
}
async function describeRegionsWithOptions(runtime: Util.RuntimeOptions): DescribeRegionsResponse {
var req = new OpenApi.OpenApiRequest{};
return doRPCRequest('DescribeRegions', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function describeRegions(): DescribeRegionsResponse {
var runtime = new Util.RuntimeOptions{};
return describeRegionsWithOptions(runtime);
}
model DetectImageBodiesRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model DetectImageBodiesResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
bodies?: [
{
bodyConfidence?: float(name='BodyConfidence'),
bodyBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='BodyBoundary'),
}
](name='Bodies'),
}
model DetectImageBodiesResponse = {
headers: map[string]string(name='headers'),
body: DetectImageBodiesResponseBody(name='body'),
}
async function detectImageBodiesWithOptions(request: DetectImageBodiesRequest, runtime: Util.RuntimeOptions): DetectImageBodiesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectImageBodies', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectImageBodies(request: DetectImageBodiesRequest): DetectImageBodiesResponse {
var runtime = new Util.RuntimeOptions{};
return detectImageBodiesWithOptions(request, runtime);
}
model DetectImageFacesRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model DetectImageFacesResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
faces?: [
{
emotionConfidence?: float(name='EmotionConfidence'),
attractive?: float(name='Attractive'),
attractiveConfidence?: float(name='AttractiveConfidence'),
gender?: string(name='Gender'),
ageConfidence?: float(name='AgeConfidence'),
genderConfidence?: float(name='GenderConfidence'),
faceId?: string(name='FaceId'),
faceQuality?: float(name='FaceQuality'),
emotion?: string(name='Emotion'),
age?: int32(name='Age'),
faceConfidence?: float(name='FaceConfidence'),
faceAttributes?: {
glassesConfidence?: float(name='GlassesConfidence'),
glasses?: string(name='Glasses'),
mask?: string(name='Mask'),
beardConfidence?: float(name='BeardConfidence'),
maskConfidence?: float(name='MaskConfidence'),
beard?: string(name='Beard'),
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
headPose?: {
pitch?: float(name='Pitch'),
roll?: float(name='Roll'),
yaw?: float(name='Yaw'),
}(name='HeadPose'),
}(name='FaceAttributes'),
emotionDetails?: {
HAPPY?: float(name='HAPPY'),
CALM?: float(name='CALM'),
SURPRISED?: float(name='SURPRISED'),
DISGUSTED?: float(name='DISGUSTED'),
ANGRY?: float(name='ANGRY'),
SAD?: float(name='SAD'),
SCARED?: float(name='SCARED'),
}(name='EmotionDetails'),
}
](name='Faces'),
}
model DetectImageFacesResponse = {
headers: map[string]string(name='headers'),
body: DetectImageFacesResponseBody(name='body'),
}
async function detectImageFacesWithOptions(request: DetectImageFacesRequest, runtime: Util.RuntimeOptions): DetectImageFacesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectImageFaces', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectImageFaces(request: DetectImageFacesRequest): DetectImageFacesResponse {
var runtime = new Util.RuntimeOptions{};
return detectImageFacesWithOptions(request, runtime);
}
model DetectImageLogosRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model DetectImageLogosResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
logos?: [
{
logoConfidence?: float(name='LogoConfidence'),
logoName?: string(name='LogoName'),
logoBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='LogoBoundary'),
}
](name='Logos'),
}
model DetectImageLogosResponse = {
headers: map[string]string(name='headers'),
body: DetectImageLogosResponseBody(name='body'),
}
async function detectImageLogosWithOptions(request: DetectImageLogosRequest, runtime: Util.RuntimeOptions): DetectImageLogosResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectImageLogos', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectImageLogos(request: DetectImageLogosRequest): DetectImageLogosResponse {
var runtime = new Util.RuntimeOptions{};
return detectImageLogosWithOptions(request, runtime);
}
model DetectImageQRCodesRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model DetectImageQRCodesResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
QRCodes?: [
{
content?: string(name='Content'),
QRCodeBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='QRCodeBoundary'),
}
](name='QRCodes'),
}
model DetectImageQRCodesResponse = {
headers: map[string]string(name='headers'),
body: DetectImageQRCodesResponseBody(name='body'),
}
async function detectImageQRCodesWithOptions(request: DetectImageQRCodesRequest, runtime: Util.RuntimeOptions): DetectImageQRCodesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectImageQRCodes', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectImageQRCodes(request: DetectImageQRCodesRequest): DetectImageQRCodesResponse {
var runtime = new Util.RuntimeOptions{};
return detectImageQRCodesWithOptions(request, runtime);
}
model DetectImageTagsRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model DetectImageTagsResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
tags?: [
{
parentTagEnName?: string(name='ParentTagEnName'),
tagName?: string(name='TagName'),
tagConfidence?: float(name='TagConfidence'),
tagEnName?: string(name='TagEnName'),
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
}
](name='Tags'),
}
model DetectImageTagsResponse = {
headers: map[string]string(name='headers'),
body: DetectImageTagsResponseBody(name='body'),
}
async function detectImageTagsWithOptions(request: DetectImageTagsRequest, runtime: Util.RuntimeOptions): DetectImageTagsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectImageTags', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectImageTags(request: DetectImageTagsRequest): DetectImageTagsResponse {
var runtime = new Util.RuntimeOptions{};
return detectImageTagsWithOptions(request, runtime);
}
model DetectQRCodesRequest {
project?: string(name='Project'),
srcUris?: string(name='SrcUris'),
}
model DetectQRCodesResponseBody = {
requestId?: string(name='RequestId'),
successDetails?: [
{
srcUri?: string(name='SrcUri'),
QRCodes?: [
{
content?: string(name='Content'),
QRCodesRectangle?: {
left?: string(name='Left'),
top?: string(name='Top'),
width?: string(name='Width'),
height?: string(name='Height'),
}(name='QRCodesRectangle'),
}
](name='QRCodes'),
}
](name='SuccessDetails'),
failDetails?: [
{
errorMessage?: string(name='ErrorMessage'),
srcUri?: string(name='SrcUri'),
errorCode?: string(name='ErrorCode'),
}
](name='FailDetails'),
}
model DetectQRCodesResponse = {
headers: map[string]string(name='headers'),
body: DetectQRCodesResponseBody(name='body'),
}
async function detectQRCodesWithOptions(request: DetectQRCodesRequest, runtime: Util.RuntimeOptions): DetectQRCodesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('DetectQRCodes', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function detectQRCodes(request: DetectQRCodesRequest): DetectQRCodesResponse {
var runtime = new Util.RuntimeOptions{};
return detectQRCodesWithOptions(request, runtime);
}
model EncodeBlindWatermarkRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
watermarkUri?: string(name='WatermarkUri'),
targetUri?: string(name='TargetUri'),
imageQuality?: string(name='ImageQuality'),
content?: string(name='Content'),
targetImageType?: string(name='TargetImageType'),
model?: string(name='Model'),
}
model EncodeBlindWatermarkResponseBody = {
requestId?: string(name='RequestId'),
targetUri?: string(name='TargetUri'),
content?: string(name='Content'),
}
model EncodeBlindWatermarkResponse = {
headers: map[string]string(name='headers'),
body: EncodeBlindWatermarkResponseBody(name='body'),
}
async function encodeBlindWatermarkWithOptions(request: EncodeBlindWatermarkRequest, runtime: Util.RuntimeOptions): EncodeBlindWatermarkResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('EncodeBlindWatermark', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function encodeBlindWatermark(request: EncodeBlindWatermarkRequest): EncodeBlindWatermarkResponse {
var runtime = new Util.RuntimeOptions{};
return encodeBlindWatermarkWithOptions(request, runtime);
}
model FindImagesRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageSizeRange?: string(name='ImageSizeRange'),
imageTimeRange?: string(name='ImageTimeRange'),
createTimeRange?: string(name='CreateTimeRange'),
modifyTimeRange?: string(name='ModifyTimeRange'),
sourceType?: string(name='SourceType'),
sourceUriPrefix?: string(name='SourceUriPrefix'),
remarksAPrefix?: string(name='RemarksAPrefix'),
remarksBPrefix?: string(name='RemarksBPrefix'),
tagNames?: string(name='TagNames'),
OCRContentsMatch?: string(name='OCRContentsMatch'),
ageRange?: string(name='AgeRange'),
gender?: string(name='Gender'),
emotion?: string(name='Emotion'),
orderBy?: string(name='OrderBy'),
order?: string(name='Order'),
marker?: string(name='Marker'),
locationBoundary?: string(name='LocationBoundary'),
remarksCPrefix?: string(name='RemarksCPrefix'),
remarksDPrefix?: string(name='RemarksDPrefix'),
externalId?: string(name='ExternalId'),
groupId?: string(name='GroupId'),
limit?: int32(name='Limit'),
facesModifyTimeRange?: string(name='FacesModifyTimeRange'),
tagsModifyTimeRange?: string(name='TagsModifyTimeRange'),
addressLineContentsMatch?: string(name='AddressLineContentsMatch'),
remarksArrayAIn?: string(name='RemarksArrayAIn'),
remarksArrayBIn?: string(name='RemarksArrayBIn'),
}
model FindImagesResponseBody = {
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
setId?: string(name='SetId'),
images?: [
{
croppingSuggestionStatus?: string(name='CroppingSuggestionStatus'),
imageQualityModifyTime?: string(name='ImageQualityModifyTime'),
tagsFailReason?: string(name='TagsFailReason'),
remarksC?: string(name='RemarksC'),
createTime?: string(name='CreateTime'),
sourceType?: string(name='SourceType'),
facesFailReason?: string(name='FacesFailReason'),
facesModifyTime?: string(name='FacesModifyTime'),
imageTime?: string(name='ImageTime'),
OCRModifyTime?: string(name='OCRModifyTime'),
addressModifyTime?: string(name='AddressModifyTime'),
imageQualityFailReason?: string(name='ImageQualityFailReason'),
facesStatus?: string(name='FacesStatus'),
remarksArrayA?: string(name='RemarksArrayA'),
imageHeight?: int32(name='ImageHeight'),
externalId?: string(name='ExternalId'),
sourceUri?: string(name='SourceUri'),
fileSize?: int32(name='FileSize'),
modifyTime?: string(name='ModifyTime'),
sourcePosition?: string(name='SourcePosition'),
imageQualityStatus?: string(name='ImageQualityStatus'),
OCRFailReason?: string(name='OCRFailReason'),
addressFailReason?: string(name='AddressFailReason'),
croppingSuggestionModifyTime?: string(name='CroppingSuggestionModifyTime'),
imageFormat?: string(name='ImageFormat'),
imageWidth?: int32(name='ImageWidth'),
remarksArrayB?: string(name='RemarksArrayB'),
orientation?: string(name='Orientation'),
remarksD?: string(name='RemarksD'),
tagsStatus?: string(name='TagsStatus'),
croppingSuggestionFailReason?: string(name='CroppingSuggestionFailReason'),
remarksA?: string(name='RemarksA'),
imageUri?: string(name='ImageUri'),
tagsModifyTime?: string(name='TagsModifyTime'),
OCRStatus?: string(name='OCRStatus'),
addressStatus?: string(name='AddressStatus'),
exif?: string(name='Exif'),
location?: string(name='Location'),
remarksB?: string(name='RemarksB'),
croppingSuggestion?: [
{
score?: float(name='Score'),
aspectRatio?: string(name='AspectRatio'),
croppingBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='CroppingBoundary'),
}
](name='CroppingSuggestion'),
faces?: [
{
emotionConfidence?: float(name='EmotionConfidence'),
attractive?: float(name='Attractive'),
groupId?: string(name='GroupId'),
gender?: string(name='Gender'),
faceId?: string(name='FaceId'),
genderConfidence?: float(name='GenderConfidence'),
faceQuality?: float(name='FaceQuality'),
emotion?: string(name='Emotion'),
age?: int32(name='Age'),
faceConfidence?: float(name='FaceConfidence'),
emotionDetails?: {
HAPPY?: float(name='HAPPY'),
SURPRISED?: float(name='SURPRISED'),
CALM?: float(name='CALM'),
DISGUSTED?: float(name='DISGUSTED'),
ANGRY?: float(name='ANGRY'),
SAD?: float(name='SAD'),
SCARED?: float(name='SCARED'),
}(name='EmotionDetails'),
faceAttributes?: {
glassesConfidence?: float(name='GlassesConfidence'),
glasses?: string(name='Glasses'),
mask?: string(name='Mask'),
beardConfidence?: float(name='BeardConfidence'),
maskConfidence?: float(name='MaskConfidence'),
beard?: string(name='Beard'),
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
headPose?: {
pitch?: float(name='Pitch'),
roll?: float(name='Roll'),
yaw?: float(name='Yaw'),
}(name='HeadPose'),
}(name='FaceAttributes'),
}
](name='Faces'),
tags?: [
{
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
tagConfidence?: float(name='TagConfidence'),
tagName?: string(name='TagName'),
}
](name='Tags'),
OCR?: [
{
OCRConfidence?: float(name='OCRConfidence'),
OCRContents?: string(name='OCRContents'),
OCRBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='OCRBoundary'),
}
](name='OCR'),
imageQuality?: {
overallScore?: float(name='OverallScore'),
color?: float(name='Color'),
colorScore?: float(name='ColorScore'),
contrastScore?: float(name='ContrastScore'),
contrast?: float(name='Contrast'),
exposureScore?: float(name='ExposureScore'),
clarityScore?: float(name='ClarityScore'),
clarity?: float(name='Clarity'),
exposure?: float(name='Exposure'),
compositionScore?: float(name='CompositionScore'),
}(name='ImageQuality'),
address?: {
township?: string(name='Township'),
district?: string(name='District'),
addressLine?: string(name='AddressLine'),
country?: string(name='Country'),
city?: string(name='City'),
province?: string(name='Province'),
}(name='Address'),
}
](name='Images'),
}
model FindImagesResponse = {
headers: map[string]string(name='headers'),
body: FindImagesResponseBody(name='body'),
}
async function findImagesWithOptions(request: FindImagesRequest, runtime: Util.RuntimeOptions): FindImagesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('FindImages', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function findImages(request: FindImagesRequest): FindImagesResponse {
var runtime = new Util.RuntimeOptions{};
return findImagesWithOptions(request, runtime);
}
model FindSimilarFacesRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
faceId?: string(name='FaceId'),
limit?: int32(name='Limit'),
minSimilarity?: float(name='MinSimilarity'),
responseFormat?: string(name='ResponseFormat'),
}
model FindSimilarFacesResponseBody = {
requestId?: string(name='RequestId'),
faces?: [
{
externalId?: string(name='ExternalId'),
similarity?: float(name='Similarity'),
faceId?: string(name='FaceId'),
imageUri?: string(name='ImageUri'),
similarFaces?: [
{
externalId?: string(name='ExternalId'),
similarity?: float(name='Similarity'),
faceId?: string(name='FaceId'),
imageUri?: string(name='ImageUri'),
faceAttributes?: {
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
}(name='FaceAttributes'),
}
](name='SimilarFaces'),
faceAttributes?: {
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
}(name='FaceAttributes'),
}
](name='Faces'),
}
model FindSimilarFacesResponse = {
headers: map[string]string(name='headers'),
body: FindSimilarFacesResponseBody(name='body'),
}
async function findSimilarFacesWithOptions(request: FindSimilarFacesRequest, runtime: Util.RuntimeOptions): FindSimilarFacesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('FindSimilarFaces', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function findSimilarFaces(request: FindSimilarFacesRequest): FindSimilarFacesResponse {
var runtime = new Util.RuntimeOptions{};
return findSimilarFacesWithOptions(request, runtime);
}
model GetContentKeyRequest {
project?: string(name='Project'),
versionId?: string(name='VersionId'),
DRMServerId?: string(name='DRMServerId'),
keyIds?: string(name='KeyIds'),
}
model GetContentKeyResponseBody = {
versionId?: string(name='VersionId'),
requestId?: string(name='RequestId'),
keyInfos?: string(name='KeyInfos'),
}
model GetContentKeyResponse = {
headers: map[string]string(name='headers'),
body: GetContentKeyResponseBody(name='body'),
}
async function getContentKeyWithOptions(request: GetContentKeyRequest, runtime: Util.RuntimeOptions): GetContentKeyResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetContentKey', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getContentKey(request: GetContentKeyRequest): GetContentKeyResponse {
var runtime = new Util.RuntimeOptions{};
return getContentKeyWithOptions(request, runtime);
}
model GetDRMLicenseRequest {
project?: string(name='Project'),
DRMType?: string(name='DRMType'),
DRMLicense?: string(name='DRMLicense'),
}
model GetDRMLicenseResponseBody = {
requestId?: string(name='RequestId'),
deviceInfo?: string(name='DeviceInfo'),
DRMData?: string(name='DRMData'),
}
model GetDRMLicenseResponse = {
headers: map[string]string(name='headers'),
body: GetDRMLicenseResponseBody(name='body'),
}
async function getDRMLicenseWithOptions(request: GetDRMLicenseRequest, runtime: Util.RuntimeOptions): GetDRMLicenseResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetDRMLicense', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getDRMLicense(request: GetDRMLicenseRequest): GetDRMLicenseResponse {
var runtime = new Util.RuntimeOptions{};
return getDRMLicenseWithOptions(request, runtime);
}
model GetImageRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
}
model GetImageResponseBody = {
imageQuality?: {
overallScore?: float(name='OverallScore'),
color?: float(name='Color'),
colorScore?: float(name='ColorScore'),
contrastScore?: float(name='ContrastScore'),
contrast?: float(name='Contrast'),
exposureScore?: float(name='ExposureScore'),
clarityScore?: float(name='ClarityScore'),
clarity?: float(name='Clarity'),
exposure?: float(name='Exposure'),
compositionScore?: float(name='CompositionScore'),
}(name='ImageQuality'),
modifyTime?: string(name='ModifyTime'),
address?: {
township?: string(name='Township'),
district?: string(name='District'),
addressLine?: string(name='AddressLine'),
country?: string(name='Country'),
city?: string(name='City'),
province?: string(name='Province'),
}(name='Address'),
sourceType?: string(name='SourceType'),
sourceUri?: string(name='SourceUri'),
facesFailReason?: string(name='FacesFailReason'),
croppingSuggestionStatus?: string(name='CroppingSuggestionStatus'),
croppingSuggestionFailReason?: string(name='CroppingSuggestionFailReason'),
addressFailReason?: string(name='AddressFailReason'),
remarksA?: string(name='RemarksA'),
addressModifyTime?: string(name='AddressModifyTime'),
remarksB?: string(name='RemarksB'),
imageFormat?: string(name='ImageFormat'),
tagsFailReason?: string(name='TagsFailReason'),
remarksArrayB?: string(name='RemarksArrayB'),
facesModifyTime?: string(name='FacesModifyTime'),
exif?: string(name='Exif'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
imageWidth?: int32(name='ImageWidth'),
remarksArrayA?: string(name='RemarksArrayA'),
sourcePosition?: string(name='SourcePosition'),
tags?: [
{
tagName?: string(name='TagName'),
tagConfidence?: float(name='TagConfidence'),
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
}
](name='Tags'),
faces?: [
{
gender?: string(name='Gender'),
genderConfidence?: float(name='GenderConfidence'),
faceId?: string(name='FaceId'),
faceAttributes?: {
glassesConfidence?: float(name='GlassesConfidence'),
glasses?: string(name='Glasses'),
mask?: string(name='Mask'),
beardConfidence?: float(name='BeardConfidence'),
maskConfidence?: float(name='MaskConfidence'),
faceBoundary?: {
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
left?: int32(name='Left'),
}(name='FaceBoundary'),
headPose?: {
pitch?: float(name='Pitch'),
roll?: float(name='Roll'),
yaw?: float(name='Yaw'),
}(name='HeadPose'),
beard?: string(name='Beard'),
}(name='FaceAttributes'),
faceQuality?: float(name='FaceQuality'),
emotion?: string(name='Emotion'),
age?: string(name='Age'),
faceConfidence?: float(name='FaceConfidence'),
emotionConfidence?: float(name='EmotionConfidence'),
attractive?: float(name='Attractive'),
groupId?: string(name='GroupId'),
emotionDetails?: {
HAPPY?: float(name='HAPPY'),
CALM?: float(name='CALM'),
SURPRISED?: float(name='SURPRISED'),
DISGUSTED?: float(name='DISGUSTED'),
ANGRY?: float(name='ANGRY'),
SAD?: float(name='SAD'),
SCARED?: float(name='SCARED'),
}(name='EmotionDetails'),
}
](name='Faces'),
addressStatus?: string(name='AddressStatus'),
facesStatus?: string(name='FacesStatus'),
imageQualityModifyTime?: string(name='ImageQualityModifyTime'),
croppingSuggestion?: [
{
score?: float(name='Score'),
croppingBoundary?: {
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
left?: int32(name='Left'),
}(name='CroppingBoundary'),
aspectRatio?: string(name='AspectRatio'),
}
](name='CroppingSuggestion'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
externalId?: string(name='ExternalId'),
tagsModifyTime?: string(name='TagsModifyTime'),
imageQualityFailReason?: string(name='ImageQualityFailReason'),
orientation?: string(name='Orientation'),
imageUri?: string(name='ImageUri'),
OCRStatus?: string(name='OCRStatus'),
OCRModifyTime?: string(name='OCRModifyTime'),
imageTime?: string(name='ImageTime'),
croppingSuggestionModifyTime?: string(name='CroppingSuggestionModifyTime'),
imageHeight?: int32(name='ImageHeight'),
imageQualityStatus?: string(name='ImageQualityStatus'),
tagsStatus?: string(name='TagsStatus'),
OCRFailReason?: string(name='OCRFailReason'),
setId?: string(name='SetId'),
fileSize?: int32(name='FileSize'),
location?: string(name='Location'),
OCR?: [
{
OCRConfidence?: float(name='OCRConfidence'),
OCRContents?: string(name='OCRContents'),
OCRBoundary?: {
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
left?: int32(name='Left'),
}(name='OCRBoundary'),
}
](name='OCR'),
}
model GetImageResponse = {
headers: map[string]string(name='headers'),
body: GetImageResponseBody(name='body'),
}
async function getImageWithOptions(request: GetImageRequest, runtime: Util.RuntimeOptions): GetImageResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetImage', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getImage(request: GetImageRequest): GetImageResponse {
var runtime = new Util.RuntimeOptions{};
return getImageWithOptions(request, runtime);
}
model GetImageCroppingSuggestionsRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
aspectRatios?: string(name='AspectRatios'),
}
model GetImageCroppingSuggestionsResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
croppingSuggestions?: [
{
score?: float(name='Score'),
aspectRatio?: string(name='AspectRatio'),
croppingBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='CroppingBoundary'),
}
](name='CroppingSuggestions'),
}
model GetImageCroppingSuggestionsResponse = {
headers: map[string]string(name='headers'),
body: GetImageCroppingSuggestionsResponseBody(name='body'),
}
async function getImageCroppingSuggestionsWithOptions(request: GetImageCroppingSuggestionsRequest, runtime: Util.RuntimeOptions): GetImageCroppingSuggestionsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetImageCroppingSuggestions', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getImageCroppingSuggestions(request: GetImageCroppingSuggestionsRequest): GetImageCroppingSuggestionsResponse {
var runtime = new Util.RuntimeOptions{};
return getImageCroppingSuggestionsWithOptions(request, runtime);
}
model GetImageQualityRequest {
project?: string(name='Project'),
imageUri?: string(name='ImageUri'),
}
model GetImageQualityResponseBody = {
imageUri?: string(name='ImageUri'),
requestId?: string(name='RequestId'),
imageQuality?: {
overallScore?: float(name='OverallScore'),
color?: float(name='Color'),
colorScore?: float(name='ColorScore'),
contrastScore?: float(name='ContrastScore'),
contrast?: float(name='Contrast'),
exposureScore?: float(name='ExposureScore'),
clarityScore?: float(name='ClarityScore'),
clarity?: float(name='Clarity'),
exposure?: float(name='Exposure'),
compositionScore?: float(name='CompositionScore'),
}(name='ImageQuality'),
}
model GetImageQualityResponse = {
headers: map[string]string(name='headers'),
body: GetImageQualityResponseBody(name='body'),
}
async function getImageQualityWithOptions(request: GetImageQualityRequest, runtime: Util.RuntimeOptions): GetImageQualityResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetImageQuality', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getImageQuality(request: GetImageQualityRequest): GetImageQualityResponse {
var runtime = new Util.RuntimeOptions{};
return getImageQualityWithOptions(request, runtime);
}
model GetMediaMetaRequest {
project?: string(name='Project'),
mediaUri?: string(name='MediaUri'),
}
model GetMediaMetaResponseBody = {
mediaUri?: string(name='MediaUri'),
requestId?: string(name='RequestId'),
mediaMeta?: {
mediaFormat?: {
creationTime?: string(name='CreationTime'),
numberPrograms?: int32(name='NumberPrograms'),
numberStreams?: int32(name='NumberStreams'),
tag?: {
creationTime?: string(name='CreationTime'),
album?: string(name='Album'),
albumArtist?: string(name='AlbumArtist'),
performer?: string(name='Performer'),
composer?: string(name='Composer'),
artist?: string(name='Artist'),
title?: string(name='Title'),
language?: string(name='Language'),
}(name='Tag'),
bitrate?: string(name='Bitrate'),
startTime?: string(name='StartTime'),
size?: string(name='Size'),
address?: {
township?: string(name='Township'),
district?: string(name='District'),
addressLine?: string(name='AddressLine'),
country?: string(name='Country'),
city?: string(name='City'),
province?: string(name='Province'),
}(name='Address'),
formatLongName?: string(name='FormatLongName'),
duration?: string(name='Duration'),
formatName?: string(name='FormatName'),
location?: string(name='Location'),
}(name='MediaFormat'),
mediaStreams?: {
videoStreams?: [
{
index?: int32(name='Index'),
codecLongName?: string(name='CodecLongName'),
height?: int32(name='Height'),
sampleAspectRatio?: string(name='SampleAspectRatio'),
averageFrameRate?: string(name='AverageFrameRate'),
bitrate?: string(name='Bitrate'),
rotate?: string(name='Rotate'),
codecTagString?: string(name='CodecTagString'),
language?: string(name='Language'),
hasBFrames?: int32(name='HasBFrames'),
frameRrate?: string(name='FrameRrate'),
profile?: string(name='Profile'),
startTime?: string(name='StartTime'),
frames?: string(name='Frames'),
codecName?: string(name='CodecName'),
width?: int32(name='Width'),
duration?: string(name='Duration'),
displayAspectRatio?: string(name='DisplayAspectRatio'),
codecTag?: string(name='CodecTag'),
codecTimeBase?: string(name='CodecTimeBase'),
timeBase?: string(name='TimeBase'),
level?: int32(name='Level'),
pixelFormat?: string(name='PixelFormat'),
}
](name='VideoStreams'),
audioStreams?: [
{
index?: int32(name='Index'),
sampleRate?: string(name='SampleRate'),
channelLayout?: string(name='ChannelLayout'),
codecLongName?: string(name='CodecLongName'),
channels?: int32(name='Channels'),
bitrate?: string(name='Bitrate'),
codecTagString?: string(name='CodecTagString'),
language?: string(name='Language'),
startTime?: string(name='StartTime'),
sampleFormat?: string(name='SampleFormat'),
frames?: string(name='Frames'),
codecName?: string(name='CodecName'),
duration?: string(name='Duration'),
codecTag?: string(name='CodecTag'),
codecTimeBase?: string(name='CodecTimeBase'),
timeBase?: string(name='TimeBase'),
}
](name='AudioStreams'),
subtitleStreams?: [
{
index?: int32(name='Index'),
language?: string(name='Language'),
}
](name='SubtitleStreams'),
}(name='MediaStreams'),
}(name='MediaMeta'),
}
model GetMediaMetaResponse = {
headers: map[string]string(name='headers'),
body: GetMediaMetaResponseBody(name='body'),
}
async function getMediaMetaWithOptions(request: GetMediaMetaRequest, runtime: Util.RuntimeOptions): GetMediaMetaResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetMediaMeta', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getMediaMeta(request: GetMediaMetaRequest): GetMediaMetaResponse {
var runtime = new Util.RuntimeOptions{};
return getMediaMetaWithOptions(request, runtime);
}
model GetOfficeConversionTaskRequest {
project?: string(name='Project'),
taskId?: string(name='TaskId'),
}
model GetOfficeConversionTaskResponseBody = {
status?: string(name='Status'),
percent?: int32(name='Percent'),
finishTime?: string(name='FinishTime'),
createTime?: string(name='CreateTime'),
pageCount?: int32(name='PageCount'),
notifyTopicName?: string(name='NotifyTopicName'),
requestId?: string(name='RequestId'),
notifyEndpoint?: string(name='NotifyEndpoint'),
srcUri?: string(name='SrcUri'),
tgtType?: string(name='TgtType'),
tgtUri?: string(name='TgtUri'),
imageSpec?: string(name='ImageSpec'),
externalID?: string(name='ExternalID'),
taskId?: string(name='TaskId'),
failDetail?: {
code?: string(name='Code'),
}(name='FailDetail'),
}
model GetOfficeConversionTaskResponse = {
headers: map[string]string(name='headers'),
body: GetOfficeConversionTaskResponseBody(name='body'),
}
async function getOfficeConversionTaskWithOptions(request: GetOfficeConversionTaskRequest, runtime: Util.RuntimeOptions): GetOfficeConversionTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetOfficeConversionTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getOfficeConversionTask(request: GetOfficeConversionTaskRequest): GetOfficeConversionTaskResponse {
var runtime = new Util.RuntimeOptions{};
return getOfficeConversionTaskWithOptions(request, runtime);
}
model GetOfficeEditURLRequest {
project?: string(name='Project'),
srcUri?: string(name='SrcUri'),
srcType?: string(name='SrcType'),
fileID?: string(name='FileID'),
tgtUri?: string(name='TgtUri'),
userID?: string(name='UserID'),
userName?: string(name='UserName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
notifyTopicName?: string(name='NotifyTopicName'),
fileName?: string(name='FileName'),
}
model GetOfficeEditURLResponseBody = {
requestId?: string(name='RequestId'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
editURL?: string(name='EditURL'),
accessToken?: string(name='AccessToken'),
refreshToken?: string(name='RefreshToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
}
model GetOfficeEditURLResponse = {
headers: map[string]string(name='headers'),
body: GetOfficeEditURLResponseBody(name='body'),
}
async function getOfficeEditURLWithOptions(request: GetOfficeEditURLRequest, runtime: Util.RuntimeOptions): GetOfficeEditURLResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetOfficeEditURL', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getOfficeEditURL(request: GetOfficeEditURLRequest): GetOfficeEditURLResponse {
var runtime = new Util.RuntimeOptions{};
return getOfficeEditURLWithOptions(request, runtime);
}
model GetOfficePreviewURLRequest {
project?: string(name='Project'),
srcUri?: string(name='SrcUri'),
srcType?: string(name='SrcType'),
watermarkType?: int32(name='WatermarkType'),
watermarkValue?: string(name='WatermarkValue'),
watermarkFillStyle?: string(name='WatermarkFillStyle'),
watermarkFont?: string(name='WatermarkFont'),
watermarkRotate?: float(name='WatermarkRotate'),
watermarkHorizontal?: int32(name='WatermarkHorizontal'),
watermarkVertical?: int32(name='WatermarkVertical'),
}
model GetOfficePreviewURLResponseBody = {
requestId?: string(name='RequestId'),
previewURL?: string(name='PreviewURL'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
accessToken?: string(name='AccessToken'),
refreshToken?: string(name='RefreshToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
}
model GetOfficePreviewURLResponse = {
headers: map[string]string(name='headers'),
body: GetOfficePreviewURLResponseBody(name='body'),
}
async function getOfficePreviewURLWithOptions(request: GetOfficePreviewURLRequest, runtime: Util.RuntimeOptions): GetOfficePreviewURLResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetOfficePreviewURL', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getOfficePreviewURL(request: GetOfficePreviewURLRequest): GetOfficePreviewURLResponse {
var runtime = new Util.RuntimeOptions{};
return getOfficePreviewURLWithOptions(request, runtime);
}
model GetProjectRequest {
project?: string(name='Project'),
}
model GetProjectResponseBody = {
type?: string(name='Type'),
requestId?: string(name='RequestId'),
CU?: int32(name='CU'),
createTime?: string(name='CreateTime'),
endpoint?: string(name='Endpoint'),
serviceRole?: string(name='ServiceRole'),
project?: string(name='Project'),
regionId?: string(name='RegionId'),
billingType?: string(name='BillingType'),
modifyTime?: string(name='ModifyTime'),
}
model GetProjectResponse = {
headers: map[string]string(name='headers'),
body: GetProjectResponseBody(name='body'),
}
async function getProjectWithOptions(request: GetProjectRequest, runtime: Util.RuntimeOptions): GetProjectResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetProject', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getProject(request: GetProjectRequest): GetProjectResponse {
var runtime = new Util.RuntimeOptions{};
return getProjectWithOptions(request, runtime);
}
model GetSetRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
}
model GetSetResponseBody = {
videoCount?: int32(name='VideoCount'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
videoLength?: int32(name='VideoLength'),
setId?: string(name='SetId'),
imageCount?: int32(name='ImageCount'),
faceCount?: int32(name='FaceCount'),
setName?: string(name='SetName'),
modifyTime?: string(name='ModifyTime'),
}
model GetSetResponse = {
headers: map[string]string(name='headers'),
body: GetSetResponseBody(name='body'),
}
async function getSetWithOptions(request: GetSetRequest, runtime: Util.RuntimeOptions): GetSetResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetSet', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getSet(request: GetSetRequest): GetSetResponse {
var runtime = new Util.RuntimeOptions{};
return getSetWithOptions(request, runtime);
}
model GetVideoRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
videoUri?: string(name='VideoUri'),
}
model GetVideoResponseBody = {
modifyTime?: string(name='ModifyTime'),
processStatus?: string(name='ProcessStatus'),
videoWidth?: int32(name='VideoWidth'),
sourceType?: string(name='SourceType'),
sourceUri?: string(name='SourceUri'),
videoInfo?: string(name='VideoInfo'),
videoFrameTagsModifyTime?: string(name='VideoFrameTagsModifyTime'),
remarksA?: string(name='RemarksA'),
videoFacesFailReason?: string(name='VideoFacesFailReason'),
remarksB?: string(name='RemarksB'),
videoFacesStatus?: string(name='VideoFacesStatus'),
remarksC?: string(name='RemarksC'),
videoOCRModifyTime?: string(name='VideoOCRModifyTime'),
remarksD?: string(name='RemarksD'),
videoHeight?: int32(name='VideoHeight'),
sourcePosition?: string(name='SourcePosition'),
videoOCRFailReason?: string(name='VideoOCRFailReason'),
videoFrameTagsStatus?: string(name='VideoFrameTagsStatus'),
videoTagsFailReason?: string(name='VideoTagsFailReason'),
videoTagsModifyTime?: string(name='VideoTagsModifyTime'),
videoOCRStatus?: string(name='VideoOCRStatus'),
videoFrames?: int32(name='VideoFrames'),
requestId?: string(name='RequestId'),
processModifyTime?: string(name='ProcessModifyTime'),
videoSTTModifyTime?: string(name='VideoSTTModifyTime'),
processFailReason?: string(name='ProcessFailReason'),
createTime?: string(name='CreateTime'),
externalId?: string(name='ExternalId'),
videoSTTFailReason?: string(name='VideoSTTFailReason'),
videoUri?: string(name='VideoUri'),
videoFrameTagsFailReason?: string(name='VideoFrameTagsFailReason'),
videoFormat?: string(name='VideoFormat'),
videoSTTStatus?: string(name='VideoSTTStatus'),
videoFacesModifyTime?: string(name='VideoFacesModifyTime'),
videoTags?: [
{
tagName?: string(name='TagName'),
tagConfidence?: float(name='TagConfidence'),
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
}
](name='VideoTags'),
videoDuration?: float(name='VideoDuration'),
setId?: string(name='SetId'),
videoTagsStatus?: string(name='VideoTagsStatus'),
fileSize?: int32(name='FileSize'),
}
model GetVideoResponse = {
headers: map[string]string(name='headers'),
body: GetVideoResponseBody(name='body'),
}
async function getVideoWithOptions(request: GetVideoRequest, runtime: Util.RuntimeOptions): GetVideoResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetVideo', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getVideo(request: GetVideoRequest): GetVideoResponse {
var runtime = new Util.RuntimeOptions{};
return getVideoWithOptions(request, runtime);
}
model GetVideoTaskRequest {
project?: string(name='Project'),
taskType?: string(name='TaskType'),
taskId?: string(name='TaskId'),
}
model GetVideoTaskResponseBody = {
status?: string(name='Status'),
progress?: int32(name='Progress'),
notifyEndpoint?: string(name='NotifyEndpoint'),
parameters?: string(name='Parameters'),
taskId?: string(name='TaskId'),
endTime?: string(name='EndTime'),
requestId?: string(name='RequestId'),
taskType?: string(name='TaskType'),
startTime?: string(name='StartTime'),
notifyTopicName?: string(name='NotifyTopicName'),
errorMessage?: string(name='ErrorMessage'),
result?: string(name='Result'),
}
model GetVideoTaskResponse = {
headers: map[string]string(name='headers'),
body: GetVideoTaskResponseBody(name='body'),
}
async function getVideoTaskWithOptions(request: GetVideoTaskRequest, runtime: Util.RuntimeOptions): GetVideoTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetVideoTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getVideoTask(request: GetVideoTaskRequest): GetVideoTaskResponse {
var runtime = new Util.RuntimeOptions{};
return getVideoTaskWithOptions(request, runtime);
}
model GetWebofficeURLRequest {
project?: string(name='Project'),
srcType?: string(name='SrcType'),
fileID?: string(name='FileID'),
user?: string(name='User'),
permission?: string(name='Permission'),
file?: string(name='File'),
notifyEndpoint?: string(name='NotifyEndpoint'),
notifyTopicName?: string(name='NotifyTopicName'),
watermark?: string(name='Watermark'),
hidecmb?: boolean(name='Hidecmb'),
}
model GetWebofficeURLResponseBody = {
refreshToken?: string(name='RefreshToken'),
requestId?: string(name='RequestId'),
accessToken?: string(name='AccessToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
webofficeURL?: string(name='WebofficeURL'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
}
model GetWebofficeURLResponse = {
headers: map[string]string(name='headers'),
body: GetWebofficeURLResponseBody(name='body'),
}
async function getWebofficeURLWithOptions(request: GetWebofficeURLRequest, runtime: Util.RuntimeOptions): GetWebofficeURLResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('GetWebofficeURL', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function getWebofficeURL(request: GetWebofficeURLRequest): GetWebofficeURLResponse {
var runtime = new Util.RuntimeOptions{};
return getWebofficeURLWithOptions(request, runtime);
}
model IndexImageRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
sourceType?: string(name='SourceType'),
sourceUri?: string(name='SourceUri'),
sourcePosition?: string(name='SourcePosition'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
externalId?: string(name='ExternalId'),
notifyEndpoint?: string(name='NotifyEndpoint'),
notifyTopicName?: string(name='NotifyTopicName'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksArrayB?: string(name='RemarksArrayB'),
}
model IndexImageResponseBody = {
remarksArrayB?: string(name='RemarksArrayB'),
modifyTime?: string(name='ModifyTime'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
externalId?: string(name='ExternalId'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksA?: string(name='RemarksA'),
imageUri?: string(name='ImageUri'),
setId?: string(name='SetId'),
remarksB?: string(name='RemarksB'),
}
model IndexImageResponse = {
headers: map[string]string(name='headers'),
body: IndexImageResponseBody(name='body'),
}
async function indexImageWithOptions(request: IndexImageRequest, runtime: Util.RuntimeOptions): IndexImageResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('IndexImage', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function indexImage(request: IndexImageRequest): IndexImageResponse {
var runtime = new Util.RuntimeOptions{};
return indexImageWithOptions(request, runtime);
}
model IndexVideoRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
videoUri?: string(name='VideoUri'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
tgtUri?: string(name='TgtUri'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
externalId?: string(name='ExternalId'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
}
model IndexVideoResponseBody = {
modifyTime?: string(name='ModifyTime'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
externalId?: string(name='ExternalId'),
videoUri?: string(name='VideoUri'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
setId?: string(name='SetId'),
}
model IndexVideoResponse = {
headers: map[string]string(name='headers'),
body: IndexVideoResponseBody(name='body'),
}
async function indexVideoWithOptions(request: IndexVideoRequest, runtime: Util.RuntimeOptions): IndexVideoResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('IndexVideo', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function indexVideo(request: IndexVideoRequest): IndexVideoResponse {
var runtime = new Util.RuntimeOptions{};
return indexVideoWithOptions(request, runtime);
}
model ListFaceGroupsRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
marker?: string(name='Marker'),
limit?: int32(name='Limit'),
order?: string(name='Order'),
orderBy?: string(name='OrderBy'),
remarksAQuery?: string(name='RemarksAQuery'),
remarksBQuery?: string(name='RemarksBQuery'),
remarksCQuery?: string(name='RemarksCQuery'),
remarksDQuery?: string(name='RemarksDQuery'),
remarksArrayAQuery?: string(name='RemarksArrayAQuery'),
remarksArrayBQuery?: string(name='RemarksArrayBQuery'),
externalId?: string(name='ExternalId'),
}
model ListFaceGroupsResponseBody = {
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
faceGroups?: [
{
gender?: string(name='Gender'),
createTime?: string(name='CreateTime'),
remarksC?: string(name='RemarksC'),
groupCoverFace?: {
faceId?: string(name='FaceId'),
imageUri?: string(name='ImageUri'),
faceBoundary?: {
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
left?: int32(name='Left'),
}(name='FaceBoundary'),
externalId?: string(name='ExternalId'),
imageHeight?: long(name='ImageHeight'),
imageWidth?: long(name='ImageWidth'),
}(name='GroupCoverFace'),
faceCount?: int32(name='FaceCount'),
remarksArrayB?: string(name='RemarksArrayB'),
remarksD?: string(name='RemarksD'),
maxAge?: float(name='MaxAge'),
groupId?: string(name='GroupId'),
groupName?: string(name='GroupName'),
remarksA?: string(name='RemarksA'),
averageAge?: float(name='AverageAge'),
remarksArrayA?: string(name='RemarksArrayA'),
minAge?: float(name='MinAge'),
imageCount?: int32(name='ImageCount'),
externalId?: string(name='ExternalId'),
remarksB?: string(name='RemarksB'),
modifyTime?: string(name='ModifyTime'),
}
](name='FaceGroups'),
}
model ListFaceGroupsResponse = {
headers: map[string]string(name='headers'),
body: ListFaceGroupsResponseBody(name='body'),
}
async function listFaceGroupsWithOptions(request: ListFaceGroupsRequest, runtime: Util.RuntimeOptions): ListFaceGroupsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListFaceGroups', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listFaceGroups(request: ListFaceGroupsRequest): ListFaceGroupsResponse {
var runtime = new Util.RuntimeOptions{};
return listFaceGroupsWithOptions(request, runtime);
}
model ListImagesRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
createTimeStart?: string(name='CreateTimeStart'),
marker?: string(name='Marker'),
limit?: int32(name='Limit'),
}
model ListImagesResponseBody = {
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
setId?: string(name='SetId'),
images?: [
{
croppingSuggestionStatus?: string(name='CroppingSuggestionStatus'),
imageQualityModifyTime?: string(name='ImageQualityModifyTime'),
tagsFailReason?: string(name='TagsFailReason'),
remarksC?: string(name='RemarksC'),
createTime?: string(name='CreateTime'),
sourceType?: string(name='SourceType'),
facesFailReason?: string(name='FacesFailReason'),
facesModifyTime?: string(name='FacesModifyTime'),
imageTime?: string(name='ImageTime'),
OCRModifyTime?: string(name='OCRModifyTime'),
addressModifyTime?: string(name='AddressModifyTime'),
imageQualityFailReason?: string(name='ImageQualityFailReason'),
facesStatus?: string(name='FacesStatus'),
remarksArrayA?: string(name='RemarksArrayA'),
imageHeight?: int32(name='ImageHeight'),
externalId?: string(name='ExternalId'),
sourceUri?: string(name='SourceUri'),
fileSize?: int32(name='FileSize'),
modifyTime?: string(name='ModifyTime'),
sourcePosition?: string(name='SourcePosition'),
imageQualityStatus?: string(name='ImageQualityStatus'),
OCRFailReason?: string(name='OCRFailReason'),
addressFailReason?: string(name='AddressFailReason'),
croppingSuggestionModifyTime?: string(name='CroppingSuggestionModifyTime'),
imageFormat?: string(name='ImageFormat'),
imageWidth?: int32(name='ImageWidth'),
remarksArrayB?: string(name='RemarksArrayB'),
orientation?: string(name='Orientation'),
remarksD?: string(name='RemarksD'),
tagsStatus?: string(name='TagsStatus'),
croppingSuggestionFailReason?: string(name='CroppingSuggestionFailReason'),
remarksA?: string(name='RemarksA'),
imageUri?: string(name='ImageUri'),
tagsModifyTime?: string(name='TagsModifyTime'),
OCRStatus?: string(name='OCRStatus'),
addressStatus?: string(name='AddressStatus'),
exif?: string(name='Exif'),
location?: string(name='Location'),
remarksB?: string(name='RemarksB'),
croppingSuggestion?: [
{
score?: float(name='Score'),
aspectRatio?: string(name='AspectRatio'),
croppingBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='CroppingBoundary'),
}
](name='CroppingSuggestion'),
faces?: [
{
emotionConfidence?: float(name='EmotionConfidence'),
attractive?: float(name='Attractive'),
groupId?: string(name='GroupId'),
gender?: string(name='Gender'),
faceId?: string(name='FaceId'),
genderConfidence?: float(name='GenderConfidence'),
faceQuality?: float(name='FaceQuality'),
emotion?: string(name='Emotion'),
age?: int32(name='Age'),
faceConfidence?: float(name='FaceConfidence'),
emotionDetails?: {
HAPPY?: float(name='HAPPY'),
SURPRISED?: float(name='SURPRISED'),
CALM?: float(name='CALM'),
DISGUSTED?: float(name='DISGUSTED'),
ANGRY?: float(name='ANGRY'),
SAD?: float(name='SAD'),
SCARED?: float(name='SCARED'),
}(name='EmotionDetails'),
faceAttributes?: {
glassesConfidence?: float(name='GlassesConfidence'),
glasses?: string(name='Glasses'),
mask?: string(name='Mask'),
beardConfidence?: float(name='BeardConfidence'),
maskConfidence?: float(name='MaskConfidence'),
beard?: string(name='Beard'),
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
headPose?: {
pitch?: float(name='Pitch'),
roll?: float(name='Roll'),
yaw?: float(name='Yaw'),
}(name='HeadPose'),
}(name='FaceAttributes'),
}
](name='Faces'),
tags?: [
{
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
tagConfidence?: float(name='TagConfidence'),
tagName?: string(name='TagName'),
}
](name='Tags'),
OCR?: [
{
OCRConfidence?: float(name='OCRConfidence'),
OCRContents?: string(name='OCRContents'),
OCRBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='OCRBoundary'),
}
](name='OCR'),
imageQuality?: {
overallScore?: float(name='OverallScore'),
color?: float(name='Color'),
colorScore?: float(name='ColorScore'),
contrastScore?: float(name='ContrastScore'),
contrast?: float(name='Contrast'),
exposureScore?: float(name='ExposureScore'),
clarityScore?: float(name='ClarityScore'),
clarity?: float(name='Clarity'),
exposure?: float(name='Exposure'),
compositionScore?: float(name='CompositionScore'),
}(name='ImageQuality'),
address?: {
township?: string(name='Township'),
district?: string(name='District'),
addressLine?: string(name='AddressLine'),
country?: string(name='Country'),
city?: string(name='City'),
province?: string(name='Province'),
}(name='Address'),
}
](name='Images'),
}
model ListImagesResponse = {
headers: map[string]string(name='headers'),
body: ListImagesResponseBody(name='body'),
}
async function listImagesWithOptions(request: ListImagesRequest, runtime: Util.RuntimeOptions): ListImagesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListImages', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listImages(request: ListImagesRequest): ListImagesResponse {
var runtime = new Util.RuntimeOptions{};
return listImagesWithOptions(request, runtime);
}
model ListOfficeConversionTaskRequest {
project?: string(name='Project'),
marker?: string(name='Marker'),
maxKeys?: int32(name='MaxKeys'),
}
model ListOfficeConversionTaskResponseBody = {
nextMarker?: string(name='NextMarker'),
requestId?: string(name='RequestId'),
tasks?: [
{
status?: string(name='Status'),
percent?: int32(name='Percent'),
finishTime?: string(name='FinishTime'),
createTime?: string(name='CreateTime'),
pageCount?: int32(name='PageCount'),
notifyTopicName?: string(name='NotifyTopicName'),
notifyEndpoint?: string(name='NotifyEndpoint'),
srcUri?: string(name='SrcUri'),
tgtType?: string(name='TgtType'),
tgtUri?: string(name='TgtUri'),
imageSpec?: string(name='ImageSpec'),
externalID?: string(name='ExternalID'),
taskId?: string(name='TaskId'),
}
](name='Tasks'),
}
model ListOfficeConversionTaskResponse = {
headers: map[string]string(name='headers'),
body: ListOfficeConversionTaskResponseBody(name='body'),
}
async function listOfficeConversionTaskWithOptions(request: ListOfficeConversionTaskRequest, runtime: Util.RuntimeOptions): ListOfficeConversionTaskResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListOfficeConversionTask', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listOfficeConversionTask(request: ListOfficeConversionTaskRequest): ListOfficeConversionTaskResponse {
var runtime = new Util.RuntimeOptions{};
return listOfficeConversionTaskWithOptions(request, runtime);
}
model ListProjectAPIsRequest {
project?: string(name='Project'),
}
model ListProjectAPIsResponseBody = {
project?: string(name='Project'),
requestId?: string(name='RequestId'),
APIs?: [ string ](name='APIs'),
}
model ListProjectAPIsResponse = {
headers: map[string]string(name='headers'),
body: ListProjectAPIsResponseBody(name='body'),
}
async function listProjectAPIsWithOptions(request: ListProjectAPIsRequest, runtime: Util.RuntimeOptions): ListProjectAPIsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListProjectAPIs', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listProjectAPIs(request: ListProjectAPIsRequest): ListProjectAPIsResponse {
var runtime = new Util.RuntimeOptions{};
return listProjectAPIsWithOptions(request, runtime);
}
model ListProjectsRequest {
marker?: string(name='Marker'),
maxKeys?: int32(name='MaxKeys'),
}
model ListProjectsResponseBody = {
nextMarker?: string(name='NextMarker'),
requestId?: string(name='RequestId'),
projects?: [
{
type?: string(name='Type'),
CU?: int32(name='CU'),
createTime?: string(name='CreateTime'),
serviceRole?: string(name='ServiceRole'),
endpoint?: string(name='Endpoint'),
project?: string(name='Project'),
regionId?: string(name='RegionId'),
billingType?: string(name='BillingType'),
modifyTime?: string(name='ModifyTime'),
}
](name='Projects'),
}
model ListProjectsResponse = {
headers: map[string]string(name='headers'),
body: ListProjectsResponseBody(name='body'),
}
async function listProjectsWithOptions(request: ListProjectsRequest, runtime: Util.RuntimeOptions): ListProjectsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListProjects', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listProjects(request: ListProjectsRequest): ListProjectsResponse {
var runtime = new Util.RuntimeOptions{};
return listProjectsWithOptions(request, runtime);
}
model ListSetsRequest {
project?: string(name='Project'),
marker?: string(name='Marker'),
}
model ListSetsResponseBody = {
nextMarker?: string(name='NextMarker'),
requestId?: string(name='RequestId'),
sets?: [
{
videoCount?: int32(name='VideoCount'),
createTime?: string(name='CreateTime'),
videoLength?: int32(name='VideoLength'),
setId?: string(name='SetId'),
imageCount?: int32(name='ImageCount'),
faceCount?: int32(name='FaceCount'),
setName?: string(name='SetName'),
modifyTime?: string(name='ModifyTime'),
}
](name='Sets'),
}
model ListSetsResponse = {
headers: map[string]string(name='headers'),
body: ListSetsResponseBody(name='body'),
}
async function listSetsWithOptions(request: ListSetsRequest, runtime: Util.RuntimeOptions): ListSetsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListSets', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listSets(request: ListSetsRequest): ListSetsResponse {
var runtime = new Util.RuntimeOptions{};
return listSetsWithOptions(request, runtime);
}
model ListSetTagsRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
}
model ListSetTagsResponseBody = {
setId?: string(name='SetId'),
requestId?: string(name='RequestId'),
tags?: [
{
tagLevel?: int32(name='TagLevel'),
tagName?: string(name='TagName'),
tagCount?: int32(name='TagCount'),
}
](name='Tags'),
}
model ListSetTagsResponse = {
headers: map[string]string(name='headers'),
body: ListSetTagsResponseBody(name='body'),
}
async function listSetTagsWithOptions(request: ListSetTagsRequest, runtime: Util.RuntimeOptions): ListSetTagsResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListSetTags', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listSetTags(request: ListSetTagsRequest): ListSetTagsResponse {
var runtime = new Util.RuntimeOptions{};
return listSetTagsWithOptions(request, runtime);
}
model ListVideoAudiosRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
videoUri?: string(name='VideoUri'),
marker?: string(name='Marker'),
}
model ListVideoAudiosResponseBody = {
videoUri?: string(name='VideoUri'),
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
setId?: string(name='SetId'),
audios?: [
{
sourcePosition?: string(name='SourcePosition'),
remarksC?: string(name='RemarksC'),
createTime?: string(name='CreateTime'),
sourceType?: string(name='SourceType'),
audioDuration?: float(name='AudioDuration'),
audioTextsStatus?: string(name='AudioTextsStatus'),
audioFormat?: string(name='AudioFormat'),
remarksD?: string(name='RemarksD'),
processFailReason?: string(name='ProcessFailReason'),
processModifyTime?: string(name='ProcessModifyTime'),
audioRate?: int32(name='AudioRate'),
audioUri?: string(name='AudioUri'),
audioTextsModifyTime?: string(name='AudioTextsModifyTime'),
remarksA?: string(name='RemarksA'),
externalId?: string(name='ExternalId'),
sourceUri?: string(name='SourceUri'),
processStatus?: string(name='ProcessStatus'),
audioTextsFailReason?: string(name='AudioTextsFailReason'),
remarksB?: string(name='RemarksB'),
fileSize?: int32(name='FileSize'),
modifyTime?: string(name='ModifyTime'),
audioTexts?: [
{
endTime?: float(name='EndTime'),
library?: string(name='Library'),
confidence?: float(name='Confidence'),
beginTime?: float(name='BeginTime'),
channelId?: int32(name='ChannelId'),
emotionValue?: float(name='EmotionValue'),
speechRate?: int32(name='SpeechRate'),
text?: string(name='Text'),
person?: string(name='Person'),
silenceDuration?: float(name='SilenceDuration'),
}
](name='AudioTexts'),
}
](name='Audios'),
}
model ListVideoAudiosResponse = {
headers: map[string]string(name='headers'),
body: ListVideoAudiosResponseBody(name='body'),
}
async function listVideoAudiosWithOptions(request: ListVideoAudiosRequest, runtime: Util.RuntimeOptions): ListVideoAudiosResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListVideoAudios', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listVideoAudios(request: ListVideoAudiosRequest): ListVideoAudiosResponse {
var runtime = new Util.RuntimeOptions{};
return listVideoAudiosWithOptions(request, runtime);
}
model ListVideoFramesRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
videoUri?: string(name='VideoUri'),
marker?: string(name='Marker'),
}
model ListVideoFramesResponseBody = {
videoUri?: string(name='VideoUri'),
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
setId?: string(name='SetId'),
frames?: [
{
tagsFailReason?: string(name='TagsFailReason'),
remarksC?: string(name='RemarksC'),
createTime?: string(name='CreateTime'),
sourceType?: string(name='SourceType'),
facesFailReason?: string(name='FacesFailReason'),
facesModifyTime?: string(name='FacesModifyTime'),
imageTime?: string(name='ImageTime'),
OCRModifyTime?: string(name='OCRModifyTime'),
facesStatus?: string(name='FacesStatus'),
imageHeight?: int32(name='ImageHeight'),
externalId?: string(name='ExternalId'),
sourceUri?: string(name='SourceUri'),
modifyTime?: string(name='ModifyTime'),
fileSize?: int32(name='FileSize'),
sourcePosition?: string(name='SourcePosition'),
OCRFailReason?: string(name='OCRFailReason'),
imageFormat?: string(name='ImageFormat'),
imageWidth?: int32(name='ImageWidth'),
orientation?: string(name='Orientation'),
remarksD?: string(name='RemarksD'),
tagsStatus?: string(name='TagsStatus'),
remarksA?: string(name='RemarksA'),
imageUri?: string(name='ImageUri'),
tagsModifyTime?: string(name='TagsModifyTime'),
OCRStatus?: string(name='OCRStatus'),
exif?: string(name='Exif'),
location?: string(name='Location'),
remarksB?: string(name='RemarksB'),
faces?: [
{
emotionConfidence?: float(name='EmotionConfidence'),
attractive?: float(name='Attractive'),
groupId?: string(name='GroupId'),
gender?: string(name='Gender'),
faceId?: string(name='FaceId'),
genderConfidence?: float(name='GenderConfidence'),
faceQuality?: float(name='FaceQuality'),
emotion?: string(name='Emotion'),
age?: int32(name='Age'),
faceConfidence?: float(name='FaceConfidence'),
emotionDetails?: {
HAPPY?: float(name='HAPPY'),
SURPRISED?: float(name='SURPRISED'),
CALM?: float(name='CALM'),
DISGUSTED?: float(name='DISGUSTED'),
ANGRY?: float(name='ANGRY'),
SAD?: float(name='SAD'),
SCARED?: float(name='SCARED'),
}(name='EmotionDetails'),
faceAttributes?: {
glassesConfidence?: float(name='GlassesConfidence'),
glasses?: string(name='Glasses'),
mask?: string(name='Mask'),
beardConfidence?: float(name='BeardConfidence'),
maskConfidence?: float(name='MaskConfidence'),
beard?: string(name='Beard'),
faceBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='FaceBoundary'),
headPose?: {
pitch?: float(name='Pitch'),
roll?: float(name='Roll'),
yaw?: float(name='Yaw'),
}(name='HeadPose'),
}(name='FaceAttributes'),
}
](name='Faces'),
tags?: [
{
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
tagConfidence?: float(name='TagConfidence'),
tagName?: string(name='TagName'),
}
](name='Tags'),
OCR?: [
{
OCRConfidence?: float(name='OCRConfidence'),
OCRContents?: string(name='OCRContents'),
OCRBoundary?: {
left?: int32(name='Left'),
top?: int32(name='Top'),
width?: int32(name='Width'),
height?: int32(name='Height'),
}(name='OCRBoundary'),
}
](name='OCR'),
}
](name='Frames'),
}
model ListVideoFramesResponse = {
headers: map[string]string(name='headers'),
body: ListVideoFramesResponseBody(name='body'),
}
async function listVideoFramesWithOptions(request: ListVideoFramesRequest, runtime: Util.RuntimeOptions): ListVideoFramesResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListVideoFrames', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listVideoFrames(request: ListVideoFramesRequest): ListVideoFramesResponse {
var runtime = new Util.RuntimeOptions{};
return listVideoFramesWithOptions(request, runtime);
}
model ListVideosRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
createTimeStart?: string(name='CreateTimeStart'),
marker?: string(name='Marker'),
}
model ListVideosResponseBody = {
requestId?: string(name='RequestId'),
nextMarker?: string(name='NextMarker'),
setId?: string(name='SetId'),
videos?: [
{
createTime?: string(name='CreateTime'),
remarksC?: string(name='RemarksC'),
videoTagsFailReason?: string(name='VideoTagsFailReason'),
sourceType?: string(name='SourceType'),
videoDuration?: float(name='VideoDuration'),
processModifyTime?: string(name='ProcessModifyTime'),
videoFrames?: int32(name='VideoFrames'),
videoTagsStatus?: string(name='VideoTagsStatus'),
externalId?: string(name='ExternalId'),
sourceUri?: string(name='SourceUri'),
modifyTime?: string(name='ModifyTime'),
fileSize?: int32(name='FileSize'),
sourcePosition?: string(name='SourcePosition'),
videoWidth?: int32(name='VideoWidth'),
videoHeight?: int32(name='VideoHeight'),
videoFormat?: string(name='VideoFormat'),
remarksD?: string(name='RemarksD'),
videoUri?: string(name='VideoUri'),
videoTagsModifyTime?: string(name='VideoTagsModifyTime'),
processFailReason?: string(name='ProcessFailReason'),
remarksA?: string(name='RemarksA'),
processStatus?: string(name='ProcessStatus'),
remarksB?: string(name='RemarksB'),
videoTags?: [
{
tagLevel?: int32(name='TagLevel'),
parentTagName?: string(name='ParentTagName'),
tagName?: string(name='TagName'),
tagConfidence?: float(name='TagConfidence'),
}
](name='VideoTags'),
}
](name='Videos'),
}
model ListVideosResponse = {
headers: map[string]string(name='headers'),
body: ListVideosResponseBody(name='body'),
}
async function listVideosWithOptions(request: ListVideosRequest, runtime: Util.RuntimeOptions): ListVideosResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListVideos', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listVideos(request: ListVideosRequest): ListVideosResponse {
var runtime = new Util.RuntimeOptions{};
return listVideosWithOptions(request, runtime);
}
model ListVideoTasksRequest {
project?: string(name='Project'),
marker?: string(name='Marker'),
maxKeys?: int32(name='MaxKeys'),
taskType?: string(name='TaskType'),
}
model ListVideoTasksResponseBody = {
nextMarker?: string(name='NextMarker'),
requestId?: string(name='RequestId'),
tasks?: [
{
endTime?: string(name='EndTime'),
status?: string(name='Status'),
startTime?: string(name='StartTime'),
taskType?: string(name='TaskType'),
progress?: int32(name='Progress'),
notifyEndpoint?: string(name='NotifyEndpoint'),
errorMessage?: string(name='ErrorMessage'),
parameters?: string(name='Parameters'),
result?: string(name='Result'),
taskId?: string(name='TaskId'),
notifyTopicName?: string(name='NotifyTopicName'),
}
](name='Tasks'),
}
model ListVideoTasksResponse = {
headers: map[string]string(name='headers'),
body: ListVideoTasksResponseBody(name='body'),
}
async function listVideoTasksWithOptions(request: ListVideoTasksRequest, runtime: Util.RuntimeOptions): ListVideoTasksResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('ListVideoTasks', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function listVideoTasks(request: ListVideoTasksRequest): ListVideoTasksResponse {
var runtime = new Util.RuntimeOptions{};
return listVideoTasksWithOptions(request, runtime);
}
model OpenImmServiceRequest {
ownerId?: long(name='OwnerId'),
}
model OpenImmServiceResponseBody = {
orderId?: string(name='OrderId'),
requestId?: string(name='RequestId'),
}
model OpenImmServiceResponse = {
headers: map[string]string(name='headers'),
body: OpenImmServiceResponseBody(name='body'),
}
async function openImmServiceWithOptions(request: OpenImmServiceRequest, runtime: Util.RuntimeOptions): OpenImmServiceResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('OpenImmService', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function openImmService(request: OpenImmServiceRequest): OpenImmServiceResponse {
var runtime = new Util.RuntimeOptions{};
return openImmServiceWithOptions(request, runtime);
}
model PutProjectRequest {
project?: string(name='Project'),
serviceRole?: string(name='ServiceRole'),
}
model PutProjectResponseBody = {
project?: string(name='Project'),
modifyTime?: string(name='ModifyTime'),
type?: string(name='Type'),
CU?: int32(name='CU'),
serviceRole?: string(name='ServiceRole'),
requestId?: string(name='RequestId'),
endpoint?: string(name='Endpoint'),
createTime?: string(name='CreateTime'),
regionId?: string(name='RegionId'),
billingType?: string(name='BillingType'),
}
model PutProjectResponse = {
headers: map[string]string(name='headers'),
body: PutProjectResponseBody(name='body'),
}
async function putProjectWithOptions(request: PutProjectRequest, runtime: Util.RuntimeOptions): PutProjectResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('PutProject', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function putProject(request: PutProjectRequest): PutProjectResponse {
var runtime = new Util.RuntimeOptions{};
return putProjectWithOptions(request, runtime);
}
model RefreshOfficeEditTokenRequest {
project?: string(name='Project'),
accessToken?: string(name='AccessToken'),
refreshToken?: string(name='RefreshToken'),
}
model RefreshOfficeEditTokenResponseBody = {
requestId?: string(name='RequestId'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
refreshToken?: string(name='RefreshToken'),
accessToken?: string(name='AccessToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
}
model RefreshOfficeEditTokenResponse = {
headers: map[string]string(name='headers'),
body: RefreshOfficeEditTokenResponseBody(name='body'),
}
async function refreshOfficeEditTokenWithOptions(request: RefreshOfficeEditTokenRequest, runtime: Util.RuntimeOptions): RefreshOfficeEditTokenResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('RefreshOfficeEditToken', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function refreshOfficeEditToken(request: RefreshOfficeEditTokenRequest): RefreshOfficeEditTokenResponse {
var runtime = new Util.RuntimeOptions{};
return refreshOfficeEditTokenWithOptions(request, runtime);
}
model RefreshOfficePreviewTokenRequest {
project?: string(name='Project'),
accessToken?: string(name='AccessToken'),
refreshToken?: string(name='RefreshToken'),
}
model RefreshOfficePreviewTokenResponseBody = {
requestId?: string(name='RequestId'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
refreshToken?: string(name='RefreshToken'),
accessToken?: string(name='AccessToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
}
model RefreshOfficePreviewTokenResponse = {
headers: map[string]string(name='headers'),
body: RefreshOfficePreviewTokenResponseBody(name='body'),
}
async function refreshOfficePreviewTokenWithOptions(request: RefreshOfficePreviewTokenRequest, runtime: Util.RuntimeOptions): RefreshOfficePreviewTokenResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('RefreshOfficePreviewToken', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function refreshOfficePreviewToken(request: RefreshOfficePreviewTokenRequest): RefreshOfficePreviewTokenResponse {
var runtime = new Util.RuntimeOptions{};
return refreshOfficePreviewTokenWithOptions(request, runtime);
}
model RefreshWebofficeTokenRequest {
project?: string(name='Project'),
accessToken?: string(name='AccessToken'),
refreshToken?: string(name='RefreshToken'),
}
model RefreshWebofficeTokenResponseBody = {
requestId?: string(name='RequestId'),
accessTokenExpiredTime?: string(name='AccessTokenExpiredTime'),
refreshToken?: string(name='RefreshToken'),
accessToken?: string(name='AccessToken'),
refreshTokenExpiredTime?: string(name='RefreshTokenExpiredTime'),
}
model RefreshWebofficeTokenResponse = {
headers: map[string]string(name='headers'),
body: RefreshWebofficeTokenResponseBody(name='body'),
}
async function refreshWebofficeTokenWithOptions(request: RefreshWebofficeTokenRequest, runtime: Util.RuntimeOptions): RefreshWebofficeTokenResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('RefreshWebofficeToken', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function refreshWebofficeToken(request: RefreshWebofficeTokenRequest): RefreshWebofficeTokenResponse {
var runtime = new Util.RuntimeOptions{};
return refreshWebofficeTokenWithOptions(request, runtime);
}
model UpdateFaceGroupRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
groupId?: string(name='GroupId'),
groupName?: string(name='GroupName'),
groupCoverFaceId?: string(name='GroupCoverFaceId'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksArrayB?: string(name='RemarksArrayB'),
externalId?: string(name='ExternalId'),
resetItems?: string(name='ResetItems'),
}
model UpdateFaceGroupResponseBody = {
requestId?: string(name='RequestId'),
groupId?: string(name='GroupId'),
setId?: string(name='SetId'),
}
model UpdateFaceGroupResponse = {
headers: map[string]string(name='headers'),
body: UpdateFaceGroupResponseBody(name='body'),
}
async function updateFaceGroupWithOptions(request: UpdateFaceGroupRequest, runtime: Util.RuntimeOptions): UpdateFaceGroupResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('UpdateFaceGroup', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function updateFaceGroup(request: UpdateFaceGroupRequest): UpdateFaceGroupResponse {
var runtime = new Util.RuntimeOptions{};
return updateFaceGroupWithOptions(request, runtime);
}
model UpdateImageRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
sourceType?: string(name='SourceType'),
sourceUri?: string(name='SourceUri'),
sourcePosition?: string(name='SourcePosition'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
externalId?: string(name='ExternalId'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksArrayB?: string(name='RemarksArrayB'),
faces?: [
{
faceId?: string(name='FaceId'),
groupId?: string(name='GroupId'),
}
](name='Faces'),
}
model UpdateImageShrinkRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
imageUri?: string(name='ImageUri'),
remarksA?: string(name='RemarksA'),
remarksB?: string(name='RemarksB'),
sourceType?: string(name='SourceType'),
sourceUri?: string(name='SourceUri'),
sourcePosition?: string(name='SourcePosition'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
externalId?: string(name='ExternalId'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksArrayB?: string(name='RemarksArrayB'),
facesShrink?: string(name='Faces'),
}
model UpdateImageResponseBody = {
remarksArrayB?: string(name='RemarksArrayB'),
modifyTime?: string(name='ModifyTime'),
remarksC?: string(name='RemarksC'),
remarksD?: string(name='RemarksD'),
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
externalId?: string(name='ExternalId'),
remarksArrayA?: string(name='RemarksArrayA'),
remarksA?: string(name='RemarksA'),
imageUri?: string(name='ImageUri'),
setId?: string(name='SetId'),
remarksB?: string(name='RemarksB'),
}
model UpdateImageResponse = {
headers: map[string]string(name='headers'),
body: UpdateImageResponseBody(name='body'),
}
async function updateImageWithOptions(tmpReq: UpdateImageRequest, runtime: Util.RuntimeOptions): UpdateImageResponse {
Util.validateModel(tmpReq);
var request = new UpdateImageShrinkRequest{};
OpenApiUtil.convert(tmpReq, request);
if (!Util.isUnset(tmpReq.faces)) {
request.facesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.faces, 'Faces', 'json');
}
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('UpdateImage', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function updateImage(request: UpdateImageRequest): UpdateImageResponse {
var runtime = new Util.RuntimeOptions{};
return updateImageWithOptions(request, runtime);
}
model UpdateProjectRequest {
project?: string(name='Project'),
newCU?: int32(name='NewCU'),
newServiceRole?: string(name='NewServiceRole'),
}
model UpdateProjectResponseBody = {
type?: string(name='Type'),
requestId?: string(name='RequestId'),
CU?: int32(name='CU'),
createTime?: string(name='CreateTime'),
serviceRole?: string(name='ServiceRole'),
project?: string(name='Project'),
regionId?: string(name='RegionId'),
modifyTime?: string(name='ModifyTime'),
}
model UpdateProjectResponse = {
headers: map[string]string(name='headers'),
body: UpdateProjectResponseBody(name='body'),
}
async function updateProjectWithOptions(request: UpdateProjectRequest, runtime: Util.RuntimeOptions): UpdateProjectResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('UpdateProject', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function updateProject(request: UpdateProjectRequest): UpdateProjectResponse {
var runtime = new Util.RuntimeOptions{};
return updateProjectWithOptions(request, runtime);
}
model UpdateSetRequest {
project?: string(name='Project'),
setId?: string(name='SetId'),
setName?: string(name='SetName'),
}
model UpdateSetResponseBody = {
requestId?: string(name='RequestId'),
createTime?: string(name='CreateTime'),
setName?: string(name='SetName'),
modifyTime?: string(name='ModifyTime'),
setId?: string(name='SetId'),
}
model UpdateSetResponse = {
headers: map[string]string(name='headers'),
body: UpdateSetResponseBody(name='body'),
}
async function updateSetWithOptions(request: UpdateSetRequest, runtime: Util.RuntimeOptions): UpdateSetResponse {
Util.validateModel(request);
var req = new OpenApi.OpenApiRequest{
body = Util.toMap(request),
};
return doRPCRequest('UpdateSet', '2017-09-06', 'HTTPS', 'POST', 'AK', 'json', req, runtime);
}
async function updateSet(request: UpdateSetRequest): UpdateSetResponse {
var runtime = new Util.RuntimeOptions{};
return updateSetWithOptions(request, runtime);
}
| Tea | 4 | aliyun/alibabacloud-sdk | imm-20170906/main.tea | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 8/17/09 by ECL
// FUNCTIONALITY
// This file defines globals to determine whether various utilities are installed
// We check to see that the program really exists.
// This is a simple check for a file at that location. It does NOT check that it is a valid install!
// CHANGE NOTES
// 8/17/09
// First implementation.
// Debugging
// Var:'svDebug' = 'Y';
Debug;
'svPlatform = ' ($svPlatform) '<br>\n';
/Debug;
// Look for ffmpeg installation
If:!(Global_Defined:'gvffmpegInstalled');
Global:'gvffmpegInstalled' = boolean;
// Start with it false, then set to true if program found
$gvffmpegInstalled = false;
(File_Exists:($svPathToffmpeg)) ? $gvffmpegInstalled = true;
/If;
Debug;
'svPathToffmpeg = ' ($svPathToffmpeg) '<br>\n';
'gvffmpegInstalled = ' ($gvffmpegInstalled) '<br>\n';
/Debug;
// Look for swftools installation
If:!(Global_Defined:'gvswftoolsInstalled');
Global:'gvswftoolsInstalled' = boolean;
// Start with it false, then set to true if program found
$gvswftoolsInstalled = false;
(File_Exists:($svPathToswftools)) ? $gvswftoolsInstalled = true;
/If;
Debug;
'svPathToswftools = ' ($svPathToswftools) '<br>\n';
'gvswftoolsInstalled = ' ($gvswftoolsInstalled) '<br>\n';
/Debug;
// Look for PassThru installation
// NOTE: For this to work, Lasso must be configurations with file permissions
// to allow searching on the path ///
If:!(Global_Defined:'gvPassThruInstalled');
Global:'gvPassThruInstalled' = boolean;
// Start with it false, then set to true if program found
$gvPassThruInstalled = false;
(File_Exists:($svPathToPassThru)) ? $gvPassThruInstalled = true;
/If;
Debug;
'svPathToPassThru = ' ($svPathToPassThru) '<br>\n';
'gvPassThruInstalled = ' ($gvPassThruInstalled) '<br>\n';
/Debug;
?>
| Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_CheckUtilities.lasso | [
"MIT"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:2a83c61fdf9a8da7604082903d1e01386595d4db303f0a032fbd0bc2542355a5
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Sunflower/info/arc0001.nit | [
"BSD-3-Clause-LBNL"
] |
%{
/* all code in this file is original, and was written by:
*
* PAYTON JAMES SHALTIS
* COMPLETED MAY 4TH, 2021
*
* for
*
* B-MINOR COMPILER, v1.0
*
*
* in CSC-425: "Compilers and Interpreters" taught by Professor John DeGood,
* over the course of the Spring 2021 semester. I understand that keeping this
* code in a public repository may allow other students to have access. In the
* event that the course is taught again, with a similar project component, this
* code is NOT to be used in place of another student's work.
*
*
*
* 'parser.bison'
* --------------
* This file defines the rules for the grammar of B-Minor. Bison uses this file to
* generate 'parser.c', the source-code for a complete LR parser. Rules use terminal
* tokens and nonterminals in order to parse a '.bminor' file during compilation.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "decl.h"
#include "expr.h"
#include "param_list.h"
#include "stmt.h"
#include "type.h"
// variables used within the parsing process
extern char* yytext; // pointer the the actual text of a literal or variable name (SOURCE: 'scanner.c')
extern int yylex(); // function to perform lexical analysis (scanning) (SOURCE: 'scanner.c')
extern int yyerror(char* str); // function that emits a parse error (SOURCE: 'parser.bison', ??unsure why external??)
extern int yylineno; // the line number of the current scan/parse position; used to print errors (SOURCE: 'scanner.c')
struct decl* parser_result = 0; // this is the root of the abstract syntax tree after a successful parse
%}
// the different token types used in grammar rules
%token TOKEN_ARRAY
%token TOKEN_BOOLEAN
%token TOKEN_CHAR
%token TOKEN_ELSE
%token TOKEN_FALSE
%token TOKEN_FOR
%token TOKEN_FUNCTION
%token TOKEN_IF
%token TOKEN_INTEGER
%token TOKEN_PRINT
%token TOKEN_RETURN
%token TOKEN_STRING
%token TOKEN_TRUE
%token TOKEN_VOID
%token TOKEN_COLON
%token TOKEN_SEMICOLON
%token TOKEN_COMMA
%token TOKEN_LBRACKET
%token TOKEN_RBRACKET
%token TOKEN_LCURLY
%token TOKEN_RCURLY
%token TOKEN_LPAREN
%token TOKEN_RPAREN
%token TOKEN_ASSIGN
%token TOKEN_CARET
%token TOKEN_PLUS
%token TOKEN_MINUS
%token TOKEN_INCREMENT
%token TOKEN_DECREMENT
%token TOKEN_MULTIPLY
%token TOKEN_DIVIDE
%token TOKEN_MOD
%token TOKEN_EQUAL
%token TOKEN_GE
%token TOKEN_LE
%token TOKEN_LESS
%token TOKEN_GREATER
%token TOKEN_NEQUAL
%token TOKEN_IDENT
%token TOKEN_INTLIT
%token TOKEN_CHARLIT
%token TOKEN_STRINGLIT
%token TOKEN_OR
%token TOKEN_AND
%token TOKEN_NOT
%token TOKEN_ERROR
// unioning the different AST nodes, words, letters, and numbers
%union {
struct decl* decl;
struct type* type;
struct stmt* stmt;
struct expr* expr;
struct param_list* param_list;
char* word;
int number;
char letter;
}
// a single union element with each nonterminal that falls into that category
%type <decl> program programlist decl global proto function stddecl cstdecl expdecl
%type <type> type array sizearr nosizearr
%type <stmt> stmtlist unbalanced balanced otherstmt
%type <expr> atomic group incdec unary expon multdiv addsub comparison logand logor expr exprfor exprlist bracket
%type <param_list> paramslist
%type <word> ident string
%type <number> value true false
%type <letter> char
%%
/* ========================= HIGHEST LEVEL PRODUCTIONS ========================= */
//a program consists of a list of declarations
program : programlist {parser_result = $1;}
| {parser_result = NULL;}
;
//this list of declarations may contain one or more declaration
programlist : decl programlist {$$ = $1, $1->next = $2;}
| decl {$$ = $1;}
;
//a declaration can be one of the following
decl : global {$$ = $1;} // global variables that may optionally be initialized
| proto {$$ = $1;} // function prototypes that contain no body of code
| function {$$ = $1;} // function implementations that contain a body of code
;
/* ========================= GLOBALS, PROTOTYPES, FUNCTION DECLARATIONS ========================= */
//global variables may be declared in one of two ways
global : stddecl TOKEN_SEMICOLON {$$ = $1;}
| cstdecl TOKEN_SEMICOLON {$$ = $1;}
;
//function prototypes, declared with or without parameters
proto : ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN TOKEN_RPAREN TOKEN_SEMICOLON {$$ = decl_create($1, type_create(TYPE_PROTOTYPE, $4, 0, 0), 0, 0, 0);}
| ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN paramslist TOKEN_RPAREN TOKEN_SEMICOLON {$$ = decl_create($1, type_create(TYPE_PROTOTYPE, $4, $6, 0), 0, 0, 0);}
;
//function implementations, defined with or without parameters and contain a body of statements (or none in the case of a void return)
function : ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN TOKEN_RPAREN TOKEN_ASSIGN TOKEN_LCURLY stmtlist TOKEN_RCURLY {$$ = decl_create($1, type_create(TYPE_FUNCTION, $4, 0, 0), 0, $9, 0);}
| ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN paramslist TOKEN_RPAREN TOKEN_ASSIGN TOKEN_LCURLY stmtlist TOKEN_RCURLY {$$ = decl_create($1, type_create(TYPE_FUNCTION, $4, $6, 0), 0, $10, 0);}
| ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN TOKEN_RPAREN TOKEN_ASSIGN TOKEN_LCURLY TOKEN_RCURLY {$$ = decl_create($1, type_create(TYPE_FUNCTION, $4, 0, 0), 0, 0, 0);}
| ident TOKEN_COLON TOKEN_FUNCTION type TOKEN_LPAREN paramslist TOKEN_RPAREN TOKEN_ASSIGN TOKEN_LCURLY TOKEN_RCURLY {$$ = decl_create($1, type_create(TYPE_FUNCTION, $4, $6, 0), 0, 0, 0);}
;
/* ========================= STANDARD, CONSTANT, AND EXPRESSION DECLARATIONS ========================= */
//standard declarations do not involve variable initialization
stddecl : ident TOKEN_COLON type {$$ = decl_create($1, $3, 0, 0, 0);} // may declare a basic type
| ident TOKEN_COLON sizearr {$$ = decl_create($1, $3, 0, 0, 0);} // may declare an array
;
//constant declarations involve variable initialization with a constant value
cstdecl : ident TOKEN_COLON type TOKEN_ASSIGN value {$$ = decl_create($1, $3, expr_create_integer_literal($5), 0, 0);} // positive integers
| ident TOKEN_COLON type TOKEN_ASSIGN TOKEN_MINUS value {$$ = decl_create($1, $3, expr_create(EXPR_NEG, expr_create_integer_literal($6), 0), 0, 0);} // accounts for negative integers
| ident TOKEN_COLON type TOKEN_ASSIGN string {$$ = decl_create($1, $3, expr_create_string_literal($5), 0, 0);}
| ident TOKEN_COLON type TOKEN_ASSIGN char {$$ = decl_create($1, $3, expr_create_char_literal($5), 0, 0);}
| ident TOKEN_COLON type TOKEN_ASSIGN true {$$ = decl_create($1, $3, expr_create_boolean_literal($5), 0, 0);}
| ident TOKEN_COLON type TOKEN_ASSIGN false {$$ = decl_create($1, $3, expr_create_boolean_literal($5), 0, 0);}
| ident TOKEN_COLON sizearr TOKEN_ASSIGN expr {$$ = decl_create($1, $3, $5, 0, 0);}
;
//expression declarations involve variable initialization with an expression or a constant
expdecl : ident TOKEN_COLON type TOKEN_ASSIGN expr {$$ = decl_create($1, $3, $5, 0, 0);}
| ident TOKEN_COLON array TOKEN_ASSIGN expr {$$ = decl_create($1, $3, $5, 0, 0);}
;
/* ========================= STATEMENT PRODUCTION RULES ========================= */
//list of both balanced and unbalanced statements
stmtlist : balanced stmtlist {$$ = $1, $1->next = $2;}
| unbalanced stmtlist {$$ = $1, $1->next = $2;}
| balanced {$$ = $1;}
| unbalanced {$$ = $1;}
;
//all of the possible unbalanced statements (if/else/for)
unbalanced : TOKEN_FOR TOKEN_LPAREN exprfor TOKEN_SEMICOLON exprfor TOKEN_SEMICOLON exprfor TOKEN_RPAREN unbalanced {$$ = stmt_create(STMT_FOR, 0, $3, $5, $7, $9, 0, 0);} // for() with an unbalanced statement following it
| TOKEN_IF TOKEN_LPAREN expr TOKEN_RPAREN balanced {$$ = stmt_create(STMT_IF, 0, 0, $3, 0, $5, 0, 0);} // lone if statement is automatically unbalanced
| TOKEN_IF TOKEN_LPAREN expr TOKEN_RPAREN unbalanced {$$ = stmt_create(STMT_IF, 0, 0, $3, 0, $5, 0, 0);} // lone if statement is automatically unbalanced
| TOKEN_IF TOKEN_LPAREN expr TOKEN_RPAREN balanced TOKEN_ELSE unbalanced {$$ = stmt_create(STMT_IF_ELSE, 0, 0, $3, 0, $5, $7, 0);} // if-else statement with only one balanced statement
;
//all of the possible balanced statements (if/else/for)
balanced : TOKEN_FOR TOKEN_LPAREN exprfor TOKEN_SEMICOLON exprfor TOKEN_SEMICOLON exprfor TOKEN_RPAREN balanced {$$ = stmt_create(STMT_FOR, 0, $3, $5, $7, $9, 0, 0);} // for(expr) with a balanced statement following it
| TOKEN_IF TOKEN_LPAREN expr TOKEN_RPAREN balanced TOKEN_ELSE balanced {$$ = stmt_create(STMT_IF_ELSE, 0, 0, $3, 0, $5, $7, 0);} // if statement that is balanced (both statements)
| otherstmt {$$ = $1;} // any one of the balanced statements below
;
//the non-if/else/for statements that are by definition balanced
otherstmt : TOKEN_RETURN TOKEN_SEMICOLON {$$ = stmt_create(STMT_RETURN, 0, 0, 0, 0, 0, 0, 0);} // return nothing statement
| TOKEN_RETURN expr TOKEN_SEMICOLON {$$ = stmt_create(STMT_RETURN, 0, 0, $2, 0, 0, 0, 0);} // return expression statement
| TOKEN_PRINT TOKEN_SEMICOLON {$$ = stmt_create(STMT_PRINT, 0, 0, 0, 0, 0, 0, 0);} // print nothing statement
| TOKEN_PRINT exprlist TOKEN_SEMICOLON {$$ = stmt_create(STMT_PRINT, 0, 0, $2, 0, 0, 0, 0);} // print expressions statement
| stddecl TOKEN_SEMICOLON {$$ = stmt_create(STMT_DECL, $1, 0, 0, 0, 0, 0, 0);} // standard declaration statement
| expdecl TOKEN_SEMICOLON {$$ = stmt_create(STMT_DECL, $1, 0, 0, 0, 0, 0, 0);} // expression declaration statement
| expr TOKEN_SEMICOLON {$$ = stmt_create(STMT_EXPR, 0, 0, $1, 0, 0, 0, 0);} // expression statement
| TOKEN_LCURLY stmtlist TOKEN_RCURLY {$$ = stmt_create(STMT_BLOCK, 0, 0, 0, 0, $2, 0, 0);} // block statement of 'stmtlists'
;
/* ========================= TYPE PRODUCTION RULES ========================= */
//basic types used for declaring variables and functions
type : TOKEN_INTEGER {$$ = type_create(TYPE_INTEGER, 0, 0, 0);}
| TOKEN_STRING {$$ = type_create(TYPE_STRING, 0, 0, 0);}
| TOKEN_CHAR {$$ = type_create(TYPE_CHAR, 0, 0, 0);}
| TOKEN_BOOLEAN {$$ = type_create(TYPE_BOOLEAN, 0, 0, 0);}
| TOKEN_VOID {$$ = type_create(TYPE_VOID, 0, 0, 0);} // must later typecheck to make sure only functions are of type void
;
//the array type; split from the 'type' production since it is more specialized
array : sizearr {$$ = $1;}
| nosizearr {$$ = $1;}
;
//array with a given size
sizearr : TOKEN_ARRAY TOKEN_LBRACKET value TOKEN_RBRACKET type {$$ = type_create(TYPE_ARRAY, $5, 0, $3);} // this production describes a one-dimensional array of type 'type'
| TOKEN_ARRAY TOKEN_LBRACKET value TOKEN_RBRACKET sizearr {$$ = type_create(TYPE_ARRAY, $5, 0, $3);} // this production describes n-dimensional arrays, must eventually take a 'type'
;
//array without a given size
nosizearr : TOKEN_ARRAY TOKEN_LBRACKET TOKEN_RBRACKET type {$$ = type_create(TYPE_ARRAY, $4, 0, 0);} // this production describes a one-dimensional array of type 'type'
| TOKEN_ARRAY TOKEN_LBRACKET TOKEN_RBRACKET nosizearr {$$ = type_create(TYPE_ARRAY, $4, 0, 0);} // this production describes n-dimensional arrays, must eventually take a 'type'
;
/* ========================= EXPRESSION PRODUCTION RULES ========================= */
//highest priority, an expression itself
expr : expr TOKEN_ASSIGN logor {$$ = expr_create(EXPR_ASSIGN, $1, $3);} // multiple assignments on 'logors'
| logor {$$ = $1;} // an expression can be anything below; they bubble up
;
//next highest priority after logical and
logor : logor TOKEN_OR logand {$$ = expr_create(EXPR_OR, $1, $3);} // multiple or operations on 'logands'
| logand {$$ = $1;} // can just be a 'logand'
;
//next highest priority after comparison operators
logand : logand TOKEN_AND comparison {$$ = expr_create(EXPR_AND, $1, $3);} // multiple and operations on 'comparisons'
| comparison {$$ = $1;} // can just be a 'comparison'
;
//next highest priority after add and subtract
comparison : comparison TOKEN_LESS addsub {$$ = expr_create(EXPR_LESS, $1, $3);} // multiple less comparisons on 'addsubs'
| comparison TOKEN_LE addsub {$$ = expr_create(EXPR_LE, $1, $3);} // multiple lequal comparisons on 'addsubs'
| comparison TOKEN_GREATER addsub {$$ = expr_create(EXPR_GREATER, $1, $3);} // multiple greater comparisons on 'addsubs'
| comparison TOKEN_GE addsub {$$ = expr_create(EXPR_GE, $1, $3);} // multiple gequal comparisons on 'addsubs'
| comparison TOKEN_EQUAL addsub {$$ = expr_create(EXPR_EQUAL, $1, $3);} // multiple equal comparisons on 'addsubs'
| comparison TOKEN_NEQUAL addsub {$$ = expr_create(EXPR_NEQUAL, $1, $3);} // multiple nequals comparisons on 'addsubs'
| addsub {$$ = $1;} // can just be an 'addsub'
;
//next highest priority after mult, div, and mod
addsub : addsub TOKEN_PLUS multdiv {$$ = expr_create(EXPR_ADD, $1, $3);} // adds multiple 'multdivs'
| addsub TOKEN_MINUS multdiv {$$ = expr_create(EXPR_SUB, $1, $3);} // subtracts multiple 'multdivs'
| multdiv {$$ = $1;} // can just be a 'multdiv'
;
//next highest priority after exponentiation
multdiv : multdiv TOKEN_MULTIPLY expon {$$ = expr_create(EXPR_MULT, $1, $3);} // multiplies multiple 'expons'
| multdiv TOKEN_DIVIDE expon {$$ = expr_create(EXPR_DIV, $1, $3);} // divides multiple 'expons'
| multdiv TOKEN_MOD expon {$$ = expr_create(EXPR_MOD, $1, $3);} // modulos multiple 'expons'
| expon {$$ = $1;} // can just be an 'expon'
;
//next highest priority after unary operations
expon : expon TOKEN_CARET unary {$$ = expr_create(EXPR_EXPON, $1, $3);} // exponentiates multiple 'unaries'
| unary {$$ = $1;} // can just be a 'unary'
;
//next highest priority after increment and decrement
unary : TOKEN_MINUS unary {$$ = expr_create(EXPR_NEG, $2, 0);} // unary minus
| TOKEN_NOT unary {$$ = expr_create(EXPR_NOT, $2, 0);} // unary not
| incdec {$$ = $1;} // can just be an 'incdec'
;
//next highest priority after groups
incdec : incdec TOKEN_INCREMENT {$$ = expr_create(EXPR_INC, $1, 0);} // incrementing a 'group'
| incdec TOKEN_DECREMENT {$$ = expr_create(EXPR_DEC, $1, 0);} // decrementing a 'group'
| group {$$ = $1;} // can just be a 'group'
;
//next highest priority after atomics
group : TOKEN_LPAREN expr TOKEN_RPAREN {$$ = expr_create(EXPR_GROUP, $2, 0);} // an expresison within parentheses
| ident bracket {$$ = expr_create(EXPR_ARRIND, expr_create_name($1), $2);} // indexing an element of an array
| ident TOKEN_LPAREN exprlist TOKEN_RPAREN {$$ = expr_create(EXPR_FCALL, expr_create_name($1), expr_create(EXPR_ARGS, $3, 0));} // result of a function call (with parameters)
| ident TOKEN_LPAREN TOKEN_RPAREN {$$ = expr_create(EXPR_FCALL, expr_create_name($1), 0);} // result of a function call (without parameters)
| TOKEN_LCURLY exprlist TOKEN_RCURLY {$$ = expr_create(EXPR_CURLS, $2, 0);} // used in array initializer lists
| atomic {$$ = $1;} // can just be an 'atomic'
;
//identifier that is declared with a type
ident : TOKEN_IDENT {$$ = strdup(yytext);}
;
//integer literal that is declared with a type
value : TOKEN_INTLIT {$$ = atoi(yytext);}
;
//string literal that is declared with a type
string : TOKEN_STRINGLIT {$$ = strdup(yytext);}
;
//char literal that is declared with a type
char : TOKEN_CHARLIT {if(yytext[1] == '\\') { if(yytext[2] == 'n') {$$ = 10;} else if(yytext[2] == '0') {$$ = 0;} else {$$ = yytext[2];} } else {$$ = yytext[1];} }
;
//true literal that is declared with a type
true : TOKEN_TRUE {$$ = 1;}
;
//false literal that is declared with a type
false : TOKEN_FALSE {$$ = 0;}
;
//the atomic types used in an expression
atomic : ident {$$ = expr_create_name($1);}
| value {$$ = expr_create_integer_literal($1);}
| string {$$ = expr_create_string_literal($1);}
| char {$$ = expr_create_char_literal($1);}
| true {$$ = expr_create_boolean_literal($1);}
| false {$$ = expr_create_boolean_literal($1);}
;
/* ========================= MISCELLANEOUS PRODUCTION RULES ========================= */
//expressions in for-loop fields may be expressions or omitted
exprfor : expr {$$ = $1;}
| {$$ = 0;}
;
//possibly multiple brackets used for indexing an array
bracket : TOKEN_LBRACKET expr TOKEN_RBRACKET bracket {$$ = expr_create(EXPR_BRACKET, $2, $4);}
| TOKEN_LBRACKET expr TOKEN_RBRACKET {$$ = $2;}
;
//list of expressions for print statement and function call
exprlist : expr TOKEN_COMMA exprlist {$$ = expr_create(EXPR_ARGS, $1, $3);}
| expr {$$ = $1;}
;
//list of parameters that can be used to declare a function
paramslist : ident TOKEN_COLON type TOKEN_COMMA paramslist {$$ = param_list_create($1, $3, $5);}
| ident TOKEN_COLON type {$$ = param_list_create($1, $3, 0);}
| ident TOKEN_COLON nosizearr TOKEN_COMMA paramslist {$$ = param_list_create($1, $3, $5);}
| ident TOKEN_COLON nosizearr {$$ = param_list_create($1, $3, 0);}
;
%%
// in the case of a failed parse, emit an error message along with estimated line number
int yyerror(char* str) {
printf("\033[0;31mERROR\033[0;0m: parse failed near line %d\n", yylineno);
return 1;
} | Bison | 5 | paytonshaltis/B-Minor | parser.bison | [
"CC0-1.0"
] |
module Libraries.Control.ANSI
import public Libraries.Control.ANSI.CSI
import public Libraries.Control.ANSI.SGR
%default total
public export
record DecoratedString where
constructor MkDString
sgr : List SGR
str : String
export
Show DecoratedString where
show dstr = escapeSGR dstr.sgr ++ dstr.str ++ escapeSGR [Reset]
export
colored : Color -> String -> DecoratedString
colored c = MkDString [SetForeground c]
export
background : Color -> String -> DecoratedString
background c = MkDString [SetBackground c]
export
bolden : String -> DecoratedString
bolden = MkDString [SetStyle Bold]
export
italicize : String -> DecoratedString
italicize = MkDString [SetStyle Italic]
export
underline : String -> DecoratedString
underline = MkDString [SetStyle SingleUnderline]
| Idris | 4 | ska80/idris-jvm | src/Libraries/Control/ANSI.idr | [
"BSD-3-Clause"
] |
Node tagged_pointer {
CodeUnit
NamespaceDef
TypeParams
Attribute
FunctionDef
Param
FieldDef
StaticFieldDef
TaggedPointerOptionDef
TypeModifierExpression
TypeArgsExpression
BlockStatement
ExpressionStatement
ReturnStatement
BreakStatement
ContinueStatement
IfStatement
WhileStatement
ForEachStatement
ForIndexStatement
MatchStatement
MatchCase
UnaryOperatorExpression
PostfixUnaryOperatorExpression
DotExpression
BinaryOperatorExpression
TernaryOperatorExpression
CallExpression
StructInitializerExpression
FieldInitializerExpression
IndexExpression
ParenExpression
NumberExpression
StringExpression
Token
Namespace // TODO: Remove
hash(n Node) {
return cast(transmute(pointer_cast(n, pointer), usize) >> 3, uint)
}
}
Error struct {
unit CodeUnit
span IntRange
text string
at(unit CodeUnit, span IntRange, text string) {
assert(span.from <= span.to)
return Error { unit: unit, span: span, text: text }
}
atIndex(unit CodeUnit, index int, text string) {
return Error { unit: unit, span: IntRange(index, index), text: text }
}
}
NodeInfo struct {
tag Tag
mem Node
}
CodeUnit struct #RefType {
path string
id int
source string
contents List<Node>
}
NamespaceDef struct #RefType {
unit CodeUnit
name Token
typeParams TypeParams
kindToken Token
attributes List<Attribute>
badTokens List<Token>
openBrace Token
contents List<Node>
closeBrace Token
// Non-AST
kind NamespaceKind
ns Namespace
}
NamespaceKind enum {
default_
struct_
enum_
taggedPointerEnum
}
TypeParams struct #RefType {
openAngleBracket Token
params List<Token>
contents List<Token>
closeAngleBracket Token
}
Attribute struct #RefType {
hash Token
name Token
openParen Token
args List<Node>
contents List<Node>
closeParen Token
}
FunctionDef struct #RefType {
unit CodeUnit
name Token
typeParams TypeParams
openParen Token
params List<Param>
paramContents List<Node>
closeParen Token
returnType Node
attributes List<Attribute>
badTokens List<Token>
body BlockStatement
// Non-AST
ns Namespace
flags FunctionFlags
typeParamList List<Namespace>
foreignName string
callingConvention string
returnTag Tag
builtin BuiltinFunction
tas CustomSet<Array<Tag>>
outgoingCalls List<Call>
typeUsages Set<Tag>
infoMap Map<Node, NodeInfo>
marshalReturnType string
}
Call struct #RefType {
from FunctionDef
to FunctionDef
ta Array<Tag>
}
FunctionFlags enum #Flags {
returnsValue
foreign
isDeterminingReturnType
hasFinalReturnType
requireExplicitReturnType
marshalReturnType
varArgs
callingConvention
}
BuiltinFunction enum {
none
abandon
assert
checked_cast
cast
pointer_cast
transmute
is
as
format
min
max
xor
sizeof
compute_hash
default_value
unchecked_index
get_argc_argv
}
Param struct #RefType {
name Token
type Node
attributes List<Attribute>
// Non-AST
tag Tag
flags ParamFlags
marshalType string
}
ParamFlags enum #Flags {
marshalType
}
FieldDef struct #RefType {
unit CodeUnit
name Token
type Node
// Non-AST
ns Namespace
tag Tag
}
StaticFieldDef struct #RefType {
unit CodeUnit
colon Token
name Token
type Node
attributes List<Attribute>
assign Token
initializeExpr Node
flags StaticFieldFlags
// Non-AST
ns Namespace
tag Tag
value uint
infoMap Map<Node, NodeInfo>
evaluatedValue EvalResult
foreignName string
}
StaticFieldFlags enum #Flags {
isEnumOption
autoValue
foreign
mutable
threadLocal
isChecking
hasFinalType
cycle
evaluated
}
TaggedPointerOptionDef struct #RefType {
type Node
}
TypeModifierExpression struct #RefType {
modifier Token
arg Node
}
TypeArgsExpression struct #RefType {
target Node
openAngleBracket Token
args List<Node>
contents List<Node>
closeAngleBracket Token
}
BlockStatement struct #RefType {
openBrace Token
contents List<Node>
closeBrace Token
}
ExpressionStatement struct #RefType {
expr Node
}
ReturnStatement struct #RefType {
keyword Token
expr Node
}
BreakStatement struct #RefType {
keyword Token
}
ContinueStatement struct #RefType {
keyword Token
}
IfStatement struct #RefType {
ifKeyword Token
conditionExpr Node
badTokens List<Token>
ifBranch BlockStatement
elseKeyword Token
elseBranch Node // IfStatement | BlockStatement
}
WhileStatement struct #RefType {
keyword Token
conditionExpr Node
badTokens List<Token>
body BlockStatement
}
ForEachStatement struct #RefType {
keyword Token
iteratorVariable Token
comma Token
indexIteratorVariable Token
inKeyword Token
sequenceExpr Node
badTokens List<Token>
body BlockStatement
}
ForIndexStatement struct #RefType {
keyword Token
initializeStatement ExpressionStatement
firstSemicolon Token
conditionExpr Node
secondSemicolon Token
nextStatement Node
badTokens List<Token>
body BlockStatement
}
MatchStatement struct #RefType {
keyword Token
expr Node
badTokens List<Token>
openBrace Token
cases List<MatchCase>
contents List<Node>
closeBrace Token
}
MatchCase struct #RefType {
type Node
or Token
secondType Token
colon Token
statement Node
// Non-AST
flags MatchCaseFlags
tag Tag
}
MatchCaseFlags enum #Flags {
null_
default_
}
UnaryOperatorExpression struct #RefType {
op Token
expr Node
}
PostfixUnaryOperatorExpression struct #RefType {
expr Node
op Token
}
DotExpression struct #RefType {
dot Token
lhs Node
rhs Token
}
BinaryOperatorExpression struct #RefType {
op Token
lhs Node
rhs Node
}
TernaryOperatorExpression struct #RefType {
conditionExpr Node
question Token
trueExpr Node
colon Token
falseExpr Node
}
CallExpression struct #RefType {
target Node
openParen Token
args List<Node>
contents List<Node>
closeParen Token
// Non-AST
ta Array<Tag>
}
StructInitializerExpression struct #RefType {
target Node
openBrace Token
args List<FieldInitializerExpression>
contents List<Node>
closeBrace Token
}
FieldInitializerExpression struct #RefType {
fieldName Token
colon Token
expr Node
}
IndexExpression struct #RefType {
target Node
openBracket Token
arg Node
closeBracket Token
}
ParenExpression struct #RefType {
openParen Token
expr Node
closeParen Token
}
NumberExpression struct #RefType {
token Token
valueSpan IntRange
flags NumberFlags
tag Tag
opaqueValue ulong
}
StringExpression struct #RefType {
token Token
evaluatedString string
id int
}
Token struct #RefType {
type TokenType
value string
span IntRange
outerSpan IntRange
indent int
}
TokenType enum {
identifier
numberLiteral
stringLiteral
characterLiteral
operator
openParen
closeParen
openBrace
closeBrace
openBracket
closeBracket
openAngleBracket
closeAngleBracket
comma
semicolon
colon
hash
end
invalid
}
NumberFlags enum #Flags {
intval = 1
floatval = 2
hex = 4
invalid = 8
}
| mupad | 4 | jturner/muon | compiler/ast.mu | [
"MIT"
] |
--TEST--
Enum no new through reflection
--FILE--
<?php
enum Foo {}
try {
(new \ReflectionClass(Foo::class))->newInstanceWithoutConstructor();
} catch (Error $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
Cannot instantiate enum Foo
| PHP | 3 | NathanFreeman/php-src | Zend/tests/enum/no-new-through-reflection.phpt | [
"PHP-3.01"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 o0 [[color(0)]];
};
struct main0_in
{
float2 m_2 [[user(locn1)]];
float m_3 [[user(locn1_2)]];
float m_4 [[user(locn2), flat]];
uint m_5 [[user(locn2_1)]];
uint m_6 [[user(locn2_2)]];
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
float4 v1;
v1 = float4(in.m_2.x, in.m_2.y, v1.z, v1.w);
v1.z = in.m_3;
float4 v2;
v2.x = in.m_4;
v2.y = as_type<float>(in.m_5);
v2.z = as_type<float>(in.m_6);
float4 r0;
r0.x = as_type<float>(as_type<int>(v2.y) + as_type<int>(v2.z));
out.o0.y = float(as_type<uint>(r0.x));
out.o0.x = v1.y + v2.x;
out.o0 = float4(out.o0.x, out.o0.y, v1.z, v1.x);
return out;
}
| GLSL | 3 | Alan-love/filament | third_party/spirv-cross/reference/shaders-msl/asm/frag/locations-components.asm.frag | [
"Apache-2.0"
] |
# --- VideoInput/DirectShow ---
if(NOT HAVE_DSHOW AND MSVC AND NOT MSVC_VERSION LESS 1500)
set(HAVE_DSHOW TRUE)
endif()
if(NOT HAVE_DSHOW)
check_include_file(dshow.h HAVE_DSHOW)
endif()
if(HAVE_DSHOW)
ocv_add_external_target(dshow "" "" "HAVE_DSHOW")
endif()
| CMake | 3 | xipingyan/opencv | modules/videoio/cmake/detect_dshow.cmake | [
"Apache-2.0"
] |
module UI.Curses.Type where
import Foreign.C.Types
import Foreign.Ptr (Ptr)
#include "mycurses.h"
{#pointer *WINDOW as Window newtype#}
{-
Wrapper types corresponding to typedefs on the C side,
to avoid making assumptions about what their underlying
types are (e.g., the underlying type of chtype is
user-configurable).
-}
type Attr_t = {#type attr_t #}
type Chtype_t = {#type chtype #}
type Wint_t = {#type wint_t #}
| C2hs Haskell | 4 | mirk0dex/vimus | ncursesw/src/UI/Curses/Type.chs | [
"MIT"
] |
=pod
=head1 NAME
PKCS12_PBE_keyivgen, PKCS12_PBE_keyivgen_ex,
PKCS12_pbe_crypt, PKCS12_pbe_crypt_ex - PKCS#12 Password based encryption
=head1 SYNOPSIS
#include <openssl/evp.h>
int PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
ASN1_TYPE *param, const EVP_CIPHER *cipher,
const EVP_MD *md_type, int en_de);
int PKCS12_PBE_keyivgen_ex(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
ASN1_TYPE *param, const EVP_CIPHER *cipher,
const EVP_MD *md_type, int en_de,
OSSL_LIB_CTX *libctx, const char *propq);
unsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,
const char *pass, int passlen,
const unsigned char *in, int inlen,
unsigned char **data, int *datalen,
int en_de);
unsigned char *PKCS12_pbe_crypt_ex(const X509_ALGOR *algor,
const char *pass, int passlen,
const unsigned char *in, int inlen,
unsigned char **data, int *datalen,
int en_de, OSSL_LIB_CTX *libctx,
const char *propq);
=head1 DESCRIPTION
PKCS12_PBE_keyivgen() and PKCS12_PBE_keyivgen_ex() take a password I<pass> of
length I<passlen>, parameters I<param> and a message digest function I<md_type>
and perform a key derivation according to PKCS#12. The resulting key is
then used to initialise the cipher context I<ctx> with a cipher I<cipher> for
encryption (I<en_de>=1) or decryption (I<en_de>=0).
PKCS12_PBE_keyivgen_ex() also allows the application to specify a library context
I<libctx> and property query I<propq> to select appropriate algorithm
implementations.
PKCS12_pbe_crypt() and PKCS12_pbe_crypt_ex() will encrypt or decrypt a buffer
based on the algorithm in I<algor> and password I<pass> of length I<passlen>.
The input is from I<in> of length I<inlen> and output is into a malloc'd buffer
returned in I<*data> of length I<datalen>. The operation is determined by I<en_de>,
encryption (I<en_de>=1) or decryption (I<en_de>=0).
PKCS12_pbe_crypt_ex() allows the application to specify a library context
I<libctx> and property query I<propq> to select appropriate algorithm
implementations.
I<pass> is the password used in the derivation of length I<passlen>. I<pass>
is an optional parameter and can be NULL. If I<passlen> is -1, then the
function will calculate the length of I<pass> using strlen().
I<salt> is the salt used in the derivation of length I<saltlen>. If the
I<salt> is NULL, then I<saltlen> must be 0. The function will not
attempt to calculate the length of the I<salt> because it is not assumed to
be NULL terminated.
I<iter> is the iteration count and its value should be greater than or
equal to 1. RFC 2898 suggests an iteration count of at least 1000. Any
I<iter> less than 1 is treated as a single iteration.
I<digest> is the message digest function used in the derivation.
Functions ending in _ex() take optional parameters I<libctx> and I<propq> which
are used to select appropriate algorithm implementations.
=head1 NOTES
The functions are typically used in PKCS#12 to encrypt objects.
These functions make no assumption regarding the given password.
It will simply be treated as a byte sequence.
=head1 RETURN VALUES
PKCS12_PBE_keyivgen(), PKCS12_PBE_keyivgen_ex() return 1 on success or 0 on error.
PKCS12_pbe_crypt() and PKCS12_pbe_crypt_ex() return a buffer containing the
output or NULL if an error occurred.
=head1 CONFORMING TO
IETF RFC 7292 (L<https://tools.ietf.org/html/rfc7292>)
=head1 SEE ALSO
L<EVP_PBE_CipherInit_ex(3)>,
L<PKCS8_encrypt_ex(3)>,
L<passphrase-encoding(7)>
=head1 HISTORY
PKCS12_PBE_keyivgen_ex() and PKCS12_pbe_crypt_ex() were added in OpenSSL 3.0.
=head1 COPYRIGHT
Copyright 2014-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.
=cut
| Pod | 5 | pmesnier/openssl | doc/man3/PKCS12_PBE_keyivgen.pod | [
"Apache-2.0"
] |
<h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
{{ form_row(form.variants) }}
| Twig | 1 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/ProductVariant/Generate/_form.html.twig | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { asCSSPropertyValue, asCSSUrl } from 'vs/base/browser/dom';
import { Emitter, Event } from 'vs/base/common/event';
import { getIconRegistry, IconContribution, IconFontDefinition } from 'vs/platform/theme/common/iconRegistry';
import { IProductIconTheme, IThemeService, ThemeIcon } from 'vs/platform/theme/common/themeService';
export interface IIconsStyleSheet {
getCSS(): string;
readonly onDidChange: Event<void>;
}
export function getIconsStyleSheet(themeService: IThemeService | undefined): IIconsStyleSheet {
const onDidChangeEmmiter = new Emitter<void>();
const iconRegistry = getIconRegistry();
iconRegistry.onDidChange(() => onDidChangeEmmiter.fire());
themeService?.onDidProductIconThemeChange(() => onDidChangeEmmiter.fire());
return {
onDidChange: onDidChangeEmmiter.event,
getCSS() {
const productIconTheme = themeService ? themeService.getProductIconTheme() : new UnthemedProductIconTheme();
const usedFontIds: { [id: string]: IconFontDefinition } = {};
const formatIconRule = (contribution: IconContribution): string | undefined => {
const definition = productIconTheme.getIcon(contribution);
if (!definition) {
return undefined;
}
const fontContribution = definition.font;
if (fontContribution) {
usedFontIds[fontContribution.id] = fontContribution.definition;
return `.codicon-${contribution.id}:before { content: '${definition.fontCharacter}'; font-family: ${asCSSPropertyValue(fontContribution.id)}; }`;
}
// default font (codicon)
return `.codicon-${contribution.id}:before { content: '${definition.fontCharacter}'; }`;
};
const rules = [];
for (const contribution of iconRegistry.getIcons()) {
const rule = formatIconRule(contribution);
if (rule) {
rules.push(rule);
}
}
for (const id in usedFontIds) {
const definition = usedFontIds[id];
const fontWeight = definition.weight ? `font-weight: ${definition.weight};` : '';
const fontStyle = definition.style ? `font-style: ${definition.style};` : '';
const src = definition.src.map(l => `${asCSSUrl(l.location)} format('${l.format}')`).join(', ');
rules.push(`@font-face { src: ${src}; font-family: ${asCSSPropertyValue(id)};${fontWeight}${fontStyle} font-display: block; }`);
}
return rules.join('\n');
}
};
}
export class UnthemedProductIconTheme implements IProductIconTheme {
getIcon(contribution: IconContribution) {
const iconRegistry = getIconRegistry();
let definition = contribution.defaults;
while (ThemeIcon.isThemeIcon(definition)) {
const c = iconRegistry.getIcon(definition.id);
if (!c) {
return undefined;
}
definition = c.defaults;
}
return definition;
}
}
| TypeScript | 4 | EngineLessCC/vscode | src/vs/platform/theme/browser/iconsStyleSheet.ts | [
"MIT"
] |
$TTL 300
@ IN DS 1 1 1 FFFF
IN DS 1000 13 2 AABBCCDDEEFF
| DNS Zone | 2 | hosting-de-labs/dnscontrol | pkg/js/parse_tests/027-ds/foo.com.zone | [
"MIT"
] |
#!/bin/sh
sbcl --noinform --noprint <<EOF
(ql:quickload :cl-bunny.examples)
(in-package :cl-bunny.examples)
(with-connection ()
(with-channel ()
(let ((q (queue.declare :name "task_queue" :durable t)))
(format t " [*] Waiting for messages in queue 'task_queue'. To exit press CTRL+C~%")
(qos :prefetch-count 1)
(handler-case
(progn
(subscribe q (lambda (message)
(let ((body (message-body-string message)))
(format t " [x] Received '~a'~%" body)
;; imitate some work
(sleep (count #\. body))
(message.ack message)
(format t " [x] Done~%")))
:type :sync)
(consume))
(sb-sys:interactive-interrupt ()
(sb-ext:exit))))))
EOF
| Common Lisp | 4 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | common-lisp/worker.lisp | [
"Apache-2.0"
] |
%{^
#include <avr/io.h>
#include <util/delay.h>
#include "Arduino.h"
%}
#define LOW 0x0
#define HIGH 0x1
#define INPUT 0x0
#define OUTPUT 0x1
#define LSBFIRST 0
#define MSBFIRST 1
typedef pin_t = natLt(256)
macdef LED_BUILTIN = $extval(pin_t, "LED_BUILTIN")
macdef A0 = $extval(pin_t, "A0")
abst@ype ANALOG_REFERENCE = $extype"uint8_t"
macdef DEFAULT = $extval(ANALOG_REFERENCE, "DEFAULT")
macdef INTERNAL = $extval(ANALOG_REFERENCE, "INTERNAL")
macdef EXTERNAL = $extval(ANALOG_REFERENCE, "EXTERNAL")
fun init (): void = "mac#"
fun pinMode (pin: pin_t, mode: natLt(2)): void = "mac#"
fun digitalWrite (pin: pin_t, value: natLt(2)): void = "mac#"
fun digitalRead (pin: pin_t): natLt(2) = "mac#"
fun analogReference (atype: ANALOG_REFERENCE): void = "mac#"
fun analogRead (pin: pin_t): natLt(1024) = "mac#"
fun analogWrite (pin: pin_t, value: natLt(256)): void = "mac#"
fun millis (): ulint = "mac#"
fun micros (): ulint = "mac#"
fun delay(ms: ulint): void = "mac#"
fun delayMicroseconds(us: uint): void = "mac#"
fun delay_ms (ms: double): void = "mac#_delay_ms"
fun delay_us (us: double): void = "mac#_delay_us"
fun interrupts (): void = "mac#"
fun nointerrupts (): void = "mac#"
fun random_int_1 (int): int = "mac#random"
fun random_lint_1 (lint): lint = "mac#random"
fun random_int_2 (int, int): int = "mac#random"
fun random_lint_2 (lint, lint): lint = "mac#random"
symintr random
overload random with random_int_1
overload random with random_lint_1
overload random with random_int_2
overload random with random_lint_2
fun randomSeed_int (seed: int): void = "mac#randomSeed"
fun randomSeed_uint (seed: uint): void = "mac#randomSeed"
symintr randomSeed
overload randomSeed with randomSeed_int
overload randomSeed with randomSeed_uint
fun main (): void (* Entry point for application *)
| ATS | 3 | Proclivis/arduino-ats | SATS/arduino.sats | [
"MIT"
] |
ruleset io.picolabs.oauth_server {
meta {
shares __testing, clients
}
global {
__testing = { "queries": [ { "name": "__testing" },
{ "name": "clients" } ],
"events": [ { "domain": "oauth", "type": "register",
"attrs": [ "client_id", "client_name", "redirect_uri", "client_uri","client_img","client_rids" ] },
{ "domain": "oauth", "type": "authorize",
"attrs": [ "client_id", "redirect_uri" ] } ] }
getClient = function(client_id) {
ent:clients{client_id}
}
clients = function() {
ent:clients
}
}
//
// handle route /register
//
rule oauth_register_initialize {
select when oauth register
if not ent:clients then noop()
fired {
ent:clients := {}
}
}
rule oauth_register_reminder {
select when oauth register
pre {
client_id = event:attr("client_id")
client = getClient(client_id)
}
if ent:clients >< client_id then
send_directive("ok", {
"client_id" : client_id,
"client_secret": client{"client_secret"},
"client_img": client{"client_img"}
});
fired { last }
}
rule oauth_register {
select when oauth register
pre {
client_id = event:attr("client_id")
client_secret = client_id == "oauth-client-1" => "oauth-client-secret-1"
| random:uuid()
client_name = event:attr("client_name")
redirect_uri = event:attr("redirect_uri") // callback
client_uri = event:attr("client_uri") // about page
client_img = event:attr("client_img") // logo, url to image.
client_rids = event:attr("client_rids") // about page
grant_type = "authorization_code"
scope = ""
new_client = {
"client_name": client_name,
"client_id": client_id,
"client_secret": client_secret,
"client_uri": client_uri,
"redirect_uris": [ redirect_uri ],
"client_img": client_img,
"client_rids": client_rids
}
already_registered = ent:clients >< client_id
}
if not already_registered then
send_directive("ok", {
"client_id" : client_id,
"client_secret": client_secret,
"client_img" : client_img
});
fired {
ent:clients{client_id} := new_client
}
}
//
// handle route /authorize
//
rule oauth_authorize_initialize_requests {
select when oauth authorize
if not ent:requests then noop()
fired {
ent:requests := {}
}
}
rule oauth_authorize_check_client_id {
select when oauth authorize
pre {
client_id = event:attr("client_id")
client = getClient(client_id)
}
if not client then
send_directive("error", {"error_message": "Unknown client " + client_id})
fired { last }
else { ent:client := client }
}
rule oauth_authorize_check_redirect_uri {
select when oauth authorize
pre {
redirect_uri = event:attr("redirect_uri")
}
if not (ent:client{"redirect_uris"} >< redirect_uri) then
send_directive("error", {"error_message": "Invalid redirect URI"})
fired { clear ent:client; last }
}
rule oauth_authorize_render_approve {
select when oauth authorize
pre {
reqid = random:uuid()
}
if true then
send_directive("approve", {
"client_id": ent:client{"client_id"},
"client_name": ent:client{"client_name"},
"client_img": ent:client{"client_img"},
"reqid": reqid
});
fired {
ent:requests{reqid} := event:attrs();
clear ent:client; last
}
}
//
// handle route /approve
//
rule oauth_approve_initialize {
select when oauth approve
if not ent:codes then noop()
fired { ent:codes := {} }
}
rule oauth_approve_check_query {
select when oauth approve
pre {
reqid = event:attr("reqid")
query = ent:requests{reqid}
}
if not query then
send_directive("error", {"error": "No matching authorization request"})
fired { last }
else { ent:query := query }
finally {
ent:requests{reqid} := null
}
}
rule oauth_approve_check_approval {
select when oauth approve
pre {
approved = event:attr("approve") == "Approve"
}
if not approved then
send_directive("respond", {
"error": "access_denied",
"redirect_uri": ent:query{"redirect_uri"}
});
fired { last; clear ent:query }
}
rule oauth_approve_check_response_type {
select when oauth approve
if ent:query{"response_type"} != "code" then
send_directive("respond", {
"error": "unsupported_response_type",
"redirect_uri": ent:query{"redirect_uri"}
})
fired { last; clear ent:query }
}
rule oauth_approve_supply_code {
select when oauth approve
pre {
code = random:uuid()
owner_id = event:attr("owner_id")
}
send_directive("respond", {
"code": code,
"state": ent:query{"state"},
"redirect_uri": ent:query{"redirect_uri"}
})
fired {
ent:codes{code} := { "request": ent:query, "owner_id": owner_id };
clear ent:query;
last
}
}
//
// handle route /token
//
rule oauth_token_check_client_id {
select when oauth token
pre {
client_id = event:attr("client_id")
client = getClient(client_id)
}
if not client then
send_directive("error", {"statusCode": 401, "message": "invalid_client"})
fired { last }
else { ent:client := client }
}
rule oauth_token_check_client_secret {
select when oauth token
if ent:client{"client_secret"} != event:attr("client_secret") then
send_directive("error", {"statusCode": 401, "message": "invalid_client"})
fired { last; clear ent:client }
}
rule oauth_token_check_grant_type {
select when oauth token
if event:attr("grant_type") != "authorization_code" then
send_directive("error", {"statusCode": 400, "message": "unsupported_grant_type"})
fired { last; clear ent:client }
}
rule oauth_token_check_code {
select when oauth token
pre {
code = ent:codes{event:attr("code")}
}
if not code then
send_directive("error", {"statusCode": 400, "message": "invalid_grant"})
fired { last; clear ent:client }
else { ent:code := code}
finally { ent:codes{event:attr("code")} := null }
}
rule oauth_token_check_code_client_id {
select when oauth token
if ent:code{["request","client_id"]} != ent:client{"client_id"} then
send_directive("error", {"statusCode": 400, "message": "invalid_grant"})
fired { last; clear ent:code; clear ent:client }
}
rule oauth_token_access_token {
select when oauth token
pre {
client_id = ent:client{"client_id"}
client_rids = (ent:client{"client_rids"}).split(re#;#)
owner_id = ent:code{"owner_id"}.klog("owner_id in oauth_token_access_token");
}
every {
engine:newChannel(owner_id, client_id, "oauth") setting(new_channel) //HEY !!!!! TODO this should use wrangler and not engine!!!
engine:installRuleset(owner_id,client_rids)
event:send(
{ "eci": new_channel{"id"},
"domain": "wrangler", "type": "ruleset_added",
"attrs": ({
"rids": client_rids
})
});
send_directive("ok", {"access_token": new_channel{"id"}, "token_type": "Bearer"})
}
fired {
last; clear ent:code; clear ent:client
}
}
}
| KRL | 5 | kanatcher/picos | packages/pico-engine/krl/io.picolabs.oauth_server.krl | [
"MIT"
] |
// Copyright 2010-2016 RethinkDB, all rights reserved.
#include "crypto/random.hpp"
#include <openssl/rand.h>
#include "crypto/error.hpp"
namespace crypto {
void detail::random_bytes(unsigned char *data, size_t size) {
if (RAND_bytes(data, size) != 1) {
throw openssl_error_t(ERR_get_error());
}
}
} // namespace crypto
| C++ | 4 | zadcha/rethinkdb | src/crypto/random.cc | [
"Apache-2.0"
] |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2015 Benoit Steiner <[email protected]>
// Copyright (C) 2015 Benoit Jacob <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef CXX11_SRC_FIXEDPOINT_MATMATPRODUCTNEON_H_
#define CXX11_SRC_FIXEDPOINT_MATMATPRODUCTNEON_H_
namespace Eigen {
namespace internal {
// AVX2 optimized implementation of the case where the lhs is encoded using
// signed 8bit
// integers and the rhs using unsigned 8bit integers.
#ifdef EIGEN_USE_OPTIMIZED_INT8_UINT8_MAT_MAT_PRODUCT
template <bool _ConjLhs, bool _ConjRhs>
class gebp_traits<QInt8, QUInt8, _ConjLhs, _ConjRhs> {
public:
typedef QInt8 LhsScalar;
typedef QUInt8 RhsScalar;
typedef QInt32 ResScalar;
enum {
// register block size along the M and N directions
// One for the current implementation
nr = 1,
mr = 1,
// Progress made at each iteration of the product loop
// also 1 for the current implementation
LhsProgress = 1,
RhsProgress = 1
};
};
// Mat-Mat product of a signed 8bit lhs with an unsigned 8bit rhs
template <typename Index, typename DataMapper, int mr, int nr,
bool ConjugateLhs, bool ConjugateRhs>
struct gebp_kernel<QInt8, QUInt8, Index, DataMapper, mr, nr, ConjugateLhs,
ConjugateRhs> {
EIGEN_DONT_INLINE
void operator()(const DataMapper& res, const QInt8* blockA,
const QUInt8* blockB, Index rows, Index depth, Index cols,
QInt32 alpha, Index strideA = -1, Index strideB = -1,
Index offsetA = 0, Index offsetB = 0);
};
template <typename Index, typename DataMapper, int mr, int nr,
bool ConjugateLhs, bool ConjugateRhs>
EIGEN_DONT_INLINE void gebp_kernel<QInt8, QUInt8, Index, DataMapper, mr, nr,
ConjugateLhs, ConjugateRhs>::
operator()(const DataMapper& res, const QInt8* blockA, const QUInt8* blockB,
Index rows, Index depth, Index cols, QInt32 alpha, Index strideA,
Index strideB, Index offsetA, Index offsetB) {
EIGEN_STATIC_ASSERT(!ConjugateLhs, YOU_MADE_A_PROGRAMMING_MISTAKE);
EIGEN_STATIC_ASSERT(!ConjugateRhs, YOU_MADE_A_PROGRAMMING_MISTAKE);
eigen_assert(alpha.value == 1);
eigen_assert(strideA == -1);
eigen_assert(strideB == -1);
eigen_assert(offsetA == 0);
eigen_assert(offsetB == 0);
eigen_assert(rows > 0);
eigen_assert(cols > 0);
eigen_assert(depth > 0);
eigen_assert(blockA);
eigen_assert(blockB);
for (Index j = 0; j < cols; ++j) {
Index startB = j * depth;
for (Index i = 0; i < rows; ++i) {
Index startA = i * depth;
for (Index k = 0; k < depth; ++k) {
res(i, j) += blockA[startA + k] * blockB[startB + k];
}
}
}
}
#endif
} // namespace internal
} // namespace Eigen
#endif // CXX11_SRC_FIXEDPOINT_MATMATPRODUCTNEON_H_
| C | 4 | abhaikollara/tensorflow | third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductNEON.h | [
"Apache-2.0"
] |
use BigInteger;
var a = new bigint(2);
var b = new bigint(4);
var d = new bigint();
d.pow(a, -1); // d = a^-1
writeln("2^-1 = ", d);
d.pow(a, -2); // d = a^-2
writeln("2^-2 = ", d);
d.pow(b, -1); // d = b^-1
writeln("4^-1 = ", d);
d.pow(b, -2); // d = b^-2
writeln("4^-2 = ", d);
d.pow(1, -1); // d = 1^-1
writeln("1^-1 = ", d);
d.pow(1, -2); // d = 1^-2
writeln("1^-2 = ", d);
d.pow(-1, -1); // d = -1^-1
writeln("-1^-1 = ", d);
d.pow(-1, -2); // d = -1^-2
writeln("-1^-2 = ", d);
| Chapel | 3 | jhh67/chapel | test/library/standard/GMP/powCheck.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
--- src/qt_install.pri.orig Mon Sep 13 09:25:13 2004
+++ src/qt_install.pri Mon Sep 13 09:24:40 2004
@@ -24,7 +24,7 @@
QtDocs = /Developer/Documentation/Qt
framework.path = $$QtFramework/Headers/private $$QtDocs
framework.extra = -cp -rf $$htmldocs.files $(INSTALL_ROOT)/$$QtDocs;
- framework.extra += cp -rf $$target.path/$(TARGET) $(INSTALL_ROOT)/$$QtFramework/Qt;
+ framework.extra += cp -rf $(INSTALL_ROOT)$$target.path/$(TARGET) $(INSTALL_ROOT)/$$QtFramework/Qt;
framework.extra += cp -rf $$headers.files $(INSTALL_ROOT)/$$QtFramework/Headers;
framework.extra += cp -rf $$headers_p.files $(INSTALL_ROOT)/$$QtFramework/Headers/private
INSTALLS += framework
| QMake | 2 | davidlrichmond/macports-ports | aqua/qt3-mac/files/patch-src-qt_install.pri | [
"BSD-3-Clause"
] |
<html>
<body>a dummy test layout</body>
</html> | Groovy Server Pages | 1 | moskauerst/grails-core | grails-test-suite-uber/src/test/groovy/WEB-INF/grails-app/views/layouts/test2/testAction.gsp | [
"Apache-2.0"
] |
KIDS Distribution saved on May 25, 2021@12:37:32
SAMI*18.0*11 SEQ #11 T9 (1.18.0.11-t9+i11)
**KIDS**:SAMI*18.0*11^
**INSTALL NAME**
SAMI*18.0*11
"BLD",11508,0)
SAMI*18.0*11^SAMI^0^3210525^n
"BLD",11508,1,0)
^^1^1^3210329^
"BLD",11508,1,1,0)
Critical bugs fixed in Intake, CT eval, and reports
"BLD",11508,4,0)
^9.64PA^^
"BLD",11508,6)
^11
"BLD",11508,6.3)
21
"BLD",11508,"KRN",0)
^9.67PA^1.5^25
"BLD",11508,"KRN",.4,0)
.4
"BLD",11508,"KRN",.401,0)
.401
"BLD",11508,"KRN",.402,0)
.402
"BLD",11508,"KRN",.403,0)
.403
"BLD",11508,"KRN",.5,0)
.5
"BLD",11508,"KRN",.84,0)
.84
"BLD",11508,"KRN",1.5,0)
1.5
"BLD",11508,"KRN",1.6,0)
1.6
"BLD",11508,"KRN",1.61,0)
1.61
"BLD",11508,"KRN",1.62,0)
1.62
"BLD",11508,"KRN",3.6,0)
3.6
"BLD",11508,"KRN",3.8,0)
3.8
"BLD",11508,"KRN",9.2,0)
9.2
"BLD",11508,"KRN",9.8,0)
9.8
"BLD",11508,"KRN",9.8,"NM",0)
^9.68A^14^14
"BLD",11508,"KRN",9.8,"NM",1,0)
SAMINOT1^^0^B444173065
"BLD",11508,"KRN",9.8,"NM",2,0)
SAMIUR^^0^B536135066
"BLD",11508,"KRN",9.8,"NM",3,0)
SAMINUL^^0^B102256
"BLD",11508,"KRN",9.8,"NM",4,0)
SAMICSV^^0^B60401322
"BLD",11508,"KRN",9.8,"NM",5,0)
SAMIUR2^^0^B1106323315
"BLD",11508,"KRN",9.8,"NM",6,0)
SAMIHL7^^0^B192849190
"BLD",11508,"KRN",9.8,"NM",7,0)
SAMICAS3^^0^B461797894
"BLD",11508,"KRN",9.8,"NM",8,0)
SAMISAV^^0^B121113964
"BLD",11508,"KRN",9.8,"NM",9,0)
SAMICTTA^^0^B35698365
"BLD",11508,"KRN",9.8,"NM",10,0)
SAMICTT1^^0^B122873178
"BLD",11508,"KRN",9.8,"NM",11,0)
SAMICTT0^^0^B97674764
"BLD",11508,"KRN",9.8,"NM",12,0)
SAMICTUL^^0^B103375
"BLD",11508,"KRN",9.8,"NM",13,0)
SAMICUL^^0^B135532
"BLD",11508,"KRN",9.8,"NM",14,0)
SAMICTC1^^0^B246702028
"BLD",11508,"KRN",9.8,"NM","B","SAMICAS3",7)
"BLD",11508,"KRN",9.8,"NM","B","SAMICSV",4)
"BLD",11508,"KRN",9.8,"NM","B","SAMICTC1",14)
"BLD",11508,"KRN",9.8,"NM","B","SAMICTT0",11)
"BLD",11508,"KRN",9.8,"NM","B","SAMICTT1",10)
"BLD",11508,"KRN",9.8,"NM","B","SAMICTTA",9)
"BLD",11508,"KRN",9.8,"NM","B","SAMICTUL",12)
"BLD",11508,"KRN",9.8,"NM","B","SAMICUL",13)
"BLD",11508,"KRN",9.8,"NM","B","SAMIHL7",6)
"BLD",11508,"KRN",9.8,"NM","B","SAMINOT1",1)
"BLD",11508,"KRN",9.8,"NM","B","SAMINUL",3)
"BLD",11508,"KRN",9.8,"NM","B","SAMISAV",8)
"BLD",11508,"KRN",9.8,"NM","B","SAMIUR",2)
"BLD",11508,"KRN",9.8,"NM","B","SAMIUR2",5)
"BLD",11508,"KRN",19,0)
19
"BLD",11508,"KRN",19.1,0)
19.1
"BLD",11508,"KRN",101,0)
101
"BLD",11508,"KRN",409.61,0)
409.61
"BLD",11508,"KRN",771,0)
771
"BLD",11508,"KRN",779.2,0)
779.2
"BLD",11508,"KRN",870,0)
870
"BLD",11508,"KRN",8989.51,0)
8989.51
"BLD",11508,"KRN",8989.52,0)
8989.52
"BLD",11508,"KRN",8993,0)
8993
"BLD",11508,"KRN",8994,0)
8994
"BLD",11508,"KRN","B",.4,.4)
"BLD",11508,"KRN","B",.401,.401)
"BLD",11508,"KRN","B",.402,.402)
"BLD",11508,"KRN","B",.403,.403)
"BLD",11508,"KRN","B",.5,.5)
"BLD",11508,"KRN","B",.84,.84)
"BLD",11508,"KRN","B",1.5,1.5)
"BLD",11508,"KRN","B",1.6,1.6)
"BLD",11508,"KRN","B",1.61,1.61)
"BLD",11508,"KRN","B",1.62,1.62)
"BLD",11508,"KRN","B",3.6,3.6)
"BLD",11508,"KRN","B",3.8,3.8)
"BLD",11508,"KRN","B",9.2,9.2)
"BLD",11508,"KRN","B",9.8,9.8)
"BLD",11508,"KRN","B",19,19)
"BLD",11508,"KRN","B",19.1,19.1)
"BLD",11508,"KRN","B",101,101)
"BLD",11508,"KRN","B",409.61,409.61)
"BLD",11508,"KRN","B",771,771)
"BLD",11508,"KRN","B",779.2,779.2)
"BLD",11508,"KRN","B",870,870)
"BLD",11508,"KRN","B",8989.51,8989.51)
"BLD",11508,"KRN","B",8989.52,8989.52)
"BLD",11508,"KRN","B",8993,8993)
"BLD",11508,"KRN","B",8994,8994)
"BLD",11508,"QDEF")
^^^^NO^^^^NO^^NO
"BLD",11508,"QUES",0)
^9.62^^
"BLD",11508,"REQB",0)
^9.611^10^8
"BLD",11508,"REQB",1,0)
SAMI*18.0*2^2
"BLD",11508,"REQB",2,0)
SAMI 18.0T05^2
"BLD",11508,"REQB",3,0)
SAMI*18.0*6^2
"BLD",11508,"REQB",5,0)
SAMI*18.0*8^2
"BLD",11508,"REQB",6,0)
SAMI*18.0*9^2
"BLD",11508,"REQB",7,0)
SAMI*18.0*10^2
"BLD",11508,"REQB",9,0)
SAMI*18.0*3^2
"BLD",11508,"REQB",10,0)
SAMI*18.0*4^2
"BLD",11508,"REQB","B","SAMI 18.0T05",2)
"BLD",11508,"REQB","B","SAMI*18.0*10",7)
"BLD",11508,"REQB","B","SAMI*18.0*2",1)
"BLD",11508,"REQB","B","SAMI*18.0*3",9)
"BLD",11508,"REQB","B","SAMI*18.0*4",10)
"BLD",11508,"REQB","B","SAMI*18.0*6",3)
"BLD",11508,"REQB","B","SAMI*18.0*8",5)
"BLD",11508,"REQB","B","SAMI*18.0*9",6)
"MBREQ")
0
"PKG",230,-1)
1^1
"PKG",230,0)
SAMI^SAMI^SCREENING APPLICATIONS MANAGEMENT - IELCAP
"PKG",230,22,0)
^9.49I^1^1
"PKG",230,22,1,0)
18.0^3191203
"PKG",230,22,1,"PAH",1,0)
11^3210525^66
"PKG",230,22,1,"PAH",1,1,0)
^^1^1^3210525
"PKG",230,22,1,"PAH",1,1,1,0)
Critical bugs fixed in Intake, CT eval, and reports
"QUES","XPF1",0)
Y
"QUES","XPF1","??")
^D REP^XPDH
"QUES","XPF1","A")
Shall I write over your |FLAG| File
"QUES","XPF1","B")
YES
"QUES","XPF1","M")
D XPF1^XPDIQ
"QUES","XPF2",0)
Y
"QUES","XPF2","??")
^D DTA^XPDH
"QUES","XPF2","A")
Want my data |FLAG| yours
"QUES","XPF2","B")
YES
"QUES","XPF2","M")
D XPF2^XPDIQ
"QUES","XPI1",0)
YO
"QUES","XPI1","??")
^D INHIBIT^XPDH
"QUES","XPI1","A")
Want KIDS to INHIBIT LOGONs during the install
"QUES","XPI1","B")
NO
"QUES","XPI1","M")
D XPI1^XPDIQ
"QUES","XPM1",0)
PO^VA(200,:EM
"QUES","XPM1","??")
^D MG^XPDH
"QUES","XPM1","A")
Enter the Coordinator for Mail Group '|FLAG|'
"QUES","XPM1","B")
"QUES","XPM1","M")
D XPM1^XPDIQ
"QUES","XPO1",0)
Y
"QUES","XPO1","??")
^D MENU^XPDH
"QUES","XPO1","A")
Want KIDS to Rebuild Menu Trees Upon Completion of Install
"QUES","XPO1","B")
NO
"QUES","XPO1","M")
D XPO1^XPDIQ
"QUES","XPZ1",0)
Y
"QUES","XPZ1","??")
^D OPT^XPDH
"QUES","XPZ1","A")
Want to DISABLE Scheduled Options, Menu Options, and Protocols
"QUES","XPZ1","B")
NO
"QUES","XPZ1","M")
D XPZ1^XPDIQ
"QUES","XPZ2",0)
Y
"QUES","XPZ2","??")
^D RTN^XPDH
"QUES","XPZ2","A")
Want to MOVE routines to other CPUs
"QUES","XPZ2","B")
NO
"QUES","XPZ2","M")
D XPZ2^XPDIQ
"RTN")
14
"RTN","SAMICAS3")
0^7^B461797894
"RTN","SAMICAS3",1,0)
SAMICAS3 ;ven/gpl - ielcap: case review page (cont) ;2021-05-25T14:52Z
"RTN","SAMICAS3",2,0)
;;18.0;SAMI;**3,9,11**;2020-01;Build 21
"RTN","SAMICAS3",3,0)
;;1.18.0.11+i11
"RTN","SAMICAS3",4,0)
;
"RTN","SAMICAS3",5,0)
; SAMICAS3 contains ppis and other subroutines to support processing
"RTN","SAMICAS3",6,0)
; of the VAPALS case review page.
"RTN","SAMICAS3",7,0)
;
"RTN","SAMICAS3",8,0)
quit ; no entry from top
"RTN","SAMICAS3",9,0)
;
"RTN","SAMICAS3",10,0)
;
"RTN","SAMICAS3",11,0)
;
"RTN","SAMICAS3",12,0)
;@section 0 primary development: see routine %wful
"RTN","SAMICAS3",13,0)
;
"RTN","SAMICAS3",14,0)
;
"RTN","SAMICAS3",15,0)
;
"RTN","SAMICAS3",16,0)
;@license see routine SAMIUL
"RTN","SAMICAS3",17,0)
;@documentation see SAMICUL
"RTN","SAMICAS3",18,0)
;@contents
"RTN","SAMICAS3",19,0)
; WSNFPOST post new form selection (post service)
"RTN","SAMICAS3",20,0)
; MKSBFORM create background form
"RTN","SAMICAS3",21,0)
;
"RTN","SAMICAS3",22,0)
; $$PREVNOD key of latest form including nodule grid
"RTN","SAMICAS3",23,0)
; $$LASTCMP date & key of last comparison scan
"RTN","SAMICAS3",24,0)
; $$PRIORCMP dates of all scans before last comparison scan
"RTN","SAMICAS3",25,0)
; $$KEY2DT date to put in prior scans field
"RTN","SAMICAS3",26,0)
; SORTFRMS sorts all forms for patient sid by date
"RTN","SAMICAS3",27,0)
;
"RTN","SAMICAS3",28,0)
; MKCEFORM create ct evaluation form
"RTN","SAMICAS3",29,0)
; MKFUFORM create follow-up form
"RTN","SAMICAS3",30,0)
; $$BASELNDT last previous baseline ct date
"RTN","SAMICAS3",31,0)
; MKPTFORM create pet evaluation form
"RTN","SAMICAS3",32,0)
; MKITFORM create intervention form
"RTN","SAMICAS3",33,0)
; MKBXFORM create biopsy form
"RTN","SAMICAS3",34,0)
; CASETBL generates case review table
"RTN","SAMICAS3",35,0)
;
"RTN","SAMICAS3",36,0)
;
"RTN","SAMICAS3",37,0)
;
"RTN","SAMICAS3",38,0)
;@section 1 WSNFPOST & related subroutines
"RTN","SAMICAS3",39,0)
;
"RTN","SAMICAS3",40,0)
;
"RTN","SAMICAS3",41,0)
;
"RTN","SAMICAS3",42,0)
;;@ppi WSNFPOST^SAMICAS3, post new form selection (post service)
"RTN","SAMICAS3",43,0)
WSNFPOST ; post new form selection (post service)
"RTN","SAMICAS3",44,0)
;
"RTN","SAMICAS3",45,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",46,0)
;
"RTN","SAMICAS3",47,0)
;ven/gpl;web service;procedure;
"RTN","SAMICAS3",48,0)
;@web service
"RTN","SAMICAS3",49,0)
; web service SAMICASE-wsNuFormPost
"RTN","SAMICAS3",50,0)
;@called by
"RTN","SAMICAS3",51,0)
; WSNFPOST^SAMICASE
"RTN","SAMICAS3",52,0)
;@calls
"RTN","SAMICAS3",53,0)
; parseBody^%wf
"RTN","SAMICAS3",54,0)
; GETHOME^SAMIHOM3
"RTN","SAMICAS3",55,0)
; $$KEYDATE^SAMIHOM3
"RTN","SAMICAS3",56,0)
; $$setroot^%wd
"RTN","SAMICAS3",57,0)
; $$KEY2FM^SAMICAS2
"RTN","SAMICAS3",58,0)
; $$FMADD^XLFDT
"RTN","SAMICAS3",59,0)
; WSCASE^SAMICASE
"RTN","SAMICAS3",60,0)
; MKSBFORM^SAMICAS3
"RTN","SAMICAS3",61,0)
; MKCEFORM^SAMICAS3
"RTN","SAMICAS3",62,0)
; MKFUFORM^SAMICAS3
"RTN","SAMICAS3",63,0)
; MKBXFORM^SAMICAS3
"RTN","SAMICAS3",64,0)
; MKPTFORM^SAMICAS3
"RTN","SAMICAS3",65,0)
; MKITFORM^SAMICAS3
"RTN","SAMICAS3",66,0)
; wsGetForm^%wf
"RTN","SAMICAS3",67,0)
;@input
"RTN","SAMICAS3",68,0)
; .ARGS
"RTN","SAMICAS3",69,0)
; .ARGS("form")
"RTN","SAMICAS3",70,0)
; .ARGS("studyid")
"RTN","SAMICAS3",71,0)
; .ARGS("sid")
"RTN","SAMICAS3",72,0)
; .BODY
"RTN","SAMICAS3",73,0)
; .BODY(1) (e.g. "samiroute=casereview&dfn="_dfn_"&studyid="_studyid)
"RTN","SAMICAS3",74,0)
;@output
"RTN","SAMICAS3",75,0)
; @RESULT
"RTN","SAMICAS3",76,0)
;@tests
"RTN","SAMICAS3",77,0)
; SAMIUTS2
"RTN","SAMICAS3",78,0)
;
"RTN","SAMICAS3",79,0)
;@stanza 2 get new form
"RTN","SAMICAS3",80,0)
;
"RTN","SAMICAS3",81,0)
new vars,bdy
"RTN","SAMICAS3",82,0)
set bdy=$get(BODY(1))
"RTN","SAMICAS3",83,0)
do parseBody^%wf("vars",.bdy)
"RTN","SAMICAS3",84,0)
merge vars=ARGS
"RTN","SAMICAS3",85,0)
merge ^SAMIUL("nuform","vars")=vars
"RTN","SAMICAS3",86,0)
;
"RTN","SAMICAS3",87,0)
new sid set sid=$get(vars("studyid"))
"RTN","SAMICAS3",88,0)
if sid="" set sid=$get(ARGS("sid"))
"RTN","SAMICAS3",89,0)
if sid="" do quit ;
"RTN","SAMICAS3",90,0)
. do GETHOME^SAMIHOM3(.RESULT,.ARGS) ; on error return to home page
"RTN","SAMICAS3",91,0)
. quit
"RTN","SAMICAS3",92,0)
;
"RTN","SAMICAS3",93,0)
set nuform=$get(vars("form"))
"RTN","SAMICAS3",94,0)
if nuform="" set nuform="ceform"
"RTN","SAMICAS3",95,0)
;
"RTN","SAMICAS3",96,0)
new datekey set datekey=$$KEYDATE^SAMIHOM3($$NOW^XLFDT)
"RTN","SAMICAS3",97,0)
;
"RTN","SAMICAS3",98,0)
; check to see if form already exists
"RTN","SAMICAS3",99,0)
;
"RTN","SAMICAS3",100,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",101,0)
new collide set collide=0 ; duplicate form for today - backdate forms scenario
"RTN","SAMICAS3",102,0)
if $data(@root@("graph",sid,nuform_"-"_datekey)) do ; already exists
"RTN","SAMICAS3",103,0)
. set collide=1
"RTN","SAMICAS3",104,0)
. if nuform="siform" quit
"RTN","SAMICAS3",105,0)
. if nuform="sbform" quit ; do not create multiple background forms
"RTN","SAMICAS3",106,0)
. new lastone
"RTN","SAMICAS3",107,0)
. set lastone=$order(@root@("graph",sid,nuform_"-a "),-1)
"RTN","SAMICAS3",108,0)
. quit:lastone=""
"RTN","SAMICAS3",109,0)
. set newfm=$$KEY2FM^SAMICASE(lastone)
"RTN","SAMICAS3",110,0)
. set datekey=$$KEYDATE^SAMIHOM3($$FMADD^XLFDT(newfm,1)) ; add one day to the last form
"RTN","SAMICAS3",111,0)
. quit
"RTN","SAMICAS3",112,0)
;
"RTN","SAMICAS3",113,0)
; code to not allow two same forms for a patient a day
"RTN","SAMICAS3",114,0)
;
"RTN","SAMICAS3",115,0)
if collide=1 do quit ;
"RTN","SAMICAS3",116,0)
. set ARGS("errorMessage")="Form already exists for today"
"RTN","SAMICAS3",117,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",118,0)
. do WSCASE^SAMICASE(.RESULT,.ARGS)
"RTN","SAMICAS3",119,0)
. quit
"RTN","SAMICAS3",120,0)
;
"RTN","SAMICAS3",121,0)
if nuform="sbform" do ;
"RTN","SAMICAS3",122,0)
. new oldkey set oldkey=$order(@root@("graph",sid,"sbform"))
"RTN","SAMICAS3",123,0)
. if $extract(oldkey,1,6)="sbform" do quit ;
"RTN","SAMICAS3",124,0)
. . set ARGS("key")=oldkey
"RTN","SAMICAS3",125,0)
. . set ARGS("studyid")=sid
"RTN","SAMICAS3",126,0)
. . set ARGS("form")="vapals:sbform"
"RTN","SAMICAS3",127,0)
. . quit
"RTN","SAMICAS3",128,0)
. new key set key="sbform-"_datekey
"RTN","SAMICAS3",129,0)
. set ARGS("key")=key
"RTN","SAMICAS3",130,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",131,0)
. set ARGS("form")="vapals:sbform"
"RTN","SAMICAS3",132,0)
. do MKSBFORM(sid,key)
"RTN","SAMICAS3",133,0)
. quit
"RTN","SAMICAS3",134,0)
;
"RTN","SAMICAS3",135,0)
if nuform="ceform" do ;
"RTN","SAMICAS3",136,0)
. new key set key="ceform-"_datekey
"RTN","SAMICAS3",137,0)
. set ARGS("key")=key
"RTN","SAMICAS3",138,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",139,0)
. set ARGS("form")="vapals:ceform"
"RTN","SAMICAS3",140,0)
. do MKCEFORM(sid,key)
"RTN","SAMICAS3",141,0)
. quit
"RTN","SAMICAS3",142,0)
;
"RTN","SAMICAS3",143,0)
if nuform="fuform" do ;
"RTN","SAMICAS3",144,0)
. new key set key="fuform-"_datekey
"RTN","SAMICAS3",145,0)
. set ARGS("key")=key
"RTN","SAMICAS3",146,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",147,0)
. set ARGS("form")="vapals:fuform"
"RTN","SAMICAS3",148,0)
. do MKFUFORM(sid,key)
"RTN","SAMICAS3",149,0)
. quit
"RTN","SAMICAS3",150,0)
;
"RTN","SAMICAS3",151,0)
if nuform="bxform" do ;
"RTN","SAMICAS3",152,0)
. new key set key="bxform-"_datekey
"RTN","SAMICAS3",153,0)
. set ARGS("key")=key
"RTN","SAMICAS3",154,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",155,0)
. set ARGS("form")="vapals:bxform"
"RTN","SAMICAS3",156,0)
. do MKBXFORM(sid,key)
"RTN","SAMICAS3",157,0)
. quit
"RTN","SAMICAS3",158,0)
;
"RTN","SAMICAS3",159,0)
if nuform="ptform" do ;
"RTN","SAMICAS3",160,0)
. new key set key="ptform-"_datekey
"RTN","SAMICAS3",161,0)
. set ARGS("key")=key
"RTN","SAMICAS3",162,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",163,0)
. set ARGS("form")="vapals:ptform"
"RTN","SAMICAS3",164,0)
. do MKPTFORM(sid,key)
"RTN","SAMICAS3",165,0)
. quit
"RTN","SAMICAS3",166,0)
;
"RTN","SAMICAS3",167,0)
if nuform="itform" do ;
"RTN","SAMICAS3",168,0)
. new key set key="itform-"_datekey
"RTN","SAMICAS3",169,0)
. set ARGS("key")=key
"RTN","SAMICAS3",170,0)
. set ARGS("studyid")=sid
"RTN","SAMICAS3",171,0)
. set ARGS("form")="vapals:itform"
"RTN","SAMICAS3",172,0)
. do MKITFORM(sid,key)
"RTN","SAMICAS3",173,0)
. quit
"RTN","SAMICAS3",174,0)
;
"RTN","SAMICAS3",175,0)
do wsGetForm^%wf(.RESULT,.ARGS)
"RTN","SAMICAS3",176,0)
;
"RTN","SAMICAS3",177,0)
;@stanza 3 termination
"RTN","SAMICAS3",178,0)
;
"RTN","SAMICAS3",179,0)
quit ; end of ppi WSNFPOST^SAMICAS3
"RTN","SAMICAS3",180,0)
;
"RTN","SAMICAS3",181,0)
;
"RTN","SAMICAS3",182,0)
;
"RTN","SAMICAS3",183,0)
MKSBFORM(sid,key) ; create background form
"RTN","SAMICAS3",184,0)
;
"RTN","SAMICAS3",185,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",186,0)
;
"RTN","SAMICAS3",187,0)
;ven/gpl;private;procedure;
"RTN","SAMICAS3",188,0)
;@called-by
"RTN","SAMICAS3",189,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",190,0)
;@calls
"RTN","SAMICAS3",191,0)
; $$setroot^%wd
"RTN","SAMICAS3",192,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",193,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",194,0)
;@input
"RTN","SAMICAS3",195,0)
; sid = study id
"RTN","SAMICAS3",196,0)
; key = form key, e.g. sbform-2021-05-25
"RTN","SAMICAS3",197,0)
;@output
"RTN","SAMICAS3",198,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",199,0)
;@examples [tbd]
"RTN","SAMICAS3",200,0)
;@tests [tbd]
"RTN","SAMICAS3",201,0)
;
"RTN","SAMICAS3",202,0)
;@stanza 2 create background form
"RTN","SAMICAS3",203,0)
;
"RTN","SAMICAS3",204,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",205,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",206,0)
quit:+sien=0
"RTN","SAMICAS3",207,0)
;
"RTN","SAMICAS3",208,0)
new cdate set cdate=$piece(key,"sbform-",2)
"RTN","SAMICAS3",209,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",210,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",211,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",212,0)
;
"RTN","SAMICAS3",213,0)
;@stanza 3 termination
"RTN","SAMICAS3",214,0)
;
"RTN","SAMICAS3",215,0)
quit ; end of MKSBFORM
"RTN","SAMICAS3",216,0)
;
"RTN","SAMICAS3",217,0)
;
"RTN","SAMICAS3",218,0)
;
"RTN","SAMICAS3",219,0)
PREVNOD(sid) ; key of latest form including nodule grid
"RTN","SAMICAS3",220,0)
;
"RTN","SAMICAS3",221,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",222,0)
;
"RTN","SAMICAS3",223,0)
;ven/gpl;private;function;clean;silent;sac;
"RTN","SAMICAS3",224,0)
;@called-by none [commented out in MKCEFORM,MKPTFORM,MKBXFORM]
"RTN","SAMICAS3",225,0)
;@calls
"RTN","SAMICAS3",226,0)
; SORTFRMS
"RTN","SAMICAS3",227,0)
;@input
"RTN","SAMICAS3",228,0)
; sid = study id
"RTN","SAMICAS3",229,0)
;@output = key of latest form incl nodule grid
"RTN","SAMICAS3",230,0)
;@examples [tbd]
"RTN","SAMICAS3",231,0)
;@tests [tbd]
"RTN","SAMICAS3",232,0)
;
"RTN","SAMICAS3",233,0)
; used for nodule copy
"RTN","SAMICAS3",234,0)
;
"RTN","SAMICAS3",235,0)
;
"RTN","SAMICAS3",236,0)
;@stanza 2 calculate key of latest form incl nodule grid
"RTN","SAMICAS3",237,0)
;
"RTN","SAMICAS3",238,0)
new retkey set retkey=""
"RTN","SAMICAS3",239,0)
new fary
"RTN","SAMICAS3",240,0)
do SORTFRMS(.fary,sid)
"RTN","SAMICAS3",241,0)
;
"RTN","SAMICAS3",242,0)
new tdt set tdt=""
"RTN","SAMICAS3",243,0)
for set tdt=$order(fary(tdt),-1) quit:tdt="" quit:retkey'="" do ;
"RTN","SAMICAS3",244,0)
. new tmpkey set tmpkey=""
"RTN","SAMICAS3",245,0)
. for set tmpkey=$order(fary(tdt,tmpkey)) quit:tmpkey="" quit:retkey'="" do ;
"RTN","SAMICAS3",246,0)
. . if tmpkey["ceform" set retkey=tmpkey
"RTN","SAMICAS3",247,0)
. . if tmpkey["ptform" set retkey=tmpkey
"RTN","SAMICAS3",248,0)
. . if tmpkey["bxform" set retkey=tmpkey
"RTN","SAMICAS3",249,0)
. . quit
"RTN","SAMICAS3",250,0)
. quit
"RTN","SAMICAS3",251,0)
;
"RTN","SAMICAS3",252,0)
;
"RTN","SAMICAS3",253,0)
;@stanza 3 termination
"RTN","SAMICAS3",254,0)
;
"RTN","SAMICAS3",255,0)
quit retkey ; end of $$PREVNOD
"RTN","SAMICAS3",256,0)
;
"RTN","SAMICAS3",257,0)
;
"RTN","SAMICAS3",258,0)
;
"RTN","SAMICAS3",259,0)
LASTCMP(sid,retkey) ; date & key of last comparison scan
"RTN","SAMICAS3",260,0)
;
"RTN","SAMICAS3",261,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",262,0)
;
"RTN","SAMICAS3",263,0)
;ven/gpl;private;function;clean;silent;sac;
"RTN","SAMICAS3",264,0)
;@called-by
"RTN","SAMICAS3",265,0)
; MKCEFORM
"RTN","SAMICAS3",266,0)
; MKPTFORM
"RTN","SAMICAS3",267,0)
; MKITFORM
"RTN","SAMICAS3",268,0)
; MKBXFORM
"RTN","SAMICAS3",269,0)
;@calls
"RTN","SAMICAS3",270,0)
; SORTFRMS
"RTN","SAMICAS3",271,0)
; $$NOW^XLFDT
"RTN","SAMICAS3",272,0)
; $$KEY2FM^SAMICASE
"RTN","SAMICAS3",273,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMICAS3",274,0)
;@input
"RTN","SAMICAS3",275,0)
; sid = study id
"RTN","SAMICAS3",276,0)
;@output = date of last comparison scan
"RTN","SAMICAS3",277,0)
; .retkey = key of last comparison scan
"RTN","SAMICAS3",278,0)
;@examples [tbd]
"RTN","SAMICAS3",279,0)
;@tests [tbd]
"RTN","SAMICAS3",280,0)
;
"RTN","SAMICAS3",281,0)
;
"RTN","SAMICAS3",282,0)
;@stanza 2 calculate date & key of last comparison scan
"RTN","SAMICAS3",283,0)
;
"RTN","SAMICAS3",284,0)
set retkey=""
"RTN","SAMICAS3",285,0)
new fary
"RTN","SAMICAS3",286,0)
do SORTFRMS(.fary,sid)
"RTN","SAMICAS3",287,0)
;
"RTN","SAMICAS3",288,0)
new tdt set tdt=$piece($$NOW^XLFDT,".",1)+1 ; start with today
"RTN","SAMICAS3",289,0)
for set tdt=$order(fary(tdt),-1) quit:tdt="" quit:retkey'="" do ;
"RTN","SAMICAS3",290,0)
. new tmpkey set tmpkey=""
"RTN","SAMICAS3",291,0)
. for set tmpkey=$order(fary(tdt,tmpkey)) quit:tmpkey="" quit:retkey'="" do ;
"RTN","SAMICAS3",292,0)
. . if tmpkey["ceform" set retkey=tmpkey
"RTN","SAMICAS3",293,0)
. . quit
"RTN","SAMICAS3",294,0)
. quit
"RTN","SAMICAS3",295,0)
;
"RTN","SAMICAS3",296,0)
new retdt set retdt=-1
"RTN","SAMICAS3",297,0)
if retkey'="" do ;
"RTN","SAMICAS3",298,0)
. new fmdt set fmdt=$$KEY2FM^SAMICASE(retkey)
"RTN","SAMICAS3",299,0)
. set retdt=$$VAPALSDT^SAMICASE(fmdt)
"RTN","SAMICAS3",300,0)
. quit
"RTN","SAMICAS3",301,0)
;
"RTN","SAMICAS3",302,0)
;
"RTN","SAMICAS3",303,0)
;@stanza 3 termination
"RTN","SAMICAS3",304,0)
;
"RTN","SAMICAS3",305,0)
quit retdt ; end of $$LASTCMP
"RTN","SAMICAS3",306,0)
;
"RTN","SAMICAS3",307,0)
;
"RTN","SAMICAS3",308,0)
;
"RTN","SAMICAS3",309,0)
PRIORCMP(sid) ; dates of all scans before last comparison scan
"RTN","SAMICAS3",310,0)
;
"RTN","SAMICAS3",311,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",312,0)
;
"RTN","SAMICAS3",313,0)
;ven/gpl;private;function;clean;silent;sac;
"RTN","SAMICAS3",314,0)
;@called-by
"RTN","SAMICAS3",315,0)
; MKCEFORM
"RTN","SAMICAS3",316,0)
; MKPTFORM
"RTN","SAMICAS3",317,0)
; MKITFORM
"RTN","SAMICAS3",318,0)
;@calls
"RTN","SAMICAS3",319,0)
; SORTFRMS
"RTN","SAMICAS3",320,0)
; $$NOW^XLFDT
"RTN","SAMICAS3",321,0)
; $$KEY2DT
"RTN","SAMICAS3",322,0)
;@input
"RTN","SAMICAS3",323,0)
; sid = study id
"RTN","SAMICAS3",324,0)
;@output = dates of all scans before last comparison scan
"RTN","SAMICAS3",325,0)
;@examples [tbd]
"RTN","SAMICAS3",326,0)
;@tests [tbd]
"RTN","SAMICAS3",327,0)
;
"RTN","SAMICAS3",328,0)
;
"RTN","SAMICAS3",329,0)
;@stanza 2 calculate dates of all scans before last comparison scan
"RTN","SAMICAS3",330,0)
;
"RTN","SAMICAS3",331,0)
new retstr set retstr=""
"RTN","SAMICAS3",332,0)
new lastcmp set lastcmp=""
"RTN","SAMICAS3",333,0)
new fary
"RTN","SAMICAS3",334,0)
do SORTFRMS(.fary,sid)
"RTN","SAMICAS3",335,0)
;
"RTN","SAMICAS3",336,0)
new tdt set tdt=$piece($$NOW^XLFDT,".",1)+1 ; start with today
"RTN","SAMICAS3",337,0)
for set tdt=$order(fary(tdt),-1) quit:tdt="" do ;
"RTN","SAMICAS3",338,0)
. ;
"RTN","SAMICAS3",339,0)
. if lastcmp="" do ; first find the last comparison scan
"RTN","SAMICAS3",340,0)
. . new tmpkey set tmpkey=""
"RTN","SAMICAS3",341,0)
. . for set tmpkey=$order(fary(tdt,tmpkey)) quit:tmpkey="" quit:lastcmp'="" do ;
"RTN","SAMICAS3",342,0)
. . . if tmpkey["ceform" set lastcmp=tmpkey
"RTN","SAMICAS3",343,0)
. . . quit
"RTN","SAMICAS3",344,0)
. . quit
"RTN","SAMICAS3",345,0)
. ;
"RTN","SAMICAS3",346,0)
. do ;
"RTN","SAMICAS3",347,0)
. . ; next add all previous scans to retstr
"RTN","SAMICAS3",348,0)
. . new tmpkey2 set tmpkey2=""
"RTN","SAMICAS3",349,0)
. . for set tmpkey2=$order(fary(tdt,tmpkey2)) quit:tmpkey2="" do ;
"RTN","SAMICAS3",350,0)
. . . if tmpkey2["ceform" do ; convert to external date
"RTN","SAMICAS3",351,0)
. . . . set retstr=$$KEY2DT(tmpkey2)_retstr
"RTN","SAMICAS3",352,0)
. . . . quit
"RTN","SAMICAS3",353,0)
. . . quit
"RTN","SAMICAS3",354,0)
. . quit
"RTN","SAMICAS3",355,0)
. quit
"RTN","SAMICAS3",356,0)
;
"RTN","SAMICAS3",357,0)
if $extract(retstr,$length(retstr))="," do
"RTN","SAMICAS3",358,0)
. set retstr=$extract(retstr,1,$length(retstr)-1)
"RTN","SAMICAS3",359,0)
. quit
"RTN","SAMICAS3",360,0)
;
"RTN","SAMICAS3",361,0)
;
"RTN","SAMICAS3",362,0)
;@stanza 3 termination
"RTN","SAMICAS3",363,0)
;
"RTN","SAMICAS3",364,0)
quit retstr ; end of $$PRIORCMP
"RTN","SAMICAS3",365,0)
;
"RTN","SAMICAS3",366,0)
;
"RTN","SAMICAS3",367,0)
;
"RTN","SAMICAS3",368,0)
KEY2DT(key) ; date to put in prior scans field
"RTN","SAMICAS3",369,0)
;
"RTN","SAMICAS3",370,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",371,0)
;
"RTN","SAMICAS3",372,0)
;ven/gpl;private;function;clean;silent;sac;
"RTN","SAMICAS3",373,0)
;@called-by
"RTN","SAMICAS3",374,0)
; $$PRIORCMP
"RTN","SAMICAS3",375,0)
;@calls
"RTN","SAMICAS3",376,0)
; $$KEY2FM^SAMICASE
"RTN","SAMICAS3",377,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMICAS3",378,0)
;@input
"RTN","SAMICAS3",379,0)
; key = form key, e.g. ctform-2021-05-25
"RTN","SAMICAS3",380,0)
;@output = date to put in prior scans field
"RTN","SAMICAS3",381,0)
;@examples [tbd]
"RTN","SAMICAS3",382,0)
;@tests [tbd]
"RTN","SAMICAS3",383,0)
;
"RTN","SAMICAS3",384,0)
;
"RTN","SAMICAS3",385,0)
;@stanza 2 calculate prior scans date
"RTN","SAMICAS3",386,0)
;
"RTN","SAMICAS3",387,0)
new retstr2 set retstr2=""
"RTN","SAMICAS3",388,0)
new fmdt set fmdt=$$KEY2FM^SAMICASE(tmpkey2)
"RTN","SAMICAS3",389,0)
set retstr2=$$VAPALSDT^SAMICASE(fmdt)_","_retstr2
"RTN","SAMICAS3",390,0)
;
"RTN","SAMICAS3",391,0)
;
"RTN","SAMICAS3",392,0)
;@stanza 3 termination
"RTN","SAMICAS3",393,0)
;
"RTN","SAMICAS3",394,0)
quit retstr2 ; end of $$KEY2DT
"RTN","SAMICAS3",395,0)
;
"RTN","SAMICAS3",396,0)
;
"RTN","SAMICAS3",397,0)
;
"RTN","SAMICAS3",398,0)
SORTFRMS(ARY,sid) ; sorts all forms for patient sid by date
"RTN","SAMICAS3",399,0)
;
"RTN","SAMICAS3",400,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",401,0)
;
"RTN","SAMICAS3",402,0)
;ven/gpl;private;procedure;clean;silent;sac;
"RTN","SAMICAS3",403,0)
;@called-by
"RTN","SAMICAS3",404,0)
; $$PREVNOD
"RTN","SAMICAS3",405,0)
; $$LASTCMP
"RTN","SAMICAS3",406,0)
; $$PRIORCMP
"RTN","SAMICAS3",407,0)
;@calls
"RTN","SAMICAS3",408,0)
; $$setroot^%wd
"RTN","SAMICAS3",409,0)
; ^%DT
"RTN","SAMICAS3",410,0)
; ^%ZTER
"RTN","SAMICAS3",411,0)
;@input
"RTN","SAMICAS3",412,0)
; sid = study id
"RTN","SAMICAS3",413,0)
;@output
"RTN","SAMICAS3",414,0)
; .ARY: sorted array of all forms for patient by date
"RTN","SAMICAS3",415,0)
; ARY(fmdate,key)=""
"RTN","SAMICAS3",416,0)
;@examples [tbd]
"RTN","SAMICAS3",417,0)
;@tests [tbd]
"RTN","SAMICAS3",418,0)
;
"RTN","SAMICAS3",419,0)
;
"RTN","SAMICAS3",420,0)
;@stanza 2 sort patient's forms by date
"RTN","SAMICAS3",421,0)
;
"RTN","SAMICAS3",422,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",423,0)
quit:'$data(@root@("graph",sid))
"RTN","SAMICAS3",424,0)
new froot set froot=$name(@root@("graph",sid))
"RTN","SAMICAS3",425,0)
;
"RTN","SAMICAS3",426,0)
new zi set zi=""
"RTN","SAMICAS3",427,0)
for set zi=$order(@froot@(zi)) quit:zi="" do ;
"RTN","SAMICAS3",428,0)
. new ftype set ftype=$piece(zi,"-",1)
"RTN","SAMICAS3",429,0)
. new fdate set fdate=$piece(zi,ftype_"-",2)
"RTN","SAMICAS3",430,0)
. new X,Y
"RTN","SAMICAS3",431,0)
. set X=fdate
"RTN","SAMICAS3",432,0)
. do ^%DT
"RTN","SAMICAS3",433,0)
. if Y=-1 do ^%ZTER quit ;
"RTN","SAMICAS3",434,0)
. set ARY(Y,zi)=""
"RTN","SAMICAS3",435,0)
. quit
"RTN","SAMICAS3",436,0)
;
"RTN","SAMICAS3",437,0)
;
"RTN","SAMICAS3",438,0)
;@stanza 3 termination
"RTN","SAMICAS3",439,0)
;
"RTN","SAMICAS3",440,0)
quit ; end of SORTFRMS
"RTN","SAMICAS3",441,0)
;
"RTN","SAMICAS3",442,0)
;
"RTN","SAMICAS3",443,0)
;
"RTN","SAMICAS3",444,0)
MKCEFORM(sid,key) ; create ct evaluation form
"RTN","SAMICAS3",445,0)
;
"RTN","SAMICAS3",446,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",447,0)
;
"RTN","SAMICAS3",448,0)
;ven/gpl;private;procedure;clean;silent;sac;
"RTN","SAMICAS3",449,0)
;@called-by
"RTN","SAMICAS3",450,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",451,0)
;@calls
"RTN","SAMICAS3",452,0)
; $$setroot^%wd
"RTN","SAMICAS3",453,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",454,0)
; $$LASTCMP
"RTN","SAMICAS3",455,0)
; CTCOPY^SAMICTC1
"RTN","SAMICAS3",456,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",457,0)
; $$BASELNDT^SAMICAS3
"RTN","SAMICAS3",458,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMICAS3",459,0)
; $$LASTCMP^SAMICAS3
"RTN","SAMICAS3",460,0)
; $$PRIORCMP^SAMICAS3
"RTN","SAMICAS3",461,0)
;@input
"RTN","SAMICAS3",462,0)
; sid = study id
"RTN","SAMICAS3",463,0)
; key = form key, e.g. ceform-2021-05-25
"RTN","SAMICAS3",464,0)
;@output
"RTN","SAMICAS3",465,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",466,0)
;@examples [tbd]
"RTN","SAMICAS3",467,0)
;@tests [tbd]
"RTN","SAMICAS3",468,0)
;
"RTN","SAMICAS3",469,0)
;
"RTN","SAMICAS3",470,0)
;@stanza 2 create ct eval form
"RTN","SAMICAS3",471,0)
;
"RTN","SAMICAS3",472,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",473,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",474,0)
quit:+sien=0
"RTN","SAMICAS3",475,0)
new cdate set cdate=$piece(key,"ceform-",2)
"RTN","SAMICAS3",476,0)
;
"RTN","SAMICAS3",477,0)
; nodule copy
"RTN","SAMICAS3",478,0)
; new srckey set srckey=$$PREVNOD(sid)
"RTN","SAMICAS3",479,0)
new srckey,srcdate set srcdate=$$LASTCMP(sid,.srckey)
"RTN","SAMICAS3",480,0)
if srckey'="" do ;
"RTN","SAMICAS3",481,0)
. new target,source
"RTN","SAMICAS3",482,0)
. set source=$name(@root@("graph",sid,srckey))
"RTN","SAMICAS3",483,0)
. set target=$name(@root@("graph",sid,key))
"RTN","SAMICAS3",484,0)
. do CTCOPY^SAMICTC1(source,target,key)
"RTN","SAMICAS3",485,0)
. quit
"RTN","SAMICAS3",486,0)
; end nodule copy
"RTN","SAMICAS3",487,0)
;
"RTN","SAMICAS3",488,0)
; new items,prevct
"RTN","SAMICAS3",489,0)
; do GETITEMS^SAMICASE("items",sid)
"RTN","SAMICAS3",490,0)
; set prevct=""
"RTN","SAMICAS3",491,0)
; if $data(items("type","vapals:ceform")) do ; previous cteval exists
"RTN","SAMICAS3",492,0)
; . set prevct=$order(items("type","vapals:ceform",""),-1) ; latest ceform
"RTN","SAMICAS3",493,0)
; . quit
"RTN","SAMICAS3",494,0)
; if prevct'="" do ;
"RTN","SAMICAS3",495,0)
; . new target,source
"RTN","SAMICAS3",496,0)
; . set source=$name(@root@("graph",sid,prevct))
"RTN","SAMICAS3",497,0)
; . set target=$name(@root@("graph",sid,key))
"RTN","SAMICAS3",498,0)
; . do CTCOPY^SAMICTC1(source,target,key)
"RTN","SAMICAS3",499,0)
; . quit
"RTN","SAMICAS3",500,0)
;
"RTN","SAMICAS3",501,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",502,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",503,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",504,0)
;
"RTN","SAMICAS3",505,0)
; set baseline CT date and last comparison scan date
"RTN","SAMICAS3",506,0)
do ;
"RTN","SAMICAS3",507,0)
. new basedt
"RTN","SAMICAS3",508,0)
. set basedt=$$BASELNDT^SAMICAS3(sid)
"RTN","SAMICAS3",509,0)
. if basedt=-1 set basedt=$$VAPALSDT^SAMICASE($$NOW^XLFDT)
"RTN","SAMICAS3",510,0)
. new lastdt set lastdt=$$LASTCMP^SAMICAS3(sid)
"RTN","SAMICAS3",511,0)
. if lastdt=-1 set lastdt=basedt
"RTN","SAMICAS3",512,0)
. new priordt set priordt=$$PRIORCMP^SAMICAS3(sid)
"RTN","SAMICAS3",513,0)
. if priordt=-1 set priordt=lastdt
"RTN","SAMICAS3",514,0)
. if priordt="" set priordt=lastdt
"RTN","SAMICAS3",515,0)
. set @root@("graph",sid,key,"sidoe")=basedt
"RTN","SAMICAS3",516,0)
. set @root@("graph",sid,key,"cedcs")=lastdt
"RTN","SAMICAS3",517,0)
. set @root@("graph",sid,key,"cedps")=priordt
"RTN","SAMICAS3",518,0)
. quit
"RTN","SAMICAS3",519,0)
;
"RTN","SAMICAS3",520,0)
;
"RTN","SAMICAS3",521,0)
;@stanza 3 termination
"RTN","SAMICAS3",522,0)
;
"RTN","SAMICAS3",523,0)
quit ; end of MKCEFORM
"RTN","SAMICAS3",524,0)
;
"RTN","SAMICAS3",525,0)
;
"RTN","SAMICAS3",526,0)
;
"RTN","SAMICAS3",527,0)
MKFUFORM(sid,key) ; create Follow-up form
"RTN","SAMICAS3",528,0)
;
"RTN","SAMICAS3",529,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",530,0)
;
"RTN","SAMICAS3",531,0)
;ven/gpl;private;procedure;clean;silent;sac;
"RTN","SAMICAS3",532,0)
;@called-by
"RTN","SAMICAS3",533,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",534,0)
;@calls
"RTN","SAMICAS3",535,0)
; $$setroot^%wd
"RTN","SAMICAS3",536,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",537,0)
; $$KEY2DSPD^SAMICAS2
"RTN","SAMICAS3",538,0)
; $$BASELNDT
"RTN","SAMICAS3",539,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",540,0)
;@input
"RTN","SAMICAS3",541,0)
; sid = study id
"RTN","SAMICAS3",542,0)
; key = form key, e.g. fuform-2021-05-25
"RTN","SAMICAS3",543,0)
;@output
"RTN","SAMICAS3",544,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",545,0)
;@examples [tbd]
"RTN","SAMICAS3",546,0)
;@tests [tbd]
"RTN","SAMICAS3",547,0)
;
"RTN","SAMICAS3",548,0)
;
"RTN","SAMICAS3",549,0)
;@stanza 2 create Follow-up form
"RTN","SAMICAS3",550,0)
;
"RTN","SAMICAS3",551,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",552,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",553,0)
quit:+sien=0
"RTN","SAMICAS3",554,0)
;
"RTN","SAMICAS3",555,0)
new cdate set cdate=$piece(key,"fuform-",2)
"RTN","SAMICAS3",556,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",557,0)
;
"RTN","SAMICAS3",558,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",559,0)
set @root@("graph",sid,key,"sidof")=$$KEY2DSPD^SAMICAS2(cdate)
"RTN","SAMICAS3",560,0)
set @root@("graph",sid,key,"sidoe")=$$BASELNDT(sid)
"RTN","SAMICAS3",561,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",562,0)
;
"RTN","SAMICAS3",563,0)
;
"RTN","SAMICAS3",564,0)
;@stanza 3 termination
"RTN","SAMICAS3",565,0)
;
"RTN","SAMICAS3",566,0)
quit ; end of MKFUFORM
"RTN","SAMICAS3",567,0)
;
"RTN","SAMICAS3",568,0)
;
"RTN","SAMICAS3",569,0)
;
"RTN","SAMICAS3",570,0)
BASELNDT(sid) ; last previous baseline ct date
"RTN","SAMICAS3",571,0)
;
"RTN","SAMICAS3",572,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",573,0)
;
"RTN","SAMICAS3",574,0)
;ven/gpl;private;function;clean;silent;sac
"RTN","SAMICAS3",575,0)
;@called-by
"RTN","SAMICAS3",576,0)
; MKCEFORM
"RTN","SAMICAS3",577,0)
; MKFUFORM
"RTN","SAMICAS3",578,0)
; MKPTFORM
"RTN","SAMICAS3",579,0)
; MKITFORM
"RTN","SAMICAS3",580,0)
;@calls
"RTN","SAMICAS3",581,0)
; $$setroot^%wd
"RTN","SAMICAS3",582,0)
; GETITEMS^SAMICASE
"RTN","SAMICAS3",583,0)
; $$KEY2DSPD^SAMICAS2
"RTN","SAMICAS3",584,0)
;@input
"RTN","SAMICAS3",585,0)
; sid = study id
"RTN","SAMICAS3",586,0)
;@output = last previous baseline ct date
"RTN","SAMICAS3",587,0)
;@examples [tbd]
"RTN","SAMICAS3",588,0)
;@tests [tbd]
"RTN","SAMICAS3",589,0)
;
"RTN","SAMICAS3",590,0)
;
"RTN","SAMICAS3",591,0)
;@stanza 2 calculate last previous baseline ct date
"RTN","SAMICAS3",592,0)
;
"RTN","SAMICAS3",593,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",594,0)
new groot set groot=$name(@root@("graph",sid))
"RTN","SAMICAS3",595,0)
new items set items=""
"RTN","SAMICAS3",596,0)
do GETITEMS^SAMICASE("items",sid)
"RTN","SAMICAS3",597,0)
quit:'$data(items) ""
"RTN","SAMICAS3",598,0)
;
"RTN","SAMICAS3",599,0)
new bdate set bdate=""
"RTN","SAMICAS3",600,0)
new bkey set bkey=""
"RTN","SAMICAS3",601,0)
new done set done=0
"RTN","SAMICAS3",602,0)
for set bkey=$order(items("type","vapals:ceform",bkey)) quit:bkey="" do ;
"RTN","SAMICAS3",603,0)
. ; write !,bkey," ",$get(@groot@(bkey,"cetex"))
"RTN","SAMICAS3",604,0)
. if $get(@groot@(bkey,"cetex"))="b" do ;
"RTN","SAMICAS3",605,0)
. . set done=1
"RTN","SAMICAS3",606,0)
. . set bdate=$piece(bkey,"ceform-",2)
"RTN","SAMICAS3",607,0)
. . quit
"RTN","SAMICAS3",608,0)
. quit
"RTN","SAMICAS3",609,0)
set bdate=$$KEY2DSPD^SAMICAS2(bdate)
"RTN","SAMICAS3",610,0)
;
"RTN","SAMICAS3",611,0)
;
"RTN","SAMICAS3",612,0)
;@stanza 3 termination
"RTN","SAMICAS3",613,0)
;
"RTN","SAMICAS3",614,0)
quit bdate ; end of $$BASELNDT
"RTN","SAMICAS3",615,0)
;
"RTN","SAMICAS3",616,0)
;
"RTN","SAMICAS3",617,0)
;
"RTN","SAMICAS3",618,0)
MKPTFORM(sid,key) ; create pet evaluation form
"RTN","SAMICAS3",619,0)
;
"RTN","SAMICAS3",620,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",621,0)
;
"RTN","SAMICAS3",622,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICAS3",623,0)
;@called-by
"RTN","SAMICAS3",624,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",625,0)
;@calls
"RTN","SAMICAS3",626,0)
; $$setroot^%wd
"RTN","SAMICAS3",627,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",628,0)
; $$LASTCMP
"RTN","SAMICAS3",629,0)
; CTCOPY^SAMICTC1
"RTN","SAMICAS3",630,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",631,0)
; $$BASELNDT^SAMICAS3
"RTN","SAMICAS3",632,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMICAS3",633,0)
; $$LASTCMP^SAMICAS3
"RTN","SAMICAS3",634,0)
; $$PRIORCMP^SAMICAS3
"RTN","SAMICAS3",635,0)
;@input
"RTN","SAMICAS3",636,0)
; sid = study id
"RTN","SAMICAS3",637,0)
; key = form key, e.g. ptform-2021-05-25
"RTN","SAMICAS3",638,0)
;@output
"RTN","SAMICAS3",639,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",640,0)
;@examples [tbd]
"RTN","SAMICAS3",641,0)
;@tests [tbd]
"RTN","SAMICAS3",642,0)
;
"RTN","SAMICAS3",643,0)
;
"RTN","SAMICAS3",644,0)
;@stanza 2 create pet eval form
"RTN","SAMICAS3",645,0)
;
"RTN","SAMICAS3",646,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",647,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",648,0)
quit:+sien=0
"RTN","SAMICAS3",649,0)
;
"RTN","SAMICAS3",650,0)
; nodule copy
"RTN","SAMICAS3",651,0)
; new srckey set srckey=$$PREVNOD(sid)
"RTN","SAMICAS3",652,0)
new srckey,srcdate set srcdate=$$LASTCMP(sid,.srckey)
"RTN","SAMICAS3",653,0)
if srckey'="" do ;
"RTN","SAMICAS3",654,0)
. new target,source
"RTN","SAMICAS3",655,0)
. set source=$name(@root@("graph",sid,srckey))
"RTN","SAMICAS3",656,0)
. set target=$name(@root@("graph",sid,key))
"RTN","SAMICAS3",657,0)
. do CTCOPY^SAMICTC1(source,target,key)
"RTN","SAMICAS3",658,0)
. quit
"RTN","SAMICAS3",659,0)
; end nodule copy
"RTN","SAMICAS3",660,0)
;
"RTN","SAMICAS3",661,0)
new cdate set cdate=$piece(key,"ptform-",2)
"RTN","SAMICAS3",662,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",663,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",664,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",665,0)
;
"RTN","SAMICAS3",666,0)
do ;
"RTN","SAMICAS3",667,0)
. new basedt
"RTN","SAMICAS3",668,0)
. set basedt=$$BASELNDT^SAMICAS3(sid)
"RTN","SAMICAS3",669,0)
. if basedt=-1 set basedt=$$VAPALSDT^SAMICASE($$NOW^XLFDT)
"RTN","SAMICAS3",670,0)
. new lastdt set lastdt=$$LASTCMP^SAMICAS3(sid)
"RTN","SAMICAS3",671,0)
. if lastdt=-1 set lastdt=basedt
"RTN","SAMICAS3",672,0)
. new priordt set priordt=$$PRIORCMP^SAMICAS3(sid)
"RTN","SAMICAS3",673,0)
. if priordt=-1 set priordt=lastdt
"RTN","SAMICAS3",674,0)
. set @root@("graph",sid,key,"sidoe")=basedt
"RTN","SAMICAS3",675,0)
. ; set @root@("graph",sid,key,"cedcs")=lastdt
"RTN","SAMICAS3",676,0)
. set @root@("graph",sid,key,"cedos")=lastdt ; it's different than on the ce
"RTN","SAMICAS3",677,0)
. ; set @root@("graph",sid,key,"cedps")=priordt
"RTN","SAMICAS3",678,0)
. quit
"RTN","SAMICAS3",679,0)
;
"RTN","SAMICAS3",680,0)
;
"RTN","SAMICAS3",681,0)
;@stanza 3 termination
"RTN","SAMICAS3",682,0)
;
"RTN","SAMICAS3",683,0)
quit ; end of MKPTFORM
"RTN","SAMICAS3",684,0)
;
"RTN","SAMICAS3",685,0)
;
"RTN","SAMICAS3",686,0)
;
"RTN","SAMICAS3",687,0)
MKITFORM(sid,key) ; create intervention form
"RTN","SAMICAS3",688,0)
;
"RTN","SAMICAS3",689,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",690,0)
;
"RTN","SAMICAS3",691,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICAS3",692,0)
;@called-by
"RTN","SAMICAS3",693,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",694,0)
;@calls
"RTN","SAMICAS3",695,0)
; $$setroot^%wd
"RTN","SAMICAS3",696,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",697,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",698,0)
; $$BASELNDT^SAMICAS3
"RTN","SAMICAS3",699,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMICAS3",700,0)
; $$LASTCMP^SAMICAS3
"RTN","SAMICAS3",701,0)
; $$PRIORCMP^SAMICAS3
"RTN","SAMICAS3",702,0)
;@input
"RTN","SAMICAS3",703,0)
; sid = study id
"RTN","SAMICAS3",704,0)
; key = form key, e.g. itform-2021-05-25
"RTN","SAMICAS3",705,0)
;@output
"RTN","SAMICAS3",706,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",707,0)
;@examples [tbd]
"RTN","SAMICAS3",708,0)
;@tests [tbd]
"RTN","SAMICAS3",709,0)
;
"RTN","SAMICAS3",710,0)
;
"RTN","SAMICAS3",711,0)
;@stanza 2 create intervention form
"RTN","SAMICAS3",712,0)
;
"RTN","SAMICAS3",713,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",714,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",715,0)
quit:+sien=0
"RTN","SAMICAS3",716,0)
;
"RTN","SAMICAS3",717,0)
new cdate set cdate=$piece(key,"itform-",2)
"RTN","SAMICAS3",718,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",719,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",720,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",721,0)
;
"RTN","SAMICAS3",722,0)
do ;
"RTN","SAMICAS3",723,0)
. new basedt
"RTN","SAMICAS3",724,0)
. set basedt=$$BASELNDT^SAMICAS3(sid)
"RTN","SAMICAS3",725,0)
. if basedt=-1 set basedt=$$VAPALSDT^SAMICASE($$NOW^XLFDT)
"RTN","SAMICAS3",726,0)
. new lastdt set lastdt=$$LASTCMP^SAMICAS3(sid)
"RTN","SAMICAS3",727,0)
. if lastdt=-1 set lastdt=basedt
"RTN","SAMICAS3",728,0)
. new priordt set priordt=$$PRIORCMP^SAMICAS3(sid)
"RTN","SAMICAS3",729,0)
. if priordt=-1 set priordt=lastdt
"RTN","SAMICAS3",730,0)
. set @root@("graph",sid,key,"sidoe")=basedt
"RTN","SAMICAS3",731,0)
. ; set @root@("graph",sid,key,"cedcs")=lastdt
"RTN","SAMICAS3",732,0)
. set @root@("graph",sid,key,"cedos")=lastdt ; it's different than on the ce
"RTN","SAMICAS3",733,0)
. ; set @root@("graph",sid,key,"cedps")=priordt
"RTN","SAMICAS3",734,0)
. quit
"RTN","SAMICAS3",735,0)
;
"RTN","SAMICAS3",736,0)
;
"RTN","SAMICAS3",737,0)
;@stanza 3 termination
"RTN","SAMICAS3",738,0)
;
"RTN","SAMICAS3",739,0)
quit ; end of MKITFORM
"RTN","SAMICAS3",740,0)
;
"RTN","SAMICAS3",741,0)
;
"RTN","SAMICAS3",742,0)
;
"RTN","SAMICAS3",743,0)
MKBXFORM(sid,key) ; create biopsy form
"RTN","SAMICAS3",744,0)
;
"RTN","SAMICAS3",745,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",746,0)
;
"RTN","SAMICAS3",747,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICAS3",748,0)
;@called-by
"RTN","SAMICAS3",749,0)
; WSNFPOST^SAMICAS3
"RTN","SAMICAS3",750,0)
;@calls
"RTN","SAMICAS3",751,0)
; $$setroot^%wd
"RTN","SAMICAS3",752,0)
; $$SID2NUM^SAMIHOM3
"RTN","SAMICAS3",753,0)
; $$LASTCMP
"RTN","SAMICAS3",754,0)
; CTCOPY^SAMICTC1
"RTN","SAMICAS3",755,0)
; SSAMISTA^SAMICASE
"RTN","SAMICAS3",756,0)
;@input
"RTN","SAMICAS3",757,0)
; sid = study id
"RTN","SAMICAS3",758,0)
; key = form key, e.g. bxform-2021-05-25
"RTN","SAMICAS3",759,0)
;@output
"RTN","SAMICAS3",760,0)
; @root@("graph",sid,key)
"RTN","SAMICAS3",761,0)
;@examples [tbd]
"RTN","SAMICAS3",762,0)
;@tests [tbd]
"RTN","SAMICAS3",763,0)
;
"RTN","SAMICAS3",764,0)
;
"RTN","SAMICAS3",765,0)
;@stanza 2 create background form
"RTN","SAMICAS3",766,0)
;
"RTN","SAMICAS3",767,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMICAS3",768,0)
new sien set sien=$$SID2NUM^SAMIHOM3(sid)
"RTN","SAMICAS3",769,0)
quit:+sien=0
"RTN","SAMICAS3",770,0)
new cdate set cdate=$piece(key,"bxform-",2)
"RTN","SAMICAS3",771,0)
;
"RTN","SAMICAS3",772,0)
; nodule copy
"RTN","SAMICAS3",773,0)
; new srckey set srckey=$$PREVNOD(sid)
"RTN","SAMICAS3",774,0)
new srckey,srcdate set srcdate=$$LASTCMP(sid,.srckey)
"RTN","SAMICAS3",775,0)
if srckey'="" do ;
"RTN","SAMICAS3",776,0)
. new target,source
"RTN","SAMICAS3",777,0)
. set source=$name(@root@("graph",sid,srckey))
"RTN","SAMICAS3",778,0)
. set target=$name(@root@("graph",sid,key))
"RTN","SAMICAS3",779,0)
. do CTCOPY^SAMICTC1(source,target,key)
"RTN","SAMICAS3",780,0)
. quit
"RTN","SAMICAS3",781,0)
; end nodule copy
"RTN","SAMICAS3",782,0)
;
"RTN","SAMICAS3",783,0)
merge @root@("graph",sid,key)=@root@(sien)
"RTN","SAMICAS3",784,0)
set @root@("graph",sid,key,"samicreatedate")=cdate
"RTN","SAMICAS3",785,0)
do SSAMISTA^SAMICASE(sid,key,"incomplete")
"RTN","SAMICAS3",786,0)
;
"RTN","SAMICAS3",787,0)
;
"RTN","SAMICAS3",788,0)
;@stanza 3 termination
"RTN","SAMICAS3",789,0)
;
"RTN","SAMICAS3",790,0)
quit ; end of MKBXFORM
"RTN","SAMICAS3",791,0)
;
"RTN","SAMICAS3",792,0)
;
"RTN","SAMICAS3",793,0)
;
"RTN","SAMICAS3",794,0)
CASETBL(ary) ; generates case review table
"RTN","SAMICAS3",795,0)
;
"RTN","SAMICAS3",796,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICAS3",797,0)
;
"RTN","SAMICAS3",798,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICAS3",799,0)
;@called by none
"RTN","SAMICAS3",800,0)
;@calls
"RTN","SAMICAS3",801,0)
;@input
"RTN","SAMICAS3",802,0)
; ary = name of array (passed by name, will be cleared)
"RTN","SAMICAS3",803,0)
;@output
"RTN","SAMICAS3",804,0)
; @ary
"RTN","SAMICAS3",805,0)
;@tests
"RTN","SAMICAS3",806,0)
; SAMIUTS2
"RTN","SAMICAS3",807,0)
;
"RTN","SAMICAS3",808,0)
;
"RTN","SAMICAS3",809,0)
;@stanza 2 build table
"RTN","SAMICAS3",810,0)
;
"RTN","SAMICAS3",811,0)
kill @ary
"RTN","SAMICAS3",812,0)
;
"RTN","SAMICAS3",813,0)
set @ary@("siform","form")="siform"
"RTN","SAMICAS3",814,0)
set @ary@("siform","js")="subPr"
"RTN","SAMICAS3",815,0)
set @ary@("siform","name")="Intake"
"RTN","SAMICAS3",816,0)
set @ary@("siform","image")="preview.gif"
"RTN","SAMICAS3",817,0)
;
"RTN","SAMICAS3",818,0)
set @ary@("nuform","form")="nuform"
"RTN","SAMICAS3",819,0)
set @ary@("nuform","js")="subFr"
"RTN","SAMICAS3",820,0)
set @ary@("nuform","name")="New Form"
"RTN","SAMICAS3",821,0)
set @ary@("nuform","image")="nform.gif"
"RTN","SAMICAS3",822,0)
;
"RTN","SAMICAS3",823,0)
set @ary@("sched","form")="sched"
"RTN","SAMICAS3",824,0)
set @ary@("sched","js")="subSc"
"RTN","SAMICAS3",825,0)
set @ary@("sched","name")="Schedule"
"RTN","SAMICAS3",826,0)
set @ary@("sched","image")="schedule.gif"
"RTN","SAMICAS3",827,0)
;
"RTN","SAMICAS3",828,0)
set @ary@("sbform","form")="sbform"
"RTN","SAMICAS3",829,0)
set @ary@("sbform","js")="subPr"
"RTN","SAMICAS3",830,0)
set @ary@("sbform","name")="Background"
"RTN","SAMICAS3",831,0)
set @ary@("sbform","image")="preview.gif"
"RTN","SAMICAS3",832,0)
;
"RTN","SAMICAS3",833,0)
set @ary@("ceform","form")="ceform"
"RTN","SAMICAS3",834,0)
set @ary@("ceform","js")="subPr"
"RTN","SAMICAS3",835,0)
set @ary@("ceform","name")="CT Evaluation"
"RTN","SAMICAS3",836,0)
set @ary@("ceform","image")="preview.gif"
"RTN","SAMICAS3",837,0)
;
"RTN","SAMICAS3",838,0)
set @ary@("report","form")="report"
"RTN","SAMICAS3",839,0)
set @ary@("report","js")="subRp"
"RTN","SAMICAS3",840,0)
set @ary@("report","name")="Report"
"RTN","SAMICAS3",841,0)
set @ary@("report","image")="report.gif"
"RTN","SAMICAS3",842,0)
;
"RTN","SAMICAS3",843,0)
set @ary@("ptform","form")="ptform"
"RTN","SAMICAS3",844,0)
set @ary@("ptform","js")="subPr"
"RTN","SAMICAS3",845,0)
set @ary@("ptform","name")="PET Evaluation"
"RTN","SAMICAS3",846,0)
set @ary@("ptform","image")="preview.gif"
"RTN","SAMICAS3",847,0)
;
"RTN","SAMICAS3",848,0)
set @ary@("bxform","form")="bxform"
"RTN","SAMICAS3",849,0)
set @ary@("bxform","js")="subPr"
"RTN","SAMICAS3",850,0)
set @ary@("bxform","name")="Biopsy"
"RTN","SAMICAS3",851,0)
set @ary@("bxform","image")="preview.gif"
"RTN","SAMICAS3",852,0)
;
"RTN","SAMICAS3",853,0)
set @ary@("rbform","form")="rbform"
"RTN","SAMICAS3",854,0)
set @ary@("rbform","js")="subPr"
"RTN","SAMICAS3",855,0)
set @ary@("rbform","name")="Intervention"
"RTN","SAMICAS3",856,0)
set @ary@("rbform","image")="preview.gif"
"RTN","SAMICAS3",857,0)
;
"RTN","SAMICAS3",858,0)
set @ary@("ceform","form")="ceform"
"RTN","SAMICAS3",859,0)
set @ary@("ceform","js")="subPr"
"RTN","SAMICAS3",860,0)
set @ary@("ceform","name")="CT Evaluation"
"RTN","SAMICAS3",861,0)
set @ary@("ceform","image")="preview.gif"
"RTN","SAMICAS3",862,0)
;
"RTN","SAMICAS3",863,0)
;
"RTN","SAMICAS3",864,0)
;@stanza 3 termination
"RTN","SAMICAS3",865,0)
;
"RTN","SAMICAS3",866,0)
quit ; end of CASETBL
"RTN","SAMICAS3",867,0)
;
"RTN","SAMICAS3",868,0)
;
"RTN","SAMICAS3",869,0)
;
"RTN","SAMICAS3",870,0)
EOR ; end of routine SAMICAS3
"RTN","SAMICSV")
0^4^B60401322
"RTN","SAMICSV",1,0)
SAMICSV ;ven/gpl - csv export ;2021-05-21T20:47Z
"RTN","SAMICSV",2,0)
;;18.0;SAMI;**7,11**;2020-01;Build 21
"RTN","SAMICSV",3,0)
;;1.18.0.11+i11
"RTN","SAMICSV",4,0)
;
"RTN","SAMICSV",5,0)
; SAMICSV contains a direct-mode interface to produce the VAPALS-
"RTN","SAMICSV",6,0)
; ELCAP CSV export.
"RTN","SAMICSV",7,0)
;
"RTN","SAMICSV",8,0)
; allow entry from top, fallthrough to EN
"RTN","SAMICSV",9,0)
;
"RTN","SAMICSV",10,0)
;
"RTN","SAMICSV",11,0)
;
"RTN","SAMICSV",12,0)
;@section 0 primary development
"RTN","SAMICSV",13,0)
;
"RTN","SAMICSV",14,0)
;
"RTN","SAMICSV",15,0)
;
"RTN","SAMICSV",16,0)
;@routine-credits
"RTN","SAMICSV",17,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMICSV",18,0)
; [email protected]
"RTN","SAMICSV",19,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMICSV",20,0)
; http://vistaexpertise.net
"RTN","SAMICSV",21,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMICSV",22,0)
;@license see routine SAMIUL
"RTN","SAMICSV",23,0)
;
"RTN","SAMICSV",24,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMICSV",25,0)
;@application Screening Applications Management (SAM)
"RTN","SAMICSV",26,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMICSV",27,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMICSV",28,0)
;@version 1.18.0.11+i11
"RTN","SAMICSV",29,0)
;@release-date 2020-01
"RTN","SAMICSV",30,0)
;@patch-list **7,11**
"RTN","SAMICSV",31,0)
;
"RTN","SAMICSV",32,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMICSV",33,0)
; [email protected]
"RTN","SAMICSV",34,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMICSV",35,0)
; [email protected]
"RTN","SAMICSV",36,0)
;
"RTN","SAMICSV",37,0)
;@module-credits
"RTN","SAMICSV",38,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMICSV",39,0)
; (VA-PALS)
"RTN","SAMICSV",40,0)
; http://va-pals.org/
"RTN","SAMICSV",41,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMICSV",42,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMICSV",43,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMICSV",44,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMICSV",45,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMICSV",46,0)
; http://ielcap.com/
"RTN","SAMICSV",47,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMICSV",48,0)
; http://paraxialtech.com/
"RTN","SAMICSV",49,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMICSV",50,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMICSV",51,0)
;
"RTN","SAMICSV",52,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMICSV",53,0)
;
"RTN","SAMICSV",54,0)
; 2020-08-20/09-24 ven/gpl 1.18.0.7+i7 9486abb2,5ae08772,ba0bcb82,
"RTN","SAMICSV",55,0)
; 1a2a1bf6,16511893
"RTN","SAMICSV",56,0)
; SAMICSV: new routine, test build for extracting form data to csv
"RTN","SAMICSV",57,0)
; files, upgrade change site to handle patients without forms, audit
"RTN","SAMICSV",58,0)
; report, select from 7 forms for extract, fix dictionary spelling
"RTN","SAMICSV",59,0)
; for followup form, fix bug of line feeds in csv output interrupting
"RTN","SAMICSV",60,0)
; excel load.
"RTN","SAMICSV",61,0)
;
"RTN","SAMICSV",62,0)
; 2021-03-25 ven/gpl 1.18.0.11+i11 e28a34d3
"RTN","SAMICSV",63,0)
; SAMICSV: remove line feeds from variables.
"RTN","SAMICSV",64,0)
;
"RTN","SAMICSV",65,0)
; 2021-03-30 ven/toad 1.18.0.11+i11 7b14bb2
"RTN","SAMICSV",66,0)
; SAMICSV: bump version, date, patch list, create hdr comments, lt
"RTN","SAMICSV",67,0)
; refactor.
"RTN","SAMICSV",68,0)
;
"RTN","SAMICSV",69,0)
; 2021-04-15 ven/gpl 1.18.0.11+i11 f9795a5,5aa13f1
"RTN","SAMICSV",70,0)
; SAMICSV: fix double quotes in csv output, correct csv format no
"RTN","SAMICSV",71,0)
; quotes for null cells.
"RTN","SAMICSV",72,0)
;
"RTN","SAMICSV",73,0)
; 2021-05-21 ven/mcglk&toad 1.18.0.11+i11
"RTN","SAMICSV",74,0)
; SAMICSV: bump version, date.
"RTN","SAMICSV",75,0)
;
"RTN","SAMICSV",76,0)
;
"RTN","SAMICSV",77,0)
;
"RTN","SAMICSV",78,0)
;@contents
"RTN","SAMICSV",79,0)
; EN entry point to generate csv files from forms for a site
"RTN","SAMICSV",80,0)
; ONEFORM process one form for a site
"RTN","SAMICSV",81,0)
; $$FNAME filename for site/form
"RTN","SAMICSV",82,0)
; DDICT data dictionary for form
"RTN","SAMICSV",83,0)
; $$SAYFORM prompts for form
"RTN","SAMICSV",84,0)
;
"RTN","SAMICSV",85,0)
;
"RTN","SAMICSV",86,0)
;
"RTN","SAMICSV",87,0)
EN ; entry point to generate csv files from forms for a site
"RTN","SAMICSV",88,0)
;
"RTN","SAMICSV",89,0)
; first pick a site
"RTN","SAMICSV",90,0)
N X,Y,DIC,SITEIEN,SITEID
"RTN","SAMICSV",91,0)
S DIC=311.12
"RTN","SAMICSV",92,0)
S DIC(0)="AEMQ"
"RTN","SAMICSV",93,0)
D ^DIC
"RTN","SAMICSV",94,0)
I Y<1 Q ; EXIT
"RTN","SAMICSV",95,0)
S SITENUM=$P(Y,"^",2)
"RTN","SAMICSV",96,0)
S SITEID=$$SITEID^SAMISITE(SITENUM)
"RTN","SAMICSV",97,0)
Q:SITEID=""
"RTN","SAMICSV",98,0)
;
"RTN","SAMICSV",99,0)
N SAMIFORM S SAMIFORM=$$SAYFORM()
"RTN","SAMICSV",100,0)
Q:SAMIFORM=-1
"RTN","SAMICSV",101,0)
;
"RTN","SAMICSV",102,0)
; prompt for the directory
"RTN","SAMICSV",103,0)
N SAMIDIR
"RTN","SAMICSV",104,0)
D GETDIR^SAMIFDM(.SAMIDIR)
"RTN","SAMICSV",105,0)
Q:SAMIDIR=""
"RTN","SAMICSV",106,0)
;
"RTN","SAMICSV",107,0)
d ONEFORM(SITEID,SAMIFORM,SAMIDIR) ; process one form for a site
"RTN","SAMICSV",108,0)
;
"RTN","SAMICSV",109,0)
quit ; end of EN
"RTN","SAMICSV",110,0)
;
"RTN","SAMICSV",111,0)
;
"RTN","SAMICSV",112,0)
;
"RTN","SAMICSV",113,0)
ONEFORM(SITEID,SAMIFORM,SAMIDIR) ; process one form for a site
"RTN","SAMICSV",114,0)
;
"RTN","SAMICSV",115,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMICSV",116,0)
n groot s groot=$na(@root@("graph"))
"RTN","SAMICSV",117,0)
n SAMII S SAMII=SITEID
"RTN","SAMICSV",118,0)
n cnt s cnt=0
"RTN","SAMICSV",119,0)
n forms s forms=0
"RTN","SAMICSV",120,0)
;
"RTN","SAMICSV",121,0)
n SAMIOUT S SAMIOUT=$NA(^TMP("SAMICSV",$J))
"RTN","SAMICSV",122,0)
k @SAMIOUT
"RTN","SAMICSV",123,0)
;
"RTN","SAMICSV",124,0)
n DICT
"RTN","SAMICSV",125,0)
d DDICT("DICT",SAMIFORM) ; get the data dictionary for this form
"RTN","SAMICSV",126,0)
q:'$d(DICT)
"RTN","SAMICSV",127,0)
;
"RTN","SAMICSV",128,0)
N SAMIN S SAMIN=1
"RTN","SAMICSV",129,0)
N SAMIJJ s SAMIJJ=0
"RTN","SAMICSV",130,0)
N OFFSET S OFFSET=0
"RTN","SAMICSV",131,0)
I SAMIFORM="siform" d ;
"RTN","SAMICSV",132,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",133,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="saminame"
"RTN","SAMICSV",134,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",135,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="ssn"
"RTN","SAMICSV",136,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",137,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="last5"
"RTN","SAMICSV",138,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",139,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="sex"
"RTN","SAMICSV",140,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",141,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="sbdob"
"RTN","SAMICSV",142,0)
. S OFFSET=OFFSET+1
"RTN","SAMICSV",143,0)
. s $p(@SAMIOUT@(SAMIN),"|",OFFSET)="samiru"
"RTN","SAMICSV",144,0)
f s SAMIJJ=$o(DICT(SAMIJJ)) q:+SAMIJJ=0 d ;
"RTN","SAMICSV",145,0)
. s $p(@SAMIOUT@(SAMIN),"|",SAMIJJ+OFFSET)=DICT(SAMIJJ) ; csv header
"RTN","SAMICSV",146,0)
s @SAMIOUT@(SAMIN)="siteid|samistudyid|form|"_@SAMIOUT@(SAMIN)
"RTN","SAMICSV",147,0)
;S @SAMIOUT@(SAMIN)=@SAMIOUT@(SAMIN)_$C(13,10) ; carriage return line feed
"RTN","SAMICSV",148,0)
;
"RTN","SAMICSV",149,0)
f s SAMII=$o(@groot@(SAMII)) q:SAMII="" q:$e(SAMII,1,3)'[SITEID d ;
"RTN","SAMICSV",150,0)
. s cnt=cnt+1
"RTN","SAMICSV",151,0)
. w !,SAMII
"RTN","SAMICSV",152,0)
. N SAMIJ S SAMIJ=SAMIFORM
"RTN","SAMICSV",153,0)
. n done s done=0
"RTN","SAMICSV",154,0)
. f s SAMIJ=$O(@groot@(SAMII,SAMIJ)) q:SAMIJ="" q:done d ;
"RTN","SAMICSV",155,0)
. . i $e(SAMIJ,1,$l(SAMIFORM))'=SAMIFORM s done=1 q ;
"RTN","SAMICSV",156,0)
. . s forms=forms+1
"RTN","SAMICSV",157,0)
. . n jj s jj=0
"RTN","SAMICSV",158,0)
. . s SAMIN=SAMIN+1
"RTN","SAMICSV",159,0)
. . S OFFSET=0
"RTN","SAMICSV",160,0)
. . I SAMIFORM="siform" d ;
"RTN","SAMICSV",161,0)
. . . n kk s kk=$o(@root@("sid",SAMII,""))
"RTN","SAMICSV",162,0)
. . . q:kk=""
"RTN","SAMICSV",163,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",164,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"saminame"))
"RTN","SAMICSV",165,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",166,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"ssn"))
"RTN","SAMICSV",167,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",168,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"last5"))
"RTN","SAMICSV",169,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",170,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"sex"))
"RTN","SAMICSV",171,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",172,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"sbdob"))
"RTN","SAMICSV",173,0)
. . . S OFFSET=OFFSET+1
"RTN","SAMICSV",174,0)
. . . s $p(@SAMIOUT@(SAMIN),"|",OFFSET)=$g(@root@(kk,"samiru"))
"RTN","SAMICSV",175,0)
. . f s jj=$o(DICT(jj)) q:+jj=0 d ;
"RTN","SAMICSV",176,0)
. . . ;s $P(@SAMIOUT@(SAMIN),"|",OFFSET+jj)=""""_$g(@groot@(SAMII,SAMIJ,DICT(jj)))_""""
"RTN","SAMICSV",177,0)
. . . n val
"RTN","SAMICSV",178,0)
. . . ;s val=$g(@groot@(SAMII,SAMIJ,DICT(jj)))_""""
"RTN","SAMICSV",179,0)
. . . s val=$g(@groot@(SAMII,SAMIJ,DICT(jj)))
"RTN","SAMICSV",180,0)
. . . i val'="" d ;
"RTN","SAMICSV",181,0)
. . . . s val=$tr(val,$char(11))
"RTN","SAMICSV",182,0)
. . . . s val=$tr(val,$char(13))
"RTN","SAMICSV",183,0)
. . . . d findReplaceAll^%ts(.val,"""","""""")
"RTN","SAMICSV",184,0)
. . . . s val=""""_val_""""
"RTN","SAMICSV",185,0)
. . . s $P(@SAMIOUT@(SAMIN),"|",OFFSET+jj)=val
"RTN","SAMICSV",186,0)
. . S @SAMIOUT@(SAMIN)=SITEID_"|"_SAMII_"|"_SAMIJ_"|"_@SAMIOUT@(SAMIN)
"RTN","SAMICSV",187,0)
. . ;s @SAMIOUT@(SAMIN)=@SAMIOUT@(SAMIN)_$C(13,10)
"RTN","SAMICSV",188,0)
. ;b
"RTN","SAMICSV",189,0)
;ZWR @SAMIOUT@(*)
"RTN","SAMICSV",190,0)
w !,cnt_" patients, "_forms_" forms"
"RTN","SAMICSV",191,0)
n filename s filename=$$FNAME(SITEID,SAMIFORM)
"RTN","SAMICSV",192,0)
d GTF^%ZISH($na(@SAMIOUT@(1)),3,SAMIDIR,filename)
"RTN","SAMICSV",193,0)
w !,"file "_filename_" written to directory "_SAMIDIR
"RTN","SAMICSV",194,0)
;
"RTN","SAMICSV",195,0)
quit ; end of ONEFORM
"RTN","SAMICSV",196,0)
;
"RTN","SAMICSV",197,0)
;
"RTN","SAMICSV",198,0)
;
"RTN","SAMICSV",199,0)
FNAME(SITE,FORM) ; extrinsic returns the filename for the site/form
"RTN","SAMICSV",200,0)
;
"RTN","SAMICSV",201,0)
quit SITE_"-"_FORM_"-"_$$FMTHL7^XLFDT($$HTFM^XLFDT($H))_".csv" ; end of $$FNAME
"RTN","SAMICSV",202,0)
;
"RTN","SAMICSV",203,0)
;
"RTN","SAMICSV",204,0)
;
"RTN","SAMICSV",205,0)
DDICT(RTN,FORM) ; data dictionary for FORM, returned in RTN, passed by
"RTN","SAMICSV",206,0)
; name
"RTN","SAMICSV",207,0)
;
"RTN","SAMICSV",208,0)
K @RTN
"RTN","SAMICSV",209,0)
;
"RTN","SAMICSV",210,0)
N USEGR S USEGR=""
"RTN","SAMICSV",211,0)
I FORM="siform" S USEGR="form fields - intake"
"RTN","SAMICSV",212,0)
I FORM="sbform" S USEGR="form fields - background"
"RTN","SAMICSV",213,0)
I FORM="ceform" S USEGR="form fields - ct evaluation"
"RTN","SAMICSV",214,0)
I FORM="fuform" S USEGR="form fields - follow up"
"RTN","SAMICSV",215,0)
I FORM="bxform" S USEGR="form fields - biopsy"
"RTN","SAMICSV",216,0)
I FORM="itform" S USEGR="form fields - intervention"
"RTN","SAMICSV",217,0)
I FORM="ptform" S USEGR="form fields - pet evaluation"
"RTN","SAMICSV",218,0)
;
"RTN","SAMICSV",219,0)
Q:USEGR=""
"RTN","SAMICSV",220,0)
N root s root=$$setroot^%wd(USEGR)
"RTN","SAMICSV",221,0)
Q:$g(root)=""
"RTN","SAMICSV",222,0)
N II S II=0
"RTN","SAMICSV",223,0)
f s II=$o(@root@("field",II)) q:+II=0 d ;
"RTN","SAMICSV",224,0)
. s @RTN@(II)=$g(@root@("field",II,"input",1,"name"))
"RTN","SAMICSV",225,0)
;
"RTN","SAMICSV",226,0)
quit ; end of DDICT
"RTN","SAMICSV",227,0)
;
"RTN","SAMICSV",228,0)
;
"RTN","SAMICSV",229,0)
;
"RTN","SAMICSV",230,0)
;^%wd(17.040801,"B","form fields - background",437)=""
"RTN","SAMICSV",231,0)
;^%wd(17.040801,"B","form fields - biopsy",438)=""
"RTN","SAMICSV",232,0)
;^%wd(17.040801,"B","form fields - ct evaluation",439)=""
"RTN","SAMICSV",233,0)
;^%wd(17.040801,"B","form fields - follow up",440)=""
"RTN","SAMICSV",234,0)
;^%wd(17.040801,"B","form fields - follow-up",359)=""
"RTN","SAMICSV",235,0)
;^%wd(17.040801,"B","form fields - intake",491)=""
"RTN","SAMICSV",236,0)
;^%wd(17.040801,"B","form fields - intervention",442)=""
"RTN","SAMICSV",237,0)
;^%wd(17.040801,"B","form fields - pet evaluation",443)=""
"RTN","SAMICSV",238,0)
;
"RTN","SAMICSV",239,0)
;
"RTN","SAMICSV",240,0)
;
"RTN","SAMICSV",241,0)
SAYFORM() ; prompts for the form
"RTN","SAMICSV",242,0)
;
"RTN","SAMICSV",243,0)
N ZI,ZF,DIR
"RTN","SAMICSV",244,0)
S ZF(1)="siform"
"RTN","SAMICSV",245,0)
S ZF(2)="sbform"
"RTN","SAMICSV",246,0)
S ZF(3)="ceform"
"RTN","SAMICSV",247,0)
S ZF(4)="fuform"
"RTN","SAMICSV",248,0)
S ZF(5)="bxform"
"RTN","SAMICSV",249,0)
S ZF(6)="itform"
"RTN","SAMICSV",250,0)
S ZF(7)="ptform"
"RTN","SAMICSV",251,0)
K DIR
"RTN","SAMICSV",252,0)
S DIR(0)="SO^"
"RTN","SAMICSV",253,0)
F ZI=1:1:7 S DIR(0)=DIR(0)_ZI_":"_ZF(ZI)_";"
"RTN","SAMICSV",254,0)
S DIR("L")="Select form to extract:"
"RTN","SAMICSV",255,0)
S DIR("L",1)="1 Intake form (siform)"
"RTN","SAMICSV",256,0)
S DIR("L",2)="2 Background form (sbform)"
"RTN","SAMICSV",257,0)
S DIR("L",3)="3 CT Evaluation form (ceform)"
"RTN","SAMICSV",258,0)
S DIR("L",4)="4 Followup form (fuform)"
"RTN","SAMICSV",259,0)
S DIR("L",5)="5 Biopsy form (bxform)"
"RTN","SAMICSV",260,0)
S DIR("L",6)="6 Intervention form (itform)"
"RTN","SAMICSV",261,0)
S DIR("L",7)="7 Pet Evaluation form (ptform)"
"RTN","SAMICSV",262,0)
D ^DIR
"RTN","SAMICSV",263,0)
;
"RTN","SAMICSV",264,0)
Q:X="" -1
"RTN","SAMICSV",265,0)
quit ZF(X) ; end of $$SAYFORM
"RTN","SAMICSV",266,0)
;
"RTN","SAMICSV",267,0)
;
"RTN","SAMICSV",268,0)
;
"RTN","SAMICSV",269,0)
EOR ; end of routine SAMICSV
"RTN","SAMICTC1")
0^14^B246702028
"RTN","SAMICTC1",1,0)
SAMICTC1 ;ven/gpl - ceform copy ;2021-05-25T15:44Z
"RTN","SAMICTC1",2,0)
;;18.0;SAMI;**11**;2020-01;Build 21
"RTN","SAMICTC1",3,0)
;;1.18.0.11+i11
"RTN","SAMICTC1",4,0)
;
"RTN","SAMICTC1",5,0)
; SAMICTC1 & 2 selectively copy fields from a patient's most recent
"RTN","SAMICTC1",6,0)
; existing CT Evaluation Form to a brand new form when it is created.
"RTN","SAMICTC1",7,0)
; They support the Create Form feature of the Case Review Page.
"RTN","SAMICTC1",8,0)
;
"RTN","SAMICTC1",9,0)
quit ; no entry from top
"RTN","SAMICTC1",10,0)
;
"RTN","SAMICTC1",11,0)
;
"RTN","SAMICTC1",12,0)
;
"RTN","SAMICTC1",13,0)
;@section 0 primary development
"RTN","SAMICTC1",14,0)
;
"RTN","SAMICTC1",15,0)
;
"RTN","SAMICTC1",16,0)
;
"RTN","SAMICTC1",17,0)
;@license: see routine SAMIUL
"RTN","SAMICTC1",18,0)
;@documentation see SAMICTUL
"RTN","SAMICTC1",19,0)
;@contents
"RTN","SAMICTC1",20,0)
; CTCOPY copy ct eval form selectively
"RTN","SAMICTC1",21,0)
; GENCTCPY generates copy routine from graph
"RTN","SAMICTC1",22,0)
;
"RTN","SAMICTC1",23,0)
;
"RTN","SAMICTC1",24,0)
;
"RTN","SAMICTC1",25,0)
;@section 1 wsi WSREPORT & related subroutines
"RTN","SAMICTC1",26,0)
;
"RTN","SAMICTC1",27,0)
;
"RTN","SAMICTC1",28,0)
;
"RTN","SAMICTC1",29,0)
;@ppi CTCOPY^SAMICTC1
"RTN","SAMICTC1",30,0)
CTCOPY(FROM,TO,key) ; copy ct eval form selectively
"RTN","SAMICTC1",31,0)
;
"RTN","SAMICTC1",32,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICTC1",33,0)
;
"RTN","SAMICTC1",34,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICTC1",35,0)
;@called-by
"RTN","SAMICTC1",36,0)
; MKCEFORM^SAMICAS3
"RTN","SAMICTC1",37,0)
; MKPTFORM^SAMICAS3
"RTN","SAMICTC1",38,0)
; MKBXFORM^SAMICAS3
"RTN","SAMICTC1",39,0)
;@calls
"RTN","SAMICTC1",40,0)
; CTCOPY2^SAMICTC2
"RTN","SAMICTC1",41,0)
;@input
"RTN","SAMICTC1",42,0)
; FROM = existing source form array root
"RTN","SAMICTC1",43,0)
; TO = new target form array root
"RTN","SAMICTC1",44,0)
; key = form key, e.g. ceform-2021-05-25
"RTN","SAMICTC1",45,0)
;@output
"RTN","SAMICTC1",46,0)
; @TO: selected fields copied f/source form t/target form
"RTN","SAMICTC1",47,0)
;
"RTN","SAMICTC1",48,0)
;
"RTN","SAMICTC1",49,0)
;@stanza 2 copy is it new fields
"RTN","SAMICTC1",50,0)
;
"RTN","SAMICTC1",51,0)
if $get(key)="" set key="ce"
"RTN","SAMICTC1",52,0)
;
"RTN","SAMICTC1",53,0)
if key'["ce" do ; all forms except ct eval form
"RTN","SAMICTC1",54,0)
. set @TO@("cect1ch")=$get(@FROM@("cect1ch"))
"RTN","SAMICTC1",55,0)
. set @TO@("cect2ch")=$get(@FROM@("cect2ch"))
"RTN","SAMICTC1",56,0)
. set @TO@("cect3ch")=$get(@FROM@("cect3ch"))
"RTN","SAMICTC1",57,0)
. set @TO@("cect4ch")=$get(@FROM@("cect4ch"))
"RTN","SAMICTC1",58,0)
. set @TO@("cect5ch")=$get(@FROM@("cect5ch"))
"RTN","SAMICTC1",59,0)
. set @TO@("cect6ch")=$get(@FROM@("cect6ch"))
"RTN","SAMICTC1",60,0)
. set @TO@("cect7ch")=$get(@FROM@("cect7ch"))
"RTN","SAMICTC1",61,0)
. set @TO@("cect8ch")=$get(@FROM@("cect8ch"))
"RTN","SAMICTC1",62,0)
. set @TO@("cect9ch")=$get(@FROM@("cect9ch"))
"RTN","SAMICTC1",63,0)
. quit
"RTN","SAMICTC1",64,0)
;
"RTN","SAMICTC1",65,0)
else do ;
"RTN","SAMICTC1",66,0)
. new cei,isnew,savals
"RTN","SAMICTC1",67,0)
. set savals("pw")="" ; Prev seen, resolved
"RTN","SAMICTC1",68,0)
. set savals("px")="" ; Prev seen, not a nodule
"RTN","SAMICTC1",69,0)
. set savals("pr")="" ; Prev seen, resected
"RTN","SAMICTC1",70,0)
. set savals("pk")="" ; Not in outside report
"RTN","SAMICTC1",71,0)
. set savals("pv")="" ; Not included in scan
"RTN","SAMICTC1",72,0)
. for cei=1:1:9 do ;
"RTN","SAMICTC1",73,0)
. . set isnew=$get(@FROM@("cect"_cei_"ch"))
"RTN","SAMICTC1",74,0)
. . if $data(savals(isnew)) set @TO@("cect"_cei_"ch")=isnew
"RTN","SAMICTC1",75,0)
. . quit
"RTN","SAMICTC1",76,0)
. quit
"RTN","SAMICTC1",77,0)
;
"RTN","SAMICTC1",78,0)
;
"RTN","SAMICTC1",79,0)
;@stanza 3 copy most fields
"RTN","SAMICTC1",80,0)
;
"RTN","SAMICTC1",81,0)
; the following is generated from a graph - see GENCTCOPY below
"RTN","SAMICTC1",82,0)
set @TO@("ceanod")=$get(@FROM@("ceanod")) ;
"RTN","SAMICTC1",83,0)
set @TO@("cennod")=$get(@FROM@("cennod")) ;
"RTN","SAMICTC1",84,0)
;
"RTN","SAMICTC1",85,0)
set @TO@("cect1en")=$get(@FROM@("cect1en")) ; Endobronchial
"RTN","SAMICTC1",86,0)
set @TO@("cect2en")=$get(@FROM@("cect2en")) ; Endobronchial
"RTN","SAMICTC1",87,0)
set @TO@("cect3en")=$get(@FROM@("cect3en")) ; Endobronchial
"RTN","SAMICTC1",88,0)
set @TO@("cect4en")=$get(@FROM@("cect4en")) ; Endobronchial
"RTN","SAMICTC1",89,0)
set @TO@("cect5en")=$get(@FROM@("cect5en")) ; Endobronchial
"RTN","SAMICTC1",90,0)
set @TO@("cect6en")=$get(@FROM@("cect6en")) ; Endobronchial
"RTN","SAMICTC1",91,0)
set @TO@("cect7en")=$get(@FROM@("cect7en")) ; Endobronchial
"RTN","SAMICTC1",92,0)
set @TO@("cect8en")=$get(@FROM@("cect8en")) ; Endobronchial
"RTN","SAMICTC1",93,0)
set @TO@("cect9en")=$get(@FROM@("cect9en")) ; Endobronchial
"RTN","SAMICTC1",94,0)
set @TO@("cect10en")=$get(@FROM@("cect10en")) ; Endobronchial
"RTN","SAMICTC1",95,0)
;
"RTN","SAMICTC1",96,0)
set @TO@("cect1ll")=$get(@FROM@("cect1ll")) ; Most likely location
"RTN","SAMICTC1",97,0)
set @TO@("cect2ll")=$get(@FROM@("cect2ll")) ; Most likely location
"RTN","SAMICTC1",98,0)
set @TO@("cect3ll")=$get(@FROM@("cect3ll")) ; Most likely location
"RTN","SAMICTC1",99,0)
set @TO@("cect4ll")=$get(@FROM@("cect4ll")) ; Most likely location
"RTN","SAMICTC1",100,0)
set @TO@("cect5ll")=$get(@FROM@("cect5ll")) ; Most likely location
"RTN","SAMICTC1",101,0)
set @TO@("cect6ll")=$get(@FROM@("cect6ll")) ; Most likely location
"RTN","SAMICTC1",102,0)
set @TO@("cect7ll")=$get(@FROM@("cect7ll")) ; Most likely location
"RTN","SAMICTC1",103,0)
set @TO@("cect8ll")=$get(@FROM@("cect8ll")) ; Most likely location
"RTN","SAMICTC1",104,0)
set @TO@("cect9ll")=$get(@FROM@("cect9ll")) ; Most likely location
"RTN","SAMICTC1",105,0)
set @TO@("cect10ll")=$get(@FROM@("cect10ll")) ; Most likely location
"RTN","SAMICTC1",106,0)
;
"RTN","SAMICTC1",107,0)
set @TO@("cect1sn")=$get(@FROM@("cect1sn")) ; CT Series Number
"RTN","SAMICTC1",108,0)
set @TO@("cect2sn")=$get(@FROM@("cect2sn")) ; CT Series Number
"RTN","SAMICTC1",109,0)
set @TO@("cect3sn")=$get(@FROM@("cect3sn")) ; CT Series Number
"RTN","SAMICTC1",110,0)
set @TO@("cect4sn")=$get(@FROM@("cect4sn")) ; CT Series Number
"RTN","SAMICTC1",111,0)
set @TO@("cect5sn")=$get(@FROM@("cect5sn")) ; CT Series Number
"RTN","SAMICTC1",112,0)
set @TO@("cect6sn")=$get(@FROM@("cect6sn")) ; CT Series Number
"RTN","SAMICTC1",113,0)
set @TO@("cect7sn")=$get(@FROM@("cect7sn")) ; CT Series Number
"RTN","SAMICTC1",114,0)
set @TO@("cect8sn")=$get(@FROM@("cect8sn")) ; CT Series Number
"RTN","SAMICTC1",115,0)
set @TO@("cect9sn")=$get(@FROM@("cect9sn")) ; CT Series Number
"RTN","SAMICTC1",116,0)
set @TO@("cect10sn")=$get(@FROM@("cect10sn")) ; CT Series Number
"RTN","SAMICTC1",117,0)
;
"RTN","SAMICTC1",118,0)
set @TO@("cect1inl")=$get(@FROM@("cect1inl")) ; CT Image Number (Low
"RTN","SAMICTC1",119,0)
set @TO@("cect1inh")=$get(@FROM@("cect1inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",120,0)
set @TO@("cect2inl")=$get(@FROM@("cect2inl")) ; CT Image Number (Low
"RTN","SAMICTC1",121,0)
set @TO@("cect2inh")=$get(@FROM@("cect2inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",122,0)
set @TO@("cect3inl")=$get(@FROM@("cect3inl")) ; CT Image Number (Low
"RTN","SAMICTC1",123,0)
set @TO@("cect3inh")=$get(@FROM@("cect3inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",124,0)
set @TO@("cect4inl")=$get(@FROM@("cect4inl")) ; CT Image Number (Low
"RTN","SAMICTC1",125,0)
set @TO@("cect4inh")=$get(@FROM@("cect4inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",126,0)
set @TO@("cect5inl")=$get(@FROM@("cect5inl")) ; CT Image Number (Low
"RTN","SAMICTC1",127,0)
set @TO@("cect5inh")=$get(@FROM@("cect5inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",128,0)
set @TO@("cect6inl")=$get(@FROM@("cect6inl")) ; CT Image Number (Low
"RTN","SAMICTC1",129,0)
set @TO@("cect6inh")=$get(@FROM@("cect6inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",130,0)
set @TO@("cect7inl")=$get(@FROM@("cect7inl")) ; CT Image Number (Low
"RTN","SAMICTC1",131,0)
set @TO@("cect7inh")=$get(@FROM@("cect7inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",132,0)
set @TO@("cect8inl")=$get(@FROM@("cect8inl")) ; CT Image Number (Low
"RTN","SAMICTC1",133,0)
set @TO@("cect8inh")=$get(@FROM@("cect8inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",134,0)
set @TO@("cect9inl")=$get(@FROM@("cect9inl")) ; CT Image Number (Low
"RTN","SAMICTC1",135,0)
set @TO@("cect9inh")=$get(@FROM@("cect9inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",136,0)
set @TO@("cect10inl")=$get(@FROM@("cect10inl")) ; CT Image Number (Low
"RTN","SAMICTC1",137,0)
set @TO@("cect10inh")=$get(@FROM@("cect10inh")) ; CT Image Number (Hig
"RTN","SAMICTC1",138,0)
;
"RTN","SAMICTC1",139,0)
set @TO@("cect1st")=$get(@FROM@("cect1st")) ; Nodule status
"RTN","SAMICTC1",140,0)
set @TO@("cect2st")=$get(@FROM@("cect2st")) ; Nodule status
"RTN","SAMICTC1",141,0)
set @TO@("cect3st")=$get(@FROM@("cect3st")) ; Nodule status
"RTN","SAMICTC1",142,0)
set @TO@("cect4st")=$get(@FROM@("cect4st")) ; Nodule status
"RTN","SAMICTC1",143,0)
set @TO@("cect5st")=$get(@FROM@("cect5st")) ; Nodule status
"RTN","SAMICTC1",144,0)
set @TO@("cect6st")=$get(@FROM@("cect6st")) ; Nodule status
"RTN","SAMICTC1",145,0)
set @TO@("cect7st")=$get(@FROM@("cect7st")) ; Nodule status
"RTN","SAMICTC1",146,0)
set @TO@("cect8st")=$get(@FROM@("cect8st")) ; Nodule status
"RTN","SAMICTC1",147,0)
set @TO@("cect9st")=$get(@FROM@("cect9st")) ; Nodule status
"RTN","SAMICTC1",148,0)
set @TO@("cect10st")=$get(@FROM@("cect10st")) ; Nodule status
"RTN","SAMICTC1",149,0)
;
"RTN","SAMICTC1",150,0)
set @TO@("cect1nt")=$get(@FROM@("cect1nt")) ; Nodule Consistency
"RTN","SAMICTC1",151,0)
set @TO@("cect2nt")=$get(@FROM@("cect2nt")) ; Nodule Consistency
"RTN","SAMICTC1",152,0)
set @TO@("cect3nt")=$get(@FROM@("cect3nt")) ; Nodule Consistency
"RTN","SAMICTC1",153,0)
set @TO@("cect4nt")=$get(@FROM@("cect4nt")) ; Nodule Consistency
"RTN","SAMICTC1",154,0)
set @TO@("cect5nt")=$get(@FROM@("cect5nt")) ; Nodule Consistency
"RTN","SAMICTC1",155,0)
set @TO@("cect6nt")=$get(@FROM@("cect6nt")) ; Nodule Consistency
"RTN","SAMICTC1",156,0)
set @TO@("cect7nt")=$get(@FROM@("cect7nt")) ; Nodule Consistency
"RTN","SAMICTC1",157,0)
set @TO@("cect8nt")=$get(@FROM@("cect8nt")) ; Nodule Consistency
"RTN","SAMICTC1",158,0)
set @TO@("cect9nt")=$get(@FROM@("cect9nt")) ; Nodule Consistency
"RTN","SAMICTC1",159,0)
set @TO@("cect10nt")=$get(@FROM@("cect10nt")) ; Nodule Consistency
"RTN","SAMICTC1",160,0)
;
"RTN","SAMICTC1",161,0)
set @TO@("cect1sl")=$get(@FROM@("cect1sl")) ; Length (mm)
"RTN","SAMICTC1",162,0)
set @TO@("cect2sl")=$get(@FROM@("cect2sl")) ; Length (mm)
"RTN","SAMICTC1",163,0)
set @TO@("cect3sl")=$get(@FROM@("cect3sl")) ; Length (mm)
"RTN","SAMICTC1",164,0)
set @TO@("cect4sl")=$get(@FROM@("cect4sl")) ; Length (mm)
"RTN","SAMICTC1",165,0)
set @TO@("cect5sl")=$get(@FROM@("cect5sl")) ; Length (mm)
"RTN","SAMICTC1",166,0)
set @TO@("cect6sl")=$get(@FROM@("cect6sl")) ; Length (mm)
"RTN","SAMICTC1",167,0)
set @TO@("cect7sl")=$get(@FROM@("cect7sl")) ; Length (mm)
"RTN","SAMICTC1",168,0)
set @TO@("cect8sl")=$get(@FROM@("cect8sl")) ; Length (mm)
"RTN","SAMICTC1",169,0)
set @TO@("cect9sl")=$get(@FROM@("cect9sl")) ; Length (mm)
"RTN","SAMICTC1",170,0)
set @TO@("cect10sl")=$get(@FROM@("cect10sl")) ; Length (mm)
"RTN","SAMICTC1",171,0)
;
"RTN","SAMICTC1",172,0)
set @TO@("cect1sw")=$get(@FROM@("cect1sw")) ; Maximum Width
"RTN","SAMICTC1",173,0)
set @TO@("cect2sw")=$get(@FROM@("cect2sw")) ; Maximum Width
"RTN","SAMICTC1",174,0)
set @TO@("cect3sw")=$get(@FROM@("cect3sw")) ; Maximum Width
"RTN","SAMICTC1",175,0)
set @TO@("cect4sw")=$get(@FROM@("cect4sw")) ; Maximum Width
"RTN","SAMICTC1",176,0)
set @TO@("cect5sw")=$get(@FROM@("cect5sw")) ; Maximum Width
"RTN","SAMICTC1",177,0)
set @TO@("cect6sw")=$get(@FROM@("cect6sw")) ; Maximum Width
"RTN","SAMICTC1",178,0)
set @TO@("cect7sw")=$get(@FROM@("cect7sw")) ; Maximum Width
"RTN","SAMICTC1",179,0)
set @TO@("cect8sw")=$get(@FROM@("cect8sw")) ; Maximum Width
"RTN","SAMICTC1",180,0)
set @TO@("cect9sw")=$get(@FROM@("cect9sw")) ; Maximum Width
"RTN","SAMICTC1",181,0)
set @TO@("cect10sw")=$get(@FROM@("cect10sw")) ; Maximum Width
"RTN","SAMICTC1",182,0)
;
"RTN","SAMICTC1",183,0)
set @TO@("cect1sh")=$get(@FROM@("cect1sh")) ; Height
"RTN","SAMICTC1",184,0)
set @TO@("cect2sh")=$get(@FROM@("cect2sh")) ; Height
"RTN","SAMICTC1",185,0)
set @TO@("cect3sh")=$get(@FROM@("cect3sh")) ; Height
"RTN","SAMICTC1",186,0)
set @TO@("cect4sh")=$get(@FROM@("cect4sh")) ; Height
"RTN","SAMICTC1",187,0)
set @TO@("cect5sh")=$get(@FROM@("cect5sh")) ; Height
"RTN","SAMICTC1",188,0)
set @TO@("cect6sh")=$get(@FROM@("cect6sh")) ; Height
"RTN","SAMICTC1",189,0)
set @TO@("cect7sh")=$get(@FROM@("cect7sh")) ; Height
"RTN","SAMICTC1",190,0)
set @TO@("cect8sh")=$get(@FROM@("cect8sh")) ; Height
"RTN","SAMICTC1",191,0)
set @TO@("cect9sh")=$get(@FROM@("cect9sh")) ; Height
"RTN","SAMICTC1",192,0)
set @TO@("cect10sh")=$get(@FROM@("cect10sh")) ; Height
"RTN","SAMICTC1",193,0)
;
"RTN","SAMICTC1",194,0)
set @TO@("cect1sv")=$get(@FROM@("cect1sv")) ; Volume
"RTN","SAMICTC1",195,0)
set @TO@("cect2sv")=$get(@FROM@("cect2sv")) ; Volume
"RTN","SAMICTC1",196,0)
set @TO@("cect3sv")=$get(@FROM@("cect3sv")) ; Volume
"RTN","SAMICTC1",197,0)
set @TO@("cect4sv")=$get(@FROM@("cect4sv")) ; Volume
"RTN","SAMICTC1",198,0)
set @TO@("cect5sv")=$get(@FROM@("cect5sv")) ; Volume
"RTN","SAMICTC1",199,0)
set @TO@("cect6sv")=$get(@FROM@("cect6sv")) ; Volume
"RTN","SAMICTC1",200,0)
set @TO@("cect7sv")=$get(@FROM@("cect7sv")) ; Volume
"RTN","SAMICTC1",201,0)
set @TO@("cect8sv")=$get(@FROM@("cect8sv")) ; Volume
"RTN","SAMICTC1",202,0)
set @TO@("cect9sv")=$get(@FROM@("cect9sv")) ; Volume
"RTN","SAMICTC1",203,0)
set @TO@("cect10sv")=$get(@FROM@("cect10sv")) ; Volume
"RTN","SAMICTC1",204,0)
;
"RTN","SAMICTC1",205,0)
set @TO@("cect1ssl")=$get(@FROM@("cect1ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",206,0)
set @TO@("cect1ssw")=$get(@FROM@("cect1ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",207,0)
set @TO@("cect2ssl")=$get(@FROM@("cect2ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",208,0)
set @TO@("cect2ssw")=$get(@FROM@("cect2ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",209,0)
set @TO@("cect3ssl")=$get(@FROM@("cect3ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",210,0)
set @TO@("cect3ssw")=$get(@FROM@("cect3ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",211,0)
set @TO@("cect4ssl")=$get(@FROM@("cect4ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",212,0)
set @TO@("cect4ssw")=$get(@FROM@("cect4ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",213,0)
set @TO@("cect5ssl")=$get(@FROM@("cect5ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",214,0)
set @TO@("cect5ssw")=$get(@FROM@("cect5ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",215,0)
set @TO@("cect6ssl")=$get(@FROM@("cect6ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",216,0)
set @TO@("cect6ssw")=$get(@FROM@("cect6ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",217,0)
set @TO@("cect7ssl")=$get(@FROM@("cect7ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",218,0)
set @TO@("cect7ssw")=$get(@FROM@("cect7ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",219,0)
set @TO@("cect8ssl")=$get(@FROM@("cect8ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",220,0)
set @TO@("cect8ssw")=$get(@FROM@("cect8ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",221,0)
set @TO@("cect9ssl")=$get(@FROM@("cect9ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",222,0)
set @TO@("cect9ssw")=$get(@FROM@("cect9ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",223,0)
set @TO@("cect10ssl")=$get(@FROM@("cect10ssl")) ; Solid Comp. Length
"RTN","SAMICTC1",224,0)
set @TO@("cect10ssw")=$get(@FROM@("cect10ssw")) ; Solid Comp. Width
"RTN","SAMICTC1",225,0)
;
"RTN","SAMICTC1",226,0)
set @TO@("cect1se")=$get(@FROM@("cect1se")) ; n
"RTN","SAMICTC1",227,0)
set @TO@("cect1se")=$get(@FROM@("cect1se")) ; No
"RTN","SAMICTC1",228,0)
set @TO@("cect2se")=$get(@FROM@("cect2se")) ; n
"RTN","SAMICTC1",229,0)
set @TO@("cect2se")=$get(@FROM@("cect2se")) ; No
"RTN","SAMICTC1",230,0)
set @TO@("cect3se")=$get(@FROM@("cect3se")) ; n
"RTN","SAMICTC1",231,0)
set @TO@("cect3se")=$get(@FROM@("cect3se")) ; No
"RTN","SAMICTC1",232,0)
set @TO@("cect4se")=$get(@FROM@("cect4se")) ; n
"RTN","SAMICTC1",233,0)
set @TO@("cect4se")=$get(@FROM@("cect4se")) ; No
"RTN","SAMICTC1",234,0)
set @TO@("cect5se")=$get(@FROM@("cect5se")) ; n
"RTN","SAMICTC1",235,0)
set @TO@("cect5se")=$get(@FROM@("cect5se")) ; No
"RTN","SAMICTC1",236,0)
set @TO@("cect6se")=$get(@FROM@("cect6se")) ; n
"RTN","SAMICTC1",237,0)
set @TO@("cect6se")=$get(@FROM@("cect6se")) ; No
"RTN","SAMICTC1",238,0)
set @TO@("cect7se")=$get(@FROM@("cect7se")) ; n
"RTN","SAMICTC1",239,0)
set @TO@("cect7se")=$get(@FROM@("cect7se")) ; No
"RTN","SAMICTC1",240,0)
set @TO@("cect8se")=$get(@FROM@("cect8se")) ; n
"RTN","SAMICTC1",241,0)
set @TO@("cect8se")=$get(@FROM@("cect8se")) ; No
"RTN","SAMICTC1",242,0)
set @TO@("cect9se")=$get(@FROM@("cect9se")) ; n
"RTN","SAMICTC1",243,0)
set @TO@("cect9se")=$get(@FROM@("cect9se")) ; No
"RTN","SAMICTC1",244,0)
set @TO@("cect10se")=$get(@FROM@("cect10se")) ; n
"RTN","SAMICTC1",245,0)
set @TO@("cect10se")=$get(@FROM@("cect10se")) ; No
"RTN","SAMICTC1",246,0)
;
"RTN","SAMICTC1",247,0)
set @TO@("cectin")=$get(@FROM@("cectin")) ; 1
"RTN","SAMICTC1",248,0)
set @TO@("cectin")=$get(@FROM@("cectin")) ; 2
"RTN","SAMICTC1",249,0)
;
"RTN","SAMICTC1",250,0)
set @TO@("cect1sp")=$get(@FROM@("cect1sp")) ; n
"RTN","SAMICTC1",251,0)
set @TO@("cect1sp")=$get(@FROM@("cect1sp")) ; No
"RTN","SAMICTC1",252,0)
set @TO@("cect2sp")=$get(@FROM@("cect2sp")) ; n
"RTN","SAMICTC1",253,0)
set @TO@("cect2sp")=$get(@FROM@("cect2sp")) ; No
"RTN","SAMICTC1",254,0)
set @TO@("cect3sp")=$get(@FROM@("cect3sp")) ; n
"RTN","SAMICTC1",255,0)
set @TO@("cect3sp")=$get(@FROM@("cect3sp")) ; No
"RTN","SAMICTC1",256,0)
set @TO@("cect4sp")=$get(@FROM@("cect4sp")) ; n
"RTN","SAMICTC1",257,0)
set @TO@("cect4sp")=$get(@FROM@("cect4sp")) ; No
"RTN","SAMICTC1",258,0)
set @TO@("cect5sp")=$get(@FROM@("cect5sp")) ; n
"RTN","SAMICTC1",259,0)
set @TO@("cect5sp")=$get(@FROM@("cect5sp")) ; No
"RTN","SAMICTC1",260,0)
set @TO@("cect6sp")=$get(@FROM@("cect6sp")) ; n
"RTN","SAMICTC1",261,0)
set @TO@("cect6sp")=$get(@FROM@("cect6sp")) ; No
"RTN","SAMICTC1",262,0)
set @TO@("cect7sp")=$get(@FROM@("cect7sp")) ; n
"RTN","SAMICTC1",263,0)
set @TO@("cect7sp")=$get(@FROM@("cect7sp")) ; No
"RTN","SAMICTC1",264,0)
set @TO@("cect8sp")=$get(@FROM@("cect8sp")) ; n
"RTN","SAMICTC1",265,0)
set @TO@("cect8sp")=$get(@FROM@("cect8sp")) ; No
"RTN","SAMICTC1",266,0)
set @TO@("cect9sp")=$get(@FROM@("cect9sp")) ; n
"RTN","SAMICTC1",267,0)
set @TO@("cect9sp")=$get(@FROM@("cect9sp")) ; No
"RTN","SAMICTC1",268,0)
set @TO@("cect10sp")=$get(@FROM@("cect10sp")) ; n
"RTN","SAMICTC1",269,0)
set @TO@("cect10sp")=$get(@FROM@("cect10sp")) ; No
"RTN","SAMICTC1",270,0)
;
"RTN","SAMICTC1",271,0)
set @TO@("cect1pld")=$get(@FROM@("cect1pld")) ; Distance
"RTN","SAMICTC1",272,0)
set @TO@("cect2pld")=$get(@FROM@("cect2pld")) ; Distance
"RTN","SAMICTC1",273,0)
set @TO@("cect3pld")=$get(@FROM@("cect3pld")) ; Distance
"RTN","SAMICTC1",274,0)
set @TO@("cect4pld")=$get(@FROM@("cect4pld")) ; Distance
"RTN","SAMICTC1",275,0)
set @TO@("cect5pld")=$get(@FROM@("cect5pld")) ; Distance
"RTN","SAMICTC1",276,0)
set @TO@("cect6pld")=$get(@FROM@("cect6pld")) ; Distance
"RTN","SAMICTC1",277,0)
set @TO@("cect7pld")=$get(@FROM@("cect7pld")) ; Distance
"RTN","SAMICTC1",278,0)
set @TO@("cect8pld")=$get(@FROM@("cect8pld")) ; Distance
"RTN","SAMICTC1",279,0)
set @TO@("cect9pld")=$get(@FROM@("cect9pld")) ; Distance
"RTN","SAMICTC1",280,0)
set @TO@("cect10pld")=$get(@FROM@("cect10pld")) ; Distance
"RTN","SAMICTC1",281,0)
;
"RTN","SAMICTC1",282,0)
set @TO@("cect1co")=$get(@FROM@("cect1co")) ; Comment
"RTN","SAMICTC1",283,0)
set @TO@("cect2co")=$get(@FROM@("cect2co")) ; Comment
"RTN","SAMICTC1",284,0)
set @TO@("cect3co")=$get(@FROM@("cect3co")) ; Comment
"RTN","SAMICTC1",285,0)
set @TO@("cect4co")=$get(@FROM@("cect4co")) ; Comment
"RTN","SAMICTC1",286,0)
set @TO@("cect5co")=$get(@FROM@("cect5co")) ; Comment
"RTN","SAMICTC1",287,0)
set @TO@("cect6co")=$get(@FROM@("cect6co")) ; Comment
"RTN","SAMICTC1",288,0)
set @TO@("cect7co")=$get(@FROM@("cect7co")) ; Comment
"RTN","SAMICTC1",289,0)
set @TO@("cect8co")=$get(@FROM@("cect8co")) ; Comment
"RTN","SAMICTC1",290,0)
set @TO@("cect9co")=$get(@FROM@("cect9co")) ; Comment
"RTN","SAMICTC1",291,0)
set @TO@("cect10co")=$get(@FROM@("cect10co")) ; Comment
"RTN","SAMICTC1",292,0)
;
"RTN","SAMICTC1",293,0)
set @TO@("cect1pd")=$get(@FROM@("cect1pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",294,0)
set @TO@("cect2pd")=$get(@FROM@("cect2pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",295,0)
set @TO@("cect3pd")=$get(@FROM@("cect3pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",296,0)
set @TO@("cect4pd")=$get(@FROM@("cect4pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",297,0)
set @TO@("cect5pd")=$get(@FROM@("cect5pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",298,0)
set @TO@("cect6pd")=$get(@FROM@("cect6pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",299,0)
set @TO@("cect7pd")=$get(@FROM@("cect7pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",300,0)
set @TO@("cect8pd")=$get(@FROM@("cect8pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",301,0)
set @TO@("cect9pd")=$get(@FROM@("cect9pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",302,0)
set @TO@("cect10pd")=$get(@FROM@("cect10pd")) ; Pathologic diagnosis
"RTN","SAMICTC1",303,0)
;
"RTN","SAMICTC1",304,0)
set @TO@("cectancn")=$get(@FROM@("cectancn")) ; 1
"RTN","SAMICTC1",305,0)
set @TO@("cectacn")=$get(@FROM@("cectacn")) ; 1
"RTN","SAMICTC1",306,0)
;
"RTN","SAMICTC1",307,0)
set @TO@("ceem")=$get(@FROM@("ceem")) ; nv
"RTN","SAMICTC1",308,0)
set @TO@("ceem")=$get(@FROM@("ceem")) ; no
"RTN","SAMICTC1",309,0)
;
"RTN","SAMICTC1",310,0)
set @TO@("ceoca")=$get(@FROM@("ceoca")) ; n
"RTN","SAMICTC1",311,0)
set @TO@("ceoca")=$get(@FROM@("ceoca")) ; y
"RTN","SAMICTC1",312,0)
;
"RTN","SAMICTC1",313,0)
set @TO@("ceccv")=$get(@FROM@("ceccv")) ; e
"RTN","SAMICTC1",314,0)
set @TO@("cecclm")=$get(@FROM@("cecclm")) ; Left m
"RTN","SAMICTC1",315,0)
set @TO@("ceccld")=$get(@FROM@("ceccld")) ; LAD
"RTN","SAMICTC1",316,0)
set @TO@("cecccf")=$get(@FROM@("cecccf")) ; Circum
"RTN","SAMICTC1",317,0)
set @TO@("ceccrc")=$get(@FROM@("ceccrc")) ; RCA
"RTN","SAMICTC1",318,0)
;
"RTN","SAMICTC1",319,0)
set @TO@("pa")=$get(@FROM@("pa")) ; n
"RTN","SAMICTC1",320,0)
set @TO@("pa")=$get(@FROM@("pa")) ; No
"RTN","SAMICTC1",321,0)
;
"RTN","SAMICTC1",322,0)
;
"RTN","SAMICTC1",323,0)
;@stanza 4 continue copy in 2nd routine
"RTN","SAMICTC1",324,0)
;
"RTN","SAMICTC1",325,0)
do CTCOPY2^SAMICTC2(FROM,TO)
"RTN","SAMICTC1",326,0)
;
"RTN","SAMICTC1",327,0)
;
"RTN","SAMICTC1",328,0)
;@stanza 5 termination
"RTN","SAMICTC1",329,0)
;
"RTN","SAMICTC1",330,0)
quit ; end of ppi CTCOPY^SAMICTC1
"RTN","SAMICTC1",331,0)
;
"RTN","SAMICTC1",332,0)
;
"RTN","SAMICTC1",333,0)
;
"RTN","SAMICTC1",334,0)
;@dmi GENCTCOPY^SAMICTC1
"RTN","SAMICTC1",335,0)
GENCTCPY ; generate copy routine from graph
"RTN","SAMICTC1",336,0)
;
"RTN","SAMICTC1",337,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMICTC1",338,0)
;
"RTN","SAMICTC1",339,0)
;ven/gpl;private;procedure;clean;silent;sac
"RTN","SAMICTC1",340,0)
;@called-by SAMI developer from direct mode
"RTN","SAMICTC1",341,0)
;@calls
"RTN","SAMICTC1",342,0)
; $$setroot^%wd
"RTN","SAMICTC1",343,0)
;@input
"RTN","SAMICTC1",344,0)
; ceform-fields graph
"RTN","SAMICTC1",345,0)
;@output
"RTN","SAMICTC1",346,0)
; writes compiled code to current device
"RTN","SAMICTC1",347,0)
;
"RTN","SAMICTC1",348,0)
;
"RTN","SAMICTC1",349,0)
;@stanza 2 compile code to copy most fields
"RTN","SAMICTC1",350,0)
;
"RTN","SAMICTC1",351,0)
new root set root=$$setroot^%wd("ceform-fields")
"RTN","SAMICTC1",352,0)
new fldf set fldf=$name(@root@("field"))
"RTN","SAMICTC1",353,0)
;
"RTN","SAMICTC1",354,0)
write !,"generating copy from ",fldf
"RTN","SAMICTC1",355,0)
;
"RTN","SAMICTC1",356,0)
new zi set zi=0
"RTN","SAMICTC1",357,0)
for do quit:'zi
"RTN","SAMICTC1",358,0)
. set zi=$order(@fldf@(zi))
"RTN","SAMICTC1",359,0)
. quit:'zi
"RTN","SAMICTC1",360,0)
. ;
"RTN","SAMICTC1",361,0)
. quit:$get(@fldf@(zi,"copy"))'=1 ; only want copy fields
"RTN","SAMICTC1",362,0)
. ;
"RTN","SAMICTC1",363,0)
. new name,label
"RTN","SAMICTC1",364,0)
. set name=$get(@fldf@(zi,"name"))
"RTN","SAMICTC1",365,0)
. set label=$get(@fldf@(zi,"label"))
"RTN","SAMICTC1",366,0)
. set label=$extract(label,1,20)
"RTN","SAMICTC1",367,0)
. quit:name=""
"RTN","SAMICTC1",368,0)
. ;
"RTN","SAMICTC1",369,0)
. write !," set @TO@("""_name_""")=$get(@FROM@("""_name_""")) ; "_label
"RTN","SAMICTC1",370,0)
. quit
"RTN","SAMICTC1",371,0)
;
"RTN","SAMICTC1",372,0)
;
"RTN","SAMICTC1",373,0)
;@stanza 3 termination
"RTN","SAMICTC1",374,0)
;
"RTN","SAMICTC1",375,0)
quit ; end of dmi GENCTCOPY^SAMICTC1
"RTN","SAMICTC1",376,0)
;
"RTN","SAMICTC1",377,0)
;
"RTN","SAMICTC1",378,0)
;
"RTN","SAMICTC1",379,0)
EOR ; end of routine SAMICTC1
"RTN","SAMICTT0")
0^11^B97674764
"RTN","SAMICTT0",1,0)
SAMICTT0 ;ven/gpl - ctreport text main ;2021-05-21T20:47Z
"RTN","SAMICTT0",2,0)
;;18.0;SAMI;**4,10,11**;2020-01;Build 21
"RTN","SAMICTT0",3,0)
;;1.18.0.11+i11
"RTN","SAMICTT0",4,0)
;
"RTN","SAMICTT0",5,0)
; SAMICTT0 contains a web route & associated subroutines to produce
"RTN","SAMICTT0",6,0)
; the ELCAP CT Report in text format (route ctreport, format text).
"RTN","SAMICTT0",7,0)
; SAMICTT* routines serve web service interfaces WSVAPALS^SAMIHOM3
"RTN","SAMICTT0",8,0)
; (the main VAPALS-ELCAP post web service) & WSHOME^SAMIHOM3 (the
"RTN","SAMICTT0",9,0)
; VAPALS-ELCAP home-page service).
"RTN","SAMICTT0",10,0)
;
"RTN","SAMICTT0",11,0)
quit ; no entry from top
"RTN","SAMICTT0",12,0)
;
"RTN","SAMICTT0",13,0)
;
"RTN","SAMICTT0",14,0)
;
"RTN","SAMICTT0",15,0)
;@section 0 primary development
"RTN","SAMICTT0",16,0)
;
"RTN","SAMICTT0",17,0)
;
"RTN","SAMICTT0",18,0)
;
"RTN","SAMICTT0",19,0)
;@license see routine SAMIUL
"RTN","SAMICTT0",20,0)
;@documentation see SAMICTUL
"RTN","SAMICTT0",21,0)
;@contents
"RTN","SAMICTT0",22,0)
; WSREPORT web route: ctreport in text format
"RTN","SAMICTT0",23,0)
; OUT output a line of ct report
"RTN","SAMICTT0",24,0)
; OUTOLD old version of out
"RTN","SAMICTT0",25,0)
; HOUT output a ct report header line
"RTN","SAMICTT0",26,0)
; $$XVAL patient value for var
"RTN","SAMICTT0",27,0)
; $$XSUB dictionary value defined by var
"RTN","SAMICTT0",28,0)
; GETFILTR fill in the filter for Ct Eval for sid
"RTN","SAMICTT0",29,0)
; T1 test
"RTN","SAMICTT0",30,0)
;
"RTN","SAMICTT0",31,0)
;
"RTN","SAMICTT0",32,0)
;
"RTN","SAMICTT0",33,0)
;@section 1 wsi WSREPORT & related subroutines
"RTN","SAMICTT0",34,0)
;
"RTN","SAMICTT0",35,0)
;
"RTN","SAMICTT0",36,0)
;
"RTN","SAMICTT0",37,0)
;@wsr WSREPORT^SAMICTT0
"RTN","SAMICTT0",38,0)
WSREPORT(return,filter) ; web route: ctreport in text format
"RTN","SAMICTT0",39,0)
;
"RTN","SAMICTT0",40,0)
;@called-by
"RTN","SAMICTT0",41,0)
; WSNOTE^SAMINOT3
"RTN","SAMICTT0",42,0)
; (called-by wsi WSVAPALS^SAMIHOM3)
"RTN","SAMICTT0",43,0)
; (called by wsi WSHOME^SAMIHOM3)
"RTN","SAMICTT0",44,0)
; (sibling to wri WSREPORT^SAMICTR0, keep in sync)
"RTN","SAMICTT0",45,0)
;@calls
"RTN","SAMICTT0",46,0)
; INIT2GPH^SAMICTD2
"RTN","SAMICTT0",47,0)
; $$setroot^%wd
"RTN","SAMICTT0",48,0)
; $$XVAL
"RTN","SAMICTT0",49,0)
; OUT
"RTN","SAMICTT0",50,0)
; $$XSUB
"RTN","SAMICTT0",51,0)
; HOUT
"RTN","SAMICTT0",52,0)
; NODULES^SAMICTT1
"RTN","SAMICTT0",53,0)
; OTHRLUNG^SAMICTT2
"RTN","SAMICTT0",54,0)
; EMPHYS^SAMICTT3
"RTN","SAMICTT0",55,0)
; BREAST^SAMICTT4
"RTN","SAMICTT0",56,0)
; IMPRSN^SAMICTT9
"RTN","SAMICTT0",57,0)
; RCMND^SAMICTTA
"RTN","SAMICTT0",58,0)
;
"RTN","SAMICTT0",59,0)
s debug=0
"RTN","SAMICTT0",60,0)
n outmode s outmode="go"
"RTN","SAMICTT0",61,0)
n line s line=""
"RTN","SAMICTT0",62,0)
i $g(filter("debug"))=1 s debug=1
"RTN","SAMICTT0",63,0)
;
"RTN","SAMICTT0",64,0)
;s rtn=$na(^TMP("SAMICTT",$J))
"RTN","SAMICTT0",65,0)
s rtn="return"
"RTN","SAMICTT0",66,0)
k @rtn
"RTN","SAMICTT0",67,0)
s HTTPRSP("mime")="text/html"
"RTN","SAMICTT0",68,0)
;
"RTN","SAMICTT0",69,0)
n cnt s cnt=0 ; line number
"RTN","SAMICTT0",70,0)
;
"RTN","SAMICTT0",71,0)
; set up dictionary and patient values
"RTN","SAMICTT0",72,0)
;
"RTN","SAMICTT0",73,0)
n dict,vals
"RTN","SAMICTT0",74,0)
;d INIT^SAMICTD2("dict")
"RTN","SAMICTT0",75,0)
s dict=$$setroot^%wd("cteval-dict")
"RTN","SAMICTT0",76,0)
s dict=$na(@dict@("cteval-dict"))
"RTN","SAMICTT0",77,0)
i $g(@dict@("pet"))="" d INIT2GPH^SAMICTD2 ; init dictionary 1st time
"RTN","SAMICTT0",78,0)
n si
"RTN","SAMICTT0",79,0)
s si=$g(filter("studyid"))
"RTN","SAMICTT0",80,0)
i si="" d ;
"RTN","SAMICTT0",81,0)
. s si="XXX00102"
"RTN","SAMICTT0",82,0)
q:si=""
"RTN","SAMICTT0",83,0)
n samikey
"RTN","SAMICTT0",84,0)
s samikey=$g(filter("form"))
"RTN","SAMICTT0",85,0)
i samikey="" d ;
"RTN","SAMICTT0",86,0)
. s samikey="ceform-2018-10-09"
"RTN","SAMICTT0",87,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMICTT0",88,0)
i $g(filter("studyid"))="" s root=$$setroot^%wd("vapals-patients")
"RTN","SAMICTT0",89,0)
s vals=$na(@root@("graph",si,samikey))
"RTN","SAMICTT0",90,0)
;W !,vals
"RTN","SAMICTT0",91,0)
;zwr @vals@(*)
"RTN","SAMICTT0",92,0)
i '$d(@vals) d q ;
"RTN","SAMICTT0",93,0)
. w !,"error, patient values not found"
"RTN","SAMICTT0",94,0)
;
"RTN","SAMICTT0",95,0)
; report parameters
"RTN","SAMICTT0",96,0)
;
"RTN","SAMICTT0",97,0)
n nt,sectionheader,dummy,cac,tex,para,legout
"RTN","SAMICTT0",98,0)
;; n lang,lanread
"RTN","SAMICTT0",99,0)
;
"RTN","SAMICTT0",100,0)
s nt=1
"RTN","SAMICTT0",101,0)
s sectionheader=1
"RTN","SAMICTT0",102,0)
;;s dummy="******"
"RTN","SAMICTT0",103,0)
s cac=""
"RTN","SAMICTT0",104,0)
n cacrec s cacrec=""
"RTN","SAMICTT0",105,0)
;;s tex=0
"RTN","SAMICTT0",106,0)
;s para="<p>"
"RTN","SAMICTT0",107,0)
;s para=$char(13,10)
"RTN","SAMICTT0",108,0)
s para=""
"RTN","SAMICTT0",109,0)
;;s legout=0
"RTN","SAMICTT0",110,0)
n qheader s qheader=0
"RTN","SAMICTT0",111,0)
;
"RTN","SAMICTT0",112,0)
n lang s lang=""
"RTN","SAMICTT0",113,0)
n langread s langread=0
"RTN","SAMICTT0",114,0)
;
"RTN","SAMICTT0",115,0)
n auth s auth("perm")="a"
"RTN","SAMICTT0",116,0)
s auth("inst")=$g(filter("auth"))
"RTN","SAMICTT0",117,0)
;
"RTN","SAMICTT0",118,0)
n newct s newct=0
"RTN","SAMICTT0",119,0)
i $$XVAL("ceoppa",vals)'="" s newct=1
"RTN","SAMICTT0",120,0)
;
"RTN","SAMICTT0",121,0)
n registryForm s registryForm=0
"RTN","SAMICTT0",122,0)
i $$XVAL("ceaf",vals)'="" s registryForm=1
"RTN","SAMICTT0",123,0)
;
"RTN","SAMICTT0",124,0)
;d OUT("<HTML>")
"RTN","SAMICTT0",125,0)
;d OUT("<HEAD>")
"RTN","SAMICTT0",126,0)
;d OUT("<!-- Calling TR: CT Evaluation Report -->")
"RTN","SAMICTT0",127,0)
;d OUT("<TITLE>CT Evaluation Report</TITLE>")
"RTN","SAMICTT0",128,0)
;d OUT("<link rel='stylesheet' href='/css/report.css'>")
"RTN","SAMICTT0",129,0)
;d OUT("</HEAD>")
"RTN","SAMICTT0",130,0)
;d OUT("<BODY BGCOLOR=""#ffffff"" TEXT=""#000000"">")
"RTN","SAMICTT0",131,0)
;;d OUT("<TABLE border=""0"" cellspacing=""0"" cellpadding=""3"" WIDTH=""640""><TR><TD>")
"RTN","SAMICTT0",132,0)
;d OUT("<FONT SIZE=""+2""><CENTER>")
"RTN","SAMICTT0",133,0)
;d OUT("<!-- Calling TR: CT Evaluation Report -->")
"RTN","SAMICTT0",134,0)
;d OUT("<B>CT Evaluation Report</B>")
"RTN","SAMICTT0",135,0)
d OUT("CT Evaluation Report")
"RTN","SAMICTT0",136,0)
;d OUT("</CENTER></FONT>")
"RTN","SAMICTT0",137,0)
;d OUT("</TD></TR><TR><TD>")
"RTN","SAMICTT0",138,0)
;d OUT("<HR SIZE=""2"" WIDTH=""100%"" ALIGN=""center"" NOSHADE>")
"RTN","SAMICTT0",139,0)
;d OUT("</TD></TR>")
"RTN","SAMICTT0",140,0)
;
"RTN","SAMICTT0",141,0)
;d OUT("<!-- patient information -->")
"RTN","SAMICTT0",142,0)
;d OUT("<TR><TD><TABLE border=""0"" cellspacing=""0"" cellpadding=""3"" WIDTH=""640"">")
"RTN","SAMICTT0",143,0)
;
"RTN","SAMICTT0",144,0)
; generate header
"RTN","SAMICTT0",145,0)
;
"RTN","SAMICTT0",146,0)
d ;
"RTN","SAMICTT0",147,0)
. n pname
"RTN","SAMICTT0",148,0)
. ;s pname=$$XVAL("sinamel",vals)_", "_$$XVAL("sinamef",vals)
"RTN","SAMICTT0",149,0)
. s pname=$$XVAL("saminame",vals)
"RTN","SAMICTT0",150,0)
. d OUT("Participant Name: "_pname)
"RTN","SAMICTT0",151,0)
;d OUT("<TR><TD WIDTH=""180""><B>Participant Name:</B></TD><TD WIDTH=""365"">")
"RTN","SAMICTT0",152,0)
;d OUT($$XVAL("sinamel",vals)_", "_$$XVAL("sinamef",vals))
"RTN","SAMICTT0",153,0)
;d OUT("</TD>")
"RTN","SAMICTT0",154,0)
;
"RTN","SAMICTT0",155,0)
d ;
"RTN","SAMICTT0",156,0)
. n sid s sid=$$XVAL("sisid",vals)
"RTN","SAMICTT0",157,0)
. d OUT("Study ID: "_sid)
"RTN","SAMICTT0",158,0)
;d OUT("<TD WIDTH=""120""><B>Study ID:</B></TD><TD WIDTH=""75"">")
"RTN","SAMICTT0",159,0)
;d OUT($$XVAL("sisid",vals))
"RTN","SAMICTT0",160,0)
;d OUT("</TD>")
"RTN","SAMICTT0",161,0)
;
"RTN","SAMICTT0",162,0)
d ;
"RTN","SAMICTT0",163,0)
. n etype s etype=$$XSUB("cetex",vals,dict)_" "_$$XSUB("cectp",vals,dict)
"RTN","SAMICTT0",164,0)
. d OUT("Type of Examination: "_etype)
"RTN","SAMICTT0",165,0)
;d OUT("<TR><TD><B>Type of Examination:</B></TD><TD>")
"RTN","SAMICTT0",166,0)
;d OUT($$XSUB("cetex",vals,dict)_" "_$$XSUB("cectp",vals,dict))
"RTN","SAMICTT0",167,0)
;d OUT("</TD>")
"RTN","SAMICTT0",168,0)
;d OUT("<TD> </TD><TD> </TD></TR>")
"RTN","SAMICTT0",169,0)
;
"RTN","SAMICTT0",170,0)
d ;
"RTN","SAMICTT0",171,0)
. n edate s edate=$$XVAL("cedos",vals)
"RTN","SAMICTT0",172,0)
. d OUT("Examination Date: "_edate)
"RTN","SAMICTT0",173,0)
;d OUT("<TR><TD><B>Examination Date:</B></TD><TD>")
"RTN","SAMICTT0",174,0)
;d OUT($$XVAL("cedos",vals))
"RTN","SAMICTT0",175,0)
;
"RTN","SAMICTT0",176,0)
;i $$XVAL("sidob",vals)'=-1 d ;
"RTN","SAMICTT0",177,0)
;. d OUT("<TD><B>Date of Birth:</B></TD><TD>")
"RTN","SAMICTT0",178,0)
;. d OUT($$XVAL("sidob",vals))
"RTN","SAMICTT0",179,0)
;e d OUT("<TD> </TD><TD> </TD></TR>")
"RTN","SAMICTT0",180,0)
;
"RTN","SAMICTT0",181,0)
d ;
"RTN","SAMICTT0",182,0)
. n dob s dob=$$XVAL("sidob",vals)
"RTN","SAMICTT0",183,0)
. i dob>0 d OUT("Date of Birth: "_dob)
"RTN","SAMICTT0",184,0)
. d OUT("")
"RTN","SAMICTT0",185,0)
;i $$XVAL("sidob",vals)>0 d ;
"RTN","SAMICTT0",186,0)
;. d OUT("<TD><B>Date of Birth:</B></TD><TD>")
"RTN","SAMICTT0",187,0)
;. d OUT($$XVAL("sidob",vals))
"RTN","SAMICTT0",188,0)
;. d OUT("</TD></TR>")
"RTN","SAMICTT0",189,0)
;e d ;
"RTN","SAMICTT0",190,0)
;. d OUT("<TD> </TD><TD> </TD></TR>")
"RTN","SAMICTT0",191,0)
;
"RTN","SAMICTT0",192,0)
;# End of Header
"RTN","SAMICTT0",193,0)
;
"RTN","SAMICTT0",194,0)
;d OUT("</TABLE>")
"RTN","SAMICTT0",195,0)
;;d OUT("</TD></TR><TR><TD>")
"RTN","SAMICTT0",196,0)
;d OUT("<HR SIZE=""2"" WIDTH=""100%"" ALIGN=""center"" NOSHADE>")
"RTN","SAMICTT0",197,0)
;d OUT("</TD></TR>")
"RTN","SAMICTT0",198,0)
;d OUT("<!-- report -->")
"RTN","SAMICTT0",199,0)
;d OUT("<TR><TD>")
"RTN","SAMICTT0",200,0)
;d OUT("<FONT SIZE=""+2""><B>")
"RTN","SAMICTT0",201,0)
;d OUT("Report:")
"RTN","SAMICTT0",202,0)
;d OUT("</B></FONT>")
"RTN","SAMICTT0",203,0)
;d OUT("</TD></TR><TR><TD><TABLE><TR><TD WIDTH=20></TD><TD>")
"RTN","SAMICTT0",204,0)
d OUT("Report:")
"RTN","SAMICTT0",205,0)
;
"RTN","SAMICTT0",206,0)
s outmode="hold"
"RTN","SAMICTT0",207,0)
s line=""
"RTN","SAMICTT0",208,0)
i $$XVAL("ceclin",vals)'="" d ;
"RTN","SAMICTT0",209,0)
. d HOUT("Clinical Information: ")
"RTN","SAMICTT0",210,0)
. d OUT($$XVAL("ceclin",vals))
"RTN","SAMICTT0",211,0)
. s outmode="go" d OUT("")
"RTN","SAMICTT0",212,0)
;
"RTN","SAMICTT0",213,0)
s outmode="hold"
"RTN","SAMICTT0",214,0)
n nopri s nopri=1
"RTN","SAMICTT0",215,0)
d HOUT("Comparison CT Scans: ")
"RTN","SAMICTT0",216,0)
if $$XVAL("cedcs",vals)'="" d ;
"RTN","SAMICTT0",217,0)
. d OUT($$XSUB("cetex",vals,dict)_". ")
"RTN","SAMICTT0",218,0)
. d OUT("Comparisons: "_$$XVAL("cedcs",vals))
"RTN","SAMICTT0",219,0)
. s nopri=0
"RTN","SAMICTT0",220,0)
if $$XVAL("cedps",vals)'="" d ;
"RTN","SAMICTT0",221,0)
. d OUT(" "_$$XVAL("cedps",vals))
"RTN","SAMICTT0",222,0)
. s nopri=0
"RTN","SAMICTT0",223,0)
d:nopri OUT("None")
"RTN","SAMICTT0",224,0)
s outmode="go" d OUT("")
"RTN","SAMICTT0",225,0)
;
"RTN","SAMICTT0",226,0)
s outmode="hold"
"RTN","SAMICTT0",227,0)
d HOUT(" Description: ")
"RTN","SAMICTT0",228,0)
i $$XVAL("cectp",vals)="i" d ;
"RTN","SAMICTT0",229,0)
. d OUT("Limited Diagnostic CT examination was performed. ")
"RTN","SAMICTT0",230,0)
e d ;
"RTN","SAMICTT0",231,0)
. d OUT("CT examination of the entire thorax was performed at "_$$XSUB("cectp",vals,dict)_" settings. ")
"RTN","SAMICTT0",232,0)
;
"RTN","SAMICTT0",233,0)
i $$XVAL("cectrst",vals)'="" d ;
"RTN","SAMICTT0",234,0)
. d OUT(" Images were obtained at "_$$XVAL("cectrst",vals)_" mm slice thickness. ")
"RTN","SAMICTT0",235,0)
. d OUT(" Multiplanar reconstructions were performed. ")
"RTN","SAMICTT0",236,0)
;
"RTN","SAMICTT0",237,0)
i newct d ;
"RTN","SAMICTT0",238,0)
. n nvadbo s nvadbo=1
"RTN","SAMICTT0",239,0)
. n ii
"RTN","SAMICTT0",240,0)
. f ii="ceoaa","ceaga","ceasa","ceala","ceapa","ceaaa","ceaka" d ;
"RTN","SAMICTT0",241,0)
. . i $$XVAL(ii,vals)="y" set nvadbo=0
"RTN","SAMICTT0",242,0)
. ;
"RTN","SAMICTT0",243,0)
. i nvadbo=1 d ;
"RTN","SAMICTT0",244,0)
. . d OUT("Upper abdominal images were not acquired on the current scan due to its limited nature. ")
"RTN","SAMICTT0",245,0)
s outmode="go" d OUT("")
"RTN","SAMICTT0",246,0)
;
"RTN","SAMICTT0",247,0)
; lung nodules
"RTN","SAMICTT0",248,0)
;
"RTN","SAMICTT0",249,0)
;d OUT("")
"RTN","SAMICTT0",250,0)
d HOUT("Lung Nodules:")
"RTN","SAMICTT0",251,0)
;d OUT("")
"RTN","SAMICTT0",252,0)
;
"RTN","SAMICTT0",253,0)
; see if there are any nodules using the cectXch fields
"RTN","SAMICTT0",254,0)
;
"RTN","SAMICTT0",255,0)
n ij,hasnodules s hasnodules=0
"RTN","SAMICTT0",256,0)
f ij=1:1:10 i ($$XVAL("cect"_ij_"ch",vals)'="")&($$XVAL("cect"_ij_"ch",vals)'="-") s hasnodules=1
"RTN","SAMICTT0",257,0)
;
"RTN","SAMICTT0",258,0)
; check for small nodule checkboxes
"RTN","SAMICTT0",259,0)
i $$XVAL("cectancn",vals)=1 s hasnodules=1
"RTN","SAMICTT0",260,0)
i $$XVAL("cectacn",vals)=1 s hasnodules=1
"RTN","SAMICTT0",261,0)
;
"RTN","SAMICTT0",262,0)
i hasnodules=0 d ;
"RTN","SAMICTT0",263,0)
. d OUT(para)
"RTN","SAMICTT0",264,0)
. d OUT("No pulmonary nodules are seen. "_para)
"RTN","SAMICTT0",265,0)
;
"RTN","SAMICTT0",266,0)
;i $$XVAL("cennod",vals)="" d ;
"RTN","SAMICTT0",267,0)
;. d OUT(para)
"RTN","SAMICTT0",268,0)
;. d OUT("No pulmonary nodules are seen. "_para)
"RTN","SAMICTT0",269,0)
;e i $$XVAL("ceanod",vals)="n" d ;
"RTN","SAMICTT0",270,0)
;. d OUT(para)
"RTN","SAMICTT0",271,0)
;. d OUT("No pulmonary nodules are seen. "_para)
"RTN","SAMICTT0",272,0)
;
"RTN","SAMICTT0",273,0)
d NODULES^SAMICTT1(rtn,.vals,.dict)
"RTN","SAMICTT0",274,0)
;
"RTN","SAMICTT0",275,0)
d OTHRLUNG^SAMICTT2(rtn,.vals,.dict)
"RTN","SAMICTT0",276,0)
;
"RTN","SAMICTT0",277,0)
d EMPHYS^SAMICTT3(rtn,.vals,.dict)
"RTN","SAMICTT0",278,0)
;
"RTN","SAMICTT0",279,0)
d BREAST^SAMICTT4(rtn,.vals,.dict)
"RTN","SAMICTT0",280,0)
;
"RTN","SAMICTT0",281,0)
d IMPRSN^SAMICTT9(rtn,.vals,.dict)
"RTN","SAMICTT0",282,0)
;
"RTN","SAMICTT0",283,0)
d RCMND^SAMICTTA(rtn,.vals,.dict)
"RTN","SAMICTT0",284,0)
;
"RTN","SAMICTT0",285,0)
; etc etc
"RTN","SAMICTT0",286,0)
;
"RTN","SAMICTT0",287,0)
d ;
"RTN","SAMICTT0",288,0)
. d OUT("References:")
"RTN","SAMICTT0",289,0)
. d OUT("Recommendations for nodules and other findings are detailed in the I-ELCAP Protocol. ")
"RTN","SAMICTT0",290,0)
. d OUT("A summary and the full I-ELCAP protocol can be viewed at: http://ielcap.org/protocols")
"RTN","SAMICTT0",291,0)
;d OUT("</TABLE>")
"RTN","SAMICTT0",292,0)
;d OUT("<p><br></p><p><b>References:</b><br></p>")
"RTN","SAMICTT0",293,0)
;d OUT("<p>Recommendations for nodules and other findings are detailed in the I-ELCAP Protocol.<BR>")
"RTN","SAMICTT0",294,0)
;d OUT("A summary and the full I-ELCAP protocol can be viewed at: <a href=""http://ielcap.org/protocols"">http://ielcap.org/protocols</a></p>")
"RTN","SAMICTT0",295,0)
;d OUT("</TD></TR></TABLE></TD></TR></TABLE>")
"RTN","SAMICTT0",296,0)
;s debug=1
"RTN","SAMICTT0",297,0)
d:$g(debug) ;
"RTN","SAMICTT0",298,0)
. n zi s zi=""
"RTN","SAMICTT0",299,0)
. f s zi=$o(@vals@(zi)) q:zi="" d ;
"RTN","SAMICTT0",300,0)
. . d OUT(zi_" "_$g(@vals@(zi)))
"RTN","SAMICTT0",301,0)
;d OUT("</BODY></HTML>")
"RTN","SAMICTT0",302,0)
;
"RTN","SAMICTT0",303,0)
quit ; end of wsr WSREPORT^SAMICTT0
"RTN","SAMICTT0",304,0)
;
"RTN","SAMICTT0",305,0)
;
"RTN","SAMICTT0",306,0)
;
"RTN","SAMICTT0",307,0)
OUT(ln) ; output a line of ct report
"RTN","SAMICTT0",308,0)
;
"RTN","SAMICTT0",309,0)
i outmode="hold" s line=line_ln q ;
"RTN","SAMICTT0",310,0)
s cnt=cnt+1
"RTN","SAMICTT0",311,0)
n lnn
"RTN","SAMICTT0",312,0)
i $g(debug)'=1 s debug=0
"RTN","SAMICTT0",313,0)
s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTT0",314,0)
i outmode="go" d ;
"RTN","SAMICTT0",315,0)
. s @rtn@(lnn)=line
"RTN","SAMICTT0",316,0)
. s line=""
"RTN","SAMICTT0",317,0)
. s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTT0",318,0)
s @rtn@(lnn)=ln
"RTN","SAMICTT0",319,0)
i $g(debug)=1 d ;
"RTN","SAMICTT0",320,0)
. i ln["<" q ; no markup
"RTN","SAMICTT0",321,0)
. n zs s zs=$STACK
"RTN","SAMICTT0",322,0)
. n zp s zp=$STACK(zs-2,"PLACE")
"RTN","SAMICTT0",323,0)
. s @rtn@(lnn)=zp_":"_ln
"RTN","SAMICTT0",324,0)
;
"RTN","SAMICTT0",325,0)
quit ; end of OUT
"RTN","SAMICTT0",326,0)
;
"RTN","SAMICTT0",327,0)
;
"RTN","SAMICTT0",328,0)
;
"RTN","SAMICTT0",329,0)
OUTOLD(ln) ; old version of out
"RTN","SAMICTT0",330,0)
;
"RTN","SAMICTT0",331,0)
s cnt=cnt+1
"RTN","SAMICTT0",332,0)
n lnn
"RTN","SAMICTT0",333,0)
;s debug=1
"RTN","SAMICTT0",334,0)
s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTT0",335,0)
s @rtn@(lnn)=ln
"RTN","SAMICTT0",336,0)
i $g(debug)=1 d ;
"RTN","SAMICTT0",337,0)
. i ln["<" q ; no markup
"RTN","SAMICTT0",338,0)
. n zs s zs=$STACK
"RTN","SAMICTT0",339,0)
. n zp s zp=$STACK(zs-2,"PLACE")
"RTN","SAMICTT0",340,0)
. s @rtn@(lnn)=zp_":"_ln
"RTN","SAMICTT0",341,0)
;
"RTN","SAMICTT0",342,0)
quit ; end of OUTOLD
"RTN","SAMICTT0",343,0)
;
"RTN","SAMICTT0",344,0)
;
"RTN","SAMICTT0",345,0)
;
"RTN","SAMICTT0",346,0)
HOUT(ln) ; output a ct report header line
"RTN","SAMICTT0",347,0)
;
"RTN","SAMICTT0",348,0)
d OUT(ln)
"RTN","SAMICTT0",349,0)
;d OUT("<p><span class='sectionhead'>"_ln_"</span>")
"RTN","SAMICTT0",350,0)
;
"RTN","SAMICTT0",351,0)
quit ; end of HOUT
"RTN","SAMICTT0",352,0)
;
"RTN","SAMICTT0",353,0)
;
"RTN","SAMICTT0",354,0)
;
"RTN","SAMICTT0",355,0)
XVAL(var,vals) ; extrinsic returns the patient value for var
"RTN","SAMICTT0",356,0)
;
"RTN","SAMICTT0",357,0)
;@input
"RTN","SAMICTT0",358,0)
; @vals is passed by name
"RTN","SAMICTT0",359,0)
;
"RTN","SAMICTT0",360,0)
n zr
"RTN","SAMICTT0",361,0)
s zr=$g(@vals@(var))
"RTN","SAMICTT0",362,0)
;i zr="" s zr="["_var_"]"
"RTN","SAMICTT0",363,0)
;
"RTN","SAMICTT0",364,0)
quit zr ; end of $$XVAL
"RTN","SAMICTT0",365,0)
;
"RTN","SAMICTT0",366,0)
;
"RTN","SAMICTT0",367,0)
;
"RTN","SAMICTT0",368,0)
XSUB(var,vals,dict,valdx) ; extrinsic which returns the dictionary value defined by var
"RTN","SAMICTT0",369,0)
;
"RTN","SAMICTT0",370,0)
; vals and dict are passed by name
"RTN","SAMICTT0",371,0)
; valdx is used for nodules ala cect2co with the nodule number included
"RTN","SAMICTT0",372,0)
;
"RTN","SAMICTT0",373,0)
;n dict s dict=$$setroot^%wd("cteval-dict")
"RTN","SAMICTT0",374,0)
n zr,zv,zdx
"RTN","SAMICTT0",375,0)
s zdx=$g(valdx)
"RTN","SAMICTT0",376,0)
i zdx="" s zdx=var
"RTN","SAMICTT0",377,0)
s zv=$g(@vals@(zdx))
"RTN","SAMICTT0",378,0)
;i zv="" s zr="["_var_"]" q zr
"RTN","SAMICTT0",379,0)
i zv="" s zr="" q zr
"RTN","SAMICTT0",380,0)
s zr=$g(@dict@(var,zv))
"RTN","SAMICTT0",381,0)
;i zr="" s zr="["_var_","_zv_"]"
"RTN","SAMICTT0",382,0)
;
"RTN","SAMICTT0",383,0)
quit zr ; end of $$XSUB
"RTN","SAMICTT0",384,0)
;
"RTN","SAMICTT0",385,0)
;
"RTN","SAMICTT0",386,0)
;
"RTN","SAMICTT0",387,0)
GETFILTR(filter,sid) ; fill in the filter for Ct Eval for sid
"RTN","SAMICTT0",388,0)
;
"RTN","SAMICTT0",389,0)
s filter("studyid")=sid
"RTN","SAMICTT0",390,0)
n items,zform
"RTN","SAMICTT0",391,0)
d GETITEMS^SAMICASE("items",sid)
"RTN","SAMICTT0",392,0)
s zform=$o(items("ceform"))
"RTN","SAMICTT0",393,0)
s filter("form")=zform
"RTN","SAMICTT0",394,0)
;zwr filter
"RTN","SAMICTT0",395,0)
;
"RTN","SAMICTT0",396,0)
quit ; end of GETFILTR
"RTN","SAMICTT0",397,0)
;
"RTN","SAMICTT0",398,0)
;
"RTN","SAMICTT0",399,0)
;
"RTN","SAMICTT0",400,0)
T1(grtn,debug) ; test
"RTN","SAMICTT0",401,0)
;
"RTN","SAMICTT0",402,0)
n filter
"RTN","SAMICTT0",403,0)
;n sid s sid="XXX00333"
"RTN","SAMICTT0",404,0)
;n sid s sid="XXX00484"
"RTN","SAMICTT0",405,0)
n sid s sid="XXX9000001"
"RTN","SAMICTT0",406,0)
d GETFILTR(.filter,sid)
"RTN","SAMICTT0",407,0)
i $g(debug)=1 s filter("debug")=1
"RTN","SAMICTT0",408,0)
d WSNOTE^SAMINOT3(.grtn,.filter)
"RTN","SAMICTT0",409,0)
;d WSREPORT^SAMICTT0(.grtn,.filter)
"RTN","SAMICTT0",410,0)
;
"RTN","SAMICTT0",411,0)
quit ; end of T1
"RTN","SAMICTT0",412,0)
;
"RTN","SAMICTT0",413,0)
;
"RTN","SAMICTT0",414,0)
;
"RTN","SAMICTT0",415,0)
EOR ; end of routine SAMICTT0
"RTN","SAMICTT1")
0^10^B122873178
"RTN","SAMICTT1",1,0)
SAMICTT1 ;ven/gpl - ctreport text nodules ;2021-05-21T20:47Z
"RTN","SAMICTT1",2,0)
;;18.0;SAMI;**4,10,11**;2020-01;Build 21
"RTN","SAMICTT1",3,0)
;;1.18.0.11+i11
"RTN","SAMICTT1",4,0)
;
"RTN","SAMICTT1",5,0)
; SAMICTT1 creates the Nodules section of the ELCAP CT Report in text
"RTN","SAMICTT1",6,0)
; format.
"RTN","SAMICTT1",7,0)
;
"RTN","SAMICTT1",8,0)
quit ; no entry from top
"RTN","SAMICTT1",9,0)
;
"RTN","SAMICTT1",10,0)
;
"RTN","SAMICTT1",11,0)
;
"RTN","SAMICTT1",12,0)
;@section 0 primary development
"RTN","SAMICTT1",13,0)
;
"RTN","SAMICTT1",14,0)
;
"RTN","SAMICTT1",15,0)
;
"RTN","SAMICTT1",16,0)
;@license see routine SAMIUL
"RTN","SAMICTT1",17,0)
;@documentation see SAMICTUL
"RTN","SAMICTT1",18,0)
;@contents
"RTN","SAMICTT1",19,0)
; NODULES nodules section of ctreport in text format
"RTN","SAMICTT1",20,0)
; OUT output a line of ct report
"RTN","SAMICTT1",21,0)
; HOUT output a ct report header line
"RTN","SAMICTT1",22,0)
; $$XVAL patient value for var
"RTN","SAMICTT1",23,0)
; $$XSUB dictionary value defined by var
"RTN","SAMICTT1",24,0)
;
"RTN","SAMICTT1",25,0)
;
"RTN","SAMICTT1",26,0)
;
"RTN","SAMICTT1",27,0)
;@section 1 NODULES & related subroutines
"RTN","SAMICTT1",28,0)
;
"RTN","SAMICTT1",29,0)
;
"RTN","SAMICTT1",30,0)
;
"RTN","SAMICTT1",31,0)
NODULES(rtn,vals,dict) ; nodules section of ctreport in text format
"RTN","SAMICTT1",32,0)
;
"RTN","SAMICTT1",33,0)
;@called-by
"RTN","SAMICTT1",34,0)
; WSREPORT^SAMICTT0
"RTN","SAMICTT1",35,0)
;@calls
"RTN","SAMICTT1",36,0)
; $$XVAL
"RTN","SAMICTT1",37,0)
; OUT
"RTN","SAMICTT1",38,0)
; $$XSUB
"RTN","SAMICTT1",39,0)
; HOUT
"RTN","SAMICTT1",40,0)
;@input
"RTN","SAMICTT1",41,0)
; rtn
"RTN","SAMICTT1",42,0)
; vals
"RTN","SAMICTT1",43,0)
; dict
"RTN","SAMICTT1",44,0)
;@output
"RTN","SAMICTT1",45,0)
; nodules section added to cteval report
"RTN","SAMICTT1",46,0)
;
"RTN","SAMICTT1",47,0)
;# Report on Nodules
"RTN","SAMICTT1",48,0)
n firstitem
"RTN","SAMICTT1",49,0)
set firstitem=0
"RTN","SAMICTT1",50,0)
n outmode s outmode="hold"
"RTN","SAMICTT1",51,0)
n line s line=""
"RTN","SAMICTT1",52,0)
n ii set ii=1
"RTN","SAMICTT1",53,0)
;# Information for each nodule
"RTN","SAMICTT1",54,0)
f ii=1:1:10 d ;
"RTN","SAMICTT1",55,0)
. i $$XSUB("cectch",vals,dict,"cect"_ii_"ch")="px" q ;
"RTN","SAMICTT1",56,0)
. i $$XSUB("cectch",vals,dict,"cect"_ii_"ch")="" q ;
"RTN","SAMICTT1",57,0)
. i firstitem=0 d ;
"RTN","SAMICTT1",58,0)
. . ;d OUT("<!-- begin nodule info -->")
"RTN","SAMICTT1",59,0)
. . ;d OUT("<UL TYPE=disc>")
"RTN","SAMICTT1",60,0)
. . set firstitem=1
"RTN","SAMICTT1",61,0)
. ;
"RTN","SAMICTT1",62,0)
. ;d OUT("<LI>")
"RTN","SAMICTT1",63,0)
. n specialcase s specialcase=0
"RTN","SAMICTT1",64,0)
. n ij,ik
"RTN","SAMICTT1",65,0)
. s ik=$$XVAL("cect"_ii_"ch",vals)
"RTN","SAMICTT1",66,0)
. ;f ij="pw","px","pr","pv" i ij=ik s specialcase=1
"RTN","SAMICTT1",67,0)
. i "pwpxprpv"[ik s specialcase=1
"RTN","SAMICTT1",68,0)
. ;
"RTN","SAMICTT1",69,0)
. ;# Example Sentence
"RTN","SAMICTT1",70,0)
. ;# LUL Nodule 1 is non-calcified, non-solid, 6 mm x 6 mm (with 3 x 3) solid component), smooth edge, previously seen and unchanged. (Series 2, Image 65)
"RTN","SAMICTT1",71,0)
. ;# [LOCATION] Nodule [N] is [CALCIFICATION], [SOLID], [L] mm x mm, [SMOOTH], [NEW]. (Series [Series], Image [ImageNum]).
"RTN","SAMICTT1",72,0)
. ;
"RTN","SAMICTT1",73,0)
. n spic s spic=""
"RTN","SAMICTT1",74,0)
. i $$XVAL("cect"_ii_"sp",vals)="y" s spic="spiculated, "
"RTN","SAMICTT1",75,0)
. ;
"RTN","SAMICTT1",76,0)
. n calcification,calcstr,status
"RTN","SAMICTT1",77,0)
. s status=$$XVAL("cect"_ii_"st",vals)
"RTN","SAMICTT1",78,0)
. s @vals@("cect"_ii_"ca")=$s(status="bc":"y",status="pc":"q",1:"n")
"RTN","SAMICTT1",79,0)
. s calcification=$$XSUB("cectca",vals,dict,"cect"_ii_"ca")
"RTN","SAMICTT1",80,0)
. i calcification="" s calcstr="is "_spic_$$XSUB("cectnt",vals,dict,"cect"_ii_"nt")_", "
"RTN","SAMICTT1",81,0)
. e s calcstr="is "_calcification_", "_spic_$$XSUB("cectnt",vals,dict,"cect"_ii_"nt")_", "
"RTN","SAMICTT1",82,0)
. ;
"RTN","SAMICTT1",83,0)
. n vssl,vssw,vsl,vsw,avgs,avgss
"RTN","SAMICTT1",84,0)
. s (vssl,vssw,vsl,vsw,avgs,avgss)=0
"RTN","SAMICTT1",85,0)
. s vssl=$$XVAL("cect"_ii_"ssl",vals)
"RTN","SAMICTT1",86,0)
. i vssl'=0 d ;
"RTN","SAMICTT1",87,0)
. . s vssw=$$XVAL("cect"_ii_"ssw",vals)
"RTN","SAMICTT1",88,0)
. . s avgss=(vssl+vssw)/2
"RTN","SAMICTT1",89,0)
. . s avgss=$j(avgss,1,1)
"RTN","SAMICTT1",90,0)
. s vsl=$$XVAL("cect"_ii_"sl",vals)
"RTN","SAMICTT1",91,0)
. s vsw=$$XVAL("cect"_ii_"sw",vals)
"RTN","SAMICTT1",92,0)
. s avgs=(vsl+vsw)/2
"RTN","SAMICTT1",93,0)
. s avgs=$j(avgs,1,1)
"RTN","SAMICTT1",94,0)
. n scomp
"RTN","SAMICTT1",95,0)
. s scomp=""
"RTN","SAMICTT1",96,0)
. i $$XVAL("cect"_ii_"ssl",vals)'="" d ;
"RTN","SAMICTT1",97,0)
. . ;s scomp=" (solid component "_$$XVAL("cect"_ii_"ssl",vals)_" mm x "_$$XVAL("cect"_ii_"ssw",vals)_" mm average diameter "_avgss_" mm)"
"RTN","SAMICTT1",98,0)
. . s scomp=", solid component "_$$XVAL("cect"_ii_"ssl",vals)_" mm x "_$$XVAL("cect"_ii_"ssw",vals)_" mm (average diameter of "_avgss_" mm)"
"RTN","SAMICTT1",99,0)
. ;
"RTN","SAMICTT1",100,0)
. s calcstr=calcstr_$$XVAL("cect"_ii_"sl",vals)_" mm x "_$$XVAL("cect"_ii_"sw",vals)_" mm (average diameter of "_avgs_" mm)"_scomp_", "
"RTN","SAMICTT1",101,0)
. ;
"RTN","SAMICTT1",102,0)
. n smooth
"RTN","SAMICTT1",103,0)
. ;s smooth=$$XSUB("cectse",vals,dict,"cect"_ii_"se")
"RTN","SAMICTT1",104,0)
. s smooth=$$XVAL("cect"_ii_"se",vals)
"RTN","SAMICTT1",105,0)
. i smooth="y" s calcstr=calcstr_"smooth edges, "
"RTN","SAMICTT1",106,0)
. ;e s calcstr=calcstr_smooth_" edges, " ;nothing if not smooth
"RTN","SAMICTT1",107,0)
. ;
"RTN","SAMICTT1",108,0)
. ; adding distance from costal pleura
"RTN","SAMICTT1",109,0)
. n pldstr
"RTN","SAMICTT1",110,0)
. s pldstr="within "_$$XVAL("cect"_ii_"pld",vals)_" mm of the costal pleura"
"RTN","SAMICTT1",111,0)
. ;
"RTN","SAMICTT1",112,0)
. n skip s skip=0
"RTN","SAMICTT1",113,0)
. ;# 3 cases: parenchymal, endobronchial, and both
"RTN","SAMICTT1",114,0)
. ;
"RTN","SAMICTT1",115,0)
. n en,loc,nloc,endo,ll
"RTN","SAMICTT1",116,0)
. s loc=""
"RTN","SAMICTT1",117,0)
. s nloc=""
"RTN","SAMICTT1",118,0)
. s en=$$XVAL("cect"_ii_"en",vals)
"RTN","SAMICTT1",119,0)
. s ll=$$XVAL("cect"_ii_"ll",vals)
"RTN","SAMICTT1",120,0)
. i ($l(en)<2)!(en="no")!(en="") d ;
"RTN","SAMICTT1",121,0)
. . ;# 1) parenchymal only
"RTN","SAMICTT1",122,0)
. . n X,Y s X=ll
"RTN","SAMICTT1",123,0)
. . X ^%ZOSF("UPPERCASE")
"RTN","SAMICTT1",124,0)
. . s loc=Y
"RTN","SAMICTT1",125,0)
. . s nloc=Y
"RTN","SAMICTT1",126,0)
. . s endo="Nodule"
"RTN","SAMICTT1",127,0)
. e d ;
"RTN","SAMICTT1",128,0)
. . i ll="end" d ;
"RTN","SAMICTT1",129,0)
. . . ;# 2) Endobronchial only
"RTN","SAMICTT1",130,0)
. . . i en="tr" d ;
"RTN","SAMICTT1",131,0)
. . . . s endo="Endotracheal Nodule"
"RTN","SAMICTT1",132,0)
. . . . i specialcase=1 d ;
"RTN","SAMICTT1",133,0)
. . . . . d OUT("Previously seen "_endo_" "_ii_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",134,0)
. . . . e d ;
"RTN","SAMICTT1",135,0)
. . . . . i ($$XVAL("cetex",vals)="b")&($$XVAL("cectch"_ii_"ch",vals)="n") d ;
"RTN","SAMICTT1",136,0)
. . . . . . d OUT(endo_" "_ii_" "_calcstr_" is seen. ")
"RTN","SAMICTT1",137,0)
. . . . . e d OUT(endo_" "_ii_" "_calcstr_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",138,0)
. . . . s skip=1
"RTN","SAMICTT1",139,0)
. . . i en="rm" d ;
"RTN","SAMICTT1",140,0)
. . . . s endo="Nodule"
"RTN","SAMICTT1",141,0)
. . . . s nloc=$$XSUB("cecten",vals,dict,"cect"_ii_"en")
"RTN","SAMICTT1",142,0)
. . . . i specialcase=1 d ;
"RTN","SAMICTT1",143,0)
. . . . . ;d OUT("Previously seen "_nloc_" "_endo_" "_ii_" ")
"RTN","SAMICTT1",144,0)
. . . . . d OUT("Previously seen "_endo_" "_ii_" in the "_nloc_" "_calcstr_" ")
"RTN","SAMICTT1",145,0)
. . . . . d OUT($$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",146,0)
. . . . e d ;
"RTN","SAMICTT1",147,0)
. . . . . i ($$XVAL("cetex",vals)="b")&($$XVAL("cect"_ii_"ch",vals)="n") d ;
"RTN","SAMICTT1",148,0)
. . . . . . ;d OUT(nloc_" "_endo_" "_ii_". ")
"RTN","SAMICTT1",149,0)
. . . . . . d OUT(endo_" "_ii_" is seen in the "_nloc_" "_calcstr_". ")
"RTN","SAMICTT1",150,0)
. . . . . ;e d OUT(nloc_" "_endo_" "_ii_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",151,0)
. . . . . e d OUT(endo_" "_ii_" in the "_nloc_" "_calcstr_", "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",152,0)
. . . . s skip=1
"RTN","SAMICTT1",153,0)
. . . i en="bi" d ;
"RTN","SAMICTT1",154,0)
. . . . s endo="Nodule"
"RTN","SAMICTT1",155,0)
. . . . s loc=$$XSUB("cecten",vals,dict,"cect"_ii_"en")
"RTN","SAMICTT1",156,0)
. . . . i specialcase=1 d ;
"RTN","SAMICTT1",157,0)
. . . . . ;d OUT("Previously seen "_endo_" "_ii_" in the "_loc)
"RTN","SAMICTT1",158,0)
. . . . . d OUT("Previously seen "_endo_" "_ii_" in the "_nloc_" "_calcstr_" ")
"RTN","SAMICTT1",159,0)
. . . . . d OUT($$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",160,0)
. . . . e d ;
"RTN","SAMICTT1",161,0)
. . . . . i ($$XVAL("cetex",vals)="b")&($$XVAL("cect"_ii_"ch",vals)="n") d ;
"RTN","SAMICTT1",162,0)
. . . . . . ;d OUT(endo_" "_ii_" is seen in the "_loc_". ")
"RTN","SAMICTT1",163,0)
. . . . . . d OUT(endo_" "_ii_" is seen in the "_loc_" "_calcstr_". ")
"RTN","SAMICTT1",164,0)
. . . . . e d OUT(nloc_" "_endo_" "_ii_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",165,0)
. . . . s skip=1
"RTN","SAMICTT1",166,0)
. . . i skip=0 d ; "default"
"RTN","SAMICTT1",167,0)
. . . . s endo="Nodule"
"RTN","SAMICTT1",168,0)
. . . . n X,Y
"RTN","SAMICTT1",169,0)
. . . . s X=$$XVAL("cect"_ii_"en",vals)
"RTN","SAMICTT1",170,0)
. . . . X ^%ZOSF("UPPERCASE")
"RTN","SAMICTT1",171,0)
. . . . s nloc=Y
"RTN","SAMICTT1",172,0)
. . . . i specialcase=1 d ;
"RTN","SAMICTT1",173,0)
. . . . . d OUT(nloc_" "_endo_" "_ii_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_", likely endobronchial. ")
"RTN","SAMICTT1",174,0)
. . . . e d ;
"RTN","SAMICTT1",175,0)
. . . . . ;i ($$XVAL("cetex",vals)="b")&($$XSUB("cectch",vals,dict,"cect"_ii_"ch")="n") d ;
"RTN","SAMICTT1",176,0)
. . . . . i (($$XVAL("cetex",vals)="b")&($$XVAL("cect"_ii_"ch",vals)="n")) d ; gpl 1002
"RTN","SAMICTT1",177,0)
. . . . . . d OUT(nloc_" "_endo_" "_ii_" "_calcstr_" likely endobronchial. ")
"RTN","SAMICTT1",178,0)
. . . . . e d OUT(nloc_" "_endo_" "_ii_" "_calcstr_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_" likely endobronchial. ")
"RTN","SAMICTT1",179,0)
. . . . s skip=1
"RTN","SAMICTT1",180,0)
. . e d ;
"RTN","SAMICTT1",181,0)
. . . s endo="Nodule"
"RTN","SAMICTT1",182,0)
. . . s loc=$$XSUB("cectll",vals,dict,"cect"_ii_"ll")
"RTN","SAMICTT1",183,0)
. . . n X,Y
"RTN","SAMICTT1",184,0)
. . . s X=$$XVAL("cect"_ii_"en",vals)
"RTN","SAMICTT1",185,0)
. . . X ^%ZOSF("UPPERCASE")
"RTN","SAMICTT1",186,0)
. . . s nloc=Y
"RTN","SAMICTT1",187,0)
. . . i specialcase=1 d ;
"RTN","SAMICTT1",188,0)
. . . . d OUT(nloc_" "_endo_" "_ii_" previously seen with possible endobronchial component")
"RTN","SAMICTT1",189,0)
. . . . d OUT($$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",190,0)
. . . e d ;
"RTN","SAMICTT1",191,0)
. . . . ;i ($$XVAL("cetex",vals)="b")&($$XSUB("cectch",vals,dict,"cect"_ii_"ch")="n") d ;
"RTN","SAMICTT1",192,0)
. . . . i (($$XVAL("cetex",vals)="b")&($$XVAL("cect"_ii_"ch",vals)="n")) d ; gpl 1002
"RTN","SAMICTT1",193,0)
. . . . . d OUT(nloc_" "_endo_" "_ii_" "_calcstr_" with possible endobronchial component")
"RTN","SAMICTT1",194,0)
. . . . e d OUT(nloc_" "_endo_" "_ii_" "_calcstr_" with possible endobronchial component "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",195,0)
. . . s skip=1
"RTN","SAMICTT1",196,0)
. i specialcase=1 d ;
"RTN","SAMICTT1",197,0)
. . i skip=0 d ;
"RTN","SAMICTT1",198,0)
. . . d OUT("Previously seen "_nloc_" "_endo_" "_ii_" ")
"RTN","SAMICTT1",199,0)
. . . d OUT($$XSUB("cectch",vals,dict,"cect"_ii_"ch")_". ")
"RTN","SAMICTT1",200,0)
. e d ;
"RTN","SAMICTT1",201,0)
. . i skip=0 d ;
"RTN","SAMICTT1",202,0)
. . . ;# pleural distance only goes here
"RTN","SAMICTT1",203,0)
. . . i $$XVAL("cect"_ii_"pld",vals)'="" s calcstr=calcstr_" "_pldstr_","
"RTN","SAMICTT1",204,0)
. . . ;# Special Handling for "newly seen" on baseline
"RTN","SAMICTT1",205,0)
. . . ;i ($$XVAL("cetex",vals)="b")&($$XSUB("cectch",vals,dict,"cect"_ii_"ch")="n") d ;
"RTN","SAMICTT1",206,0)
. . . i (($$XVAL("cetex",vals)="b")&($$XVAL("cect"_ii_"ch",vals)="n")) d ; gpl 1002
"RTN","SAMICTT1",207,0)
. . . . d OUT(nloc_" "_endo_" "_ii_" "_calcstr)
"RTN","SAMICTT1",208,0)
. . . e d OUT(nloc_" "_endo_" "_ii_" "_calcstr_" "_$$XSUB("cectch",vals,dict,"cect"_ii_"ch")_" ")
"RTN","SAMICTT1",209,0)
. . d OUT(" (Series "_$$XVAL("cect"_ii_"sn",vals)_",") ; added from 1114 gpl1
"RTN","SAMICTT1",210,0)
. . ;i $$XVAL("cect"_ii_"inl",vals)=$$XVAL("cect"_ii_"inh",vals) d ;
"RTN","SAMICTT1",211,0)
. . ;. d OUT(" image "_$$XVAL("cect"_ii_"inh",vals)_"). ")
"RTN","SAMICTT1",212,0)
. . ;e d ;
"RTN","SAMICTT1",213,0)
. . ;. d OUT(" image "_$$XVAL("cect"_ii_"inl",vals)_$$XVAL("cect"_ii_"inh",vals)_"). ")
"RTN","SAMICTT1",214,0)
. . i $$XVAL("cect"_ii_"inh",vals)="" d ;
"RTN","SAMICTT1",215,0)
. . . d OUT(" image "_$$XVAL("cect"_ii_"inl",vals)_"). ")
"RTN","SAMICTT1",216,0)
. . e d ;
"RTN","SAMICTT1",217,0)
. . . d OUT(" image "_$$XVAL("cect"_ii_"inl",vals)_"-"_$$XVAL("cect"_ii_"inh",vals)_"). ")
"RTN","SAMICTT1",218,0)
. . i $$XVAL("cect"_ii_"co",vals)'="" d OUT($$XVAL("cect"_ii_"co",vals)_". ") ;1122 gpl1
"RTN","SAMICTT1",219,0)
. . n ac
"RTN","SAMICTT1",220,0)
. . s ac=$$XVAL("cect"_ii_"ac",vals)
"RTN","SAMICTT1",221,0)
. . i ac'="" i (ac'="-") i (ac'="s") d ;
"RTN","SAMICTT1",222,0)
. . . d OUT($$XSUB("cectac",vals,dict,"cect"_ii_"ac")_" recommended. ")
"RTN","SAMICTT1",223,0)
. ;
"RTN","SAMICTT1",224,0)
. ; end of nodule processing
"RTN","SAMICTT1",225,0)
. ;
"RTN","SAMICTT1",226,0)
. s outmode="go"
"RTN","SAMICTT1",227,0)
. d OUT("")
"RTN","SAMICTT1",228,0)
. s outmode="hold"
"RTN","SAMICTT1",229,0)
i firstitem'=0 d ;
"RTN","SAMICTT1",230,0)
. ;d OUT("</UL>")
"RTN","SAMICTT1",231,0)
. ;d OUT("<!-- end nodule info -->")
"RTN","SAMICTT1",232,0)
;d OUT("</p>")
"RTN","SAMICTT1",233,0)
;
"RTN","SAMICTT1",234,0)
; added 5/19/21 gpl
"RTN","SAMICTT1",235,0)
s outmode="go"
"RTN","SAMICTT1",236,0)
i $$XVAL("cectancn",vals)=1 d OUT("Small non-calcified nodules are present ")
"RTN","SAMICTT1",237,0)
i $$XVAL("cectacn",vals)=1 d OUT("Small calcified nodules are present ")
"RTN","SAMICTT1",238,0)
d OUT(" ")
"RTN","SAMICTT1",239,0)
;
"RTN","SAMICTT1",240,0)
quit ; end of NODULES
"RTN","SAMICTT1",241,0)
;
"RTN","SAMICTT1",242,0)
;
"RTN","SAMICTT1",243,0)
;
"RTN","SAMICTT1",244,0)
OUT(ln) ; output a line of ct report
"RTN","SAMICTT1",245,0)
;
"RTN","SAMICTT1",246,0)
;@called-by
"RTN","SAMICTT1",247,0)
; NODULES
"RTN","SAMICTT1",248,0)
;@calls none
"RTN","SAMICTT1",249,0)
;@input
"RTN","SAMICTT1",250,0)
; ln = output to add
"RTN","SAMICTT1",251,0)
;@output
"RTN","SAMICTT1",252,0)
; line added to report
"RTN","SAMICTT1",253,0)
;
"RTN","SAMICTT1",254,0)
i outmode="hold" s line=line_ln q ;
"RTN","SAMICTT1",255,0)
s cnt=cnt+1
"RTN","SAMICTT1",256,0)
n lnn
"RTN","SAMICTT1",257,0)
;s debug=1
"RTN","SAMICTT1",258,0)
s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTT1",259,0)
i outmode="go" d ;
"RTN","SAMICTT1",260,0)
. s @rtn@(lnn)=line
"RTN","SAMICTT1",261,0)
. s line=""
"RTN","SAMICTT1",262,0)
. s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTT1",263,0)
s @rtn@(lnn)=ln
"RTN","SAMICTT1",264,0)
;
"RTN","SAMICTT1",265,0)
i $g(debug)=1 d ;
"RTN","SAMICTT1",266,0)
. i ln["<" q ; no markup
"RTN","SAMICTT1",267,0)
. n zs s zs=$STACK
"RTN","SAMICTT1",268,0)
. n zp s zp=$STACK(zs-2,"PLACE")
"RTN","SAMICTT1",269,0)
. s @rtn@(lnn)=zp_":"_ln
"RTN","SAMICTT1",270,0)
;
"RTN","SAMICTT1",271,0)
quit ; end of OUT
"RTN","SAMICTT1",272,0)
;
"RTN","SAMICTT1",273,0)
;
"RTN","SAMICTT1",274,0)
;
"RTN","SAMICTT1",275,0)
HOUT(ln) ; output a ct report header line
"RTN","SAMICTT1",276,0)
;
"RTN","SAMICTT1",277,0)
;@called-by
"RTN","SAMICTT1",278,0)
; NODULES
"RTN","SAMICTT1",279,0)
;@calls
"RTN","SAMICTT1",280,0)
; OUT
"RTN","SAMICTT1",281,0)
;@input
"RTN","SAMICTT1",282,0)
; ln = header output to add
"RTN","SAMICTT1",283,0)
;@output
"RTN","SAMICTT1",284,0)
; header line added to report
"RTN","SAMICTT1",285,0)
;
"RTN","SAMICTT1",286,0)
d OUT(ln)
"RTN","SAMICTT1",287,0)
;d OUT("<p><span class='sectionhead'>"_ln_"</span>")
"RTN","SAMICTT1",288,0)
;
"RTN","SAMICTT1",289,0)
quit ; end of HOUT
"RTN","SAMICTT1",290,0)
;
"RTN","SAMICTT1",291,0)
;
"RTN","SAMICTT1",292,0)
;
"RTN","SAMICTT1",293,0)
XVAL(var,vals) ; extrinsic returns the patient value for var
"RTN","SAMICTT1",294,0)
;
"RTN","SAMICTT1",295,0)
;@called-by
"RTN","SAMICTT1",296,0)
; NODULES
"RTN","SAMICTT1",297,0)
;@calls none
"RTN","SAMICTT1",298,0)
;@input
"RTN","SAMICTT1",299,0)
; val
"RTN","SAMICTT1",300,0)
; vals is passed by name
"RTN","SAMICTT1",301,0)
;@output = patient value for var
"RTN","SAMICTT1",302,0)
;
"RTN","SAMICTT1",303,0)
n zr
"RTN","SAMICTT1",304,0)
s zr=$g(@vals@(var))
"RTN","SAMICTT1",305,0)
;i zr="" s zr="["_var_"]"
"RTN","SAMICTT1",306,0)
;
"RTN","SAMICTT1",307,0)
quit zr ; end of $$XVAL
"RTN","SAMICTT1",308,0)
;
"RTN","SAMICTT1",309,0)
;
"RTN","SAMICTT1",310,0)
;
"RTN","SAMICTT1",311,0)
XSUB(var,vals,dict,valdx) ; extrinsic which returns the dictionary value defined by var
"RTN","SAMICTT1",312,0)
;
"RTN","SAMICTT1",313,0)
;@called-by
"RTN","SAMICTT1",314,0)
; NODULES
"RTN","SAMICTT1",315,0)
;@calls none
"RTN","SAMICTT1",316,0)
;@input
"RTN","SAMICTT1",317,0)
; val
"RTN","SAMICTT1",318,0)
; vals and dict are passed by name
"RTN","SAMICTT1",319,0)
; valdx is used for nodules ala cect2co with the nodule number included
"RTN","SAMICTT1",320,0)
;@output = dictionary value for var
"RTN","SAMICTT1",321,0)
;
"RTN","SAMICTT1",322,0)
;n dict s dict=$$setroot^%wd("cteval-dict")
"RTN","SAMICTT1",323,0)
n zr,zv,zdx
"RTN","SAMICTT1",324,0)
s zdx=$g(valdx)
"RTN","SAMICTT1",325,0)
i zdx="" s zdx=var
"RTN","SAMICTT1",326,0)
s zv=$g(@vals@(zdx))
"RTN","SAMICTT1",327,0)
;i zv="" s zr="["_var_"]" q zr
"RTN","SAMICTT1",328,0)
i zv="" s zr="" q zr
"RTN","SAMICTT1",329,0)
s zr=$g(@dict@(var,zv))
"RTN","SAMICTT1",330,0)
;i zr="" s zr="["_var_","_zv_"]"
"RTN","SAMICTT1",331,0)
;
"RTN","SAMICTT1",332,0)
quit zr ; end of $$XSUB
"RTN","SAMICTT1",333,0)
;
"RTN","SAMICTT1",334,0)
;
"RTN","SAMICTT1",335,0)
;
"RTN","SAMICTT1",336,0)
EOR ; end of routine SAMICTT1
"RTN","SAMICTTA")
0^9^B35698365
"RTN","SAMICTTA",1,0)
SAMICTTA ;ven/gpl - ctreport text recommendations ;2021-05-21T20:47Z
"RTN","SAMICTTA",2,0)
;;18.0;SAMI;**4,10,11**;2020-01;Build 21
"RTN","SAMICTTA",3,0)
;;1.18.0.11+i11
"RTN","SAMICTTA",4,0)
;
"RTN","SAMICTTA",5,0)
; SAMICTTA creates the Recommendations section of the ELCAP CT Report
"RTN","SAMICTTA",6,0)
; in text format.
"RTN","SAMICTTA",7,0)
;
"RTN","SAMICTTA",8,0)
quit ; no entry from top
"RTN","SAMICTTA",9,0)
;
"RTN","SAMICTTA",10,0)
;
"RTN","SAMICTTA",11,0)
;
"RTN","SAMICTTA",12,0)
;@section 0 primary development
"RTN","SAMICTTA",13,0)
;
"RTN","SAMICTTA",14,0)
;
"RTN","SAMICTTA",15,0)
;
"RTN","SAMICTTA",16,0)
;@license see routine SAMIUL
"RTN","SAMICTTA",17,0)
;@documentation see SAMICTUL
"RTN","SAMICTTA",18,0)
;@contents
"RTN","SAMICTTA",19,0)
; RCMND recommendations section of ctreport in text format
"RTN","SAMICTTA",20,0)
; OUT output a line of ct report
"RTN","SAMICTTA",21,0)
; HOUT output a ct report header line
"RTN","SAMICTTA",22,0)
; $$XVAL patient value for var
"RTN","SAMICTTA",23,0)
; $$XSUB dictionary value defined by var
"RTN","SAMICTTA",24,0)
;
"RTN","SAMICTTA",25,0)
;
"RTN","SAMICTTA",26,0)
;
"RTN","SAMICTTA",27,0)
;@section 1 RCMND & related subroutines
"RTN","SAMICTTA",28,0)
;
"RTN","SAMICTTA",29,0)
;
"RTN","SAMICTTA",30,0)
;
"RTN","SAMICTTA",31,0)
RCMND(rtn,vals,dict) ; recommendations section of ctreport text format
"RTN","SAMICTTA",32,0)
;
"RTN","SAMICTTA",33,0)
; repgen14
"RTN","SAMICTTA",34,0)
;
"RTN","SAMICTTA",35,0)
;@called-by
"RTN","SAMICTTA",36,0)
; WSREPORT^SAMICTT0
"RTN","SAMICTTA",37,0)
;@calls
"RTN","SAMICTTA",38,0)
; $$XVAL
"RTN","SAMICTTA",39,0)
; OUT
"RTN","SAMICTTA",40,0)
; $$XSUB
"RTN","SAMICTTA",41,0)
;@input
"RTN","SAMICTTA",42,0)
; rtn
"RTN","SAMICTTA",43,0)
; vals
"RTN","SAMICTTA",44,0)
; dict
"RTN","SAMICTTA",45,0)
;@output
"RTN","SAMICTTA",46,0)
; create impressions section of ct report in text format
"RTN","SAMICTTA",47,0)
;
"RTN","SAMICTTA",48,0)
;# Recommendation
"RTN","SAMICTTA",49,0)
;d OUT("</TD></TR>")
"RTN","SAMICTTA",50,0)
;d OUT("</TABLE>")
"RTN","SAMICTTA",51,0)
;d OUT("<TR><TD></TD></TR>")
"RTN","SAMICTTA",52,0)
;d OUT("<!-- Recommendation -->")
"RTN","SAMICTTA",53,0)
;
"RTN","SAMICTTA",54,0)
i $$XVAL("cefu",vals)'="nf" d ; 2445-2450 gpl1
"RTN","SAMICTTA",55,0)
. ;d OUT("<TR><TD><FONT SIZE=""+2""><B>")
"RTN","SAMICTTA",56,0)
. ;d OUT("<FONT SIZE=""+2""><B>")
"RTN","SAMICTTA",57,0)
. d OUT("")
"RTN","SAMICTTA",58,0)
. d OUT("Recommendations:")
"RTN","SAMICTTA",59,0)
. d OUT("")
"RTN","SAMICTTA",60,0)
. ;d OUT("</B></FONT>")
"RTN","SAMICTTA",61,0)
. ;d OUT("</TD></TR><TR><TD><TABLE><TR><TD WIDTH=20></TD><TD>")
"RTN","SAMICTTA",62,0)
;
"RTN","SAMICTTA",63,0)
n fuw
"RTN","SAMICTTA",64,0)
s fuw=$$XSUB("cefuw",vals,dict)
"RTN","SAMICTTA",65,0)
;d OUT("fuw= "_fuw)
"RTN","SAMICTTA",66,0)
;d OUT("vals= "_vals)
"RTN","SAMICTTA",67,0)
;d OUT(" dict= "_dict)
"RTN","SAMICTTA",68,0)
;d OUT($o(@vals@("cefuw","")))
"RTN","SAMICTTA",69,0)
;zwr @vals@(*)
"RTN","SAMICTTA",70,0)
;zwr @dict@(*)
"RTN","SAMICTTA",71,0)
;i fuw="" d ;
"RTN","SAMICTTA",72,0)
;. d OUT(para_"<B>"_$$XSUB("cefu",vals,dict)_" on "_$$XVAL("cefud",vals)_".</B>"_para)
"RTN","SAMICTTA",73,0)
;e d ;
"RTN","SAMICTTA",74,0)
;. d OUT(para_"<B>"_$$XSUB("cefu",vals,dict)_" "_fuw_" on "_$$XVAL("cefud",vals)_".</B>"_para)
"RTN","SAMICTTA",75,0)
i fuw="" d ;
"RTN","SAMICTTA",76,0)
. ;d OUT(para_"<B>A followup CT scan is recommended on "_$$XVAL("cefud",vals)_".</B>"_para)
"RTN","SAMICTTA",77,0)
. i $$XVAL("cefud",vals)="" q ; no date given
"RTN","SAMICTTA",78,0)
. d OUT("A followup CT scan is recommended on "_$$XVAL("cefud",vals)_". ") d OUT("")
"RTN","SAMICTTA",79,0)
e d ;
"RTN","SAMICTTA",80,0)
. ;d OUT(para_"<B>A followup CT scan is recommended "_fuw_" on "_$$XVAL("cefud",vals)_".</B>"_para)
"RTN","SAMICTTA",81,0)
. d OUT("A followup CT scan is recommended "_fuw_" on "_$$XVAL("cefud",vals)_". ") d OUT("")
"RTN","SAMICTTA",82,0)
;
"RTN","SAMICTTA",83,0)
; #Other followup
"RTN","SAMICTTA",84,0)
n zfu,ofu,tofu,comma
"RTN","SAMICTTA",85,0)
s comma=0,tofu=""
"RTN","SAMICTTA",86,0)
s ofu=""
"RTN","SAMICTTA",87,0)
f zfu="cefuaf","cefucc","cefupe","cefufn","cefubr","cefupc","cefutb" d ;
"RTN","SAMICTTA",88,0)
. i $$XVAL(zfu,vals)="y" s ofu=ofu_zfu
"RTN","SAMICTTA",89,0)
i $$XVAL("cefuo",vals)'="" s ofu=ofu_"cefuo"
"RTN","SAMICTTA",90,0)
i ofu'="" d ;
"RTN","SAMICTTA",91,0)
. s tofu="Followup: "
"RTN","SAMICTTA",92,0)
. i ofu["cefuaf" s tofu=tofu_"Antibiotics" s comma=1
"RTN","SAMICTTA",93,0)
. i ofu["cefucc" s tofu=tofu_$s(comma:", ",1:"")_"Diagnostic CT" s comma=1
"RTN","SAMICTTA",94,0)
. i ofu["cefupe" s tofu=tofu_$s(comma:", ",1:"")_"PET" s comma=1
"RTN","SAMICTTA",95,0)
. i ofu["cefufn" s tofu=tofu_$s(comma:", ",1:"")_"Percutaneous biopsy" s comma=1
"RTN","SAMICTTA",96,0)
. i ofu["cefubr" s tofu=tofu_$s(comma:", ",1:"")_"Bronchoscopy" s comma=1
"RTN","SAMICTTA",97,0)
. i ofu["cefupc" s tofu=tofu_$s(comma:", ",1:"")_"Pulmonary consultation" s comma=1
"RTN","SAMICTTA",98,0)
. i ofu["cefutb" s tofu=tofu_$s(comma:", ",1:"")_"Refer to tumor board" s comma=1
"RTN","SAMICTTA",99,0)
. i ofu["cefuo" s tofu=tofu_$s(comma:", ",1:"")_$$XVAL("cefuoo",vals) s comma=1
"RTN","SAMICTTA",100,0)
i ofu'="" d OUT(para_tofu_para) d OUT("")
"RTN","SAMICTTA",101,0)
;d OUT("<TR><TD></TD></TR>")
"RTN","SAMICTTA",102,0)
; # LungRADS
"RTN","SAMICTTA",103,0)
;
"RTN","SAMICTTA",104,0)
;d OUT("<TR><TD>")
"RTN","SAMICTTA",105,0)
;n lrstyle
"RTN","SAMICTTA",106,0)
;i $$XVAL("celrc",vals)'="" s lrstyle=1 ; dom's style
"RTN","SAMICTTA",107,0)
;e s lrstyle=0 ; artit's style
"RTN","SAMICTTA",108,0)
;s lrstyle=0
"RTN","SAMICTTA",109,0)
;
"RTN","SAMICTTA",110,0)
d ;
"RTN","SAMICTTA",111,0)
. q ; LUNGRADS moved to SAMICTR4
"RTN","SAMICTTA",112,0)
. n lradModifiers
"RTN","SAMICTTA",113,0)
. s lradModifiers=$$XVAL("celradc",vals)_$$XVAL("celrads",vals)
"RTN","SAMICTTA",114,0)
. ;
"RTN","SAMICTTA",115,0)
. i ($$XVAL("celrad",vals)'="-")&($$XVAL("celrad",vals)'="") d ;
"RTN","SAMICTTA",116,0)
. . d OUT("The LungRADS category for this scan is: "_$$XVAL("celrad",vals)_" "_lradModifiers)
"RTN","SAMICTTA",117,0)
. . d OUT(para)
"RTN","SAMICTTA",118,0)
;
"RTN","SAMICTTA",119,0)
;d OUT("</TD></TR>")
"RTN","SAMICTTA",120,0)
;
"RTN","SAMICTTA",121,0)
;d OUT("<TR><TD><TABLE><TR><TD WIDTH=20></TD><TD>")
"RTN","SAMICTTA",122,0)
;
"RTN","SAMICTTA",123,0)
;# Check if Study is Completed
"RTN","SAMICTTA",124,0)
;# Find Current Study ID
"RTN","SAMICTTA",125,0)
;# locate most recent followup
"RTN","SAMICTTA",126,0)
;# get status (sies)
"RTN","SAMICTTA",127,0)
;# if sc=Study Complete and cefu=rs
"RTN","SAMICTTA",128,0)
;
"RTN","SAMICTTA",129,0)
n patstatus
"RTN","SAMICTTA",130,0)
s patstatus=$$XVAL("cedos",vals)
"RTN","SAMICTTA",131,0)
;i patstatus="sc" d OUT(para_$g(@dict@("study_complete")))
"RTN","SAMICTTA",132,0)
i patstatus="sc" d OUT($g(@dict@("study_complete"))) d OUT("")
"RTN","SAMICTTA",133,0)
;
"RTN","SAMICTTA",134,0)
;# Radiologist
"RTN","SAMICTTA",135,0)
i $$XVAL("cerad",vals)'="" d ;
"RTN","SAMICTTA",136,0)
. d OUT("Interpreted by: "_$$XVAL("cerad",vals)) d OUT("")
"RTN","SAMICTTA",137,0)
;
"RTN","SAMICTTA",138,0)
;d OUT("<TR><TD></TD></TR>")
"RTN","SAMICTTA",139,0)
; # LungRADS
"RTN","SAMICTTA",140,0)
;
"RTN","SAMICTTA",141,0)
;d OUT("<TR><TD>")
"RTN","SAMICTTA",142,0)
n lrstyle
"RTN","SAMICTTA",143,0)
i $$XVAL("celrc",vals)'="" s lrstyle=1 ; dom's style
"RTN","SAMICTTA",144,0)
e s lrstyle=0 ; artit's style
"RTN","SAMICTTA",145,0)
s lrstyle=0
"RTN","SAMICTTA",146,0)
;
"RTN","SAMICTTA",147,0)
d ;
"RTN","SAMICTTA",148,0)
. ;q ; LUNGRADS moved to SAMICTR4
"RTN","SAMICTTA",149,0)
. n lradModifiers
"RTN","SAMICTTA",150,0)
. s lradModifiers=$$XVAL("celradc",vals)_$$XVAL("celrads",vals)
"RTN","SAMICTTA",151,0)
. ;
"RTN","SAMICTTA",152,0)
. i ($$XVAL("celrad",vals)'="-")&($$XVAL("celrad",vals)'="") d ;
"RTN","SAMICTTA",153,0)
. . d OUT("The LungRADS category for this scan is: "_$$XVAL("celrad",vals)_" "_lradModifiers)
"RTN","SAMICTTA",154,0)
. . d OUT("")
"RTN","SAMICTTA",155,0)
;
"RTN","SAMICTTA",156,0)
;d OUT("</TD></TR>")
"RTN","SAMICTTA",157,0)
;
"RTN","SAMICTTA",158,0)
;d OUT("<TR><TD><TABLE><TR><TD WIDTH=20></TD><TD>")
"RTN","SAMICTTA",159,0)
;
"RTN","SAMICTTA",160,0)
quit ; end of RCMND
"RTN","SAMICTTA",161,0)
;
"RTN","SAMICTTA",162,0)
;
"RTN","SAMICTTA",163,0)
;
"RTN","SAMICTTA",164,0)
OUT(ln) ; output a line of ct report
"RTN","SAMICTTA",165,0)
;
"RTN","SAMICTTA",166,0)
;@called-by
"RTN","SAMICTTA",167,0)
; RCMND
"RTN","SAMICTTA",168,0)
;@calls none
"RTN","SAMICTTA",169,0)
;@input
"RTN","SAMICTTA",170,0)
; ln = output to add
"RTN","SAMICTTA",171,0)
;@output
"RTN","SAMICTTA",172,0)
; line added to ct report
"RTN","SAMICTTA",173,0)
;
"RTN","SAMICTTA",174,0)
s cnt=cnt+1
"RTN","SAMICTTA",175,0)
n lnn
"RTN","SAMICTTA",176,0)
;s debug=1
"RTN","SAMICTTA",177,0)
s lnn=$o(@rtn@(" "),-1)+1
"RTN","SAMICTTA",178,0)
s @rtn@(lnn)=ln
"RTN","SAMICTTA",179,0)
;
"RTN","SAMICTTA",180,0)
i $g(debug)=1 d ;
"RTN","SAMICTTA",181,0)
. i ln["<T" q ; no markup
"RTN","SAMICTTA",182,0)
. i ln["</" q ; no markup
"RTN","SAMICTTA",183,0)
. n zs s zs=$STACK
"RTN","SAMICTTA",184,0)
. n zp s zp=$STACK(zs-2,"PLACE")
"RTN","SAMICTTA",185,0)
. s @rtn@(lnn)=zp_":"_ln
"RTN","SAMICTTA",186,0)
;
"RTN","SAMICTTA",187,0)
quit ; end of OUT
"RTN","SAMICTTA",188,0)
;
"RTN","SAMICTTA",189,0)
;
"RTN","SAMICTTA",190,0)
;
"RTN","SAMICTTA",191,0)
HOUT(ln) ; output a ct report header line
"RTN","SAMICTTA",192,0)
;
"RTN","SAMICTTA",193,0)
;@called-by none
"RTN","SAMICTTA",194,0)
;@calls
"RTN","SAMICTTA",195,0)
; OUT
"RTN","SAMICTTA",196,0)
;@input
"RTN","SAMICTTA",197,0)
; ln = header output to add
"RTN","SAMICTTA",198,0)
;@output
"RTN","SAMICTTA",199,0)
; header line added to ct report
"RTN","SAMICTTA",200,0)
;
"RTN","SAMICTTA",201,0)
d OUT("<p><span class='sectionhead'>"_ln_"</span>")
"RTN","SAMICTTA",202,0)
;
"RTN","SAMICTTA",203,0)
quit ; end of HOUT
"RTN","SAMICTTA",204,0)
;
"RTN","SAMICTTA",205,0)
;
"RTN","SAMICTTA",206,0)
;
"RTN","SAMICTTA",207,0)
XVAL(var,vals) ; extrinsic returns the patient value for var
"RTN","SAMICTTA",208,0)
;
"RTN","SAMICTTA",209,0)
;@called-by
"RTN","SAMICTTA",210,0)
; RCMND
"RTN","SAMICTTA",211,0)
;@calls none
"RTN","SAMICTTA",212,0)
;@input
"RTN","SAMICTTA",213,0)
; var
"RTN","SAMICTTA",214,0)
; vals is passed by name
"RTN","SAMICTTA",215,0)
;@output = patient value for var
"RTN","SAMICTTA",216,0)
;
"RTN","SAMICTTA",217,0)
n zr
"RTN","SAMICTTA",218,0)
s zr=$g(@vals@(var))
"RTN","SAMICTTA",219,0)
;i zr="" s zr="["_var_"]"
"RTN","SAMICTTA",220,0)
;
"RTN","SAMICTTA",221,0)
quit zr ; end of $$XVAL
"RTN","SAMICTTA",222,0)
;
"RTN","SAMICTTA",223,0)
;
"RTN","SAMICTTA",224,0)
;
"RTN","SAMICTTA",225,0)
XSUB(var,vals,dict,valdx) ; extrinsic which returns the dictionary value defined by var
"RTN","SAMICTTA",226,0)
;
"RTN","SAMICTTA",227,0)
;@called-by
"RTN","SAMICTTA",228,0)
; RCMND
"RTN","SAMICTTA",229,0)
;@calls none
"RTN","SAMICTTA",230,0)
;@input
"RTN","SAMICTTA",231,0)
; var
"RTN","SAMICTTA",232,0)
; vals and dict are passed by name
"RTN","SAMICTTA",233,0)
; valdx is used for nodules ala cect2co with the nodule number included
"RTN","SAMICTTA",234,0)
;@output = dictionary value for var
"RTN","SAMICTTA",235,0)
;
"RTN","SAMICTTA",236,0)
;n dict s dict=$$setroot^%wd("cteval-dict")
"RTN","SAMICTTA",237,0)
n zr,zv,zdx
"RTN","SAMICTTA",238,0)
s zdx=$g(valdx)
"RTN","SAMICTTA",239,0)
i zdx="" s zdx=var
"RTN","SAMICTTA",240,0)
s zv=$g(@vals@(zdx))
"RTN","SAMICTTA",241,0)
;i zv="" s zr="["_var_"]" q zr
"RTN","SAMICTTA",242,0)
i zv="" s zr="" q zr
"RTN","SAMICTTA",243,0)
s zr=$g(@dict@(var,zv))
"RTN","SAMICTTA",244,0)
;i zr="" s zr="["_var_","_zv_"]"
"RTN","SAMICTTA",245,0)
;
"RTN","SAMICTTA",246,0)
quit zr ; end of $$XSUB
"RTN","SAMICTTA",247,0)
;
"RTN","SAMICTTA",248,0)
;
"RTN","SAMICTTA",249,0)
;
"RTN","SAMICTTA",250,0)
EOR ; end of routine SAMICTTA
"RTN","SAMICTUL")
0^12^B103375
"RTN","SAMICTUL",1,0)
SAMICTUL ;ven/gpl - ct report & copy log ;2021-05-25T15:44Z
"RTN","SAMICTUL",2,0)
;;18.0;SAMI;**10,11**;2020-01;Build 21
"RTN","SAMICTUL",3,0)
;;1.18.0.11+i11
"RTN","SAMICTUL",4,0)
;
"RTN","SAMICTUL",5,0)
; SAMICTUL contains routine & module info & the primary development
"RTN","SAMICTUL",6,0)
; log for VAPALS-ELCAP's CT Report ctreport web service route, which
"RTN","SAMICTUL",7,0)
; is implemented by the SAMICTR* (html) and SAMICTT* (text)
"RTN","SAMICTUL",8,0)
; routines. It also contains the log for the SAMICTC* routines that
"RTN","SAMICTUL",9,0)
; implement the ct form copy operation.
"RTN","SAMICTUL",10,0)
; SAMICTUL contains no public interfaces or executable code.
"RTN","SAMICTUL",11,0)
;
"RTN","SAMICTUL",12,0)
quit ; no entry from top
"RTN","SAMICTUL",13,0)
;
"RTN","SAMICTUL",14,0)
;
"RTN","SAMICTUL",15,0)
;
"RTN","SAMICTUL",16,0)
;@section 0 primary development
"RTN","SAMICTUL",17,0)
;
"RTN","SAMICTUL",18,0)
;
"RTN","SAMICTUL",19,0)
;
"RTN","SAMICTUL",20,0)
;@routine-credits
"RTN","SAMICTUL",21,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMICTUL",22,0)
; [email protected]
"RTN","SAMICTUL",23,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMICTUL",24,0)
; http://vistaexpertise.net
"RTN","SAMICTUL",25,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMICTUL",26,0)
;@license Apache 2.0
"RTN","SAMICTUL",27,0)
; https://www.apache.org/licenses/LICENSE-2.0.html
"RTN","SAMICTUL",28,0)
;
"RTN","SAMICTUL",29,0)
;@last-updated 2021-05-25T15:44Z
"RTN","SAMICTUL",30,0)
;@application Screening Applications Management (SAM)
"RTN","SAMICTUL",31,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMICTUL",32,0)
;@version 1.18.0.11+i11
"RTN","SAMICTUL",33,0)
;@release-date 2020-01
"RTN","SAMICTUL",34,0)
;@patch-list **10,11**
"RTN","SAMICTUL",35,0)
;
"RTN","SAMICTUL",36,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMICTUL",37,0)
; [email protected]
"RTN","SAMICTUL",38,0)
;@additional-dev Alexis Carlson (arc)
"RTN","SAMICTUL",39,0)
; [email protected]
"RTN","SAMICTUL",40,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMICTUL",41,0)
; [email protected]
"RTN","SAMICTUL",42,0)
;
"RTN","SAMICTUL",43,0)
;@module-credits
"RTN","SAMICTUL",44,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMICTUL",45,0)
; (VA-PALS)
"RTN","SAMICTUL",46,0)
; http://va-pals.org/
"RTN","SAMICTUL",47,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMICTUL",48,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMICTUL",49,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMICTUL",50,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMICTUL",51,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMICTUL",52,0)
; http://ielcap.com/
"RTN","SAMICTUL",53,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMICTUL",54,0)
; http://paraxialtech.com/
"RTN","SAMICTUL",55,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMICTUL",56,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMICTUL",57,0)
;
"RTN","SAMICTUL",58,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMICTUL",59,0)
;
"RTN","SAMICTUL",60,0)
; 2018-10-14 ven/arc 1.18.0 f6e1229
"RTN","SAMICTUL",61,0)
; SAMICTC1: turn on copy forward for cteval new forms
"RTN","SAMICTUL",62,0)
;
"RTN","SAMICTUL",63,0)
; 2018-12-11/2019-01-22 ven/lgc 1.18.0 3ceb74b,3bb70c8,5368121
"RTN","SAMICTUL",64,0)
; SAMICTC1,2: update for sac compliance, add license info.
"RTN","SAMICTUL",65,0)
;
"RTN","SAMICTUL",66,0)
; 2020-02-01/03 ven/arc 1.18.0.4+i4 d47135a5,bc32c1cb,5b2e4525,
"RTN","SAMICTUL",67,0)
; 7bcd14a2,1c96fe0e,cb0075e8,5e553dd2,9cde6840,dcea0048e,98b7b273,
"RTN","SAMICTUL",68,0)
; a4f98f19
"RTN","SAMICTUL",69,0)
; SAMICTT0,1,2,3,4,9,A: routines (starting as copies of SAMICTR*) to
"RTN","SAMICTUL",70,0)
; implement ctreport in text format, start convert nodules to text,
"RTN","SAMICTUL",71,0)
; add'l lung findings, fix parag spacing, add impressions sect,
"RTN","SAMICTUL",72,0)
; recommendations sect, add'l sects on other abnormalities, breast
"RTN","SAMICTUL",73,0)
; abnorm sect, other abnorm sect, tweak format, make it more compact.
"RTN","SAMICTUL",74,0)
;
"RTN","SAMICTUL",75,0)
; 2021-02-18 ven/gpl 1.18.0.10+i10 38fb2d70
"RTN","SAMICTUL",76,0)
; SAMICTT0,1,2,3,4,9,A: ct report - insert space after every period.
"RTN","SAMICTUL",77,0)
;
"RTN","SAMICTUL",78,0)
; 2021-03-04/16 ven/gpl 1.18.0.10+i10 e09d5f16,3ea26de9,91793ba3
"RTN","SAMICTUL",79,0)
; SAMICTT1,3,4: ct report: fix normal cardiac default output, CAC
"RTN","SAMICTUL",80,0)
; logic, other enhancements.
"RTN","SAMICTUL",81,0)
;
"RTN","SAMICTUL",82,0)
; 2021-03-23 ven/gpl 1.18.0.10+i10 a68f7f31
"RTN","SAMICTUL",83,0)
; SAMICTT3: fix CAC problem.
"RTN","SAMICTUL",84,0)
;
"RTN","SAMICTUL",85,0)
; 2021-03-21/23 ven/toad 1.18.0.10+i10 96f461d
"RTN","SAMICTUL",86,0)
; SAMICTUL: create development log routine.
"RTN","SAMICTUL",87,0)
; SAMICTT0,1,2,3,4,9,A: bump date & version, lt refactor.
"RTN","SAMICTUL",88,0)
;
"RTN","SAMICTUL",89,0)
; 2021-05-14 ven/gpl 1.18.0.11+i11 0a01cf2
"RTN","SAMICTUL",90,0)
; SAMICTTA: in RCMND change to ctreport for no followup ct w/other
"RTN","SAMICTUL",91,0)
; followup recommendations, "Followup" instead of "Other Followup."
"RTN","SAMICTUL",92,0)
;
"RTN","SAMICTUL",93,0)
; 2021-05-19 ven/gpl 1.18.0.11+i11 a21b056,139c6a5
"RTN","SAMICTUL",94,0)
; SAMICTT0: in WSREPORT check for small nodule checkboxes.
"RTN","SAMICTUL",95,0)
; SAMICTT1: in NODULES urgent fix to add to ct report "Small [non-]
"RTN","SAMICTUL",96,0)
; calcified nodules are present."
"RTN","SAMICTUL",97,0)
;
"RTN","SAMICTUL",98,0)
; 2021-05-20/21 ven/mcglk&toad 1.18.0.11+i11 43a4557,129e96b
"RTN","SAMICTUL",99,0)
; SAMICTT0,1: bump version & dates.
"RTN","SAMICTUL",100,0)
;
"RTN","SAMICTUL",101,0)
; 2021-05-24 ven/gpl 1.18.0.11+i11 4aba1a9
"RTN","SAMICTUL",102,0)
; SAMICTC1: in CTCOPY add new param key to control two new opening
"RTN","SAMICTUL",103,0)
; blocks, critical fix to copy forward for Is It New field for new ct
"RTN","SAMICTUL",104,0)
; eval forms.
"RTN","SAMICTUL",105,0)
;
"RTN","SAMICTUL",106,0)
; 2021-05-25 ven/toad 1.18.0.11+i11
"RTN","SAMICTUL",107,0)
; SAMICTC1: bump version & dates; passim annotate & lt refactor.
"RTN","SAMICTUL",108,0)
; SAMICTUL: add SAMICTC* routines to log.
"RTN","SAMICTUL",109,0)
;
"RTN","SAMICTUL",110,0)
;@contents
"RTN","SAMICTUL",111,0)
; SAMICTC1 ceform copy
"RTN","SAMICTUL",112,0)
; SAMICTC2 ceform copy continued
"RTN","SAMICTUL",113,0)
;
"RTN","SAMICTUL",114,0)
; SAMICTT0 ctreport text main
"RTN","SAMICTUL",115,0)
; SAMICTT1 ctreport text nodules
"RTN","SAMICTUL",116,0)
; SAMICTT2 ctreport text other lung
"RTN","SAMICTUL",117,0)
; SAMICTT3 ctreport text emphysema
"RTN","SAMICTUL",118,0)
; SAMICTT4 ctreport text breast abnorm
"RTN","SAMICTUL",119,0)
; SAMICTT9 ctreport text impressions
"RTN","SAMICTUL",120,0)
; SAMICTTA ctreport text recommendations
"RTN","SAMICTUL",121,0)
; SAMICTUL ctreport log
"RTN","SAMICTUL",122,0)
;
"RTN","SAMICTUL",123,0)
; SAMICTR* ctreport html format
"RTN","SAMICTUL",124,0)
; SAMIUTR* test the SAMICTR routines
"RTN","SAMICTUL",125,0)
;
"RTN","SAMICTUL",126,0)
;
"RTN","SAMICTUL",127,0)
;
"RTN","SAMICTUL",128,0)
EOR ; end of routine SAMICTUL
"RTN","SAMICUL")
0^13^B135532
"RTN","SAMICUL",1,0)
SAMICUL ;ven/gpl - ielcap: case review page log ;2021-05-25T15:28Z
"RTN","SAMICUL",2,0)
;;18.0;SAMI;**9,11**;2020-01;Build 21
"RTN","SAMICUL",3,0)
;;1.18.0.11+i11
"RTN","SAMICUL",4,0)
;
"RTN","SAMICUL",5,0)
; SAMICASE contains subroutines for producing the ELCAP Case
"RTN","SAMICUL",6,0)
; Review Page.
"RTN","SAMICUL",7,0)
; SAMICUL contains the development log for the SAMICA* routines.
"RTN","SAMICUL",8,0)
; It contains no executable code.
"RTN","SAMICUL",9,0)
;
"RTN","SAMICUL",10,0)
quit ; no entry from top
"RTN","SAMICUL",11,0)
;
"RTN","SAMICUL",12,0)
;
"RTN","SAMICUL",13,0)
;
"RTN","SAMICUL",14,0)
;@section 0 primary development
"RTN","SAMICUL",15,0)
;
"RTN","SAMICUL",16,0)
;
"RTN","SAMICUL",17,0)
;
"RTN","SAMICUL",18,0)
;@routine-credits
"RTN","SAMICUL",19,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMICUL",20,0)
; [email protected]
"RTN","SAMICUL",21,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMICUL",22,0)
; http://vistaexpertise.net
"RTN","SAMICUL",23,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMICUL",24,0)
;@license see routine SAMIUL
"RTN","SAMICUL",25,0)
;
"RTN","SAMICUL",26,0)
;@last-updated 2021-05-25T15:28Z
"RTN","SAMICUL",27,0)
;@application Screening Applications Management (SAM)
"RTN","SAMICUL",28,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMICUL",29,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMICUL",30,0)
;@version 1.18.0.11+i11
"RTN","SAMICUL",31,0)
;@release-date 2020-01
"RTN","SAMICUL",32,0)
;@patch-list **9,11**
"RTN","SAMICUL",33,0)
;
"RTN","SAMICUL",34,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMICUL",35,0)
; [email protected]
"RTN","SAMICUL",36,0)
;@additional-dev Linda M. R. Yaw (lmry)
"RTN","SAMICUL",37,0)
; [email protected]
"RTN","SAMICUL",38,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMICUL",39,0)
; [email protected]
"RTN","SAMICUL",40,0)
;@additional-dev Domenick DiNatale (ddn)
"RTN","SAMICUL",41,0)
; [email protected]
"RTN","SAMICUL",42,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMICUL",43,0)
; [email protected]
"RTN","SAMICUL",44,0)
;
"RTN","SAMICUL",45,0)
;@module-credits
"RTN","SAMICUL",46,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMICUL",47,0)
; (VA-PALS)
"RTN","SAMICUL",48,0)
; http://va-pals.org/
"RTN","SAMICUL",49,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMICUL",50,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMICUL",51,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMICUL",52,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMICUL",53,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMICUL",54,0)
; http://ielcap.com/
"RTN","SAMICUL",55,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMICUL",56,0)
; http://paraxialtech.com/
"RTN","SAMICUL",57,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMICUL",58,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMICUL",59,0)
;
"RTN","SAMICUL",60,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMICUL",61,0)
;
"RTN","SAMICUL",62,0)
; 2018-01-14 ven/gpl 1.18.0-t04 SAMICASE: split from routine SAMIFRM,
"RTN","SAMICUL",63,0)
; include wsCASE, GETTMPL, GETITEMS, casetbl.
"RTN","SAMICUL",64,0)
;
"RTN","SAMICUL",65,0)
; 2018-02-05/08 ven/toad 1.18.0-t04
"RTN","SAMICUL",66,0)
; SAMICASE: update style, license, & attribution, spell out language
"RTN","SAMICUL",67,0)
; elements, add white space & do-dot quits, r/replaceAll^%wfhfrom w/
"RTN","SAMICUL",68,0)
; replaceAll^%wf, r/$$getTemplate^%wfhform w/$$getTemplate^%wf.
"RTN","SAMICUL",69,0)
;
"RTN","SAMICUL",70,0)
; 2018-02-14 ven/toad 1.18.0-t04
"RTN","SAMICUL",71,0)
; SAMICASE: r/replaceAll^%wf w/findReplaceAll^%wf, r/ln w/line, add
"RTN","SAMICUL",72,0)
; @calls & @called-by tags, break up some long lines.
"RTN","SAMICUL",73,0)
;
"RTN","SAMICUL",74,0)
; 2018-02-27 ven/gpl 1.18.0-t04
"RTN","SAMICUL",75,0)
; SAMICASE: new subroutines $$KEY2DSPD, $$GETDTKEY; in wsCASE get
"RTN","SAMICUL",76,0)
; 1st & last names from graph, fix paths, key forms in graph w/date.
"RTN","SAMICUL",77,0)
;
"RTN","SAMICUL",78,0)
; 2018-03-01 ven/toad 1.18.0-t04
"RTN","SAMICUL",79,0)
; SAMICASE: refactor & reorganize new code, add header comments, r/
"RTN","SAMICUL",80,0)
; findReplaceAll^%wf w/findReplace^%ts.
"RTN","SAMICUL",81,0)
;
"RTN","SAMICUL",82,0)
; 2018-03-06 ven/gpl 1.18.0-t04
"RTN","SAMICUL",83,0)
; SAMICASE: add New Form button, list rest of forms for patient, add
"RTN","SAMICUL",84,0)
; web services wsNuForm & wsNuFormPost & method MKCEFORM, extend
"RTN","SAMICUL",85,0)
; GETITEMS to get rest of forms.
"RTN","SAMICUL",86,0)
;
"RTN","SAMICUL",87,0)
; 2018-03-07/08 ven/toad 1.18.0-t04
"RTN","SAMICUL",88,0)
; SAMICASE: merge George changes w/ rest, add white space, spell out
"RTN","SAMICUL",89,0)
; M elements, add hdr comments to new subroutines, r/findReplace^%wf
"RTN","SAMICUL",90,0)
; & replaceAll^%wf w/findReplace^%ts.
"RTN","SAMICUL",91,0)
;
"RTN","SAMICUL",92,0)
; 2018-03-11 ven/gpl 1.18.0-t04 9bd663ee
"RTN","SAMICUL",93,0)
; SAMICAS2: vapals forms working.
"RTN","SAMICUL",94,0)
;
"RTN","SAMICUL",95,0)
; 2018-03-12 ven/gpl 1.18.0-t04 8c36c6a7
"RTN","SAMICUL",96,0)
; SAMICAS2: new form works now & charts on home page.
"RTN","SAMICUL",97,0)
;
"RTN","SAMICUL",98,0)
; 2018-03-14 ven/gpl 1.18.0-t04 9653650a
"RTN","SAMICUL",99,0)
; SAMICAS2: revised casereview page link, fixed external url
"RTN","SAMICUL",100,0)
; preservation.
"RTN","SAMICUL",101,0)
;
"RTN","SAMICUL",102,0)
; 2018-03-21 ven/gpl 1.18.0-t04 48868561
"RTN","SAMICUL",103,0)
; SAMICAS2: max date insertion, case review navigation changed to
"RTN","SAMICUL",104,0)
; post, date order for CT Eval in case review.
"RTN","SAMICUL",105,0)
;
"RTN","SAMICUL",106,0)
; 2018-03-26 ven/gpl 1.18.0-t04 5fa4ee96
"RTN","SAMICUL",107,0)
; SAMICAS2: changes to support incomplete forms display &
"RTN","SAMICUL",108,0)
; processing.
"RTN","SAMICUL",109,0)
;
"RTN","SAMICUL",110,0)
; 2018-03-27 ven/gpl 1.18.0-t04 cace9756
"RTN","SAMICUL",111,0)
; SAMICAS2: siforms are always complete.
"RTN","SAMICUL",112,0)
;
"RTN","SAMICUL",113,0)
; 2018-04-02 ven/gpl 1.18.0-t04 00da9146
"RTN","SAMICUL",114,0)
; SAMICAS2: added followup form.
"RTN","SAMICUL",115,0)
;
"RTN","SAMICUL",116,0)
; 2018-04-24 ven/gpl 1.18.0-t04 22e39d87
"RTN","SAMICUL",117,0)
; SAMICAS2: added pet & biopsy forms.
"RTN","SAMICUL",118,0)
;
"RTN","SAMICUL",119,0)
; 2018-05-01 ven/gpl 1.18.0-t04 f1751c43
"RTN","SAMICUL",120,0)
; SAMICAS2: fix problem with new forms: followup & pet.
"RTN","SAMICUL",121,0)
;
"RTN","SAMICUL",122,0)
; 2018-05-18 ven/lgc 1.18.0-t04 9eba8f8c
"RTN","SAMICUL",123,0)
; SAMICAS2: conversion to new graph and simplified forms processing.
"RTN","SAMICUL",124,0)
;
"RTN","SAMICUL",125,0)
; 2018-05-21 ven/lgc 1.18.0-t04 0d7ed2f7
"RTN","SAMICUL",126,0)
; SAMICAS2: changes for new navigation html.
"RTN","SAMICUL",127,0)
;
"RTN","SAMICUL",128,0)
; 2018-06-14 ven/lgc 1.18.0-t04 d71f4fe4
"RTN","SAMICUL",129,0)
; SAMICAS2: changes to make the background form optional.
"RTN","SAMICUL",130,0)
;
"RTN","SAMICUL",131,0)
; 2018-06-20 ven/lgc 1.18.0-t04 bf03b07f
"RTN","SAMICUL",132,0)
; SAMICAS2: corrections for new forms processing navigation.
"RTN","SAMICUL",133,0)
;
"RTN","SAMICUL",134,0)
; 2018-07-01 ven/lgc 1.18.0-t04 2e1541dc,8b0a4329
"RTN","SAMICUL",135,0)
; SAMICAS2: add intervention forms to case review page, 1st version
"RTN","SAMICUL",136,0)
; of ct eval report.
"RTN","SAMICUL",137,0)
;
"RTN","SAMICUL",138,0)
; 2018-07-04 ven/lgc 1.18.0-t04 b28c1658
"RTN","SAMICUL",139,0)
; SAMICAS2: fix a typo.
"RTN","SAMICUL",140,0)
;
"RTN","SAMICUL",141,0)
; 2018-07-10 ven/lgc 1.18.0-t04 2e9662b4
"RTN","SAMICUL",142,0)
; SAMICAS2: repair SAMIHOM3 & redact report link.
"RTN","SAMICUL",143,0)
;
"RTN","SAMICUL",144,0)
; 2018-08-19 ven/lgc 1.18.0-t04 2ce0cab4
"RTN","SAMICUL",145,0)
; SAMICAS2: use ssn instead of last5 where available.
"RTN","SAMICUL",146,0)
;
"RTN","SAMICUL",147,0)
; 2018-08-20 ven/lgc 1.18.0-t04 955fd484
"RTN","SAMICUL",148,0)
; SAMICAS2: fix case review page cr lf issue.
"RTN","SAMICUL",149,0)
;
"RTN","SAMICUL",150,0)
; 2018-08-22 ven/gpl 1.18.0-t04 d67a2fe5
"RTN","SAMICUL",151,0)
; SAMICAS2: turn off ctreport.
"RTN","SAMICUL",152,0)
;
"RTN","SAMICUL",153,0)
; 2018-08-30 ven/lgc 1.18.0-t04 125f1c8b
"RTN","SAMICUL",154,0)
; SAMICAS2: add type index to getItems to help find last previous
"RTN","SAMICUL",155,0)
; form of a type.
"RTN","SAMICUL",156,0)
;
"RTN","SAMICUL",157,0)
; 2018-09-04 ven/lgc 1.18.0-t04 3e6e326f
"RTN","SAMICUL",158,0)
; SAMICAS2: hide report link.
"RTN","SAMICUL",159,0)
;
"RTN","SAMICUL",160,0)
; 2018-10-14 ven/lgc 1.18.0-t04 f6e1229f
"RTN","SAMICUL",161,0)
; SAMICAS2: turn on copy forward for cteval new forms.
"RTN","SAMICUL",162,0)
;
"RTN","SAMICUL",163,0)
; 2018-10-26 ven/lgc 1.18.0-t04 f19bf1ae
"RTN","SAMICUL",164,0)
; SAMICAS2: ability to add multiple forms on same day.
"RTN","SAMICUL",165,0)
;
"RTN","SAMICUL",166,0)
; 2018-11-07 ven/gpl 1.18.0-t04 c76b2eac
"RTN","SAMICUL",167,0)
; SAMICAS2: defend against unit test patient 1.
"RTN","SAMICUL",168,0)
;
"RTN","SAMICUL",169,0)
; 2018-11-13 ven/toad 1.18.0-t04
"RTN","SAMICUL",170,0)
; SAMICAS2: SAMIHOM2 > SAMIHOM3.
"RTN","SAMICUL",171,0)
;
"RTN","SAMICUL",172,0)
; 2018-11-14 ven/lgc 1.18.0-t04 6e9799ba
"RTN","SAMICUL",173,0)
; SAMICUL: fix graphstore forms.
"RTN","SAMICUL",174,0)
;
"RTN","SAMICUL",175,0)
; 2018-11-28 ven/lgc 1.18.0-t04 a9539464
"RTN","SAMICUL",176,0)
; SAMICAS2: work on sac compliance.
"RTN","SAMICUL",177,0)
;
"RTN","SAMICUL",178,0)
; 2018-12-11 ven/lgc 1.18.0-t04 3ceb74b5
"RTN","SAMICUL",179,0)
; SAMICAS2: update for sac compliance.
"RTN","SAMICUL",180,0)
;
"RTN","SAMICUL",181,0)
; 2018-12-19/20 ven/lgc 1.18.0-t04 7a5d3400,a14554c1
"RTN","SAMICUL",182,0)
; SAMICAS2: more sac compliance, r/^gpl w/^SAMIGPL.
"RTN","SAMICUL",183,0)
;
"RTN","SAMICUL",184,0)
; 2018-12-26 ven/lgc 1.18.0-t04 8dd6f34d,51eb1635
"RTN","SAMICUL",185,0)
; SAMICAS2: update for sac compliance, fix accidental reversions.
"RTN","SAMICUL",186,0)
;
"RTN","SAMICUL",187,0)
; 2019-01-10 ven/lgc 1.18.0-t04 2daba010
"RTN","SAMICUL",188,0)
; SAMICAS2: update for SAC compliance.
"RTN","SAMICUL",189,0)
;
"RTN","SAMICUL",190,0)
; 2019-01-22 ven/lgc 1.18.0-t04 53681219,5ddb29c5
"RTN","SAMICUL",191,0)
; SAMICAS2: add license info to each SAMI routine; edit for lower
"RTN","SAMICUL",192,0)
; case initials.
"RTN","SAMICUL",193,0)
;
"RTN","SAMICUL",194,0)
; 2019-02-18 ven/lgc 1.18.0-t04 76874314
"RTN","SAMICUL",195,0)
; SAMICAS2,SAMICAS3: update recently edited routines.
"RTN","SAMICUL",196,0)
;
"RTN","SAMICUL",197,0)
; 2019-03-13 ven/lmry 1.18.0-t04 ef66ef16
"RTN","SAMICUL",198,0)
; SAMICAS2: spell out some elements missed earlier.
"RTN","SAMICUL",199,0)
;
"RTN","SAMICUL",200,0)
; 2019-03-14 ven/lmry 1.18.0-t04 038507e2
"RTN","SAMICUL",201,0)
; SAMICAS3: spell out some missed M elements, fix copy/paste errors
"RTN","SAMICUL",202,0)
; in comments for MKFUFORM, MKBXFORM, & MKPTFORM.
"RTN","SAMICUL",203,0)
;
"RTN","SAMICUL",204,0)
; 2019-04-16 ven/lgc 1.18.0-t04 e54b76d1
"RTN","SAMICUL",205,0)
; SAMICAS2: update for SAMIFORM project.
"RTN","SAMICUL",206,0)
;
"RTN","SAMICUL",207,0)
; 2019-04-23 ven/gpl 1.18.0-t04 ce322911
"RTN","SAMICUL",208,0)
; SAMICAS2: add intake notes to case review page.
"RTN","SAMICUL",209,0)
;
"RTN","SAMICUL",210,0)
; 2019-06-18 ven/lgc 1.18.0-t04 91022482
"RTN","SAMICUL",211,0)
; SAMICAS3: switch fr/global ^SAMIGPL to/^SAMIUL.
"RTN","SAMICUL",212,0)
;
"RTN","SAMICUL",213,0)
; 2019-07-01 ven/gpl 1.18.0-t04 cc87cc44
"RTN","SAMICUL",214,0)
; SAMICAS3: prevent >1 bkgd form/patient.
"RTN","SAMICUL",215,0)
;
"RTN","SAMICUL",216,0)
; 2019-07-07 ven/gpl 1.18.0-t04 776f7451
"RTN","SAMICUL",217,0)
; SAMICAS3: resolving can't create bkgd form, branch messed up.
"RTN","SAMICUL",218,0)
;
"RTN","SAMICUL",219,0)
; 2019-08-01 ven/lgc 1.18.0-t04 d710f27d
"RTN","SAMICUL",220,0)
; SAMICAS2: pull displayed facility code from Vista parameter.
"RTN","SAMICUL",221,0)
;
"RTN","SAMICUL",222,0)
; 2019-09-26 ven/gpl 1.18.0-t04 92b12324 vap-420
"RTN","SAMICUL",223,0)
; SAMICAS3: prefill form date & date of baseline ct on new followup
"RTN","SAMICUL",224,0)
; form.
"RTN","SAMICUL",225,0)
;
"RTN","SAMICUL",226,0)
; 2019-10-01 par/ddn 1.18.0-t04 4caf1a98 vap-344
"RTN","SAMICUL",227,0)
; SAMICAS2: use proper capitalization of the word "veteran".
"RTN","SAMICUL",228,0)
;
"RTN","SAMICUL",229,0)
; 2020-01-11 ven/lgc 1.18.0.1+i1 5651698a
"RTN","SAMICUL",230,0)
; SAMICAS2,SAMICAS3: fix duplicate form overwriting.
"RTN","SAMICUL",231,0)
;
"RTN","SAMICUL",232,0)
; 2020-01-17 ven/lgc 1.18.0.1+i1 8557207f
"RTN","SAMICUL",233,0)
; SAMICAS2: followup note.
"RTN","SAMICUL",234,0)
;
"RTN","SAMICUL",235,0)
; 2020-01-25 ven/lgc 1.18.0.3+i3 6a07a860,6a947567
"RTN","SAMICUL",236,0)
; SAMICAS3: nodule copy & fix to ru, fix subtle bug in nodule copy.
"RTN","SAMICUL",237,0)
;
"RTN","SAMICUL",238,0)
; 2020-04-11 ven/gpl 1.18.0.5+i5 666f5b91,2f2c29c1
"RTN","SAMICUL",239,0)
; SAMICAS2: multi-tenancy.
"RTN","SAMICUL",240,0)
;
"RTN","SAMICUL",241,0)
; 2020-05-12 ven/gpl 1.18.0.5+i5 ad11e0ea
"RTN","SAMICUL",242,0)
; SAMICAS2: fix SITE on case review page.
"RTN","SAMICUL",243,0)
;
"RTN","SAMICUL",244,0)
; 2020-11-12 ven/gpl 1.18.0.9+i9 cec1ccd6
"RTN","SAMICUL",245,0)
; SAMICAS2,SAMICAS3: ceform date refill upgrade.
"RTN","SAMICUL",246,0)
;
"RTN","SAMICUL",247,0)
; 2020-11-13 ven/gpl 1.18.0.9+i9 dce3c568
"RTN","SAMICUL",248,0)
; SAMICAS3: prefill ceform prior scans text field.
"RTN","SAMICUL",249,0)
;
"RTN","SAMICUL",250,0)
; 2021-02-18 ven/gpl 1.18.0.9+i9 af2a0b8a
"RTN","SAMICUL",251,0)
; SAMICAS3: copy last previous CT nodules instead of last nodules in
"RTN","SAMICUL",252,0)
; any form.
"RTN","SAMICUL",253,0)
;
"RTN","SAMICUL",254,0)
; 2021-02-21 ven/gpl 1.18.0.9+i9 3fd704fb
"RTN","SAMICUL",255,0)
; SAMICAS3: fix bug in prefill logic.
"RTN","SAMICUL",256,0)
;
"RTN","SAMICUL",257,0)
; 2021-03-02 ven/gpl 1.18.0.9+i9 479dc041
"RTN","SAMICUL",258,0)
; SAMICAS2: return error msg if no CT Eval form exists when
"RTN","SAMICUL",259,0)
; generating a FU note.
"RTN","SAMICUL",260,0)
;
"RTN","SAMICUL",261,0)
; 2021-03-10 ven/toad 1.18.0.9+i9 a46a2cc1
"RTN","SAMICUL",262,0)
; SAMICUL: update log, convert to new vistaver schema.
"RTN","SAMICUL",263,0)
; SAMICAS2,SAMICAS3: bump date & patch list, update contents, lt
"RTN","SAMICUL",264,0)
; refactor.
"RTN","SAMICUL",265,0)
;
"RTN","SAMICUL",266,0)
; 2021-03-17 ven/toad 1.18.0.9+i9 62da30b
"RTN","SAMICUL",267,0)
; SAMICAS2: fix xindex errors: in WSCASE add missing space between
"RTN","SAMICUL",268,0)
; do & comment to prevent syntax error reported as block mismatch.
"RTN","SAMICUL",269,0)
; SAMICAS3: remove extra spaces at ends of 3 lines.
"RTN","SAMICUL",270,0)
;
"RTN","SAMICUL",271,0)
; 2021-04-16 ven/gpl 1.18.0.11+i11 ac82eec
"RTN","SAMICUL",272,0)
; SAMICAS3: include baseline scan in prior scans field on prefill.
"RTN","SAMICUL",273,0)
;
"RTN","SAMICUL",274,0)
; 2021-05-14/19 ven/gpl 1.18.0.11+i11 0cbee7b,a21b056,139c6a5,0a0cccc
"RTN","SAMICUL",275,0)
; SAMICAS3: improved CT eval prefill of past scan dates, urgent
"RTN","SAMICUL",276,0)
; fixes to CT Report & intervention & pet form prefill.
"RTN","SAMICUL",277,0)
;
"RTN","SAMICUL",278,0)
; 2021-05-20/21 ven/mcglk&toad 1.18.0.11+i11 43a4557,424ea11,129e96b
"RTN","SAMICUL",279,0)
; SAMICAS3: bump version & dates.
"RTN","SAMICUL",280,0)
;
"RTN","SAMICUL",281,0)
; 2021-05-24 ven/gpl 1.18.0.11+i11 4aba1a9
"RTN","SAMICUL",282,0)
; SAMICAS3: in MKCEFORM,MKPTFORM,MKBXFORM pass key to
"RTN","SAMICUL",283,0)
; CTCOPY^SAMICTC1 to modulate node-copy operation; critical fix to
"RTN","SAMICUL",284,0)
; copy forward for is it new field for new ct eval forms.
"RTN","SAMICUL",285,0)
;
"RTN","SAMICUL",286,0)
; 2021-05-25 ven/toad 1.18.0.11_i11
"RTN","SAMICUL",287,0)
; SAMICAS3: bump date; passim lt refactor.
"RTN","SAMICUL",288,0)
;
"RTN","SAMICUL",289,0)
;
"RTN","SAMICUL",290,0)
;
"RTN","SAMICUL",291,0)
EOR ; end of routine SAMICUL
"RTN","SAMIHL7")
0^6^B192849190
"RTN","SAMIHL7",1,0)
SAMIHL7 ;ven/lgc&arc - HL7 utilities ;2021-05-21T20:47Z
"RTN","SAMIHL7",2,0)
;;18.0;SAMI;**11**;2020-01;Build 21
"RTN","SAMIHL7",3,0)
;;1.18.0.11+i11
"RTN","SAMIHL7",4,0)
;
"RTN","SAMIHL7",5,0)
; SAMIHL7 contains subroutines for manipulating VAPALS-ELCAP HL7
"RTN","SAMIHL7",6,0)
; messages.
"RTN","SAMIHL7",7,0)
;
"RTN","SAMIHL7",8,0)
quit ; no entry from top
"RTN","SAMIHL7",9,0)
;
"RTN","SAMIHL7",10,0)
;
"RTN","SAMIHL7",11,0)
;
"RTN","SAMIHL7",12,0)
;@section 0 primary development
"RTN","SAMIHL7",13,0)
;
"RTN","SAMIHL7",14,0)
;
"RTN","SAMIHL7",15,0)
;
"RTN","SAMIHL7",16,0)
;@routine-credits
"RTN","SAMIHL7",17,0)
;@primary-dev Larry G. Carlson (lgc)
"RTN","SAMIHL7",18,0)
; [email protected]
"RTN","SAMIHL7",19,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMIHL7",20,0)
; http://vistaexpertise.net
"RTN","SAMIHL7",21,0)
;@copyright 2017/2021, lgc, all rights reserved
"RTN","SAMIHL7",22,0)
;@license see routine SAMIUL
"RTN","SAMIHL7",23,0)
;
"RTN","SAMIHL7",24,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMIHL7",25,0)
;@application Screening Applications Management (SAM)
"RTN","SAMIHL7",26,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMIHL7",27,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMIHL7",28,0)
;@version 1.18.0.11+i11
"RTN","SAMIHL7",29,0)
;@release-date 2020-01
"RTN","SAMIHL7",30,0)
;@patch-list **11**
"RTN","SAMIHL7",31,0)
;
"RTN","SAMIHL7",32,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMIHL7",33,0)
; [email protected]
"RTN","SAMIHL7",34,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMIHL7",35,0)
; [email protected]
"RTN","SAMIHL7",36,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMIHL7",37,0)
; [email protected]
"RTN","SAMIHL7",38,0)
;
"RTN","SAMIHL7",39,0)
;@module-credits
"RTN","SAMIHL7",40,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMIHL7",41,0)
; (VA-PALS)
"RTN","SAMIHL7",42,0)
; http://va-pals.org/
"RTN","SAMIHL7",43,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMIHL7",44,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMIHL7",45,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMIHL7",46,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMIHL7",47,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMIHL7",48,0)
; http://ielcap.com/
"RTN","SAMIHL7",49,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMIHL7",50,0)
; http://paraxialtech.com/
"RTN","SAMIHL7",51,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMIHL7",52,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMIHL7",53,0)
;
"RTN","SAMIHL7",54,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMIHL7",55,0)
;
"RTN","SAMIHL7",56,0)
; 2019-10-03/28 ven/lgc 1.18.0 d01fd10,ff6cea0,3670fb3,613e8ff
"RTN","SAMIHL7",57,0)
; ,82979cc
"RTN","SAMIHL7",58,0)
; SAMIHL7: HL7 routines to populate & update patient-lookup graph,
"RTN","SAMIHL7",59,0)
; reorganize HL7 routines & work on unit tests, change how gender is
"RTN","SAMIHL7",60,0)
; handled, update unit test routines for dfn 1, further updates to
"RTN","SAMIHL7",61,0)
; SAMI unit tests.
"RTN","SAMIHL7",62,0)
;
"RTN","SAMIHL7",63,0)
; 2020-01-16 ven/lgc&arc 1.18.0 0a2af96
"RTN","SAMIHL7",64,0)
; SAMIHL7: bulk commit due to switch to cache.
"RTN","SAMIHL7",65,0)
;
"RTN","SAMIHL7",66,0)
; 2020-07-28 ven/lgc 1.18.0.11+i11 c08b051
"RTN","SAMIHL7",67,0)
; SAMIHL7: update for ORU messaging.
"RTN","SAMIHL7",68,0)
;
"RTN","SAMIHL7",69,0)
; 2021-04-14/20 ven/gpl 1.18.0.11+i11 3a5756a,d7182d7
"RTN","SAMIHL7",70,0)
; SAMIHL7: fix for duplicate patients fr/HL7, fix for updating
"RTN","SAMIHL7",71,0)
; patient-lookup graph on receipt of 2nd order.
"RTN","SAMIHL7",72,0)
;
"RTN","SAMIHL7",73,0)
; 2021-05-20/21 ven/mcglk&toad 1.18.0.11+i11
"RTN","SAMIHL7",74,0)
; SAMIHL7: build hdr comments & dev log, lt refactor, bump version.
"RTN","SAMIHL7",75,0)
;
"RTN","SAMIHL7",76,0)
;@contents
"RTN","SAMIHL7",77,0)
; UPDTPTL-UPDTPTL1-MATCHLOG update patient-lookup w/patient-fields array
"RTN","SAMIHL7",78,0)
; CAPTORM save all ORM fields in patient-lookup
"RTN","SAMIHL7",79,0)
; KILLREF kill old field in patient-lookup root
"RTN","SAMIHL7",80,0)
; ACK force a com ACK
"RTN","SAMIHL7",81,0)
;
"RTN","SAMIHL7",82,0)
;
"RTN","SAMIHL7",83,0)
;
"RTN","SAMIHL7",84,0)
;@section 1 example incoming fields array
"RTN","SAMIHL7",85,0)
;
"RTN","SAMIHL7",86,0)
;
"RTN","SAMIHL7",87,0)
;
"RTN","SAMIHL7",88,0)
;fields("PID","segment")="PID|1||000002341||ZZTEST^MACHO^^^^^L||19271106000000|M|||7726 W ORCHID ST^^PHOENIX^AZ^85017||||||||000002341|"
"RTN","SAMIHL7",89,0)
;fields("PIV","segment")="PV1||O|PHX-PULM RN LSS PHONE|||||244088^GARCIA^DANIEL^P"
"RTN","SAMIHL7",90,0)
;fields("OBR","segment")="OBR||||PHO_LUNG^LUNG|"
"RTN","SAMIHL7",91,0)
;fields("ORC","segment")="ORC|NW|3200616135751|||NW||||20200616135751||||||20200616135751"
"RTN","SAMIHL7",92,0)
;
"RTN","SAMIHL7",93,0)
;fields("ORM",6799278.886493,"assignedlocation")="PHX-PULM RN LSS PHONE"
"RTN","SAMIHL7",94,0)
;fields("ORM",6799278.886493,"fulladdress")="7726 W ORCHID ST^^PHOENIX^AZ^85017"
"RTN","SAMIHL7",95,0)
;fields("ORM",6799278.886493,"msgid")="99000023ORM"
"RTN","SAMIHL7",96,0)
;fields("ORM",6799278.886493,"order")="PHO_LUNG"
"RTN","SAMIHL7",97,0)
;fields("ORM",6799278.886493,"order2")="LUNG"
"RTN","SAMIHL7",98,0)
;fields("ORM",6799278.886493,"ordercontrol")="NW"
"RTN","SAMIHL7",99,0)
;fields("ORM",6799278.886493,"ordereffectivedt")=20200616135751
"RTN","SAMIHL7",100,0)
;fields("ORM",6799278.886493,"ordernumber")=3200616135751
"RTN","SAMIHL7",101,0)
;fields("ORM",6799278.886493,"orderstatus")="NW"
"RTN","SAMIHL7",102,0)
;fields("ORM",6799278.886493,"patientclass")="O"
"RTN","SAMIHL7",103,0)
;fields("ORM",6799278.886493,"providerien")=244088
"RTN","SAMIHL7",104,0)
;fields("ORM",6799278.886493,"providernm")="GARCIA,DANIEL,P"
"RTN","SAMIHL7",105,0)
;fields("ORM",6799278.886493,"siteid")="PHO"
"RTN","SAMIHL7",106,0)
;fields("ORM",6799278.886493,"transactiondt")=20200616135751
"RTN","SAMIHL7",107,0)
;
"RTN","SAMIHL7",108,0)
; fields("address1")="7726 W ORCHID ST"
"RTN","SAMIHL7",109,0)
; fields("city")="PHOENIX"
"RTN","SAMIHL7",110,0)
; fields("icn")=""
"RTN","SAMIHL7",111,0)
; fields("last5")="Z2341"
"RTN","SAMIHL7",112,0)
; fields("phone")=""
"RTN","SAMIHL7",113,0)
; fields("saminame")="Zztest,Macho"
"RTN","SAMIHL7",114,0)
; fields("sbdob")=19271106000000
"RTN","SAMIHL7",115,0)
; fields("sex")="M"
"RTN","SAMIHL7",116,0)
; fields("sinamef")="Macho"
"RTN","SAMIHL7",117,0)
; fields("sinamel")="Zztest"
"RTN","SAMIHL7",118,0)
; fields("siteid")="PHO"
"RTN","SAMIHL7",119,0)
; fields("ssn")="000002341"
"RTN","SAMIHL7",120,0)
; fields("state")="AZ"
"RTN","SAMIHL7",121,0)
; fields("zip")=85017
"RTN","SAMIHL7",122,0)
;
"RTN","SAMIHL7",123,0)
;
"RTN","SAMIHL7",124,0)
;
"RTN","SAMIHL7",125,0)
;@section 2 ppis & subroutines
"RTN","SAMIHL7",126,0)
;
"RTN","SAMIHL7",127,0)
;
"RTN","SAMIHL7",128,0)
;
"RTN","SAMIHL7",129,0)
;@ppi UPDTPTL^SAMIHL7
"RTN","SAMIHL7",130,0)
UPDTPTL(fields) ; update patient-lookup w/patient-fields array
"RTN","SAMIHL7",131,0)
;
"RTN","SAMIHL7",132,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMIHL7",133,0)
;
"RTN","SAMIHL7",134,0)
;;ppi;procedure;???;silent;sac
"RTN","SAMIHL7",135,0)
;@falls-thru-to
"RTN","SAMIHL7",136,0)
; UPDTPTL1-MATCHLOG
"RTN","SAMIHL7",137,0)
;@called-by
"RTN","SAMIHL7",138,0)
; MSH^SAMIADT [<= EN^SAMIADT <= old HL7 app, no longer used]
"RTN","SAMIHL7",139,0)
; PID^SAMIADT [<= EN^SAMIADT <= old HL7 app, no longer used]
"RTN","SAMIHL7",140,0)
; EN^SAMIORM [<= hl7 app INST-MCAR <= HL7, main vapals hl7 entry]
"RTN","SAMIHL7",141,0)
; IMPRTPTS^SAMIPI [patient-lookup graph import & export utils]
"RTN","SAMIHL7",142,0)
; ACK^SAMITIU [<= old HL7 app, no longer used]
"RTN","SAMIHL7",143,0)
; RECTIU^SAMITIU
"RTN","SAMIHL7",144,0)
; RECTIU^SAMIVHL [HL7 TIU processing for VAPALS, no longer used?]
"RTN","SAMIHL7",145,0)
;@calls none
"RTN","SAMIHL7",146,0)
;@input
"RTN","SAMIHL7",147,0)
; fields = array of patient data
"RTN","SAMIHL7",148,0)
;@output
"RTN","SAMIHL7",149,0)
; existing entry in patient-lookup graph updated
"RTN","SAMIHL7",150,0)
; or new patient entered
"RTN","SAMIHL7",151,0)
;
"RTN","SAMIHL7",152,0)
;
"RTN","SAMIHL7",153,0)
;@stanza 2 setup
"RTN","SAMIHL7",154,0)
;
"RTN","SAMIHL7",155,0)
kill ^KBAP("SAMIHL7")
"RTN","SAMIHL7",156,0)
set ^KBAP("SAMIHL7","UPDTPTL")=""
"RTN","SAMIHL7",157,0)
;
"RTN","SAMIHL7",158,0)
; bail if we didn't get a fields array
"RTN","SAMIHL7",159,0)
quit:'$data(fields)
"RTN","SAMIHL7",160,0)
;
"RTN","SAMIHL7",161,0)
;
"RTN","SAMIHL7",162,0)
UPDTPTL1 ;
"RTN","SAMIHL7",163,0)
;
"RTN","SAMIHL7",164,0)
;@falls-thru-from
"RTN","SAMIHL7",165,0)
; UPDTPTL
"RTN","SAMIHL7",166,0)
;@falls-thru-to
"RTN","SAMIHL7",167,0)
; MATCHLOG
"RTN","SAMIHL7",168,0)
;@called-by none
"RTN","SAMIHL7",169,0)
;@calls none
"RTN","SAMIHL7",170,0)
;
"RTN","SAMIHL7",171,0)
set ^KBAP("SAMIHL7","UPDTPTL1")=""
"RTN","SAMIHL7",172,0)
;
"RTN","SAMIHL7",173,0)
new rootpl s rootpl=$$setroot^%wd("patient-lookup")
"RTN","SAMIHL7",174,0)
new ptienssn set ptienssn=0 ; patient ssn
"RTN","SAMIHL7",175,0)
new ptiennm set ptiennm=0 ; patient name
"RTN","SAMIHL7",176,0)
new ptiendob set ptiendob=0 ; patient dob
"RTN","SAMIHL7",177,0)
new ptienssntmp set ptienssntmp=0 ; patient 1st ssn xref match
"RTN","SAMIHL7",178,0)
new ptien set ptien=0 ; patient ien
"RTN","SAMIHL7",179,0)
new newpat set newpat=1 ; new patient: default to true
"RTN","SAMIHL7",180,0)
;
"RTN","SAMIHL7",181,0)
; look for existing patients w/matching ssn. If one has matching name
"RTN","SAMIHL7",182,0)
; we don't make new patient; we update existing w/changelog.
"RTN","SAMIHL7",183,0)
;
"RTN","SAMIHL7",184,0)
do
"RTN","SAMIHL7",185,0)
. quit:'$length($get(fields("ssn"))) ; existing ssn
"RTN","SAMIHL7",186,0)
. quit:'$data(@rootpl@("ssn",$get(fields("ssn")))) ; matches lkup?
"RTN","SAMIHL7",187,0)
. set ptienssntmp=$order(@rootpl@("ssn",$get(fields("ssn")),0)) ;save
"RTN","SAMIHL7",188,0)
. for do quit:'ptienssn quit:ptiennm
"RTN","SAMIHL7",189,0)
. . set ptienssn=$order(@rootpl@("ssn",$get(fields("ssn")),ptienssn))
"RTN","SAMIHL7",190,0)
. . quit:'ptienssn
"RTN","SAMIHL7",191,0)
. . ;
"RTN","SAMIHL7",192,0)
. . quit:'$length($get(fields("saminame")))
"RTN","SAMIHL7",193,0)
. . new name set name=fields("saminame") ; existing name
"RTN","SAMIHL7",194,0)
. . new chkname set chkname=@rootpl@(ptienssn,"saminame") ; new name
"RTN","SAMIHL7",195,0)
. . quit:$$UP^XLFSTR(chkname)'=$$UP^XLFSTR(name) ; uppercase equal?
"RTN","SAMIHL7",196,0)
. . set ptiennm=ptienssn ; we have a match!
"RTN","SAMIHL7",197,0)
. . quit
"RTN","SAMIHL7",198,0)
. quit
"RTN","SAMIHL7",199,0)
;
"RTN","SAMIHL7",200,0)
set ^KBAP("SAMIHL7","UPDTPTL1","A")=""
"RTN","SAMIHL7",201,0)
;
"RTN","SAMIHL7",202,0)
if ptienssn,ptiennm do
"RTN","SAMIHL7",203,0)
. new fixdob set fixdob=@rootpl@(ptienssn,"sbdob")
"RTN","SAMIHL7",204,0)
. new year set year=$piece(fixdob,"-")
"RTN","SAMIHL7",205,0)
. new month
"RTN","SAMIHL7",206,0)
. set month=$translate($justify($piece(fixdob,"-",2),2)," ","0")
"RTN","SAMIHL7",207,0)
. new day
"RTN","SAMIHL7",208,0)
. set day=$translate($justify($piece(fixdob,"-",3),2)," ","0")
"RTN","SAMIHL7",209,0)
. set fixdob=year_"-"_month_"-"_day
"RTN","SAMIHL7",210,0)
. if $length($get(fields("sbdob"))),fixdob=fields("sbdob") do
"RTN","SAMIHL7",211,0)
. . set ptiendob=ptienssn
"RTN","SAMIHL7",212,0)
. . quit
"RTN","SAMIHL7",213,0)
. set newpat=0 ; not a new patient
"RTN","SAMIHL7",214,0)
. set ptien=ptienssn ; existing patient!
"RTN","SAMIHL7",215,0)
;
"RTN","SAMIHL7",216,0)
;
"RTN","SAMIHL7",217,0)
set ^KBAP("SAMIHL7","UPDTPTL1","B")=""
"RTN","SAMIHL7",218,0)
;
"RTN","SAMIHL7",219,0)
; if no name match, restore ptienssn to 1st ssn xref match
"RTN","SAMIHL7",220,0)
set:'ptienssn ptienssn=ptienssntmp
"RTN","SAMIHL7",221,0)
;
"RTN","SAMIHL7",222,0)
; if existing patient, save existing data
"RTN","SAMIHL7",223,0)
new oldarr
"RTN","SAMIHL7",224,0)
merge:ptien oldarr=@rootpl@(ptien)
"RTN","SAMIHL7",225,0)
;
"RTN","SAMIHL7",226,0)
;
"RTN","SAMIHL7",227,0)
set ^KBAP("SAMIHL7","UPDTPTL1","C")=""
"RTN","SAMIHL7",228,0)
;
"RTN","SAMIHL7",229,0)
; if new patient, get next ptien to use & set dfn
"RTN","SAMIHL7",230,0)
if '$get(ptien) do
"RTN","SAMIHL7",231,0)
. set ptien=$order(@rootpl@(999999999),-1)+1
"RTN","SAMIHL7",232,0)
. set fields("dfn")=ptien
"RTN","SAMIHL7",233,0)
. set newpat=1
"RTN","SAMIHL7",234,0)
. quit
"RTN","SAMIHL7",235,0)
;
"RTN","SAMIHL7",236,0)
;
"RTN","SAMIHL7",237,0)
set ^KBAP("SAMIHL7","UPDTPTL1","D")=""
"RTN","SAMIHL7",238,0)
;
"RTN","SAMIHL7",239,0)
set ^KBAP("SAMIHL7","ptien","newpat")=$get(ptien)_"^"_$get(newpat)
"RTN","SAMIHL7",240,0)
set ^KBAP("SAMIHL7","fields(dfn)")=$get(fields("dfn"))
"RTN","SAMIHL7",241,0)
;
"RTN","SAMIHL7",242,0)
; bail if for some reason we didn't get next patient ien
"RTN","SAMIHL7",243,0)
quit:'ptien
"RTN","SAMIHL7",244,0)
;
"RTN","SAMIHL7",245,0)
merge ^KBAP("SAMIHL7","fields")=fields
"RTN","SAMIHL7",246,0)
set ^KBAP("SAMIHL7","ptien")=$get(ptien)
"RTN","SAMIHL7",247,0)
;
"RTN","SAMIHL7",248,0)
;
"RTN","SAMIHL7",249,0)
MATCHLOG ; build MATCHLOG
"RTN","SAMIHL7",250,0)
;
"RTN","SAMIHL7",251,0)
;@falls-thru-from
"RTN","SAMIHL7",252,0)
; UPDTPTL-UPDTPTL1
"RTN","SAMIHL7",253,0)
;@called-by none
"RTN","SAMIHL7",254,0)
;@calls
"RTN","SAMIHL7",255,0)
; $$FMTE^XLFDT
"RTN","SAMIHL7",256,0)
; $$NOW^XLFDT
"RTN","SAMIHL7",257,0)
; $$UP^XLFSTR
"RTN","SAMIHL7",258,0)
; $$HTE^XLFDT
"RTN","SAMIHL7",259,0)
; KILLREF
"RTN","SAMIHL7",260,0)
; CAPTORM
"RTN","SAMIHL7",261,0)
;
"RTN","SAMIHL7",262,0)
; If adding new patient, check whether we had a match for ssn or name
"RTN","SAMIHL7",263,0)
; on an existing patient (with precedence to the ssn). If so set
"RTN","SAMIHL7",264,0)
; MATCHLOG = new patient ien & add index to existing patient.
"RTN","SAMIHL7",265,0)
;
"RTN","SAMIHL7",266,0)
new var
"RTN","SAMIHL7",267,0)
new newptien set newptien=""
"RTN","SAMIHL7",268,0)
if newpat do
"RTN","SAMIHL7",269,0)
. set newptien=ptien ; ien of the new patient being added
"RTN","SAMIHL7",270,0)
. ;
"RTN","SAMIHL7",271,0)
. ; if 1 or more existing entries w/this ssn, set MATCHLOG
"RTN","SAMIHL7",272,0)
. ;
"RTN","SAMIHL7",273,0)
. if ptienssn do quit
"RTN","SAMIHL7",274,0)
. . new ssnien set ssnien=0
"RTN","SAMIHL7",275,0)
. . for do quit:'ssnien
"RTN","SAMIHL7",276,0)
. . . set ssnien=$order(@rootpl@("ssn",$get(fields("ssn")),ssnien))
"RTN","SAMIHL7",277,0)
. . . quit:'ssnien
"RTN","SAMIHL7",278,0)
. . . set @rootpl@(ssnien,"HL7MATCHLOG")=newptien
"RTN","SAMIHL7",279,0)
. . . set @rootpl@("HL7MATCHLOG",ssnien,newptien)=""
"RTN","SAMIHL7",280,0)
. . . use $principal
"RTN","SAMIHL7",281,0)
. . . write !,"HL7MATCHLOG ssn","--- ssnien=",ssnien
"RTN","SAMIHL7",282,0)
. . . write "--- newptien=",newptien
"RTN","SAMIHL7",283,0)
. . . quit
"RTN","SAMIHL7",284,0)
. . quit
"RTN","SAMIHL7",285,0)
. ;
"RTN","SAMIHL7",286,0)
. ; if 1 or more existing entries w/this patient name, set MATCHLOG
"RTN","SAMIHL7",287,0)
. ;
"RTN","SAMIHL7",288,0)
. if ptiennm do
"RTN","SAMIHL7",289,0)
. . new pnien set pnien=0
"RTN","SAMIHL7",290,0)
. . for do quit:'pnien
"RTN","SAMIHL7",291,0)
. . . set pnien=$order(@rootpl@("name",$g(fields("saminame")),pnien))
"RTN","SAMIHL7",292,0)
. . . quit:'pnien
"RTN","SAMIHL7",293,0)
. . . set @rootpl@(pnien,"HL7MATCHLOG")=newptien
"RTN","SAMIHL7",294,0)
. . . set @rootpl@("HL7MATCHLOG",pnien,newptien)=""
"RTN","SAMIHL7",295,0)
. . . use $principal
"RTN","SAMIHL7",296,0)
. . . write !,"HL7MATCHLOG name","---",pnien
"RTN","SAMIHL7",297,0)
. . . quit
"RTN","SAMIHL7",298,0)
. . quit
"RTN","SAMIHL7",299,0)
. quit
"RTN","SAMIHL7",300,0)
;
"RTN","SAMIHL7",301,0)
;
"RTN","SAMIHL7",302,0)
new field set field=""
"RTN","SAMIHL7",303,0)
; run through every fields subscript and set the
"RTN","SAMIHL7",304,0)
; appropriate subscript patient entry in patient-lookup
"RTN","SAMIHL7",305,0)
for do quit:field=""
"RTN","SAMIHL7",306,0)
. set field=$order(fields(field))
"RTN","SAMIHL7",307,0)
. quit:field=""
"RTN","SAMIHL7",308,0)
. ;
"RTN","SAMIHL7",309,0)
. ; new patient ====================================
"RTN","SAMIHL7",310,0)
. ; if new patient just set all patient-lookup field w/data in field
"RTN","SAMIHL7",311,0)
. ; array.
"RTN","SAMIHL7",312,0)
. ;
"RTN","SAMIHL7",313,0)
. ; Load ORM message data later
"RTN","SAMIHL7",314,0)
. ;
"RTN","SAMIHL7",315,0)
. if newpat do
"RTN","SAMIHL7",316,0)
. . quit:field="ORM"
"RTN","SAMIHL7",317,0)
. . set @rootpl@(ptien,field)=fields(field)
"RTN","SAMIHL7",318,0)
. . quit
"RTN","SAMIHL7",319,0)
. ;
"RTN","SAMIHL7",320,0)
. ; old patient ====================================
"RTN","SAMIHL7",321,0)
. ; if not new patient, only store field results that are NOT null.
"RTN","SAMIHL7",322,0)
. ; Never overwrite existing patient's dfn; store dfn just received
"RTN","SAMIHL7",323,0)
. ; in remotedfn field
"RTN","SAMIHL7",324,0)
. ;
"RTN","SAMIHL7",325,0)
. ; With existing patients, if new data for field doesn't match
"RTN","SAMIHL7",326,0)
. ; pre-existing, save pre-existing data in changelog entry
"RTN","SAMIHL7",327,0)
. ;
"RTN","SAMIHL7",328,0)
. if '$get(newpat),fields(field)'="" do
"RTN","SAMIHL7",329,0)
. . quit:field="ORM"
"RTN","SAMIHL7",330,0)
. . quit:field="dfn"
"RTN","SAMIHL7",331,0)
. . ;
"RTN","SAMIHL7",332,0)
. . if $get(@rootpl@(ptien,field))'=fields(field) do
"RTN","SAMIHL7",333,0)
. . . new now set now=$$FMTE^XLFDT($$NOW^XLFDT,5)
"RTN","SAMIHL7",334,0)
. . . set @rootpl@(ptien,"hl7changelog",now,field)=fields(field)
"RTN","SAMIHL7",335,0)
. . . quit
"RTN","SAMIHL7",336,0)
. . set @rootpl@(ptien,field)=fields(field)
"RTN","SAMIHL7",337,0)
. . quit
"RTN","SAMIHL7",338,0)
. ;
"RTN","SAMIHL7",339,0)
. ; indices =========================================
"RTN","SAMIHL7",340,0)
. ; set all indices for old & new patients for this field
"RTN","SAMIHL7",341,0)
. ; note: we must kill any existing earlier indices on existing
"RTN","SAMIHL7",342,0)
. ; patients to prevent duplicate pointers
"RTN","SAMIHL7",343,0)
. ;
"RTN","SAMIHL7",344,0)
. quit:$get(fields(field))=""
"RTN","SAMIHL7",345,0)
. ;
"RTN","SAMIHL7",346,0)
. ; field=dfn =====================================
"RTN","SAMIHL7",347,0)
. if field="dfn" do
"RTN","SAMIHL7",348,0)
. . if newpat do
"RTN","SAMIHL7",349,0)
. . . set @rootpl@("dfn",fields(field),ptien)=""
"RTN","SAMIHL7",350,0)
. . . quit
"RTN","SAMIHL7",351,0)
. . quit
"RTN","SAMIHL7",352,0)
. ;
"RTN","SAMIHL7",353,0)
. ; didn't get DFN from VA server (only ssn) so can't set remotedfn
"RTN","SAMIHL7",354,0)
. ; field
"RTN","SAMIHL7",355,0)
. set @rootpl@(ptien,"remotedfn")=""
"RTN","SAMIHL7",356,0)
. ;
"RTN","SAMIHL7",357,0)
. ; field=icn =====================================
"RTN","SAMIHL7",358,0)
. if field="icn" do
"RTN","SAMIHL7",359,0)
. . set @rootpl@("icn",fields(field),ptien)=""
"RTN","SAMIHL7",360,0)
. . quit
"RTN","SAMIHL7",361,0)
. ;
"RTN","SAMIHL7",362,0)
. ; field=last5 ===================================
"RTN","SAMIHL7",363,0)
. if field="last5" do
"RTN","SAMIHL7",364,0)
. . if '$get(newpat) do
"RTN","SAMIHL7",365,0)
. . . do KILLREF(field,$get(oldarr(field)),ptien)
"RTN","SAMIHL7",366,0)
. . . quit
"RTN","SAMIHL7",367,0)
. . set @rootpl@("last5",fields(field),ptien)=""
"RTN","SAMIHL7",368,0)
. . quit
"RTN","SAMIHL7",369,0)
. ;
"RTN","SAMIHL7",370,0)
. ; field=saminame ================================
"RTN","SAMIHL7",371,0)
. if field="saminame" do
"RTN","SAMIHL7",372,0)
. . if '$get(newpat) do
"RTN","SAMIHL7",373,0)
. . . do KILLREF(field,$get(oldarr(field)),ptien)
"RTN","SAMIHL7",374,0)
. . . do KILLREF("name",$get(oldarr("name")),ptien)
"RTN","SAMIHL7",375,0)
. . . do KILLREF("name",$$UP^XLFSTR($get(oldarr("name"))),ptien)
"RTN","SAMIHL7",376,0)
. . . quit
"RTN","SAMIHL7",377,0)
. . set @rootpl@("name",fields(field),ptien)=""
"RTN","SAMIHL7",378,0)
. . set @rootpl@("saminame",fields(field),ptien)=""
"RTN","SAMIHL7",379,0)
. . set @rootpl@("name",$$UP^XLFSTR(fields(field)),ptien)=""
"RTN","SAMIHL7",380,0)
. . quit
"RTN","SAMIHL7",381,0)
. ;
"RTN","SAMIHL7",382,0)
. ; field=sinamef ==================================
"RTN","SAMIHL7",383,0)
. if field="sinamef" do
"RTN","SAMIHL7",384,0)
. . if '$get(newpat) do
"RTN","SAMIHL7",385,0)
. . . do KILLREF(field,$get(oldarr(field)),ptien)
"RTN","SAMIHL7",386,0)
. . . quit
"RTN","SAMIHL7",387,0)
. . set @rootpl@(field,fields(field),ptien)=""
"RTN","SAMIHL7",388,0)
. . quit
"RTN","SAMIHL7",389,0)
. ;
"RTN","SAMIHL7",390,0)
. ; field=sinamel ==================================
"RTN","SAMIHL7",391,0)
. if field="sinamel" do
"RTN","SAMIHL7",392,0)
. . if '$get(newpat) do
"RTN","SAMIHL7",393,0)
. . . do KILLREF(field,$get(oldarr(field)),ptien)
"RTN","SAMIHL7",394,0)
. . . quit
"RTN","SAMIHL7",395,0)
. . set @rootpl@(field,fields(field),ptien)=""
"RTN","SAMIHL7",396,0)
. . quit
"RTN","SAMIHL7",397,0)
. ;
"RTN","SAMIHL7",398,0)
. ; field=ssn ======================================
"RTN","SAMIHL7",399,0)
. if field="ssn" do
"RTN","SAMIHL7",400,0)
. . if '$get(newpat) do
"RTN","SAMIHL7",401,0)
. . . do KILLREF(field,$get(oldarr(field)),ptien)
"RTN","SAMIHL7",402,0)
. . . quit
"RTN","SAMIHL7",403,0)
. . set @rootpl@(field,fields(field),ptien)=""
"RTN","SAMIHL7",404,0)
. . quit
"RTN","SAMIHL7",405,0)
. quit
"RTN","SAMIHL7",406,0)
;
"RTN","SAMIHL7",407,0)
;
"RTN","SAMIHL7",408,0)
set @rootpl@("Date Last Updated")=$$HTE^XLFDT($horolog)
"RTN","SAMIHL7",409,0)
;
"RTN","SAMIHL7",410,0)
; set so SAMIORM can use ptien to file HL7 messages
"RTN","SAMIHL7",411,0)
set fields("ptien")=$get(ptien)
"RTN","SAMIHL7",412,0)
;
"RTN","SAMIHL7",413,0)
; now capture most recent ORM message
"RTN","SAMIHL7",414,0)
do CAPTORM(.fields,rootpl,ptien)
"RTN","SAMIHL7",415,0)
;
"RTN","SAMIHL7",416,0)
merge ^KBAP("SAMIHL7","fields")=fields
"RTN","SAMIHL7",417,0)
;
"RTN","SAMIHL7",418,0)
quit ; end of UPDTPTL-UPDTPTL1-MATCHLOG
"RTN","SAMIHL7",419,0)
;
"RTN","SAMIHL7",420,0)
;
"RTN","SAMIHL7",421,0)
;
"RTN","SAMIHL7",422,0)
CAPTORM(fields,rootpl,ptien) ; save all ORM fields in patient-lookup
"RTN","SAMIHL7",423,0)
;
"RTN","SAMIHL7",424,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMIHL7",425,0)
;
"RTN","SAMIHL7",426,0)
;;private;procedure;clean;silent;sac
"RTN","SAMIHL7",427,0)
;@called-by
"RTN","SAMIHL7",428,0)
; UPDTPTL-UPDTPTL1-MATCHLOG
"RTN","SAMIHL7",429,0)
;@calls none
"RTN","SAMIHL7",430,0)
;@input
"RTN","SAMIHL7",431,0)
; .fields = fields array
"RTN","SAMIHL7",432,0)
; rootpl = patient-lookup root
"RTN","SAMIHL7",433,0)
; ptien = patient ien
"RTN","SAMIHL7",434,0)
;@output
"RTN","SAMIHL7",435,0)
; ORM fields are saved in patient-lookup
"RTN","SAMIHL7",436,0)
;
"RTN","SAMIHL7",437,0)
;
"RTN","SAMIHL7",438,0)
;@stanza 2 remove old field result from patient-lookup root
"RTN","SAMIHL7",439,0)
;
"RTN","SAMIHL7",440,0)
new node set node=$name(fields("ORM"))
"RTN","SAMIHL7",441,0)
new snode set snode=$piece(node,")")
"RTN","SAMIHL7",442,0)
new invdt
"RTN","SAMIHL7",443,0)
for do quit:node'[snode
"RTN","SAMIHL7",444,0)
. set node=$query(@node)
"RTN","SAMIHL7",445,0)
. quit:node'[snode
"RTN","SAMIHL7",446,0)
. set invdt=$qsubscript(node,2)
"RTN","SAMIHL7",447,0)
. set @rootpl@(ptien,"ORM",invdt,$qsubscript(node,3))=@node
"RTN","SAMIHL7",448,0)
. quit
"RTN","SAMIHL7",449,0)
;
"RTN","SAMIHL7",450,0)
;
"RTN","SAMIHL7",451,0)
;@stanza 3 termination
"RTN","SAMIHL7",452,0)
;
"RTN","SAMIHL7",453,0)
quit ; end of CAPTORM
"RTN","SAMIHL7",454,0)
;
"RTN","SAMIHL7",455,0)
;
"RTN","SAMIHL7",456,0)
;
"RTN","SAMIHL7",457,0)
KILLREF(field,oldrslt,ptien) ; kill old field in patient-lookup root
"RTN","SAMIHL7",458,0)
;
"RTN","SAMIHL7",459,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMIHL7",460,0)
;
"RTN","SAMIHL7",461,0)
;;private;procedure;clean;silent;sac
"RTN","SAMIHL7",462,0)
;@called-by
"RTN","SAMIHL7",463,0)
; UPDTPTL-UPDTPTL1-MATCHLOG
"RTN","SAMIHL7",464,0)
;@calls none
"RTN","SAMIHL7",465,0)
;@input
"RTN","SAMIHL7",466,0)
; ]rootpl = patient-lookup root
"RTN","SAMIHL7",467,0)
; field = name of field to kill
"RTN","SAMIHL7",468,0)
; oldrslt = old field value to kill
"RTN","SAMIHL7",469,0)
; ptien = patient ien
"RTN","SAMIHL7",470,0)
;@output
"RTN","SAMIHL7",471,0)
; field is killed
"RTN","SAMIHL7",472,0)
;
"RTN","SAMIHL7",473,0)
;
"RTN","SAMIHL7",474,0)
;@stanza 2 remove old field result from patient-lookup root
"RTN","SAMIHL7",475,0)
;
"RTN","SAMIHL7",476,0)
quit:$get(oldrslt)=""
"RTN","SAMIHL7",477,0)
kill @rootpl@(field,oldrslt,ptien)
"RTN","SAMIHL7",478,0)
;
"RTN","SAMIHL7",479,0)
;
"RTN","SAMIHL7",480,0)
;@stanza 3 termination
"RTN","SAMIHL7",481,0)
;
"RTN","SAMIHL7",482,0)
quit ; end of KILLREF
"RTN","SAMIHL7",483,0)
;
"RTN","SAMIHL7",484,0)
;
"RTN","SAMIHL7",485,0)
;
"RTN","SAMIHL7",486,0)
;@ppi ACK^SAMIHL7
"RTN","SAMIHL7",487,0)
ACK ; force a com ACK
"RTN","SAMIHL7",488,0)
;
"RTN","SAMIHL7",489,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMIHL7",490,0)
;
"RTN","SAMIHL7",491,0)
;;ppi;procedure;shell;silent;sac
"RTN","SAMIHL7",492,0)
;@called-by
"RTN","SAMIHL7",493,0)
; MSH^SAMIADT [<= EN^SAMIADT <= old HL7 app, no longer used]
"RTN","SAMIHL7",494,0)
; EN^SAMIORM [<= hl7 app INST-MCAR <= HL7, main vapals hl7 entry]
"RTN","SAMIHL7",495,0)
; EN-ACK^SAMITIU [<= old HL7 app, no longer used]
"RTN","SAMIHL7",496,0)
;@calls
"RTN","SAMIHL7",497,0)
; GENACK^HLMA1
"RTN","SAMIHL7",498,0)
;@input
"RTN","SAMIHL7",499,0)
; expects all HL7 variables captured on message reception to be in
"RTN","SAMIHL7",500,0)
; environment, incl:
"RTN","SAMIHL7",501,0)
; ]HL("EID")
"RTN","SAMIHL7",502,0)
; ]HL("EIDS")
"RTN","SAMIHL7",503,0)
; ]HLA
"RTN","SAMIHL7",504,0)
; ]HLA("HLA")
"RTN","SAMIHL7",505,0)
; ]HLREC("FS")
"RTN","SAMIHL7",506,0)
; ]HLREC("MID")
"RTN","SAMIHL7",507,0)
;@output
"RTN","SAMIHL7",508,0)
; sends com ACK through appropriate link
"RTN","SAMIHL7",509,0)
; ]HLA("HLA",1)
"RTN","SAMIHL7",510,0)
; ]HLMTIENA
"RTN","SAMIHL7",511,0)
; ]HLP
"RTN","SAMIHL7",512,0)
; ]HLP("NAMESPACE")
"RTN","SAMIHL7",513,0)
; ^KBAP("SAMIHL7","HLA")
"RTN","SAMIHL7",514,0)
;
"RTN","SAMIHL7",515,0)
;
"RTN","SAMIHL7",516,0)
;@stanza 2 send HL7 ack message
"RTN","SAMIHL7",517,0)
;
"RTN","SAMIHL7",518,0)
kill HLA("HLA")
"RTN","SAMIHL7",519,0)
set HLA("HLA",1)="MSA"_HLREC("FS")_"CA"_HLREC("FS")_HLREC("MID")
"RTN","SAMIHL7",520,0)
;
"RTN","SAMIHL7",521,0)
if $data(HLA("HLA")) do quit
"RTN","SAMIHL7",522,0)
. set HLP("NAMESPACE")="HL"
"RTN","SAMIHL7",523,0)
. merge ^KBAP("SAMIHL7","HLA")=HLA
"RTN","SAMIHL7",524,0)
. do GENACK^HLMA1(HL("EID"),HLMTIENS,HL("EIDS"),"LM",1,.HLMTIENA,"",.HLP)
"RTN","SAMIHL7",525,0)
. quit
"RTN","SAMIHL7",526,0)
;
"RTN","SAMIHL7",527,0)
;
"RTN","SAMIHL7",528,0)
;@stanza 3 termination
"RTN","SAMIHL7",529,0)
;
"RTN","SAMIHL7",530,0)
quit ; end of ACK
"RTN","SAMIHL7",531,0)
;
"RTN","SAMIHL7",532,0)
;
"RTN","SAMIHL7",533,0)
;
"RTN","SAMIHL7",534,0)
EOR ; end of routine SAMIHL7
"RTN","SAMINOT1")
0^1^B444173065
"RTN","SAMINOT1",1,0)
SAMINOT1 ;ven/gpl - text notes ;2021-05-21T20:47Z
"RTN","SAMINOT1",2,0)
;;18.0;SAMI;**2,6,8,10,11**;2020-01;Build 21
"RTN","SAMINOT1",3,0)
;;1.18.0.11+i11
"RTN","SAMINOT1",4,0)
;
"RTN","SAMINOT1",5,0)
; SAMINOT1 contains a web service & associated subroutines to produce
"RTN","SAMINOT1",6,0)
; VAPALS-ELCAP text notes.
"RTN","SAMINOT1",7,0)
;
"RTN","SAMINOT1",8,0)
quit ; no entry from top
"RTN","SAMINOT1",9,0)
;
"RTN","SAMINOT1",10,0)
;
"RTN","SAMINOT1",11,0)
;
"RTN","SAMINOT1",12,0)
;@section 0 primary development
"RTN","SAMINOT1",13,0)
;
"RTN","SAMINOT1",14,0)
;
"RTN","SAMINOT1",15,0)
;
"RTN","SAMINOT1",16,0)
;@routine-credits
"RTN","SAMINOT1",17,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMINOT1",18,0)
; [email protected]
"RTN","SAMINOT1",19,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMINOT1",20,0)
; http://vistaexpertise.net
"RTN","SAMINOT1",21,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMINOT1",22,0)
;@license see routine SAMIUL
"RTN","SAMINOT1",23,0)
;
"RTN","SAMINOT1",24,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMINOT1",25,0)
;@application Screening Applications Management (SAM)
"RTN","SAMINOT1",26,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMINOT1",27,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMINOT1",28,0)
;@version 1.18.0.10+i11
"RTN","SAMINOT1",29,0)
;@release-date 2020-01
"RTN","SAMINOT1",30,0)
;@patch-list **2,6,8,10,11**
"RTN","SAMINOT1",31,0)
;
"RTN","SAMINOT1",32,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMINOT1",33,0)
; [email protected]
"RTN","SAMINOT1",34,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMINOT1",35,0)
; [email protected]
"RTN","SAMINOT1",36,0)
;@additional-dev Linda M. R. Yaw (lmry)
"RTN","SAMINOT1",37,0)
; [email protected]
"RTN","SAMINOT1",38,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMINOT1",39,0)
; [email protected]
"RTN","SAMINOT1",40,0)
;@additional-dev Domenic DiNatale (dom)
"RTN","SAMINOT1",41,0)
; [email protected]
"RTN","SAMINOT1",42,0)
;
"RTN","SAMINOT1",43,0)
;@module-credits
"RTN","SAMINOT1",44,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMINOT1",45,0)
; (VA-PALS)
"RTN","SAMINOT1",46,0)
; http://va-pals.org/
"RTN","SAMINOT1",47,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMINOT1",48,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMINOT1",49,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMINOT1",50,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMINOT1",51,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMINOT1",52,0)
; http://ielcap.com/
"RTN","SAMINOT1",53,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMINOT1",54,0)
; http://paraxialtech.com/
"RTN","SAMINOT1",55,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMINOT1",56,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMINOT1",57,0)
;
"RTN","SAMINOT1",58,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMINOT1",59,0)
; see routine SAMINUL
"RTN","SAMINOT1",60,0)
;
"RTN","SAMINOT1",61,0)
;
"RTN","SAMINOT1",62,0)
;
"RTN","SAMINOT1",63,0)
;@section 1 wsi WSNOTE^SAMINOT1 & related subroutines
"RTN","SAMINOT1",64,0)
;
"RTN","SAMINOT1",65,0)
;
"RTN","SAMINOT1",66,0)
;
"RTN","SAMINOT1",67,0)
EXISTCE(SID,FORM) ; extrinsic returns "true" or "false"
"RTN","SAMINOT1",68,0)
;
"RTN","SAMINOT1",69,0)
; if a Chart Eligibility Note exists
"RTN","SAMINOT1",70,0)
;
"RTN","SAMINOT1",71,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",72,0)
n gvals s gvals=$na(@root@("graph",SID,FORM))
"RTN","SAMINOT1",73,0)
;i $g(@root@("graph",SID,FORM,"sicechrt"))="y" q "true"
"RTN","SAMINOT1",74,0)
i $g(@gvals@("chart-eligibility-complete"))="true" q "true"
"RTN","SAMINOT1",75,0)
;
"RTN","SAMINOT1",76,0)
quit "false" ; end of $$EXISTCE
"RTN","SAMINOT1",77,0)
;
"RTN","SAMINOT1",78,0)
;
"RTN","SAMINOT1",79,0)
;
"RTN","SAMINOT1",80,0)
EXISTPRE(SID,FORM) ; extrinsic returns "true" or "false"
"RTN","SAMINOT1",81,0)
;
"RTN","SAMINOT1",82,0)
; if a Pre-enrollment Note exists
"RTN","SAMINOT1",83,0)
;
"RTN","SAMINOT1",84,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",85,0)
n gvals s gvals=$na(@root@("graph",SID,FORM))
"RTN","SAMINOT1",86,0)
;i $g(@root@("graph",SID,FORM,"sipedisc"))="y" q "true"
"RTN","SAMINOT1",87,0)
;i $g(@gvals@("pre-note-complete"))="true" i $g(@gvals@("siperslt"))="y" q "true"
"RTN","SAMINOT1",88,0)
i $g(@gvals@("pre-note-complete"))="true" q "true"
"RTN","SAMINOT1",89,0)
;
"RTN","SAMINOT1",90,0)
quit "false" ; end of $$EXISTPRE
"RTN","SAMINOT1",91,0)
;
"RTN","SAMINOT1",92,0)
;
"RTN","SAMINOT1",93,0)
;
"RTN","SAMINOT1",94,0)
EXISTINT(SID,FORM) ; extrinsic returns "true" or "false"
"RTN","SAMINOT1",95,0)
;
"RTN","SAMINOT1",96,0)
; if an Intake Note exists
"RTN","SAMINOT1",97,0)
;
"RTN","SAMINOT1",98,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",99,0)
i $g(@root@("graph",SID,FORM,"sistatus"))="y" q "true"
"RTN","SAMINOT1",100,0)
;
"RTN","SAMINOT1",101,0)
quit "false" ; end of $$EXISTINT
"RTN","SAMINOT1",102,0)
;
"RTN","SAMINOT1",103,0)
;
"RTN","SAMINOT1",104,0)
;
"RTN","SAMINOT1",105,0)
WSNOTE(return,filter) ; web service which returns a text note
"RTN","SAMINOT1",106,0)
;
"RTN","SAMINOT1",107,0)
n debug s debug=0
"RTN","SAMINOT1",108,0)
i $g(filter("debug"))=1 s debug=1
"RTN","SAMINOT1",109,0)
;
"RTN","SAMINOT1",110,0)
k return
"RTN","SAMINOT1",111,0)
s HTTPRSP("mime")="text/html"
"RTN","SAMINOT1",112,0)
;
"RTN","SAMINOT1",113,0)
n si
"RTN","SAMINOT1",114,0)
s si=$g(filter("studyid"))
"RTN","SAMINOT1",115,0)
i si="" d ;
"RTN","SAMINOT1",116,0)
. s si="XXX00333"
"RTN","SAMINOT1",117,0)
q:si=""
"RTN","SAMINOT1",118,0)
;
"RTN","SAMINOT1",119,0)
n samikey
"RTN","SAMINOT1",120,0)
s samikey=$g(filter("form"))
"RTN","SAMINOT1",121,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",122,0)
i samikey="" d ;
"RTN","SAMINOT1",123,0)
. s samikey=$o(@root@("graph",si,"siform"))
"RTN","SAMINOT1",124,0)
. ;w !,samikey
"RTN","SAMINOT1",125,0)
. ;b
"RTN","SAMINOT1",126,0)
;
"RTN","SAMINOT1",127,0)
n vals
"RTN","SAMINOT1",128,0)
m vals=@root@("graph",si,samikey)
"RTN","SAMINOT1",129,0)
;
"RTN","SAMINOT1",130,0)
n note,nien,ntype
"RTN","SAMINOT1",131,0)
s ntype=""
"RTN","SAMINOT1",132,0)
s note=""
"RTN","SAMINOT1",133,0)
s nien=$g(filter("nien"))
"RTN","SAMINOT1",134,0)
i nien="" d
"RTN","SAMINOT1",135,0)
. s:$g(vals("samistatus"))="complete" ntype="intake"
"RTN","SAMINOT1",136,0)
. s:$g(vals("samistatus"))="chart-eligibility" ntype="eligibility"
"RTN","SAMINOT1",137,0)
. s:$g(vals("samistatus"))="pre-enrollment-discussion" ntype="pre-note"
"RTN","SAMINOT1",138,0)
. q:ntype=""
"RTN","SAMINOT1",139,0)
. ;d nien=$$NTTYPE add code to pull the latest note by type
"RTN","SAMINOT1",140,0)
q:nien=""
"RTN","SAMINOT1",141,0)
n notebase
"RTN","SAMINOT1",142,0)
s notebase=$$NTLOCN(si,samikey,nien) ; global location for the note
"RTN","SAMINOT1",143,0)
s note=$na(@notebase@("text"))
"RTN","SAMINOT1",144,0)
i '$d(@note) q
"RTN","SAMINOT1",145,0)
;
"RTN","SAMINOT1",146,0)
new temp,tout
"RTN","SAMINOT1",147,0)
do GETTMPL^SAMICASE("temp","vapals:note")
"RTN","SAMINOT1",148,0)
quit:'$data(temp)
"RTN","SAMINOT1",149,0)
;
"RTN","SAMINOT1",150,0)
n cnt s cnt=0
"RTN","SAMINOT1",151,0)
n zi s zi=""
"RTN","SAMINOT1",152,0)
;
"RTN","SAMINOT1",153,0)
f s zi=$o(temp(zi)) q:zi="" d ;
"RTN","SAMINOT1",154,0)
. ;
"RTN","SAMINOT1",155,0)
. n line s line=temp(zi)
"RTN","SAMINOT1",156,0)
. D LOAD^SAMIFORM(.line,samikey,si,.filter,.vals)
"RTN","SAMINOT1",157,0)
. s temp(zi)=line
"RTN","SAMINOT1",158,0)
. ;
"RTN","SAMINOT1",159,0)
. s cnt=cnt+1
"RTN","SAMINOT1",160,0)
. s tout(cnt)=temp(zi)
"RTN","SAMINOT1",161,0)
. ;
"RTN","SAMINOT1",162,0)
. i temp(zi)["report-text" d ;
"RTN","SAMINOT1",163,0)
. . i temp(zi)["#" q ;
"RTN","SAMINOT1",164,0)
. . n zj s zj=""
"RTN","SAMINOT1",165,0)
. . f s zj=$o(@note@(zj)) q:zj="" d ;
"RTN","SAMINOT1",166,0)
. . . s cnt=cnt+1
"RTN","SAMINOT1",167,0)
. . . ;s tout(cnt)=@note@(zj)_"<br>"
"RTN","SAMINOT1",168,0)
. . . s tout(cnt)=@note@(zj)_$char(13,10)
"RTN","SAMINOT1",169,0)
m return=tout
"RTN","SAMINOT1",170,0)
;
"RTN","SAMINOT1",171,0)
quit ; end of WSNOTE
"RTN","SAMINOT1",172,0)
;
"RTN","SAMINOT1",173,0)
;
"RTN","SAMINOT1",174,0)
;
"RTN","SAMINOT1",175,0)
NOTE(filter) ; extrnisic which creates a note
"RTN","SAMINOT1",176,0)
;
"RTN","SAMINOT1",177,0)
; returns 1 if successful, 0 if not
"RTN","SAMINOT1",178,0)
;
"RTN","SAMINOT1",179,0)
; set up patient values
"RTN","SAMINOT1",180,0)
;
"RTN","SAMINOT1",181,0)
n vals
"RTN","SAMINOT1",182,0)
;
"RTN","SAMINOT1",183,0)
n si
"RTN","SAMINOT1",184,0)
s si=$g(filter("studyid"))
"RTN","SAMINOT1",185,0)
i si="" d ;
"RTN","SAMINOT1",186,0)
. s si="XXX00333"
"RTN","SAMINOT1",187,0)
q:si=""
"RTN","SAMINOT1",188,0)
;
"RTN","SAMINOT1",189,0)
n samikey
"RTN","SAMINOT1",190,0)
s samikey=$g(filter("form"))
"RTN","SAMINOT1",191,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",192,0)
i samikey="" d ;
"RTN","SAMINOT1",193,0)
. s samikey=$o(@root@("graph",si,"siform"))
"RTN","SAMINOT1",194,0)
. ;w !,samikey
"RTN","SAMINOT1",195,0)
. ;b
"RTN","SAMINOT1",196,0)
;
"RTN","SAMINOT1",197,0)
s vals=$na(@root@("graph",si,samikey))
"RTN","SAMINOT1",198,0)
;
"RTN","SAMINOT1",199,0)
i '$d(@vals) d q 0 ;
"RTN","SAMINOT1",200,0)
. ;w !,"error, patient values not found"
"RTN","SAMINOT1",201,0)
;zwr @vals@(*)
"RTN","SAMINOT1",202,0)
;
"RTN","SAMINOT1",203,0)
k ^SAMIUL("NOTE")
"RTN","SAMINOT1",204,0)
m ^SAMIUL("NOTE","vals")=@vals
"RTN","SAMINOT1",205,0)
m ^SAMIUL("NOTE","filter")=filter
"RTN","SAMINOT1",206,0)
;
"RTN","SAMINOT1",207,0)
n didnote s didnote=0
"RTN","SAMINOT1",208,0)
;
"RTN","SAMINOT1",209,0)
i $g(@vals@("samistatus"))="chart-eligibility" d ;
"RTN","SAMINOT1",210,0)
. q:$g(@vals@("chart-eligibility-complete"))="true"
"RTN","SAMINOT1",211,0)
. d MKEL(si,samikey,vals,.filter) ;
"RTN","SAMINOT1",212,0)
. s didnote=1
"RTN","SAMINOT1",213,0)
;
"RTN","SAMINOT1",214,0)
i $g(@vals@("samistatus"))="pre-enrollment-discussion" d ;
"RTN","SAMINOT1",215,0)
. q:$g(@vals@("pre-note-complete"))="true"
"RTN","SAMINOT1",216,0)
. d MKPRE(si,samikey,vals,.filter) ;
"RTN","SAMINOT1",217,0)
. s didnote=1
"RTN","SAMINOT1",218,0)
;
"RTN","SAMINOT1",219,0)
i $g(@vals@("samistatus"))="complete" d ;
"RTN","SAMINOT1",220,0)
. q:$$HASINNT(vals)
"RTN","SAMINOT1",221,0)
. d MKIN(si,samikey,vals,.filter) ;
"RTN","SAMINOT1",222,0)
. s didnote=1
"RTN","SAMINOT1",223,0)
;
"RTN","SAMINOT1",224,0)
n nien s nien=0
"RTN","SAMINOT1",225,0)
i didnote=1 s nien=$$NTIEN(si,samikey)
"RTN","SAMINOT1",226,0)
;
"RTN","SAMINOT1",227,0)
quit nien ; end of $$NOTE
"RTN","SAMINOT1",228,0)
;
"RTN","SAMINOT1",229,0)
;
"RTN","SAMINOT1",230,0)
;
"RTN","SAMINOT1",231,0)
HASINNT(vals) ; extrinsic returns 1 if intake note is present
"RTN","SAMINOT1",232,0)
;
"RTN","SAMINOT1",233,0)
; else returns 0
"RTN","SAMINOT1",234,0)
;
"RTN","SAMINOT1",235,0)
n zzi,zzrtn s (zzi,zzrtn)=0
"RTN","SAMINOT1",236,0)
q:'$d(@vals)
"RTN","SAMINOT1",237,0)
f s zzi=$o(@vals@("notes",zzi)) q:+zzi=0 d ;
"RTN","SAMINOT1",238,0)
. i $g(@vals@("notes",zzi,"name"))["Intake" s zzrtn=1
"RTN","SAMINOT1",239,0)
;
"RTN","SAMINOT1",240,0)
quit zzrtn ; end of $$HASINNT
"RTN","SAMINOT1",241,0)
;
"RTN","SAMINOT1",242,0)
;
"RTN","SAMINOT1",243,0)
;
"RTN","SAMINOT1",244,0)
MKEL(sid,form,vals,filter) ;
"RTN","SAMINOT1",245,0)
;
"RTN","SAMINOT1",246,0)
n cnt s cnt=0
"RTN","SAMINOT1",247,0)
;n dest s dest=$na(@vals@("eligibility-note"))
"RTN","SAMINOT1",248,0)
n dest s dest=$$MKNT(vals,"Eligibility Note","eligibility",.filter)
"RTN","SAMINOT1",249,0)
k @dest
"RTN","SAMINOT1",250,0)
d OUT("Lung Screening Program Chart Eligibility Note")
"RTN","SAMINOT1",251,0)
d OUT("")
"RTN","SAMINOT1",252,0)
d ELNOTE(vals,dest,cnt)
"RTN","SAMINOT1",253,0)
;
"RTN","SAMINOT1",254,0)
quit ; end of MKEL
"RTN","SAMINOT1",255,0)
;
"RTN","SAMINOT1",256,0)
;
"RTN","SAMINOT1",257,0)
;
"RTN","SAMINOT1",258,0)
MKPRE(sid,form,vals,filter) ;
"RTN","SAMINOT1",259,0)
;
"RTN","SAMINOT1",260,0)
n cnt s cnt=0
"RTN","SAMINOT1",261,0)
;n dest s dest=$na(@vals@("pre-note"))
"RTN","SAMINOT1",262,0)
n dest s dest=$$MKNT(vals,"Pre-enrollment Discussion Note","prenote",.filter)
"RTN","SAMINOT1",263,0)
k @dest
"RTN","SAMINOT1",264,0)
i $g(@vals@("chart-eligibility-complete"))'="true" d ;
"RTN","SAMINOT1",265,0)
. d OUT("Lung Screening Program Chart Eligibility and Pre-enrollment Discussion Note")
"RTN","SAMINOT1",266,0)
. d OUT("")
"RTN","SAMINOT1",267,0)
. d ELNOTE(vals,dest,cnt)
"RTN","SAMINOT1",268,0)
i $g(@vals@("chart-eligibility-complete"))="true" d ;
"RTN","SAMINOT1",269,0)
. d OUT("Lung Screening Program Pre-enrollment Discussion Note")
"RTN","SAMINOT1",270,0)
. d OUT("")
"RTN","SAMINOT1",271,0)
d PRENOTE(vals,dest,cnt)
"RTN","SAMINOT1",272,0)
;
"RTN","SAMINOT1",273,0)
quit ; end of MKPRE
"RTN","SAMINOT1",274,0)
;
"RTN","SAMINOT1",275,0)
;
"RTN","SAMINOT1",276,0)
;
"RTN","SAMINOT1",277,0)
MKIN(sid,form,vals,filter) ;
"RTN","SAMINOT1",278,0)
;
"RTN","SAMINOT1",279,0)
n cnt s cnt=0
"RTN","SAMINOT1",280,0)
;n dest s dest=$na(@vals@("intake-note"))
"RTN","SAMINOT1",281,0)
n dest s dest=$$MKNT(vals,"Intake Note","intake",.filter)
"RTN","SAMINOT1",282,0)
k @dest
"RTN","SAMINOT1",283,0)
d OUT("Lung Screening Program Intake Note")
"RTN","SAMINOT1",284,0)
d OUT("")
"RTN","SAMINOT1",285,0)
i $g(@vals@("chart-eligibility-complete"))'="true" d ;
"RTN","SAMINOT1",286,0)
. d ELNOTE(vals,dest,cnt)
"RTN","SAMINOT1",287,0)
i $g(@vals@("pre-note-complete"))'="true" d ;
"RTN","SAMINOT1",288,0)
. d PRENOTE(vals,dest,cnt)
"RTN","SAMINOT1",289,0)
d INNOTE(vals,dest,cnt)
"RTN","SAMINOT1",290,0)
;
"RTN","SAMINOT1",291,0)
quit ; end of MKIN
"RTN","SAMINOT1",292,0)
;
"RTN","SAMINOT1",293,0)
;
"RTN","SAMINOT1",294,0)
;
"RTN","SAMINOT1",295,0)
MKNT(vals,title,ntype,filter) ; extrinsic makes a note date=now returns
"RTN","SAMINOT1",296,0)
;
"RTN","SAMINOT1",297,0)
; global addr. filter must be passed by reference
"RTN","SAMINOT1",298,0)
;
"RTN","SAMINOT1",299,0)
n ntdt s ntdt=$$NTDTTM($$NOW^XLFDT)
"RTN","SAMINOT1",300,0)
n ntptr
"RTN","SAMINOT1",301,0)
s ntptr=$$MKNTLOC(vals,title,ntdt,$g(ntype),.filter)
"RTN","SAMINOT1",302,0)
;
"RTN","SAMINOT1",303,0)
quit ntptr ; end of $$MKNT
"RTN","SAMINOT1",304,0)
;
"RTN","SAMINOT1",305,0)
;
"RTN","SAMINOT1",306,0)
;
"RTN","SAMINOT1",307,0)
MKNTLOC(vals,title,ndate,ntype,filter) ; extrinsic returns the
"RTN","SAMINOT1",308,0)
;
"RTN","SAMINOT1",309,0)
;location for the note
"RTN","SAMINOT1",310,0)
;
"RTN","SAMINOT1",311,0)
n nien
"RTN","SAMINOT1",312,0)
s nien=$o(@vals@("notes",""),-1)+1
"RTN","SAMINOT1",313,0)
s filter("nien")=nien
"RTN","SAMINOT1",314,0)
n nloc s nloc=$na(@vals@("notes",nien))
"RTN","SAMINOT1",315,0)
s @nloc@("name")=title_" "_$g(ndate)
"RTN","SAMINOT1",316,0)
s @nloc@("date")=$g(ndate)
"RTN","SAMINOT1",317,0)
s @nloc@("type")=$g(ntype)
"RTN","SAMINOT1",318,0)
;
"RTN","SAMINOT1",319,0)
quit $name(@nloc@("text")) ; end of $$MKNTLOC
"RTN","SAMINOT1",320,0)
;
"RTN","SAMINOT1",321,0)
;
"RTN","SAMINOT1",322,0)
;
"RTN","SAMINOT1",323,0)
NTDTTM(ZFMDT) ; extrinsic returns the date and time in Note format
"RTN","SAMINOT1",324,0)
;
"RTN","SAMINOT1",325,0)
; ZFMDT is the fileman date/time to translate
"RTN","SAMINOT1",326,0)
;
"RTN","SAMINOT1",327,0)
quit $$FMTE^XLFDT(ZFMDT,"5") ; end of $$NTDTTM
"RTN","SAMINOT1",328,0)
;
"RTN","SAMINOT1",329,0)
;
"RTN","SAMINOT1",330,0)
;
"RTN","SAMINOT1",331,0)
NTLOCN(sid,form,nien) ; extrinsic returns the location of the Nth note
"RTN","SAMINOT1",332,0)
;
"RTN","SAMINOT1",333,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",334,0)
;
"RTN","SAMINOT1",335,0)
quit $name(@root@("graph",sid,form,"notes",nien)) ; end of $$NTLOCN
"RTN","SAMINOT1",336,0)
;
"RTN","SAMINOT1",337,0)
;
"RTN","SAMINOT1",338,0)
;
"RTN","SAMINOT1",339,0)
NTLAST(sid,form,ntype) ; extrinsic returns the location of the latest note
"RTN","SAMINOT1",340,0)
;
"RTN","SAMINOT1",341,0)
; of the type ntype
"RTN","SAMINOT1",342,0)
;
"RTN","SAMINOT1",343,0)
quit ; end of NTLAST
"RTN","SAMINOT1",344,0)
;
"RTN","SAMINOT1",345,0)
;
"RTN","SAMINOT1",346,0)
;
"RTN","SAMINOT1",347,0)
NTIEN(sid,form) ; extrinsic which returns the latest note for this form
"RTN","SAMINOT1",348,0)
;
"RTN","SAMINOT1",349,0)
n root s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",350,0)
n rtn s rtn=$o(@root@("graph",sid,form,"notes"," "),-1)
"RTN","SAMINOT1",351,0)
;
"RTN","SAMINOT1",352,0)
quit rtn ; end of $$NTIEN
"RTN","SAMINOT1",353,0)
;
"RTN","SAMINOT1",354,0)
;
"RTN","SAMINOT1",355,0)
;
"RTN","SAMINOT1",356,0)
NTLIST(nlist,sid,form) ; returns the note list in nlist, passed by ref
"RTN","SAMINOT1",357,0)
;
"RTN","SAMINOT1",358,0)
n zn,root,gn
"RTN","SAMINOT1",359,0)
s root=$$setroot^%wd("vapals-patients")
"RTN","SAMINOT1",360,0)
s zn=0
"RTN","SAMINOT1",361,0)
s gn=$na(@root@("graph",sid,form,"notes"))
"RTN","SAMINOT1",362,0)
q:'$d(@gn)
"RTN","SAMINOT1",363,0)
f s zn=$o(@gn@(zn)) q:+zn=0 d ;
"RTN","SAMINOT1",364,0)
. s @nlist@(zn,"name")=@gn@(zn,"name")
"RTN","SAMINOT1",365,0)
. s @nlist@(zn,"nien")=zn
"RTN","SAMINOT1",366,0)
;
"RTN","SAMINOT1",367,0)
quit ; end of NTLIST
"RTN","SAMINOT1",368,0)
;
"RTN","SAMINOT1",369,0)
;
"RTN","SAMINOT1",370,0)
;
"RTN","SAMINOT1",371,0)
TLST ;
"RTN","SAMINOT1",372,0)
;
"RTN","SAMINOT1",373,0)
set SID="XXX00677"
"RTN","SAMINOT1",374,0)
set FORM="siform-2019-04-23"
"RTN","SAMINOT1",375,0)
do NTLIST("G",SID,FORM)
"RTN","SAMINOT1",376,0)
;ZWR G
"RTN","SAMINOT1",377,0)
;
"RTN","SAMINOT1",378,0)
quit ; end of TLST
"RTN","SAMINOT1",379,0)
;
"RTN","SAMINOT1",380,0)
;
"RTN","SAMINOT1",381,0)
;
"RTN","SAMINOT1",382,0)
ELNOTE(vals,dest,cnt) ; eligibility NOTE TEXT
"RTN","SAMINOT1",383,0)
;
"RTN","SAMINOT1",384,0)
D OUT("")
"RTN","SAMINOT1",385,0)
D OUT("Date of chart review: "_$$XVAL("sidc",vals))
"RTN","SAMINOT1",386,0)
D GLOUT("The participant was identified as a potential lung screening candidate by: ")
"RTN","SAMINOT1",387,0)
D GLOUT($$XVAL("siceiden",vals),4)
"RTN","SAMINOT1",388,0)
if $$XVAL("siceiden",vals)="referral" d ;
"RTN","SAMINOT1",389,0)
. D OUT("Date of Referral: "_$$XVAL("sicerfdt",vals))
"RTN","SAMINOT1",390,0)
. n spec s spec=""
"RTN","SAMINOT1",391,0)
. s:$$XVAL("sicerfpc",vals)="y" spec=spec_" Primary Care"
"RTN","SAMINOT1",392,0)
. s:$$XVAL("sicerfwh",vals)="y" spec=spec_" Women's Health"
"RTN","SAMINOT1",393,0)
. s:$$XVAL("sicerfge",vals)="y" spec=spec_" Geriatrics"
"RTN","SAMINOT1",394,0)
. s:$$XVAL("sicerfpu",vals)="y" spec=spec_" Pulmonology"
"RTN","SAMINOT1",395,0)
. s:$$XVAL("sicerfon",vals)="y" spec=spec_" Oncology"
"RTN","SAMINOT1",396,0)
. s:$$XVAL("sicerfsc",vals)="y" spec=spec_" Smoking Cessation"
"RTN","SAMINOT1",397,0)
. s:$$XVAL("sicerfot",vals)="y" spec=spec_" "_$$XVAL("sicerfoo",vals)
"RTN","SAMINOT1",398,0)
. D GLOUT("Specialty of referring provider: ")
"RTN","SAMINOT1",399,0)
. D GLOUT(spec,4)
"RTN","SAMINOT1",400,0)
n elig
"RTN","SAMINOT1",401,0)
s elig=$$XVAL("sicechrt",vals)
"RTN","SAMINOT1",402,0)
D OUT("The participant is eligible based on chart review: "_$s(elig="y":"Yes",1:"no"))
"RTN","SAMINOT1",403,0)
D OUT("")
"RTN","SAMINOT1",404,0)
s @vals@("chart-eligibility-complete")="true"
"RTN","SAMINOT1",405,0)
;
"RTN","SAMINOT1",406,0)
quit ; end of ELNOTE
"RTN","SAMINOT1",407,0)
;
"RTN","SAMINOT1",408,0)
;
"RTN","SAMINOT1",409,0)
;
"RTN","SAMINOT1",410,0)
PRENOTE(vals,dest,cnt) ;
"RTN","SAMINOT1",411,0)
;
"RTN","SAMINOT1",412,0)
i $g(@vals@("sipedisc"))'="y" q ; no prelim discussion
"RTN","SAMINOT1",413,0)
D OUT("")
"RTN","SAMINOT1",414,0)
;d OUT("A pre-enrollment discussion was held.")
"RTN","SAMINOT1",415,0)
;[If Yes is selected then add the following 5 lines]
"RTN","SAMINOT1",416,0)
D OUT("The program attempted to reach the Veteran to discuss lung screening.")
"RTN","SAMINOT1",417,0)
D OUT("Date of pre-enrollment discussion: "_$$XVAL("sipedc",vals))
"RTN","SAMINOT1",418,0)
n via s via=""
"RTN","SAMINOT1",419,0)
s:$$XVAL("sipecnip",vals)="1" via=via_" In person"
"RTN","SAMINOT1",420,0)
s:$$XVAL("sipecnte",vals)="1" via=via_" Telephone"
"RTN","SAMINOT1",421,0)
s:$$XVAL("sipecnth",vals)="1" via=via_" TeleHealth"
"RTN","SAMINOT1",422,0)
s:$$XVAL("sipecnml",vals)="1" via=via_" Mailed Letter"
"RTN","SAMINOT1",423,0)
s:$$XVAL("sipecnpp",vals)="1" via=via_" Message in patient portal"
"RTN","SAMINOT1",424,0)
s:$$XVAL("sipecnvd",vals)="1" via=via_" Video-on-Demand (VOD)"
"RTN","SAMINOT1",425,0)
s:$$XVAL("sipecnot",vals)="1" via=via_" "_$$XVAL("sipecnoo",vals)
"RTN","SAMINOT1",426,0)
;D OUT("The lung screening program reached the potential candidate or was contacted via:"_via)
"RTN","SAMINOT1",427,0)
D GLOUT("The lung screening program reached the potential candidate or was contacted via:")
"RTN","SAMINOT1",428,0)
D GLOUT(via,4)
"RTN","SAMINOT1",429,0)
;D OUT("The pre-enrollment discussion with the participant resulted in: "_$$SUBRSLT($$XVAL("siperslt",vals)))
"RTN","SAMINOT1",430,0)
D OUT("The pre-enrollment discussion with the participant resulted in: ")
"RTN","SAMINOT1",431,0)
D GLOUT($$SUBRSLT($$XVAL("siperslt",vals)),4)
"RTN","SAMINOT1",432,0)
D OUT("Comments: ")
"RTN","SAMINOT1",433,0)
D GLOUT($$XVAL("sipecmnt",vals),4)
"RTN","SAMINOT1",434,0)
;
"RTN","SAMINOT1",435,0)
s @vals@("pre-note-complete")="true"
"RTN","SAMINOT1",436,0)
;
"RTN","SAMINOT1",437,0)
quit ; end of PRENOTE
"RTN","SAMINOT1",438,0)
;
"RTN","SAMINOT1",439,0)
;
"RTN","SAMINOT1",440,0)
;
"RTN","SAMINOT1",441,0)
SUBRSLT(XVAL) ; translation of discussion result
"RTN","SAMINOT1",442,0)
;
"RTN","SAMINOT1",443,0)
q:XVAL="y" "Participant is interested in discussing lung screening. The program will proceed with enrollment process."
"RTN","SAMINOT1",444,0)
q:XVAL="u" "Participant is unsure of lung screening. Ok to contact in the future."
"RTN","SAMINOT1",445,0)
q:XVAL="nn" "Participant is not interested in discussing lung screening at this time. Ok to contact in the future."
"RTN","SAMINOT1",446,0)
q:XVAL="nf" "Participant is not interested in discussing lung screening in the future."
"RTN","SAMINOT1",447,0)
q:XVAL="na" "Unable to reach participant at this time"
"RTN","SAMINOT1",448,0)
;
"RTN","SAMINOT1",449,0)
quit "" ; end of $$SUBRSLT
"RTN","SAMINOT1",450,0)
;
"RTN","SAMINOT1",451,0)
;
"RTN","SAMINOT1",452,0)
;
"RTN","SAMINOT1",453,0)
INNOTE(vals,dest,cnt) ;
"RTN","SAMINOT1",454,0)
;
"RTN","SAMINOT1",455,0)
;Lung Screening Program Intake Note
"RTN","SAMINOT1",456,0)
;
"RTN","SAMINOT1",457,0)
;Date of intake discussion contact: [Date]
"RTN","SAMINOT1",458,0)
;How did you learn about the Lung Screening Program?: [Selection]
"RTN","SAMINOT1",459,0)
;Primary address verified: [Yes/No]
"RTN","SAMINOT1",460,0)
;Rural status: [Urban/Rural/Unknown]
"RTN","SAMINOT1",461,0)
;Preferred address and contact number:
"RTN","SAMINOT1",462,0)
; [Address 1]
"RTN","SAMINOT1",463,0)
; [Address 2]
"RTN","SAMINOT1",464,0)
; [Address]
"RTN","SAMINOT1",465,0)
;
"RTN","SAMINOT1",466,0)
;Ever smoked?: [Ever Smoked Text]
"RTN","SAMINOT1",467,0)
;Smoking Status: [Never Smoked/Past/Current/Willing to Quit]
"RTN","SAMINOT1",468,0)
;CIGs per day: [Input Number]
"RTN","SAMINOT1",469,0)
;PPD: [Computed Number]
"RTN","SAMINOT1",470,0)
;# of years: [Input Number]
"RTN","SAMINOT1",471,0)
;Pack Years: [Computed Number]
"RTN","SAMINOT1",472,0)
;
"RTN","SAMINOT1",473,0)
;[If a Quit Date is entered add the following line]
"RTN","SAMINOT1",474,0)
;Quit smoking on: [Date]
"RTN","SAMINOT1",475,0)
;
"RTN","SAMINOT1",476,0)
;[If Smoking Cessation education text is entered add the following line]
"RTN","SAMINOT1",477,0)
;Smoking cessation education provided: [Show Input Text]
"RTN","SAMINOT1",478,0)
;
"RTN","SAMINOT1",479,0)
;[If a Lung Cancer Dx date is entered show the following 1 to 2 lines]
"RTN","SAMINOT1",480,0)
;Prior lung cancer diagnosis date: [Date]
"RTN","SAMINOT1",481,0)
;[If a location not in the VA is specified show the next line]
"RTN","SAMINOT1",482,0)
;Location where prior lung cancer diagnosis was made: [Location Text]
"RTN","SAMINOT1",483,0)
;
"RTN","SAMINOT1",484,0)
;[If Any Prior CT Date is entered show the following 1 to 2 lines]
"RTN","SAMINOT1",485,0)
;Prior CT: [Date]
"RTN","SAMINOT1",486,0)
;[If a location not in the VA is specified show the next line]
"RTN","SAMINOT1",487,0)
;Location where prior lung cancer diagnosis was made: [Location Text]
"RTN","SAMINOT1",488,0)
;
"RTN","SAMINOT1",489,0)
;Shared Decision Making:
"RTN","SAMINOT1",490,0)
;
"RTN","SAMINOT1",491,0)
d OUT(" ")
"RTN","SAMINOT1",492,0)
d OUT(" "_"Date of intake discussion contact: "_$$XVAL("sidc",vals))
"RTN","SAMINOT1",493,0)
n learn s learn=""
"RTN","SAMINOT1",494,0)
s:$$XVAL("silnip",vals) learn=learn_" In person"
"RTN","SAMINOT1",495,0)
s:$$XVAL("silnph",vals) learn=learn_" Telephone"
"RTN","SAMINOT1",496,0)
s:$$XVAL("silnth",vals) learn=learn_" TeleHealth"
"RTN","SAMINOT1",497,0)
s:$$XVAL("silnml",vals) learn=learn_" Mailed letter"
"RTN","SAMINOT1",498,0)
s:$$XVAL("silnpp",vals) learn=learn_" Message in patient portal"
"RTN","SAMINOT1",499,0)
s:$$XVAL("silnvd",vals) learn=learn_" Video-on-Demand (VOD)"
"RTN","SAMINOT1",500,0)
s:$$XVAL("silnot",vals) learn=learn_" "_$$XVAL("silnoo",vals)
"RTN","SAMINOT1",501,0)
;d GLOUT(" "_"How did you learn about the Lung Screening Program?: "_learn,4)
"RTN","SAMINOT1",502,0)
d GLOUT("How did you learn about the Lung Screening Program?: ",4)
"RTN","SAMINOT1",503,0)
d GLOUT(learn,6)
"RTN","SAMINOT1",504,0)
n verified s verified=""
"RTN","SAMINOT1",505,0)
s:$$XVAL("sipav",vals)="y" verified="Yes"
"RTN","SAMINOT1",506,0)
s:$$XVAL("sipav",vals)="n" verified="No"
"RTN","SAMINOT1",507,0)
d OUT(" "_"Primary address verified: "_verified)
"RTN","SAMINOT1",508,0)
n rural s rural=""
"RTN","SAMINOT1",509,0)
s:$$XVAL("sirs",vals)="r" rural="rural"
"RTN","SAMINOT1",510,0)
s:$$XVAL("sirs",vals)="u" rural="urban"
"RTN","SAMINOT1",511,0)
d OUT(" "_""_"Rural status: "_rural)
"RTN","SAMINOT1",512,0)
d OUT(" "_"Preferred address and contact number: ")
"RTN","SAMINOT1",513,0)
n pa s pa=""
"RTN","SAMINOT1",514,0)
i $$XVAL("sipsa",vals)'="" d ;
"RTN","SAMINOT1",515,0)
. d OUT(" "_$$XVAL("sipsa",vals))
"RTN","SAMINOT1",516,0)
. n csz s csz=""
"RTN","SAMINOT1",517,0)
. s:$$XVAL("sipc",vals)'="" csz=$$XVAL("sipc",vals)
"RTN","SAMINOT1",518,0)
. s:$$XVAL("sips",vals)'="" csz=csz_", "_$$XVAL("sips",vals)
"RTN","SAMINOT1",519,0)
. s:$$XVAL("sipz",vals)'="" csz=csz_" "_$$XVAL("sipz",vals)
"RTN","SAMINOT1",520,0)
. d OUT(" "_csz)
"RTN","SAMINOT1",521,0)
d:$$XVAL("sippn",vals)'="" OUT(" "_$$XVAL("sippn",vals))
"RTN","SAMINOT1",522,0)
d OUT(" "_"Ever smoked?: ")
"RTN","SAMINOT1",523,0)
d GLOUT($$XVAL("sies",vals),6)
"RTN","SAMINOT1",524,0)
n sstatus s sstatus=""
"RTN","SAMINOT1",525,0)
s:$$XVAL("siesm",vals)="n" sstatus=sstatus_" Never smoked"
"RTN","SAMINOT1",526,0)
s:$$XVAL("siesm",vals)="p" sstatus=sstatus_" Past"
"RTN","SAMINOT1",527,0)
s:$$XVAL("siesm",vals)="c" sstatus=sstatus_" Current"
"RTN","SAMINOT1",528,0)
s:$$XVAL("siesq",vals)=1 sstatus=sstatus_" Willing to quit"
"RTN","SAMINOT1",529,0)
d OUT(" Smoking Status: "_sstatus)
"RTN","SAMINOT1",530,0)
d OUT(" "_"CIGs per day: ")
"RTN","SAMINOT1",531,0)
d OUT(" "_$$XVAL("sicpd",vals))
"RTN","SAMINOT1",532,0)
d OUT(" "_"PPD: ")
"RTN","SAMINOT1",533,0)
d OUT(" "_$$XVAL("sippd",vals))
"RTN","SAMINOT1",534,0)
d OUT(" "_"# of years: ")
"RTN","SAMINOT1",535,0)
d OUT(" "_$$XVAL("sisny",vals))
"RTN","SAMINOT1",536,0)
d OUT(" "_"PPY: ")
"RTN","SAMINOT1",537,0)
d OUT(" "_$$XVAL("sippy",vals))
"RTN","SAMINOT1",538,0)
d OUT("")
"RTN","SAMINOT1",539,0)
i $$XVAL("siq",vals)'="" d ;
"RTN","SAMINOT1",540,0)
. d OUT("Quit smoking on: "_$$XVAL("siq",vals))
"RTN","SAMINOT1",541,0)
. d OUT("")
"RTN","SAMINOT1",542,0)
i $$XVAL("sicep",vals)'="" d ;
"RTN","SAMINOT1",543,0)
. d OUT("Smoking cessation education provided:")
"RTN","SAMINOT1",544,0)
. d GLOUT(" "_$$XVAL("sicep",vals),4)
"RTN","SAMINOT1",545,0)
i $$XVAL("sicadx",vals)'="" d
"RTN","SAMINOT1",546,0)
. d OUT("Prior lung cancer diagnosis date: "_$$XVAL("sicadx",vals))
"RTN","SAMINOT1",547,0)
. i $$XVAL("sicadxl",vals)'="" d ;
"RTN","SAMINOT1",548,0)
. . d OUT("Location where prior lung cancer diagnosis was made:")
"RTN","SAMINOT1",549,0)
. . d GLOUT(" "_$$XVAL("sicadxl",vals),4)
"RTN","SAMINOT1",550,0)
i $$XVAL("siptct",vals)'="" d
"RTN","SAMINOT1",551,0)
. d OUT("Prior CT: "_$$XVAL("siptct",vals))
"RTN","SAMINOT1",552,0)
. i $$XVAL("siptctl",vals)'="" d ;
"RTN","SAMINOT1",553,0)
. . d OUT("Location where prior CT was made:")
"RTN","SAMINOT1",554,0)
. . d GLOUT(" "_$$XVAL("siptctl",vals),4)
"RTN","SAMINOT1",555,0)
d OUT(" ")
"RTN","SAMINOT1",556,0)
d OUT("Shared Decision Making: ")
"RTN","SAMINOT1",557,0)
d OUT(" ")
"RTN","SAMINOT1",558,0)
n shareddm
"RTN","SAMINOT1",559,0)
s shareddm=+$$XVAL("siidmdc",vals)
"RTN","SAMINOT1",560,0)
i shareddm=1 d SDM(dest)
"RTN","SAMINOT1",561,0)
e d OUT("Shared decision making was not applicable")
"RTN","SAMINOT1",562,0)
d OUT(" ")
"RTN","SAMINOT1",563,0)
n ldct s ldct=""
"RTN","SAMINOT1",564,0)
s:$$XVAL("sildct",vals)="n" ldct="No"
"RTN","SAMINOT1",565,0)
s:$$XVAL("sildct",vals)="l" ldct="No"
"RTN","SAMINOT1",566,0)
s:$$XVAL("sildct",vals)="y" ldct="Yes"
"RTN","SAMINOT1",567,0)
d GLOUT("The veteran has decided to enroll in the Lung Screening Program: "_ldct)
"RTN","SAMINOT1",568,0)
i $$XVAL("sildct",vals)="l" d ;
"RTN","SAMINOT1",569,0)
. d GLOUT("The veteran has indicated it is okay to contact in the future to discuss enrolling in the Lung Screening Program.",4)
"RTN","SAMINOT1",570,0)
i ldct="Yes" d ;
"RTN","SAMINOT1",571,0)
. d OUT("LDCT ordered: "_ldct)
"RTN","SAMINOT1",572,0)
. d OUT(" "_"Veteran enrolled in the LSS program. Results and coordination of care ")
"RTN","SAMINOT1",573,0)
. d OUT(" "_"will be made by the LSS team. ")
"RTN","SAMINOT1",574,0)
. i $$XVAL("siclin",vals)'="" d ;
"RTN","SAMINOT1",575,0)
. . quit
"RTN","SAMINOT1",576,0)
. quit
"RTN","SAMINOT1",577,0)
n tmpclin s tmpclin=$$XVAL("siclin",vals)
"RTN","SAMINOT1",578,0)
i tmpclin'="" d ;
"RTN","SAMINOT1",579,0)
. d OUT("Clinical Indications for Initial Screening CT:")
"RTN","SAMINOT1",580,0)
. d GLOUT(" "_tmpclin,4)
"RTN","SAMINOT1",581,0)
;
"RTN","SAMINOT1",582,0)
;The veteran has decided to enroll in the Lung Screening Program: [Yes/No]
"RTN","SAMINOT1",583,0)
;
"RTN","SAMINOT1",584,0)
;[If Not enroll at this time but okay to contact in the future, add the following line]
"RTN","SAMINOT1",585,0)
;The veteran has indicated it is okay to contact in the future to discuss enrolling in the Lung Screening Program.
"RTN","SAMINOT1",586,0)
;
"RTN","SAMINOT1",587,0)
;[If Yes is answered for enrollment add the following two lines]
"RTN","SAMINOT1",588,0)
;LDCT ordered: Yes
"RTN","SAMINOT1",589,0)
;Veteran enrolled in the Lung Screening Program. Results and coordination of care will be made by the Lung Screening Program team.
"RTN","SAMINOT1",590,0)
;
"RTN","SAMINOT1",591,0)
;[If Clinical Indication text is provided add them to the note]
"RTN","SAMINOT1",592,0)
;Clinical Indications: [Show Input Text]
"RTN","SAMINOT1",593,0)
;
"RTN","SAMINOT1",594,0)
;
"RTN","SAMINOT1",595,0)
quit ; end of INNOTE
"RTN","SAMINOT1",596,0)
;
"RTN","SAMINOT1",597,0)
;
"RTN","SAMINOT1",598,0)
;
"RTN","SAMINOT1",599,0)
SDM(ary) ; adds Shared Decision Making text to array ary, passed by name
"RTN","SAMINOT1",600,0)
;
"RTN","SAMINOT1",601,0)
n ii s ii=$o(@ary@(" "),-1)
"RTN","SAMINOT1",602,0)
s ii=ii+1
"RTN","SAMINOT1",603,0)
s @ary@(ii)="Veteran of age and exposure to cigarette smoke as described above, and "
"RTN","SAMINOT1",604,0)
s ii=ii+1
"RTN","SAMINOT1",605,0)
s @ary@(ii)="without a current diagnosis or obvious symptoms suggestive of lung cancer, "
"RTN","SAMINOT1",606,0)
s ii=ii+1
"RTN","SAMINOT1",607,0)
s @ary@(ii)="has been educated today about the estimated risk for lung cancer, the "
"RTN","SAMINOT1",608,0)
s ii=ii+1
"RTN","SAMINOT1",609,0)
s @ary@(ii)="possibility of cure or life prolonging if an early lung cancer were to be "
"RTN","SAMINOT1",610,0)
s ii=ii+1
"RTN","SAMINOT1",611,0)
s @ary@(ii)="found during screening, the possibility of imaging abnormalities not being "
"RTN","SAMINOT1",612,0)
s ii=ii+1
"RTN","SAMINOT1",613,0)
s @ary@(ii)="lung cancer, the possibility of complications from additional diagnostic "
"RTN","SAMINOT1",614,0)
s ii=ii+1
"RTN","SAMINOT1",615,0)
s @ary@(ii)="procedures, and the approximate amount of radiation exposure associated "
"RTN","SAMINOT1",616,0)
s ii=ii+1
"RTN","SAMINOT1",617,0)
s @ary@(ii)="with each screening procedure. In addition, the Veteran has been educated "
"RTN","SAMINOT1",618,0)
s ii=ii+1
"RTN","SAMINOT1",619,0)
s @ary@(ii)="today about the importance of adhering to annual lung screening, the "
"RTN","SAMINOT1",620,0)
s ii=ii+1
"RTN","SAMINOT1",621,0)
s @ary@(ii)="possible impact of other medical conditions on the overall health status, "
"RTN","SAMINOT1",622,0)
s ii=ii+1
"RTN","SAMINOT1",623,0)
s @ary@(ii)="the importance of avoiding exposure to cigarette smoke, available tobacco "
"RTN","SAMINOT1",624,0)
s ii=ii+1
"RTN","SAMINOT1",625,0)
s @ary@(ii)="cessation programs and available lung screening services at this site. "
"RTN","SAMINOT1",626,0)
s ii=ii+1
"RTN","SAMINOT1",627,0)
s @ary@(ii)="Education material was provided to the veteran. "
"RTN","SAMINOT1",628,0)
s ii=ii+1
"RTN","SAMINOT1",629,0)
;s @ary@(ii)="Based on this information, the Veteran has opted for "
"RTN","SAMINOT1",630,0)
;
"RTN","SAMINOT1",631,0)
quit ; end of SDM
"RTN","SAMINOT1",632,0)
;
"RTN","SAMINOT1",633,0)
;
"RTN","SAMINOT1",634,0)
;
"RTN","SAMINOT1",635,0)
GLOUT(ln,indent) ; glob out first wrap ln then put it in dest
"RTN","SAMINOT1",636,0)
;
"RTN","SAMINOT1",637,0)
n arytmp
"RTN","SAMINOT1",638,0)
s arytmp(1)=ln
"RTN","SAMINOT1",639,0)
i $g(indent)="" s indent=1
"RTN","SAMINOT1",640,0)
d wrap^%tt("arytmp",indent_":80")
"RTN","SAMINOT1",641,0)
n ii s ii=""
"RTN","SAMINOT1",642,0)
f s ii=$o(arytmp(ii)) q:ii="" d ;
"RTN","SAMINOT1",643,0)
. d OUT(arytmp(ii))
"RTN","SAMINOT1",644,0)
;
"RTN","SAMINOT1",645,0)
quit ; end of GLOUT
"RTN","SAMINOT1",646,0)
;
"RTN","SAMINOT1",647,0)
;
"RTN","SAMINOT1",648,0)
;
"RTN","SAMINOT1",649,0)
OUT(ln) ;
"RTN","SAMINOT1",650,0)
;
"RTN","SAMINOT1",651,0)
s cnt=cnt+1
"RTN","SAMINOT1",652,0)
n lnn
"RTN","SAMINOT1",653,0)
;s debug=1
"RTN","SAMINOT1",654,0)
s lnn=$o(@dest@(" "),-1)+1
"RTN","SAMINOT1",655,0)
s @dest@(lnn)=ln
"RTN","SAMINOT1",656,0)
;
"RTN","SAMINOT1",657,0)
;i $g(debug)=1 d ;
"RTN","SAMINOT1",658,0)
;. i ln["<" q ; no markup
"RTN","SAMINOT1",659,0)
;. n zs s zs=$STACK
"RTN","SAMINOT1",660,0)
;. n zp s zp=$STACK(zs-2,"PLACE")
"RTN","SAMINOT1",661,0)
;. s @dest@(lnn)=zp_":"_ln
"RTN","SAMINOT1",662,0)
;
"RTN","SAMINOT1",663,0)
quit ; end of OUT
"RTN","SAMINOT1",664,0)
;
"RTN","SAMINOT1",665,0)
;
"RTN","SAMINOT1",666,0)
;
"RTN","SAMINOT1",667,0)
XVAL(var,vals) ; extrinsic returns the patient value for var
"RTN","SAMINOT1",668,0)
;
"RTN","SAMINOT1",669,0)
; vals is passed by name
"RTN","SAMINOT1",670,0)
;
"RTN","SAMINOT1",671,0)
n zr
"RTN","SAMINOT1",672,0)
s zr=$g(@vals@(var))
"RTN","SAMINOT1",673,0)
;i zr="" s zr="["_var_"]"
"RTN","SAMINOT1",674,0)
;
"RTN","SAMINOT1",675,0)
quit zr ; end of $$XVAL
"RTN","SAMINOT1",676,0)
;
"RTN","SAMINOT1",677,0)
;
"RTN","SAMINOT1",678,0)
;
"RTN","SAMINOT1",679,0)
EOR ; end of routine SAMINOT1
"RTN","SAMINUL")
0^3^B102256
"RTN","SAMINUL",1,0)
SAMINUL ;ven/gpl - ielcap: note log ;2021-05-21T20:47Z
"RTN","SAMINUL",2,0)
;;18.0;SAMI;**9,10,11**;2020-01;Build 21
"RTN","SAMINUL",3,0)
;;1.18.0.11+i11
"RTN","SAMINUL",4,0)
;
"RTN","SAMINUL",5,0)
; SAMINOTE contains subroutines for producing the ELCAP Note Pages.
"RTN","SAMINUL",6,0)
; SAMINUL contains the development log for the SAMINOT* routines.
"RTN","SAMINUL",7,0)
; It contains no executable code.
"RTN","SAMINUL",8,0)
;
"RTN","SAMINUL",9,0)
quit ; no entry from top
"RTN","SAMINUL",10,0)
;
"RTN","SAMINUL",11,0)
;
"RTN","SAMINUL",12,0)
;
"RTN","SAMINUL",13,0)
;@section 0 primary development
"RTN","SAMINUL",14,0)
;
"RTN","SAMINUL",15,0)
;
"RTN","SAMINUL",16,0)
;
"RTN","SAMINUL",17,0)
;@routine-credits
"RTN","SAMINUL",18,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMINUL",19,0)
; [email protected]
"RTN","SAMINUL",20,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMINUL",21,0)
; http://vistaexpertise.net
"RTN","SAMINUL",22,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMINUL",23,0)
;@license see routine SAMIUL
"RTN","SAMINUL",24,0)
;
"RTN","SAMINUL",25,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMINUL",26,0)
;@application Screening Applications Management (SAM)
"RTN","SAMINUL",27,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMINUL",28,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMINUL",29,0)
;@version 1.18.0.10+i11
"RTN","SAMINUL",30,0)
;@release-date 2020-01
"RTN","SAMINUL",31,0)
;@patch-list **9,10,11**
"RTN","SAMINUL",32,0)
;
"RTN","SAMINUL",33,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMINUL",34,0)
; [email protected]
"RTN","SAMINUL",35,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMINUL",36,0)
; [email protected]
"RTN","SAMINUL",37,0)
;@additional-dev Linda M. R. Yaw (lmry)
"RTN","SAMINUL",38,0)
; [email protected]
"RTN","SAMINUL",39,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMINUL",40,0)
; [email protected]
"RTN","SAMINUL",41,0)
;@additional-dev Domenic DiNatale (dom)
"RTN","SAMINUL",42,0)
; [email protected]
"RTN","SAMINUL",43,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMINUL",44,0)
; [email protected]
"RTN","SAMINUL",45,0)
;
"RTN","SAMINUL",46,0)
;@module-credits
"RTN","SAMINUL",47,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMINUL",48,0)
; (VA-PALS)
"RTN","SAMINUL",49,0)
; http://va-pals.org/
"RTN","SAMINUL",50,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMINUL",51,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMINUL",52,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMINUL",53,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMINUL",54,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMINUL",55,0)
; http://ielcap.com/
"RTN","SAMINUL",56,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMINUL",57,0)
; http://paraxialtech.com/
"RTN","SAMINUL",58,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMINUL",59,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMINUL",60,0)
;
"RTN","SAMINUL",61,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMINUL",62,0)
;
"RTN","SAMINUL",63,0)
; 2019-04-04/18 ven/gpl 1.18.0-t04 c0bb7dbf,f7b48936,9d1f2cdc,
"RTN","SAMINUL",64,0)
; ba5f366d,5b2e32dc,ce322911
"RTN","SAMINUL",65,0)
; SAMINOT1: flags for intake form, fix crash on intake form, initial
"RTN","SAMINUL",66,0)
; version of new intake notes, revise text for pre-enrollment
"RTN","SAMINUL",67,0)
; discusstion note, complete new intake notes, add intake notes to
"RTN","SAMINUL",68,0)
; case review page.
"RTN","SAMINUL",69,0)
;
"RTN","SAMINUL",70,0)
; 2019-04-16/23 ven/lgc 1.18.0-t04 e54b76d1,21388d8a,f0505e51,
"RTN","SAMINUL",71,0)
; 89bffd3b
"RTN","SAMINUL",72,0)
; SAMINOT1: SAMIFRM2 > SAMIFORM, remove spaces at end of lines,
"RTN","SAMINUL",73,0)
; control characters, SAMISUB2 > LOAD.
"RTN","SAMINUL",74,0)
;
"RTN","SAMINUL",75,0)
; 2019-04-23 ven/toad 1.18.0-t04 423a3946
"RTN","SAMINUL",76,0)
; SAMINOT1: resolve gpl/lgc collision, restore SAMISUB2 > LOAD.
"RTN","SAMINUL",77,0)
;
"RTN","SAMINUL",78,0)
; 2019-04-30 ven/gpl 1.18.0-t04 cf73510c
"RTN","SAMINUL",79,0)
; SAMINOT1: additions to intake note for prior scans & format.
"RTN","SAMINUL",80,0)
;
"RTN","SAMINUL",81,0)
; 2019-05-07 ven/lmry 1.18.0-t04 4a8ead45
"RTN","SAMINUL",82,0)
; SAMINOT1: edit SAMINOT1 for XINDEX.
"RTN","SAMINUL",83,0)
;
"RTN","SAMINUL",84,0)
; 2019-05-07 ven/lgc 1.18.0-t04 f63ef57c
"RTN","SAMINUL",85,0)
; SAMINOT1: cleanup for XINDEX.
"RTN","SAMINUL",86,0)
;
"RTN","SAMINUL",87,0)
; 2019-06-18 ven/arc 1.18.0-t04 91022482
"RTN","SAMINUL",88,0)
; SAMINOT1: ^SAMIGPL > ^SAMIUL.
"RTN","SAMINUL",89,0)
;
"RTN","SAMINUL",90,0)
; 2019-07-01 ven/gpl 1.18.0-t04 72868e60
"RTN","SAMINUL",91,0)
; SAMINOT1: update shared decision making text in intake note.
"RTN","SAMINUL",92,0)
;
"RTN","SAMINUL",93,0)
; 2019-08-03/14 ven/gpl 1.18.0-t04 bea65f7b,578f61d4
"RTN","SAMINUL",94,0)
; SAMINOT1: fix bugs in Have you ever smoked processing in changelog
"RTN","SAMINUL",95,0)
; & intake note, restored ever smoked comment field to intake note.
"RTN","SAMINUL",96,0)
;
"RTN","SAMINUL",97,0)
; 2019-09-06 par/dom 1.18.0-t04 2ff47189 VAP-452
"RTN","SAMINUL",98,0)
; SAMINOT1: patient > participant.
"RTN","SAMINUL",99,0)
;
"RTN","SAMINUL",100,0)
; 2019-09-26 ven/gpl 1.18.0-t04 92b12324 VAP-420
"RTN","SAMINUL",101,0)
; SAMINOT1: smoking history.
"RTN","SAMINUL",102,0)
;
"RTN","SAMINUL",103,0)
; 2019-10-01 par/dom 1.18.0-t04 37c418a1,4caf1a98 VAP-457,344
"RTN","SAMINUL",104,0)
; SAMINOT1: remove thorax, capitalization consistency.
"RTN","SAMINUL",105,0)
;
"RTN","SAMINUL",106,0)
; 2020-01-17/20 ven/lgc 1.18.0.1+i1 8557207f,d7d24834,0301ad95.
"RTN","SAMINUL",107,0)
; 659f2526,0ff2b83f,49615242,5bf7c398,dc5f618c
"RTN","SAMINUL",108,0)
; SAMINOT2: followup note, fixed typos in VC note, followup LCS note
"RTN","SAMINUL",109,0)
; minus CT Eval pulls, LCS note with CT Eval extracts, fixed bug in
"RTN","SAMINUL",110,0)
; LSC CT eval extract, include entire impression section of CT Eval
"RTN","SAMINUL",111,0)
; report in LCS Note, improved import of impressions, limit to one
"RTN","SAMINUL",112,0)
; note per followup form.
"RTN","SAMINUL",113,0)
;
"RTN","SAMINUL",114,0)
; 2020-01-23 ven/arc 1.18.0.2+i2 9a24242a
"RTN","SAMINUL",115,0)
; SAMINOT1: fix word wrap on intake note & typos in ct
"RTN","SAMINUL",116,0)
; eval report.
"RTN","SAMINUL",117,0)
;
"RTN","SAMINUL",118,0)
; 2020-08-12 ven/gpl 1.18.0.6+i6 781744c3
"RTN","SAMINUL",119,0)
; SAMINOT1: chg to support hl7 transmission of notes.
"RTN","SAMINUL",120,0)
;
"RTN","SAMINUL",121,0)
; 2020-09-22 ven/gpl 1.18.0.6+i6 06459eda
"RTN","SAMINUL",122,0)
; SAMINOT1: fix to match kids file.
"RTN","SAMINUL",123,0)
;
"RTN","SAMINUL",124,0)
; 2021-02-01/24 ven/gpl 1.18.0.8+i8 8e4ec441,cde71a55
"RTN","SAMINUL",125,0)
; SAMINOT1: fix intake note format, fix error that sent note twice
"RTN","SAMINUL",126,0)
; to VistA.
"RTN","SAMINUL",127,0)
;
"RTN","SAMINUL",128,0)
; 2021-03-02 ven/gpl 1.18.0.9+i9 479dc041
"RTN","SAMINUL",129,0)
; SAMINOT2: return error message if no ct eval form exists when
"RTN","SAMINUL",130,0)
; generating a fu note.
"RTN","SAMINUL",131,0)
;
"RTN","SAMINUL",132,0)
; 2021-03-15/16 ven/toad 1.18.0.9+i9 a46a2cc1
"RTN","SAMINUL",133,0)
; SAMINUL: create routine.
"RTN","SAMINUL",134,0)
; SAMINOT2: bump date & patch list, add contents, lt refactor.
"RTN","SAMINUL",135,0)
;
"RTN","SAMINUL",136,0)
; 2021-03-17 ven/toad 1.18.0.9+i9 62da30b4
"RTN","SAMINUL",137,0)
; SAMINOT2: remove blank from end of 1 line.
"RTN","SAMINUL",138,0)
;
"RTN","SAMINUL",139,0)
; 2021-03-22 ven/gpl 1.18.0.10+i10 6319a1eb
"RTN","SAMINUL",140,0)
; SAMINOT1: fix logic bug in detecting pre-enrollment existing.
"RTN","SAMINUL",141,0)
;
"RTN","SAMINUL",142,0)
; 2021-03-23 ven/toad 1.18.0.10+i10 96f461d0
"RTN","SAMINUL",143,0)
; SAMINOT1: bump date & patch list, lt refactor.
"RTN","SAMINUL",144,0)
;
"RTN","SAMINUL",145,0)
; 2021-03-29 ven/gpl 1.18.0.11+i11 6cd83445 VAP-483
"RTN","SAMINUL",146,0)
; SAMINOT1: allow N/A for shared decision making on intake form:
"RTN","SAMINUL",147,0)
; in INNOTE new & set shareddm & use to call SDM or report n/a, based
"RTN","SAMINUL",148,0)
; on siidmdc.
"RTN","SAMINUL",149,0)
;
"RTN","SAMINUL",150,0)
; 2021-03-30/05-21 ven/mcglk&toad 1.18.0.11+i11 7b14bb2,
"RTN","SAMINUL",151,0)
; SAMINOT1: bump version, date, log, add quit to stop block mismatch
"RTN","SAMINUL",152,0)
; complaint from XINDEX.
"RTN","SAMINUL",153,0)
;
"RTN","SAMINUL",154,0)
;
"RTN","SAMINUL",155,0)
;
"RTN","SAMINUL",156,0)
EOR ; end of routine SAMINUL
"RTN","SAMISAV")
0^8^B121113964
"RTN","SAMISAV",1,0)
SAMISAV ;ven/gpl - SAMI save routines ;2021-05-21T20:47Z
"RTN","SAMISAV",2,0)
;;18.0;SAMI;**5,11**;2020-01;Build 21
"RTN","SAMISAV",3,0)
;;1.18.0.11+i11
"RTN","SAMISAV",4,0)
;
"RTN","SAMISAV",5,0)
; SAMISAV contains subroutines for saving forms.
"RTN","SAMISAV",6,0)
;
"RTN","SAMISAV",7,0)
quit ; no entry from top
"RTN","SAMISAV",8,0)
;
"RTN","SAMISAV",9,0)
;
"RTN","SAMISAV",10,0)
;
"RTN","SAMISAV",11,0)
;@section 0 primary development
"RTN","SAMISAV",12,0)
;
"RTN","SAMISAV",13,0)
;
"RTN","SAMISAV",14,0)
;
"RTN","SAMISAV",15,0)
;@routine-credits
"RTN","SAMISAV",16,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMISAV",17,0)
; [email protected]
"RTN","SAMISAV",18,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMISAV",19,0)
; http://vistaexpertise.net
"RTN","SAMISAV",20,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMISAV",21,0)
;@license see routine SAMIUL
"RTN","SAMISAV",22,0)
;
"RTN","SAMISAV",23,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMISAV",24,0)
;@application Screening Applications Management (SAM)
"RTN","SAMISAV",25,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMISAV",26,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMISAV",27,0)
;@version 1.18.0.11+i11
"RTN","SAMISAV",28,0)
;@release-date 2020-01
"RTN","SAMISAV",29,0)
;@patch-list **5,11**
"RTN","SAMISAV",30,0)
;
"RTN","SAMISAV",31,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMISAV",32,0)
; [email protected]
"RTN","SAMISAV",33,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMISAV",34,0)
; [email protected]
"RTN","SAMISAV",35,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMISAV",36,0)
; [email protected]
"RTN","SAMISAV",37,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMISAV",38,0)
; [email protected]
"RTN","SAMISAV",39,0)
;
"RTN","SAMISAV",40,0)
;@module-credits
"RTN","SAMISAV",41,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMISAV",42,0)
; (VA-PALS)
"RTN","SAMISAV",43,0)
; http://va-pals.org/
"RTN","SAMISAV",44,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMISAV",45,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMISAV",46,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMISAV",47,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMISAV",48,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMISAV",49,0)
; http://ielcap.com/
"RTN","SAMISAV",50,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMISAV",51,0)
; http://paraxialtech.com/
"RTN","SAMISAV",52,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMISAV",53,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMISAV",54,0)
;
"RTN","SAMISAV",55,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMISAV",56,0)
;
"RTN","SAMISAV",57,0)
; 2018-10-29/11-09 ven/lgc&arc 1.18.0 3d36564,482f522,949f150
"RTN","SAMISAV",58,0)
; SAMISAV: followup report, new input form features, report menu
"RTN","SAMISAV",59,0)
; fix, fixed submit save bug.
"RTN","SAMISAV",60,0)
;
"RTN","SAMISAV",61,0)
; 2018-12-11/27 ven/lgc&arc 1.18.0 3ceb74b,a14554c,8dd6f34,51eb163,
"RTN","SAMISAV",62,0)
; f2738f8
"RTN","SAMISAV",63,0)
; SAMISAV: update routines for sac compliance, r/^gpl w/^SAMIGPL,
"RTN","SAMISAV",64,0)
; update routines for sac compliance, fix accidental reversions.
"RTN","SAMISAV",65,0)
;
"RTN","SAMISAV",66,0)
; 2019-01-22 ven/lgc 1.18.0 5368121
"RTN","SAMISAV",67,0)
; SAMISAV: add license info.
"RTN","SAMISAV",68,0)
;
"RTN","SAMISAV",69,0)
; 2019-02-18 ven/lgc 1.18.0 7687431
"RTN","SAMISAV",70,0)
; SAMISAV: update recently edited routines
"RTN","SAMISAV",71,0)
;
"RTN","SAMISAV",72,0)
; 2019-06-18 ven/arc 1.18.0 9102248
"RTN","SAMISAV",73,0)
; SAMISAV: r/^SAMIGPL w/^SAMIUL.
"RTN","SAMISAV",74,0)
;
"RTN","SAMISAV",75,0)
; 2019-08-14 ven/gpl 1.18.0 d73fec6 VAP-417
"RTN","SAMISAV",76,0)
; SAMISAV: add communications log to intake form.
"RTN","SAMISAV",77,0)
;
"RTN","SAMISAV",78,0)
; 2019-09-26 ven/gpl 1.18.0 92b1232
"RTN","SAMISAV",79,0)
; SAMISAV: mods for smoking history.
"RTN","SAMISAV",80,0)
;
"RTN","SAMISAV",81,0)
; 2020-04-10 ven/gpl 1.18.0.5+i5 56bfaed
"RTN","SAMISAV",82,0)
; SAMISAV: multi-tenancy change.
"RTN","SAMISAV",83,0)
;
"RTN","SAMISAV",84,0)
; 2021-05-13 ven/gpl 1.18.0.11+i11 1c03fd6
"RTN","SAMISAV",85,0)
; SAMISAV: fix date save on intervention, pet, & biopsy forms.
"RTN","SAMISAV",86,0)
;
"RTN","SAMISAV",87,0)
; 2021-05-20/21 ven/mcglk&toad 1.18.0.11+i11
"RTN","SAMISAV",88,0)
; SAMIHL7: build hdr comments & dev log, lt refactor, bump version.
"RTN","SAMISAV",89,0)
;
"RTN","SAMISAV",90,0)
;@contents
"RTN","SAMISAV",91,0)
; $$SAVFILTR saves form & returns key
"RTN","SAMISAV",92,0)
; COMLOG add to communications log
"RTN","SAMISAV",93,0)
;
"RTN","SAMISAV",94,0)
;
"RTN","SAMISAV",95,0)
;
"RTN","SAMISAV",96,0)
;@section 1 subroutines
"RTN","SAMISAV",97,0)
;
"RTN","SAMISAV",98,0)
;
"RTN","SAMISAV",99,0)
;
"RTN","SAMISAV",100,0)
SAVFILTR(sid,form,vars) ; saves form & returns key
"RTN","SAMISAV",101,0)
;
"RTN","SAMISAV",102,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMISAV",103,0)
;
"RTN","SAMISAV",104,0)
;;private;function;clean;silent;sac
"RTN","SAMISAV",105,0)
;@called-by
"RTN","SAMISAV",106,0)
;@calls
"RTN","SAMISAV",107,0)
; $$SITENM2^SAMISITE
"RTN","SAMISAV",108,0)
; $$setroot^%wd
"RTN","SAMISAV",109,0)
; $$KEY2FM^SAMICASE
"RTN","SAMISAV",110,0)
;@input
"RTN","SAMISAV",111,0)
;@output = form key to use for saving
"RTN","SAMISAV",112,0)
; It will relocate the graph for the form if required based on dates
"RTN","SAMISAV",113,0)
; entered on the form.
"RTN","SAMISAV",114,0)
; processing for multi-tenancy: if siteid not provided, but studyid
"RTN","SAMISAV",115,0)
; is, look up & set siteid.
"RTN","SAMISAV",116,0)
;@thruput
"RTN","SAMISAV",117,0)
; sid = study id
"RTN","SAMISAV",118,0)
; form = form key
"RTN","SAMISAV",119,0)
; vars = form variables
"RTN","SAMISAV",120,0)
;
"RTN","SAMISAV",121,0)
;
"RTN","SAMISAV",122,0)
;@stanza 2 setup
"RTN","SAMISAV",123,0)
;
"RTN","SAMISAV",124,0)
if '$data(vars("siteid")) do ;
"RTN","SAMISAV",125,0)
. quit:$get(sid)=""
"RTN","SAMISAV",126,0)
. new sym set sym=$extract(sid,1,3) ; first 3 chars in studyid
"RTN","SAMISAV",127,0)
. quit:$$SITENM2^SAMISITE(sym)=-1
"RTN","SAMISAV",128,0)
. set vars("siteid")=sym
"RTN","SAMISAV",129,0)
. set vars("site")=sym
"RTN","SAMISAV",130,0)
. quit
"RTN","SAMISAV",131,0)
;
"RTN","SAMISAV",132,0)
new useform set useform=form ; by default, form unchanged
"RTN","SAMISAV",133,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMISAV",134,0)
new type set type=$piece(form,"-",1)
"RTN","SAMISAV",135,0)
;
"RTN","SAMISAV",136,0)
;
"RTN","SAMISAV",137,0)
;@stanza 3 ct evaluation form
"RTN","SAMISAV",138,0)
;
"RTN","SAMISAV",139,0)
if type="ceform" do
"RTN","SAMISAV",140,0)
. merge ^SAMIUL("samisav","vals")=vars
"RTN","SAMISAV",141,0)
. new formdate set formdate=$get(vars("cedos")) ; ct scan date f/form
"RTN","SAMISAV",142,0)
. quit:formdate=""
"RTN","SAMISAV",143,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",144,0)
. quit:fdate=""
"RTN","SAMISAV",145,0)
. quit:fdate<0
"RTN","SAMISAV",146,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",147,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",148,0)
. . new moveto set moveto="ceform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",149,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",150,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",151,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",152,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",153,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",154,0)
. . merge ^SAMIUL("samisav","vals")=vars
"RTN","SAMISAV",155,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",156,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",157,0)
. . set useform=moveto
"RTN","SAMISAV",158,0)
. . quit
"RTN","SAMISAV",159,0)
. quit
"RTN","SAMISAV",160,0)
;
"RTN","SAMISAV",161,0)
;
"RTN","SAMISAV",162,0)
;@stanza 4 followup form
"RTN","SAMISAV",163,0)
;
"RTN","SAMISAV",164,0)
if type="fuform" do
"RTN","SAMISAV",165,0)
. merge ^SAMIUL("samisav","vals")=vars
"RTN","SAMISAV",166,0)
. new formdate set formdate=$get(vars("sidof")) ; CT scan date f/form
"RTN","SAMISAV",167,0)
. quit:formdate=""
"RTN","SAMISAV",168,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",169,0)
. quit:fdate=""
"RTN","SAMISAV",170,0)
. quit:fdate<0
"RTN","SAMISAV",171,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",172,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",173,0)
. . new moveto set moveto="fuform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",174,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",175,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",176,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",177,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",178,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",179,0)
. . merge ^SAMIUL("samisav","vals")=vars
"RTN","SAMISAV",180,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",181,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",182,0)
. . set useform=moveto
"RTN","SAMISAV",183,0)
. . quit
"RTN","SAMISAV",184,0)
. quit
"RTN","SAMISAV",185,0)
;
"RTN","SAMISAV",186,0)
;
"RTN","SAMISAV",187,0)
;@stanza 5 intake form
"RTN","SAMISAV",188,0)
;
"RTN","SAMISAV",189,0)
if type="siform" do
"RTN","SAMISAV",190,0)
. set vars("samifirsttime")="false"
"RTN","SAMISAV",191,0)
. do COMLOG(.sid,.form,.vars) ; add to communication log
"RTN","SAMISAV",192,0)
. new formdate set formdate=$get(vars("sidc")) ; CT scan date f/form
"RTN","SAMISAV",193,0)
. quit:formdate=""
"RTN","SAMISAV",194,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",195,0)
. quit:fdate=""
"RTN","SAMISAV",196,0)
. quit:fdate<0
"RTN","SAMISAV",197,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",198,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",199,0)
. . new moveto set moveto="siform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",200,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",201,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",202,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",203,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",204,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",205,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",206,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",207,0)
. . set useform=moveto
"RTN","SAMISAV",208,0)
. . quit
"RTN","SAMISAV",209,0)
. quit
"RTN","SAMISAV",210,0)
;
"RTN","SAMISAV",211,0)
;
"RTN","SAMISAV",212,0)
;@stanza 6 biopsy form
"RTN","SAMISAV",213,0)
;
"RTN","SAMISAV",214,0)
if type="bxform" do
"RTN","SAMISAV",215,0)
. new formdate set formdate=$get(vars("bxdos")) ; biopsy date f/form
"RTN","SAMISAV",216,0)
. if formdate="" set formdate=$get(vars("rbmed")) ; mediastinoscopy d
"RTN","SAMISAV",217,0)
. quit:formdate=""
"RTN","SAMISAV",218,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",219,0)
. quit:fdate=""
"RTN","SAMISAV",220,0)
. quit:fdate<0
"RTN","SAMISAV",221,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",222,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",223,0)
. . new moveto set moveto="bxform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",224,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",225,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",226,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",227,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",228,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",229,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",230,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",231,0)
. . set useform=moveto
"RTN","SAMISAV",232,0)
. . quit
"RTN","SAMISAV",233,0)
. quit
"RTN","SAMISAV",234,0)
;
"RTN","SAMISAV",235,0)
;
"RTN","SAMISAV",236,0)
;@stanza 7 intervention form
"RTN","SAMISAV",237,0)
;
"RTN","SAMISAV",238,0)
if type="itform" do
"RTN","SAMISAV",239,0)
. new formdate set formdate=$get(vars("rbsud")) ; treatment date
"RTN","SAMISAV",240,0)
. if formdate="" set formdate=$get(vars("rbdos")) ;1st intervention d
"RTN","SAMISAV",241,0)
. if formdate="" set formdate=$get(vars("rbdmr")) ; last intervention
"RTN","SAMISAV",242,0)
. quit:formdate=""
"RTN","SAMISAV",243,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",244,0)
. quit:fdate=""
"RTN","SAMISAV",245,0)
. quit:fdate<0
"RTN","SAMISAV",246,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",247,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",248,0)
. . new moveto set moveto="itform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",249,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",250,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",251,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",252,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",253,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",254,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",255,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",256,0)
. . set useform=moveto
"RTN","SAMISAV",257,0)
. . quit
"RTN","SAMISAV",258,0)
. quit
"RTN","SAMISAV",259,0)
;
"RTN","SAMISAV",260,0)
;
"RTN","SAMISAV",261,0)
;@stanza 8 pet evaluation form
"RTN","SAMISAV",262,0)
;
"RTN","SAMISAV",263,0)
if type="ptform" do
"RTN","SAMISAV",264,0)
. new formdate set formdate=$get(vars("ptdos")) ; treatment date
"RTN","SAMISAV",265,0)
. quit:formdate=""
"RTN","SAMISAV",266,0)
. new fdate set fdate=$$KEY2FM^SAMICASE(formdate) ; cnvt to fm date
"RTN","SAMISAV",267,0)
. quit:fdate=""
"RTN","SAMISAV",268,0)
. quit:fdate<0
"RTN","SAMISAV",269,0)
. new fmcurrent set fmcurrent=$$KEY2FM^SAMICASE(form) ; key,fm format
"RTN","SAMISAV",270,0)
. if fdate'=fmcurrent do ;
"RTN","SAMISAV",271,0)
. . new moveto set moveto="ptform-"_$$KEYDATE^SAMIHOM3(fdate)
"RTN","SAMISAV",272,0)
. . ; w !,"old: ",fmcurrent," new: ",fdate," ... date must be changed
"RTN","SAMISAV",273,0)
. . kill ^SAMIUL("samisav")
"RTN","SAMISAV",274,0)
. . set ^SAMIUL("samisav","current")=form_"^"_fmcurrent
"RTN","SAMISAV",275,0)
. . set ^SAMIUL("samisav","incoming")=formdate_"^"_fdate
"RTN","SAMISAV",276,0)
. . set ^SAMIUL("samisav","conclusion")="graph must be moved to: "_moveto
"RTN","SAMISAV",277,0)
. . merge @root@("graph",sid,moveto)=@root@("graph",sid,form)
"RTN","SAMISAV",278,0)
. . kill @root@("graph",sid,form)
"RTN","SAMISAV",279,0)
. . set useform=moveto
"RTN","SAMISAV",280,0)
. . quit
"RTN","SAMISAV",281,0)
. quit
"RTN","SAMISAV",282,0)
;
"RTN","SAMISAV",283,0)
;
"RTN","SAMISAV",284,0)
;@stanza 9 termination
"RTN","SAMISAV",285,0)
;
"RTN","SAMISAV",286,0)
quit useform ; return form key ; end of $$SAVFILTR
"RTN","SAMISAV",287,0)
;
"RTN","SAMISAV",288,0)
;
"RTN","SAMISAV",289,0)
;
"RTN","SAMISAV",290,0)
COMLOG(sid,form,vars) ; add to communications log
"RTN","SAMISAV",291,0)
;
"RTN","SAMISAV",292,0)
;@stanza 1 invocation, binding, & branching
"RTN","SAMISAV",293,0)
;
"RTN","SAMISAV",294,0)
;;private;procedure;clean;silent;sac
"RTN","SAMISAV",295,0)
;@called-by
"RTN","SAMISAV",296,0)
; SAVFILTR
"RTN","SAMISAV",297,0)
;@calls
"RTN","SAMISAV",298,0)
; $$setroot^%wd
"RTN","SAMISAV",299,0)
; LOGIT^SAMICLOG
"RTN","SAMISAV",300,0)
;@input
"RTN","SAMISAV",301,0)
; sid = study id
"RTN","SAMISAV",302,0)
; form = form key
"RTN","SAMISAV",303,0)
; vars("sipcrn") = new comm log entry
"RTN","SAMISAV",304,0)
;@output
"RTN","SAMISAV",305,0)
; comm log updated to include new comm log entry
"RTN","SAMISAV",306,0)
; vars("sipcrn") = cleared after being saved
"RTN","SAMISAV",307,0)
;
"RTN","SAMISAV",308,0)
;
"RTN","SAMISAV",309,0)
;@stanza 2 add new entry to comm log
"RTN","SAMISAV",310,0)
;
"RTN","SAMISAV",311,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMISAV",312,0)
merge vars("comlog")=@root@("graph",sid,form,"comlog")
"RTN","SAMISAV",313,0)
new COMLOGRT ; communication log root
"RTN","SAMISAV",314,0)
set COMLOGRT=$name(@root@("graph",sid,form,"comlog"))
"RTN","SAMISAV",315,0)
;
"RTN","SAMISAV",316,0)
if $get(vars("sipcrn"))'="" do ; new comm log entry available
"RTN","SAMISAV",317,0)
. do LOGIT^SAMICLOG(COMLOGRT,vars("sipcrn"))
"RTN","SAMISAV",318,0)
. set vars("sipcrn")=""
"RTN","SAMISAV",319,0)
. quit
"RTN","SAMISAV",320,0)
;
"RTN","SAMISAV",321,0)
;
"RTN","SAMISAV",322,0)
;@stanza 3 termination
"RTN","SAMISAV",323,0)
;
"RTN","SAMISAV",324,0)
quit ; end of COMLOG
"RTN","SAMISAV",325,0)
;
"RTN","SAMISAV",326,0)
;
"RTN","SAMISAV",327,0)
;
"RTN","SAMISAV",328,0)
EOR ; end of routine SAMISAV
"RTN","SAMIUR")
0^2^B536135066
"RTN","SAMIUR",1,0)
SAMIUR ;ven/gpl - user reports ;2021-05-25T19:11Z
"RTN","SAMIUR",2,0)
;;18.0;SAMI;**5,10,11**;2020-01;Build 21
"RTN","SAMIUR",3,0)
;;1.18.0.11+i11
"RTN","SAMIUR",4,0)
;
"RTN","SAMIUR",5,0)
; SAMIUR contains a web service & associated subroutines to produce
"RTN","SAMIUR",6,0)
; VAPALS-ELCAP user reports.
"RTN","SAMIUR",7,0)
;
"RTN","SAMIUR",8,0)
quit ; no entry from top
"RTN","SAMIUR",9,0)
;
"RTN","SAMIUR",10,0)
;
"RTN","SAMIUR",11,0)
;
"RTN","SAMIUR",12,0)
;@section 0 primary development
"RTN","SAMIUR",13,0)
;
"RTN","SAMIUR",14,0)
;
"RTN","SAMIUR",15,0)
;
"RTN","SAMIUR",16,0)
;@routine-credits
"RTN","SAMIUR",17,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMIUR",18,0)
; [email protected]
"RTN","SAMIUR",19,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMIUR",20,0)
; http://vistaexpertise.net
"RTN","SAMIUR",21,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMIUR",22,0)
;@license see routine SAMIUL
"RTN","SAMIUR",23,0)
;
"RTN","SAMIUR",24,0)
;@last-updated 2021-05-25T19:11Z
"RTN","SAMIUR",25,0)
;@application Screening Applications Management (SAM)
"RTN","SAMIUR",26,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMIUR",27,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMIUR",28,0)
;@version 1.18.0.11+i11
"RTN","SAMIUR",29,0)
;@release-date 2020-01
"RTN","SAMIUR",30,0)
;@patch-list **5,10,11**
"RTN","SAMIUR",31,0)
;
"RTN","SAMIUR",32,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMIUR",33,0)
; [email protected]
"RTN","SAMIUR",34,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMIUR",35,0)
; [email protected]
"RTN","SAMIUR",36,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMIUR",37,0)
; [email protected]
"RTN","SAMIUR",38,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMIUR",39,0)
; [email protected]
"RTN","SAMIUR",40,0)
;
"RTN","SAMIUR",41,0)
;@module-credits
"RTN","SAMIUR",42,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMIUR",43,0)
; (VA-PALS)
"RTN","SAMIUR",44,0)
; http://va-pals.org/
"RTN","SAMIUR",45,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMIUR",46,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMIUR",47,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMIUR",48,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMIUR",49,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMIUR",50,0)
; http://ielcap.com/
"RTN","SAMIUR",51,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMIUR",52,0)
; http://paraxialtech.com/
"RTN","SAMIUR",53,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMIUR",54,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMIUR",55,0)
;
"RTN","SAMIUR",56,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMIUR",57,0)
;
"RTN","SAMIUR",58,0)
; 2020-02-10/12 ven/gpl 1.18.0-t04 d543f7bb,f9869dfb,0e4d8b9a
"RTN","SAMIUR",59,0)
; SAMIUR: 1st version of revised user reports, progress on user
"RTN","SAMIUR",60,0)
; reports, fixed a bug in enrollment report.
"RTN","SAMIUR",61,0)
;
"RTN","SAMIUR",62,0)
; 2020-02-18 ven/lgc 1.18.0-t04 76874314
"RTN","SAMIUR",63,0)
; SAMIUR: update recently edited routines.
"RTN","SAMIUR",64,0)
;
"RTN","SAMIUR",65,0)
; 2020-03-10/12 ven/gpl 1.18.0-t04 8de06b06,4ad52d64
"RTN","SAMIUR",66,0)
; SAMIUR: user report date filtering, fix end date logic in UR.
"RTN","SAMIUR",67,0)
;
"RTN","SAMIUR",68,0)
; 2020-04-16/23 ven/lgc 1.18.0-t04 e54b76d1b,89bffd3b
"RTN","SAMIUR",69,0)
; SAMIUR: SAMIFRM2 > SAMIFORM, SAMISUB2 > LOAD.
"RTN","SAMIUR",70,0)
;
"RTN","SAMIUR",71,0)
; 2020-08-04 ven/gpl 1.18.0-t04 cd865e2b VPA-438
"RTN","SAMIUR",72,0)
; SAMIUR: requested changes to followup report.
"RTN","SAMIUR",73,0)
;
"RTN","SAMIUR",74,0)
; 2020-09-26 ven/gpl 1.18.0-t04 92b12324 VAP-420
"RTN","SAMIUR",75,0)
; SAMIUR: add smoking history.
"RTN","SAMIUR",76,0)
;
"RTN","SAMIUR",77,0)
; 2020-01-01/05 ven/arc 1.18.0 399f8547,62e3200f
"RTN","SAMIUR",78,0)
; SAMIUR: unmatched participant processing.
"RTN","SAMIUR",79,0)
;
"RTN","SAMIUR",80,0)
; 2020-04-29/05-13 ven/gpl 1.18.0.5+i5 e8b8ea2d,61c7d208
"RTN","SAMIUR",81,0)
; SAMIUR: fixes for reports, worklist functionality.
"RTN","SAMIUR",82,0)
;
"RTN","SAMIUR",83,0)
; 2021-03-22/23 ven/gpl 1.18.0.10+i10 256efe63,ba81b86a2
"RTN","SAMIUR",84,0)
; SAMIUR: sort all reports by name, added row totals to reports.
"RTN","SAMIUR",85,0)
;
"RTN","SAMIUR",86,0)
; 2021-03-23 ven/toad 1.18.0.10+i10 96f461d0,af86e0eb
"RTN","SAMIUR",87,0)
; SAMIUR: add version info & dev log, lt refactor, fix XINDEX
"RTN","SAMIUR",88,0)
; errors.
"RTN","SAMIUR",89,0)
;
"RTN","SAMIUR",90,0)
; 2021-03-29 ven/gpl 1.18.0.11+i11 e809f2a2
"RTN","SAMIUR",91,0)
; SAMIUR: prevent crash when reports have no matches: in WSREPORT
"RTN","SAMIUR",92,0)
; set SRT="" and uncomment zwrite SRT; in WKLIST add 2 commented-out
"RTN","SAMIUR",93,0)
; debugging lines.
"RTN","SAMIUR",94,0)
;
"RTN","SAMIUR",95,0)
; 2021-03-30 ven/toad 1.18.0.11+i11 7b14bb2
"RTN","SAMIUR",96,0)
; SAMIUR: bump version, date, log; in WSREPORT comment zwrite SRT.
"RTN","SAMIUR",97,0)
;
"RTN","SAMIUR",98,0)
; 2021-03-31 ven/gpl 1.18.0.11+i11 66d89cd
"RTN","SAMIUR",99,0)
; SAMIUR: sort on all uppercase names for reports
"RTN","SAMIUR",100,0)
;
"RTN","SAMIUR",101,0)
; 2021-04-13 ven/gpl 1.18.0.11+i11 a12765b
"RTN","SAMIUR",102,0)
; SAMIUR: inactive report created.
"RTN","SAMIUR",103,0)
;
"RTN","SAMIUR",104,0)
; 2021-05-20/25 ven/mcglk&toad 1.18.0.11+i11
"RTN","SAMIUR",105,0)
; SAMIUR: annotate, lt refactor, bump version.
"RTN","SAMIUR",106,0)
;
"RTN","SAMIUR",107,0)
;@contents
"RTN","SAMIUR",108,0)
; WSREPORT generate report based on params in filter
"RTN","SAMIUR",109,0)
; SORT sort patients by name
"RTN","SAMIUR",110,0)
; NUHREF create nuhref link to casereview for all patients
"RTN","SAMIUR",111,0)
; PNAME page name for report
"RTN","SAMIUR",112,0)
;
"RTN","SAMIUR",113,0)
; SELECT select patients for report
"RTN","SAMIUR",114,0)
; UNMAT build unmatched persons list
"RTN","SAMIUR",115,0)
; WKLIST build work list
"RTN","SAMIUR",116,0)
;
"RTN","SAMIUR",117,0)
;
"RTN","SAMIUR",118,0)
;
"RTN","SAMIUR",119,0)
;@section 1 wsreport subroutines
"RTN","SAMIUR",120,0)
;
"RTN","SAMIUR",121,0)
;
"RTN","SAMIUR",122,0)
;
"RTN","SAMIUR",123,0)
WSREPORT(SAMIRTN,filter) ; generate report based on params in filter
"RTN","SAMIUR",124,0)
;
"RTN","SAMIUR",125,0)
;@called-by
"RTN","SAMIUR",126,0)
; WSVAPALS^SAMIHOM4
"RTN","SAMIUR",127,0)
; WSREPORT^SAMIUR1
"RTN","SAMIUR",128,0)
;@calls
"RTN","SAMIUR",129,0)
; GETHOME^SAMIHOM3
"RTN","SAMIUR",130,0)
; getThis^%wd
"RTN","SAMIUR",131,0)
; SELECT
"RTN","SAMIUR",132,0)
; LOAD^SAMIFORM
"RTN","SAMIUR",133,0)
; $$PNAME
"RTN","SAMIUR",134,0)
; findReplace^%ts
"RTN","SAMIUR",135,0)
; RPTTBL^SAMIUR2
"RTN","SAMIUR",136,0)
; NUHREF
"RTN","SAMIUR",137,0)
; SORT
"RTN","SAMIUR",138,0)
; @RPT(ir,"routine"): [from report def table from RPTTBL^SAMIUR2]
"RTN","SAMIUR",139,0)
; format = $$<tag>^SAMIUR2, where tag =
"RTN","SAMIUR",140,0)
; AGE BLINEDT CONTACT CTPROT DOB FUDATE GENDER
"RTN","SAMIUR",141,0)
; IFORM LASTEXM MANPAT MATCH NAME PACKYRS POSSIBLE
"RTN","SAMIUR",142,0)
; RECOM RURAL SID SMHIS SMKSTAT SSN STUDYDT
"RTN","SAMIUR",143,0)
; STUDYTYP VALS WHEN WORKPAT
"RTN","SAMIUR",144,0)
;
"RTN","SAMIUR",145,0)
; here are the user reports that are defined:
"RTN","SAMIUR",146,0)
; 1. followup
"RTN","SAMIUR",147,0)
; 2. activity
"RTN","SAMIUR",148,0)
; 3. missingct
"RTN","SAMIUR",149,0)
; 4. incomplete
"RTN","SAMIUR",150,0)
; 5. outreach
"RTN","SAMIUR",151,0)
; 6. enrollment
"RTN","SAMIUR",152,0)
; 7. worklist
"RTN","SAMIUR",153,0)
; the report to generate is passed in parameter samireporttype
"RTN","SAMIUR",154,0)
;
"RTN","SAMIUR",155,0)
new debug set debug=0
"RTN","SAMIUR",156,0)
if $get(filter("debug"))=1 set debug=1
"RTN","SAMIUR",157,0)
if $get(filter("debug"))=1 set debug=1
"RTN","SAMIUR",158,0)
kill SAMIRTN
"RTN","SAMIUR",159,0)
set HTTPRSP("mime")="text/html"
"RTN","SAMIUR",160,0)
;
"RTN","SAMIUR",161,0)
new type,temp
"RTN","SAMIUR",162,0)
set type=$get(filter("samireporttype"))
"RTN","SAMIUR",163,0)
if type="" do quit ; report type missing
"RTN","SAMIUR",164,0)
. do GETHOME^SAMIHOM3(.SAMIRTN,.filter) ; send them to home
"RTN","SAMIUR",165,0)
. quit
"RTN","SAMIUR",166,0)
;
"RTN","SAMIUR",167,0)
do getThis^%wd("temp","table.html") ; page template
"RTN","SAMIUR",168,0)
quit:'$data(temp)
"RTN","SAMIUR",169,0)
;
"RTN","SAMIUR",170,0)
new SAMIPATS
"RTN","SAMIUR",171,0)
; set pats=""
"RTN","SAMIUR",172,0)
new datephrase
"RTN","SAMIUR",173,0)
do SELECT(.SAMIPATS,type,.datephrase,.filter) ; select pats for report
"RTN","SAMIUR",174,0)
; quit:'$data(SAMIPATS)
"RTN","SAMIUR",175,0)
;
"RTN","SAMIUR",176,0)
new ln,cnt,ii
"RTN","SAMIUR",177,0)
set (ii,ln,cnt)=0
"RTN","SAMIUR",178,0)
for do quit:'ii quit:$get(temp(ii))["<thead"
"RTN","SAMIUR",179,0)
. set ii=$order(temp(ii))
"RTN","SAMIUR",180,0)
. quit:'ii
"RTN","SAMIUR",181,0)
. quit:$get(temp(ii))["<thead"
"RTN","SAMIUR",182,0)
. ;
"RTN","SAMIUR",183,0)
. set cnt=cnt+1
"RTN","SAMIUR",184,0)
. set ln=$get(temp(ii))
"RTN","SAMIUR",185,0)
. new samikey,si
"RTN","SAMIUR",186,0)
. set (samikey,si)=""
"RTN","SAMIUR",187,0)
. do LOAD^SAMIFORM(.ln,samikey,si,.filter)
"RTN","SAMIUR",188,0)
. ; if ln["PAGE NAME" do
"RTN","SAMIUR",189,0)
. ; . do findReplace^%ts(.ln,"PAGE NAME",$$PNAME(type,datephrase))
"RTN","SAMIUR",190,0)
. ; . quit
"RTN","SAMIUR",191,0)
. if ln["PAGE NAME" do
"RTN","SAMIUR",192,0)
. . do findReplace^%ts(.ln,"PAGE NAME",$$PNAME(type,""))
"RTN","SAMIUR",193,0)
. . quit
"RTN","SAMIUR",194,0)
. if ln["CRITERIA" do
"RTN","SAMIUR",195,0)
. . do findReplace^%ts(.ln,"CRITERIA",datephrase)
"RTN","SAMIUR",196,0)
. . quit
"RTN","SAMIUR",197,0)
. if ln["@@REPORTTYPE@@" do
"RTN","SAMIUR",198,0)
. . do findReplace^%ts(.ln,"@@REPORTTYPE@@",type)
"RTN","SAMIUR",199,0)
. . quit
"RTN","SAMIUR",200,0)
. ;
"RTN","SAMIUR",201,0)
. if ln["name=""start-date""" do
"RTN","SAMIUR",202,0)
. . do findReplace^%ts(.ln,"start-date""","start-date"" value="""_$g(filter("start-date"))_"""")
"RTN","SAMIUR",203,0)
. . quit
"RTN","SAMIUR",204,0)
. if ln["name=""end-date""" do
"RTN","SAMIUR",205,0)
. . do findReplace^%ts(.ln,"end-date""","end-date"" value="""_$g(filter("end-date"))_"""")
"RTN","SAMIUR",206,0)
. . quit
"RTN","SAMIUR",207,0)
. ;
"RTN","SAMIUR",208,0)
. set SAMIRTN(cnt)=ln
"RTN","SAMIUR",209,0)
. quit
"RTN","SAMIUR",210,0)
;
"RTN","SAMIUR",211,0)
new RPT,ik
"RTN","SAMIUR",212,0)
do RPTTBL^SAMIUR2(.RPT,type) ; load report definition table
"RTN","SAMIUR",213,0)
if '$data(RPT) do quit ; don't know about this report
"RTN","SAMIUR",214,0)
. do GETHOME^SAMIHOM3(.SAMIRTN,.filter) ; send them to home
"RTN","SAMIUR",215,0)
. quit
"RTN","SAMIUR",216,0)
;
"RTN","SAMIUR",217,0)
; output header
"RTN","SAMIUR",218,0)
;
"RTN","SAMIUR",219,0)
set cnt=cnt+1 set SAMIRTN(cnt)="<thead><tr>"
"RTN","SAMIUR",220,0)
set cnt=cnt+1
"RTN","SAMIUR",221,0)
new totcnt set totcnt=cnt
"RTN","SAMIUR",222,0)
;
"RTN","SAMIUR",223,0)
set ir=""
"RTN","SAMIUR",224,0)
for do quit:ir="" ;
"RTN","SAMIUR",225,0)
. set ir=$order(RPT(ir))
"RTN","SAMIUR",226,0)
. quit:ir=""
"RTN","SAMIUR",227,0)
. set cnt=cnt+1
"RTN","SAMIUR",228,0)
. set SAMIRTN(cnt)="<th>"_$get(RPT(ir,"header"))_"</th>"
"RTN","SAMIUR",229,0)
. quit
"RTN","SAMIUR",230,0)
;
"RTN","SAMIUR",231,0)
set cnt=cnt+1 set SAMIRTN(cnt)="</tr></thead>"
"RTN","SAMIUR",232,0)
;
"RTN","SAMIUR",233,0)
set cnt=cnt+1 set SAMIRTN(cnt)="<tbody>"
"RTN","SAMIUR",234,0)
;
"RTN","SAMIUR",235,0)
if type'="worklist" do ;
"RTN","SAMIUR",236,0)
. do NUHREF(.SAMIPATS) ; create the nuhref link for all patients
"RTN","SAMIUR",237,0)
. quit
"RTN","SAMIUR",238,0)
;
"RTN","SAMIUR",239,0)
new SRT set SRT=""
"RTN","SAMIUR",240,0)
if $get(filter("sort"))="" set filter("sort")="name"
"RTN","SAMIUR",241,0)
do SORT(.SRT,.SAMIPATS,.filter)
"RTN","SAMIUR",242,0)
; zwrite SRT
"RTN","SAMIUR",243,0)
;
"RTN","SAMIUR",244,0)
; set ij=0
"RTN","SAMIUR",245,0)
; for do quit:'ij ;
"RTN","SAMIUR",246,0)
; . set ij=$order(SAMIPATS(ij))
"RTN","SAMIUR",247,0)
; . quit:'ij
"RTN","SAMIUR",248,0)
; . new ij2 set ij2=0
"RTN","SAMIUR",249,0)
; . for do quit:'ij2 ;
"RTN","SAMIUR",250,0)
; . . set ij2=$order(SAMIPATS(ij,ij2))
"RTN","SAMIUR",251,0)
; . . quit:'ij2
"RTN","SAMIUR",252,0)
; . . new dfn set dfn=ij2
"RTN","SAMIUR",253,0)
; . . quit
"RTN","SAMIUR",254,0)
; . quit
"RTN","SAMIUR",255,0)
;
"RTN","SAMIUR",256,0)
new iz,ij,ij2,dfn,rows
"RTN","SAMIUR",257,0)
set rows=0
"RTN","SAMIUR",258,0)
set (iz,ij,ij2,dfn)=""
"RTN","SAMIUR",259,0)
for do quit:iz="" ;
"RTN","SAMIUR",260,0)
. set iz=$order(SRT(iz))
"RTN","SAMIUR",261,0)
. quit:iz=""
"RTN","SAMIUR",262,0)
. set ij=$order(SRT(iz,""))
"RTN","SAMIUR",263,0)
. set dfn=$order(SRT(iz,ij,""))
"RTN","SAMIUR",264,0)
. do ;
"RTN","SAMIUR",265,0)
. . set cnt=cnt+1 set SAMIRTN(cnt)="<tr>"
"RTN","SAMIUR",266,0)
. . set ir=""
"RTN","SAMIUR",267,0)
. . for do quit:ir="" ;
"RTN","SAMIUR",268,0)
. . . set ir=$order(RPT(ir))
"RTN","SAMIUR",269,0)
. . . quit:ir=""
"RTN","SAMIUR",270,0)
. . . set cnt=cnt+1
"RTN","SAMIUR",271,0)
. . . new XR,XRV
"RTN","SAMIUR",272,0)
. . . ; set XR=$get(RPT(ir,"routine"))_"("_ij_",.SAMIPATS)"
"RTN","SAMIUR",273,0)
. . . set XR="set XRV="_$get(RPT(ir,"routine"))_"("_ij_","_dfn_",.SAMIPATS)"
"RTN","SAMIUR",274,0)
. . . ; set XRV=@XR
"RTN","SAMIUR",275,0)
. . . xecute XR ; call report-field handlers in ^SAMIUR2
"RTN","SAMIUR",276,0)
. . . set SAMIRTN(cnt)="<td>"_$get(XRV)_"</td>"
"RTN","SAMIUR",277,0)
. . . quit
"RTN","SAMIUR",278,0)
. . ;
"RTN","SAMIUR",279,0)
. . set cnt=cnt+1
"RTN","SAMIUR",280,0)
. . set SAMIRTN(cnt)="</tr>"
"RTN","SAMIUR",281,0)
. . set rows=rows+1
"RTN","SAMIUR",282,0)
. . quit
"RTN","SAMIUR",283,0)
. quit
"RTN","SAMIUR",284,0)
;
"RTN","SAMIUR",285,0)
set cnt=cnt+1
"RTN","SAMIUR",286,0)
set SAMIRTN(cnt)="<tr><td>Total: "_rows_"</td></tr>"
"RTN","SAMIUR",287,0)
set SAMIRTN(totcnt)="<td>Total: "_rows_"</td></tr><tr>"
"RTN","SAMIUR",288,0)
;
"RTN","SAMIUR",289,0)
set cnt=cnt+1 set SAMIRTN(cnt)="</tbody>"
"RTN","SAMIUR",290,0)
for do quit:temp(ii)["</tbody>" ;
"RTN","SAMIUR",291,0)
. set ii=$order(temp(ii))
"RTN","SAMIUR",292,0)
. quit:temp(ii)["</tbody>"
"RTN","SAMIUR",293,0)
. ; skip past template headers & blank body
"RTN","SAMIUR",294,0)
. quit
"RTN","SAMIUR",295,0)
;
"RTN","SAMIUR",296,0)
for do quit:'ii ;
"RTN","SAMIUR",297,0)
. set ii=$order(temp(ii))
"RTN","SAMIUR",298,0)
. quit:'ii
"RTN","SAMIUR",299,0)
. set cnt=cnt+1
"RTN","SAMIUR",300,0)
. set ln=$get(temp(ii))
"RTN","SAMIUR",301,0)
. new samikey,si
"RTN","SAMIUR",302,0)
. set (samikey,si)=""
"RTN","SAMIUR",303,0)
. do LOAD^SAMIFORM(.ln,samikey,si,.filter)
"RTN","SAMIUR",304,0)
. set SAMIRTN(cnt)=ln
"RTN","SAMIUR",305,0)
. quit
"RTN","SAMIUR",306,0)
;
"RTN","SAMIUR",307,0)
quit ; end of WSREPORT
"RTN","SAMIUR",308,0)
;
"RTN","SAMIUR",309,0)
;
"RTN","SAMIUR",310,0)
;
"RTN","SAMIUR",311,0)
SORT(SRTN,SAMIPATS,FILTER) ; sort patients by name
"RTN","SAMIUR",312,0)
;
"RTN","SAMIUR",313,0)
;@called-by
"RTN","SAMIUR",314,0)
; WSREPORT
"RTN","SAMIUR",315,0)
;@calls
"RTN","SAMIUR",316,0)
; $$UPCASE^XLFMSMT
"RTN","SAMIUR",317,0)
;
"RTN","SAMIUR",318,0)
new typ set typ=$get(FILTER("sort"))
"RTN","SAMIUR",319,0)
if typ="" set typ="name"
"RTN","SAMIUR",320,0)
new iz,dt,dfn,nm
"RTN","SAMIUR",321,0)
set (dt,dfn,nm)="" ; note: should dfn be initialized inside loop?
"RTN","SAMIUR",322,0)
set iz=0
"RTN","SAMIUR",323,0)
;
"RTN","SAMIUR",324,0)
new indx
"RTN","SAMIUR",325,0)
for do quit:'dt ;
"RTN","SAMIUR",326,0)
. set dt=$order(SAMIPATS(dt))
"RTN","SAMIUR",327,0)
. quit:'dt
"RTN","SAMIUR",328,0)
. ; note: dfn not re-initialized to "" here; should it be?
"RTN","SAMIUR",329,0)
. for do quit:'dfn ;
"RTN","SAMIUR",330,0)
. . set dfn=$order(SAMIPATS(dt,dfn))
"RTN","SAMIUR",331,0)
. . quit:'dfn
"RTN","SAMIUR",332,0)
. . if typ="name" do ;
"RTN","SAMIUR",333,0)
. . . set nm=$get(SAMIPATS(dt,dfn,"name"))
"RTN","SAMIUR",334,0)
. . . set nm=$$UPCASE^XLFMSMT(nm)
"RTN","SAMIUR",335,0)
. . . if nm="" set nm=" "
"RTN","SAMIUR",336,0)
. . . set indx(nm,dt,dfn)=""
"RTN","SAMIUR",337,0)
. . . quit
"RTN","SAMIUR",338,0)
. . quit
"RTN","SAMIUR",339,0)
. quit
"RTN","SAMIUR",340,0)
;
"RTN","SAMIUR",341,0)
new iiz set iiz=""
"RTN","SAMIUR",342,0)
set (dt,dfn)="" ; note: here, too, should inits be inside loops?
"RTN","SAMIUR",343,0)
for do quit:iiz="" ;
"RTN","SAMIUR",344,0)
. set iiz=$order(indx(iiz))
"RTN","SAMIUR",345,0)
. quit:iiz=""
"RTN","SAMIUR",346,0)
. for do quit:dt="" ;
"RTN","SAMIUR",347,0)
. . set dt=$order(indx(iiz,dt))
"RTN","SAMIUR",348,0)
. . quit:dt=""
"RTN","SAMIUR",349,0)
. . for do quit:dfn="" ;
"RTN","SAMIUR",350,0)
. . . set dfn=$order(indx(iiz,dt,dfn))
"RTN","SAMIUR",351,0)
. . . quit:dfn=""
"RTN","SAMIUR",352,0)
. . . set iz=iz+1
"RTN","SAMIUR",353,0)
. . . set SRTN(iz,dt,dfn)=iiz
"RTN","SAMIUR",354,0)
. . . quit
"RTN","SAMIUR",355,0)
. . quit
"RTN","SAMIUR",356,0)
. quit
"RTN","SAMIUR",357,0)
;
"RTN","SAMIUR",358,0)
quit ; end of SORT
"RTN","SAMIUR",359,0)
;
"RTN","SAMIUR",360,0)
;
"RTN","SAMIUR",361,0)
;
"RTN","SAMIUR",362,0)
NUHREF(SAMIPATS) ; create nuhref link to casereview for all patients
"RTN","SAMIUR",363,0)
;
"RTN","SAMIUR",364,0)
;@called-by
"RTN","SAMIUR",365,0)
; WSREPORT
"RTN","SAMIUR",366,0)
;@calls
"RTN","SAMIUR",367,0)
; $$setroot^%wd
"RTN","SAMIUR",368,0)
; $$GETSSN^SAMIFORM
"RTN","SAMIUR",369,0)
;
"RTN","SAMIUR",370,0)
new ij
"RTN","SAMIUR",371,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR",372,0)
set ij=0
"RTN","SAMIUR",373,0)
for do quit:'ij ;
"RTN","SAMIUR",374,0)
. set ij=$order(SAMIPATS(ij))
"RTN","SAMIUR",375,0)
. quit:'ij
"RTN","SAMIUR",376,0)
. new ij2 set ij2=0
"RTN","SAMIUR",377,0)
. for do quit:'ij2 ;
"RTN","SAMIUR",378,0)
. . set ij2=$order(SAMIPATS(ij,ij2))
"RTN","SAMIUR",379,0)
. . quit:'ij2
"RTN","SAMIUR",380,0)
. . ;
"RTN","SAMIUR",381,0)
. . new dfn set dfn=ij2
"RTN","SAMIUR",382,0)
. . set SAMIPATS(ij,dfn,"sid")=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR",383,0)
. . set SAMIPATS(ij,dfn,"name")=$get(@root@(dfn,"saminame"))
"RTN","SAMIUR",384,0)
. . ;
"RTN","SAMIUR",385,0)
. . new sid set sid=SAMIPATS(ij,dfn,"sid")
"RTN","SAMIUR",386,0)
. . set SAMIPATS(ij,dfn,"ssn")=$$GETSSN^SAMIFORM(sid)
"RTN","SAMIUR",387,0)
. . new name set name=SAMIPATS(ij,dfn,"name")
"RTN","SAMIUR",388,0)
. . ;
"RTN","SAMIUR",389,0)
. . new nuhref set nuhref="<form method=POST action=""/vapals"">"
"RTN","SAMIUR",390,0)
. . set nuhref=nuhref_"<input type=hidden name=""samiroute"" value=""casereview"">"
"RTN","SAMIUR",391,0)
. . set nuhref=nuhref_"<input type=hidden name=""studyid"" value="_sid_">"
"RTN","SAMIUR",392,0)
. . set nuhref=nuhref_"<input value="""_name_""" class=""btn btn-link"" role=""link"" type=""submit""></form>"
"RTN","SAMIUR",393,0)
. . set SAMIPATS(ij,dfn,"nuhref")=nuhref
"RTN","SAMIUR",394,0)
. . quit
"RTN","SAMIUR",395,0)
. quit
"RTN","SAMIUR",396,0)
;
"RTN","SAMIUR",397,0)
quit ; end of NUHREF
"RTN","SAMIUR",398,0)
;
"RTN","SAMIUR",399,0)
;
"RTN","SAMIUR",400,0)
;
"RTN","SAMIUR",401,0)
PNAME(type,phrase) ; page name for report
"RTN","SAMIUR",402,0)
;
"RTN","SAMIUR",403,0)
;@called-by
"RTN","SAMIUR",404,0)
; WSREPORT
"RTN","SAMIUR",405,0)
;@calls none
"RTN","SAMIUR",406,0)
;
"RTN","SAMIUR",407,0)
; extrinsic returns the PAGE NAME for the report
"RTN","SAMIUR",408,0)
;
"RTN","SAMIUR",409,0)
; if type="followup" quit "Followup next 30 days -"_$get(phrase)
"RTN","SAMIUR",410,0)
if type="followup" quit "Followup "_$get(phrase)
"RTN","SAMIUR",411,0)
; if type="activity" quit "Activity last 30 days -"_$get(phrase)
"RTN","SAMIUR",412,0)
if type="activity" quit "Activity "_$get(phrase)
"RTN","SAMIUR",413,0)
if type="missingct" quit "Intake but no CT Evaluation"_$get(phrase)
"RTN","SAMIUR",414,0)
if type="incomplete" quit "Incomplete Forms"_$get(phrase)
"RTN","SAMIUR",415,0)
if type="outreach" quit "Outreach"_$get(phrase)
"RTN","SAMIUR",416,0)
if type="enrollment" quit "Enrollment"_$get(phrase)
"RTN","SAMIUR",417,0)
if type="inactive" quit "Inactive"_$get(phrase)
"RTN","SAMIUR",418,0)
;
"RTN","SAMIUR",419,0)
quit "" ; end of $$PNAME
"RTN","SAMIUR",420,0)
;
"RTN","SAMIUR",421,0)
;
"RTN","SAMIUR",422,0)
;
"RTN","SAMIUR",423,0)
;@section 2 select subroutines
"RTN","SAMIUR",424,0)
;
"RTN","SAMIUR",425,0)
;
"RTN","SAMIUR",426,0)
;
"RTN","SAMIUR",427,0)
SELECT(SAMIPATS,ztype,datephrase,filter) ; select patients for report
"RTN","SAMIUR",428,0)
;
"RTN","SAMIUR",429,0)
;@called-by
"RTN","SAMIUR",430,0)
; WSREPORT
"RTN","SAMIUR",431,0)
;@calls
"RTN","SAMIUR",432,0)
; UNMAT
"RTN","SAMIUR",433,0)
; WKLIST
"RTN","SAMIUR",434,0)
; $$KEY2FM^SAMICASE
"RTN","SAMIUR",435,0)
; $$NOW^XLFDT
"RTN","SAMIUR",436,0)
; $$FMADD^XLFDT
"RTN","SAMIUR",437,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMIUR",438,0)
; $$setroot^%wd
"RTN","SAMIUR",439,0)
; GETITEMS^SAMICASE
"RTN","SAMIUR",440,0)
;
"RTN","SAMIUR",441,0)
; merge ^gpl("select")=filter
"RTN","SAMIUR",442,0)
new type set type=ztype
"RTN","SAMIUR",443,0)
if type="unmatched" do quit ;
"RTN","SAMIUR",444,0)
. do UNMAT(.SAMIPATS,ztype,.datephrase,.filter)
"RTN","SAMIUR",445,0)
. quit
"RTN","SAMIUR",446,0)
if type="worklist" do quit ;
"RTN","SAMIUR",447,0)
. do WKLIST(.SAMIPATS,ztype,.datephrase,.filter)
"RTN","SAMIUR",448,0)
. quit
"RTN","SAMIUR",449,0)
if $get(type)="" set type="enrollment"
"RTN","SAMIUR",450,0)
if type="cumpy" set type="enrollment"
"RTN","SAMIUR",451,0)
new site set site=$get(filter("siteid"))
"RTN","SAMIUR",452,0)
;
"RTN","SAMIUR",453,0)
new strdt,enddt,fmstrdt,fmenddt
"RTN","SAMIUR",454,0)
set strdt=$get(filter("start-date"))
"RTN","SAMIUR",455,0)
set fmstrdt=$$KEY2FM^SAMICASE(strdt)
"RTN","SAMIUR",456,0)
if fmstrdt=-1 do ;
"RTN","SAMIUR",457,0)
. set fmstrdt=2000101
"RTN","SAMIUR",458,0)
. if type="followup" set fmstrdt=$$NOW^XLFDT
"RTN","SAMIUR",459,0)
. if type="activity" set fmstrdt=$$FMADD^XLFDT($$NOW^XLFDT,-31)
"RTN","SAMIUR",460,0)
. quit
"RTN","SAMIUR",461,0)
if strdt="" set filter("start-date")=$$VAPALSDT^SAMICASE(fmstrdt)
"RTN","SAMIUR",462,0)
;
"RTN","SAMIUR",463,0)
set enddt=$get(filter("end-date"))
"RTN","SAMIUR",464,0)
set fmenddt=$$KEY2FM^SAMICASE(enddt)
"RTN","SAMIUR",465,0)
if fmenddt=-1 do ;
"RTN","SAMIUR",466,0)
. set fmenddt=$$NOW^XLFDT
"RTN","SAMIUR",467,0)
. if type="followup" set fmenddt=$$FMADD^XLFDT($$NOW^XLFDT,31)
"RTN","SAMIUR",468,0)
. quit
"RTN","SAMIUR",469,0)
if enddt="" set filter("end-date")=$$VAPALSDT^SAMICASE(fmenddt)
"RTN","SAMIUR",470,0)
;
"RTN","SAMIUR",471,0)
set datephrase=""
"RTN","SAMIUR",472,0)
new zi set zi=0
"RTN","SAMIUR",473,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR",474,0)
;
"RTN","SAMIUR",475,0)
for do quit:'zi ;
"RTN","SAMIUR",476,0)
. set zi=$order(@root@(zi))
"RTN","SAMIUR",477,0)
. quit:'zi
"RTN","SAMIUR",478,0)
. ;
"RTN","SAMIUR",479,0)
. new sid set sid=$get(@root@(zi,"samistudyid"))
"RTN","SAMIUR",480,0)
. quit:sid=""
"RTN","SAMIUR",481,0)
. quit:$extract(sid,1,3)'=site
"RTN","SAMIUR",482,0)
. ;
"RTN","SAMIUR",483,0)
. new items set items=""
"RTN","SAMIUR",484,0)
. do GETITEMS^SAMICASE("items",sid)
"RTN","SAMIUR",485,0)
. quit:'$data(items)
"RTN","SAMIUR",486,0)
. ;
"RTN","SAMIUR",487,0)
. new efmdate,edate,siform,ceform,cefud,fmcefud,cedos,fmcedos
"RTN","SAMIUR",488,0)
. set siform=$order(items("siform-"))
"RTN","SAMIUR",489,0)
. new inactive set inactive=$get(@root@("graph",sid,siform,"sistatus"))
"RTN","SAMIUR",490,0)
. if type="inactive",inactive'="inactive" quit ; for inactive report
"RTN","SAMIUR",491,0)
. if type'="inactive",inactive="inactive" quit ; for other reports
"RTN","SAMIUR",492,0)
. ;
"RTN","SAMIUR",493,0)
. set ceform=$order(items("ceform-a"),-1)
"RTN","SAMIUR",494,0)
. set (cefud,fmcefud,cedos,fmcedos)=""
"RTN","SAMIUR",495,0)
. if ceform'="" do ;
"RTN","SAMIUR",496,0)
. . set cefud=$get(@root@("graph",sid,ceform,"cefud"))
"RTN","SAMIUR",497,0)
. . if cefud'="" set fmcefud=$$KEY2FM^SAMICASE(cefud)
"RTN","SAMIUR",498,0)
. . set cedos=$get(@root@("graph",sid,ceform,"cedos"))
"RTN","SAMIUR",499,0)
. . if cedos'="" set fmcedos=$$KEY2FM^SAMICASE(cedos)
"RTN","SAMIUR",500,0)
. . quit
"RTN","SAMIUR",501,0)
. ;
"RTN","SAMIUR",502,0)
. set edate=$get(@root@("graph",sid,siform,"sidc"))
"RTN","SAMIUR",503,0)
. if edate="" set edate=$get(@root@("graph",sid,siform,"samicreatedate"))
"RTN","SAMIUR",504,0)
. set efmdate=$$KEY2FM^SAMICASE(edate)
"RTN","SAMIUR",505,0)
. set edate=$$VAPALSDT^SAMICASE(efmdate)
"RTN","SAMIUR",506,0)
. ;
"RTN","SAMIUR",507,0)
. if type="followup" do ;
"RTN","SAMIUR",508,0)
. . ; new nplus30 set nplus30=$$FMADD^XLFDT($$NOW^XLFDT,31)
"RTN","SAMIUR",509,0)
. . if +fmcefud<fmstrdt quit ; before start date
"RTN","SAMIUR",510,0)
. . if +fmcefud<(fmenddt+1) do ; before end date
"RTN","SAMIUR",511,0)
. . . quit:ceform="" ; no ct eval so no followup date
"RTN","SAMIUR",512,0)
. . . set SAMIPATS(fmcefud,zi,"edate")=edate
"RTN","SAMIUR",513,0)
. . . set SAMIPATS(fmcefud,zi)=""
"RTN","SAMIUR",514,0)
. . . if ceform="" set cefud="baseline"
"RTN","SAMIUR",515,0)
. . . set SAMIPATS(fmcefud,zi,"cefud")=cefud
"RTN","SAMIUR",516,0)
. . . set SAMIPATS(fmcefud,zi,"cedos")=cedos
"RTN","SAMIUR",517,0)
. . . set SAMIPATS(fmcefud,zi,"ceform")=ceform
"RTN","SAMIUR",518,0)
. . . set SAMIPATS(fmcefud,zi,"ceform-vals")=$name(@root@("graph",sid,ceform))
"RTN","SAMIUR",519,0)
. . . set SAMIPATS(fmcefud,zi,"siform")=siform
"RTN","SAMIUR",520,0)
. . . set SAMIPATS(fmcefud,zi,"siform-vals")=$name(@root@("graph",sid,siform))
"RTN","SAMIUR",521,0)
. . . merge SAMIPATS(fmcefud,zi,"items")=items
"RTN","SAMIUR",522,0)
. . . quit
"RTN","SAMIUR",523,0)
. . set datephrase=" before "_$$VAPALSDT^SAMICASE(fmenddt)
"RTN","SAMIUR",524,0)
. . quit
"RTN","SAMIUR",525,0)
. ;
"RTN","SAMIUR",526,0)
. if type="activity" do ;
"RTN","SAMIUR",527,0)
. . ; new nminus30 set nminus30=$$FMADD^XLFDT($$NOW^XLFDT,-31)
"RTN","SAMIUR",528,0)
. . new anyform set anyform=$order(items("sort",""),-1)
"RTN","SAMIUR",529,0)
. . new fmanyform set fmanyform=$$KEY2FM^SAMICASE(anyform)
"RTN","SAMIUR",530,0)
. . if fmanyform<fmstrdt quit ; before the start date
"RTN","SAMIUR",531,0)
. . ; if fmanyform<(fmenddt+1)!(efmdate>fmenddt) do ; need any new form
"RTN","SAMIUR",532,0)
. . if fmanyform<(fmenddt+1) do ;
"RTN","SAMIUR",533,0)
. . . set SAMIPATS(efmdate,zi,"edate")=edate
"RTN","SAMIUR",534,0)
. . . set SAMIPATS(efmdate,zi)=""
"RTN","SAMIUR",535,0)
. . . if ceform="" set cefud="baseline"
"RTN","SAMIUR",536,0)
. . . set SAMIPATS(efmdate,zi,"cefud")=cefud
"RTN","SAMIUR",537,0)
. . . set SAMIPATS(efmdate,zi,"cedos")=cedos
"RTN","SAMIUR",538,0)
. . . set SAMIPATS(efmdate,zi,"ceform")=ceform
"RTN","SAMIUR",539,0)
. . . set SAMIPATS(efmdate,zi,"siform")=siform
"RTN","SAMIUR",540,0)
. . . merge SAMIPATS(efmdate,zi,"items")=items
"RTN","SAMIUR",541,0)
. . . quit
"RTN","SAMIUR",542,0)
. . set datephrase=" after "_$$VAPALSDT^SAMICASE(fmstrdt)
"RTN","SAMIUR",543,0)
. . quit
"RTN","SAMIUR",544,0)
. ;
"RTN","SAMIUR",545,0)
. ; date filter for all the rest of the reports
"RTN","SAMIUR",546,0)
. ;
"RTN","SAMIUR",547,0)
. quit:efmdate<fmstrdt ; before the start date
"RTN","SAMIUR",548,0)
. quit:efmdate>(fmenddt+1) ; after the end date
"RTN","SAMIUR",549,0)
. ;
"RTN","SAMIUR",550,0)
. if type="incomplete" do ;
"RTN","SAMIUR",551,0)
. . new complete set complete=1
"RTN","SAMIUR",552,0)
. . new zj set zj=""
"RTN","SAMIUR",553,0)
. . new gr set gr=$name(@root@("graph",sid))
"RTN","SAMIUR",554,0)
. . for do quit:zj="" ;
"RTN","SAMIUR",555,0)
. . . set zj=$order(@gr@(zj))
"RTN","SAMIUR",556,0)
. . . quit:zj=""
"RTN","SAMIUR",557,0)
. . . if $get(@gr@(zj,"samistatus"))="incomplete" do ;
"RTN","SAMIUR",558,0)
. . . . set complete=0
"RTN","SAMIUR",559,0)
. . . . set SAMIPATS(efmdate,zi,"iform")=$get(SAMIPATS(efmdate,zi,"iform"))_" "_zj
"RTN","SAMIUR",560,0)
. . . . quit
"RTN","SAMIUR",561,0)
. . . quit
"RTN","SAMIUR",562,0)
. . ;
"RTN","SAMIUR",563,0)
. . if complete=0 do ; has incomplete form(s)
"RTN","SAMIUR",564,0)
. . . set SAMIPATS(efmdate,zi,"edate")=edate
"RTN","SAMIUR",565,0)
. . . set SAMIPATS(efmdate,zi)=""
"RTN","SAMIUR",566,0)
. . . if ceform="" set cefud="baseline"
"RTN","SAMIUR",567,0)
. . . set SAMIPATS(efmdate,zi,"cefud")=cefud
"RTN","SAMIUR",568,0)
. . . set SAMIPATS(efmdate,zi,"ceform")=ceform
"RTN","SAMIUR",569,0)
. . . set SAMIPATS(efmdate,zi,"siform")=siform
"RTN","SAMIUR",570,0)
. . . merge SAMIPATS(efmdate,zi,"items")=items
"RTN","SAMIUR",571,0)
. . . quit
"RTN","SAMIUR",572,0)
. . set datephrase=""
"RTN","SAMIUR",573,0)
. . quit
"RTN","SAMIUR",574,0)
. ;
"RTN","SAMIUR",575,0)
. if type="missingct" do ;
"RTN","SAMIUR",576,0)
. . if ceform="" do ; has incomplete form(s)
"RTN","SAMIUR",577,0)
. . . set SAMIPATS(efmdate,zi,"edate")=edate
"RTN","SAMIUR",578,0)
. . . set SAMIPATS(efmdate,zi)=""
"RTN","SAMIUR",579,0)
. . . if ceform="" set cefud="baseline"
"RTN","SAMIUR",580,0)
. . . set SAMIPATS(efmdate,zi,"cefud")=cefud
"RTN","SAMIUR",581,0)
. . . set SAMIPATS(efmdate,zi,"ceform")=ceform
"RTN","SAMIUR",582,0)
. . . set SAMIPATS(efmdate,zi,"siform")=siform
"RTN","SAMIUR",583,0)
. . . merge SAMIPATS(efmdate,zi,"items")=items
"RTN","SAMIUR",584,0)
. . . quit
"RTN","SAMIUR",585,0)
. . set datephrase=""
"RTN","SAMIUR",586,0)
. . quit
"RTN","SAMIUR",587,0)
. ;
"RTN","SAMIUR",588,0)
. if type="outreach" do ; no-op; hook for future development?
"RTN","SAMIUR",589,0)
. . quit
"RTN","SAMIUR",590,0)
. ;
"RTN","SAMIUR",591,0)
. if type="enrollment" do ;
"RTN","SAMIUR",592,0)
. . set SAMIPATS(efmdate,zi,"edate")=edate
"RTN","SAMIUR",593,0)
. . set SAMIPATS(efmdate,zi)=""
"RTN","SAMIUR",594,0)
. . set SAMIPATS(efmdate,zi,"cefud")=cefud
"RTN","SAMIUR",595,0)
. . set SAMIPATS(efmdate,zi,"ceform")=ceform
"RTN","SAMIUR",596,0)
. . set SAMIPATS(efmdate,zi,"cedos")=cedos
"RTN","SAMIUR",597,0)
. . set SAMIPATS(efmdate,zi,"siform")=siform
"RTN","SAMIUR",598,0)
. . merge SAMIPATS(efmdate,zi,"items")=items
"RTN","SAMIUR",599,0)
. . quit
"RTN","SAMIUR",600,0)
. ;
"RTN","SAMIUR",601,0)
. if type="inactive" do ;
"RTN","SAMIUR",602,0)
. . set SAMIPATS(efmdate,zi,"edate")=edate
"RTN","SAMIUR",603,0)
. . set SAMIPATS(efmdate,zi)=""
"RTN","SAMIUR",604,0)
. . set SAMIPATS(efmdate,zi,"cefud")=cefud
"RTN","SAMIUR",605,0)
. . set SAMIPATS(efmdate,zi,"ceform")=ceform
"RTN","SAMIUR",606,0)
. . set SAMIPATS(efmdate,zi,"cedos")=cedos
"RTN","SAMIUR",607,0)
. . set SAMIPATS(efmdate,zi,"siform")=siform
"RTN","SAMIUR",608,0)
. . merge SAMIPATS(efmdate,zi,"items")=items
"RTN","SAMIUR",609,0)
. . quit
"RTN","SAMIUR",610,0)
. ;
"RTN","SAMIUR",611,0)
. set datephrase=" as of "_$$VAPALSDT^SAMICASE($$NOW^XLFDT)
"RTN","SAMIUR",612,0)
. quit
"RTN","SAMIUR",613,0)
;
"RTN","SAMIUR",614,0)
quit ; end of SELECT
"RTN","SAMIUR",615,0)
;
"RTN","SAMIUR",616,0)
;
"RTN","SAMIUR",617,0)
;
"RTN","SAMIUR",618,0)
UNMAT(SAMIPATS,ztype,datephrase,filter) ; build unmatched persons list
"RTN","SAMIUR",619,0)
;
"RTN","SAMIUR",620,0)
;@called-by
"RTN","SAMIUR",621,0)
; SELECT
"RTN","SAMIUR",622,0)
;@calls
"RTN","SAMIUR",623,0)
; $$setroot^%wd
"RTN","SAMIUR",624,0)
;
"RTN","SAMIUR",625,0)
set datephrase="Unmatched Persons"
"RTN","SAMIUR",626,0)
new lroot set lroot=$$setroot^%wd("patient-lookup")
"RTN","SAMIUR",627,0)
new dfn set dfn=9000000
"RTN","SAMIUR",628,0)
for do quit:'dfn ;
"RTN","SAMIUR",629,0)
. set dfn=$order(@lroot@("dfn",dfn))
"RTN","SAMIUR",630,0)
. quit:'dfn
"RTN","SAMIUR",631,0)
. ;
"RTN","SAMIUR",632,0)
. new ien set ien=$order(@lroot@("dfn",dfn,""))
"RTN","SAMIUR",633,0)
. quit:ien=""
"RTN","SAMIUR",634,0)
. quit:$get(@lroot@(ien,"remotedfn"))'="" ;
"RTN","SAMIUR",635,0)
. ;
"RTN","SAMIUR",636,0)
. merge SAMIPATS(ien,dfn)=@lroot@(ien)
"RTN","SAMIUR",637,0)
. ;
"RTN","SAMIUR",638,0)
. ; new name set name=$get(SAMIPATS(ien,dfn,"saminame"))
"RTN","SAMIUR",639,0)
. new name set name=$get(SAMIPATS(ien,dfn,"sinamef"))
"RTN","SAMIUR",640,0)
. set name=name_","_SAMIPATS(ien,dfn,"sinamel")
"RTN","SAMIUR",641,0)
. new nuhref set nuhref="<form method=POST action=""/vapals"">"
"RTN","SAMIUR",642,0)
. set nuhref=nuhref_"<input type=hidden name=""samiroute"" value=""editperson"">"
"RTN","SAMIUR",643,0)
. set nuhref=nuhref_"<input type=hidden name=""dfn"" value="_dfn_">"
"RTN","SAMIUR",644,0)
. set nuhref=nuhref_"<input value="""_name_""" class=""btn btn-link"" role=""link"" type=""submit""></form>"
"RTN","SAMIUR",645,0)
. set SAMIPATS(ien,dfn,"editref")=nuhref
"RTN","SAMIUR",646,0)
. quit
"RTN","SAMIUR",647,0)
;
"RTN","SAMIUR",648,0)
quit ; end of UNMAT
"RTN","SAMIUR",649,0)
;
"RTN","SAMIUR",650,0)
;
"RTN","SAMIUR",651,0)
;
"RTN","SAMIUR",652,0)
WKLIST(SAMIPATS,ztype,datephrase,filter) ; build work list
"RTN","SAMIUR",653,0)
;
"RTN","SAMIUR",654,0)
;@called-by
"RTN","SAMIUR",655,0)
; SELECT
"RTN","SAMIUR",656,0)
;@calls
"RTN","SAMIUR",657,0)
; $$setroot^%wd
"RTN","SAMIUR",658,0)
;
"RTN","SAMIUR",659,0)
; add site
"RTN","SAMIUR",660,0)
; add compare to vapals-patients
"RTN","SAMIUR",661,0)
; add navigation to enrollment
"RTN","SAMIUR",662,0)
;
"RTN","SAMIUR",663,0)
kill ^gpl("worklist")
"RTN","SAMIUR",664,0)
merge ^gpl("worklist")=filter
"RTN","SAMIUR",665,0)
new site
"RTN","SAMIUR",666,0)
set site=$get(filter("siteid"))
"RTN","SAMIUR",667,0)
quit:site=""
"RTN","SAMIUR",668,0)
set datephrase="Work List"
"RTN","SAMIUR",669,0)
new lroot set lroot=$$setroot^%wd("patient-lookup")
"RTN","SAMIUR",670,0)
new proot set proot=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR",671,0)
;
"RTN","SAMIUR",672,0)
new dfn set dfn=0
"RTN","SAMIUR",673,0)
for set dfn=$order(@lroot@("dfn",dfn)) quit:+dfn=0 do ;
"RTN","SAMIUR",674,0)
. quit:$order(@proot@("dfn",dfn,""))'=""
"RTN","SAMIUR",675,0)
. new ien set ien=$order(@lroot@("dfn",dfn,""))
"RTN","SAMIUR",676,0)
. quit:ien=""
"RTN","SAMIUR",677,0)
. ;
"RTN","SAMIUR",678,0)
. ; write !,"dfn= ",dfn
"RTN","SAMIUR",679,0)
. ; zwrite @lroot@(ien,*)
"RTN","SAMIUR",680,0)
. ;
"RTN","SAMIUR",681,0)
. quit:$get(@lroot@(ien,"siteid"))'=site
"RTN","SAMIUR",682,0)
. ;
"RTN","SAMIUR",683,0)
. merge ^gpl("worklist","lroot",ien)=@lroot@(ien)
"RTN","SAMIUR",684,0)
. merge SAMIPATS(ien,dfn)=@lroot@(ien)
"RTN","SAMIUR",685,0)
. new name set name=$get(SAMIPATS(ien,dfn,"saminame"))
"RTN","SAMIUR",686,0)
. ; new name set name=$get(SAMIPATS(ien,dfn,"sinamef"))
"RTN","SAMIUR",687,0)
. ; set name=name_","_SAMIPATS(ien,dfn,"sinamel")
"RTN","SAMIUR",688,0)
. new nuhref set nuhref="<form method=POST action=""/vapals"">"
"RTN","SAMIUR",689,0)
. set nuhref=nuhref_"<input type=hidden name=""samiroute"" value=""newcase"">"
"RTN","SAMIUR",690,0)
. set nuhref=nuhref_"<input type=hidden name=""dfn"" value="_dfn_">"
"RTN","SAMIUR",691,0)
. set nuhref=nuhref_"<input type=hidden name=""siteid"" value="_site_">"
"RTN","SAMIUR",692,0)
. set nuhref=nuhref_"<input value="""_name_""" class=""btn btn-link"" role=""link"" type=""submit""></form>"
"RTN","SAMIUR",693,0)
. set SAMIPATS(ien,dfn,"workref")=nuhref
"RTN","SAMIUR",694,0)
. quit
"RTN","SAMIUR",695,0)
;
"RTN","SAMIUR",696,0)
merge ^gpl("worklist","pats")=SAMIPATS
"RTN","SAMIUR",697,0)
;
"RTN","SAMIUR",698,0)
quit ; end of WKLIST
"RTN","SAMIUR",699,0)
;
"RTN","SAMIUR",700,0)
;
"RTN","SAMIUR",701,0)
;
"RTN","SAMIUR",702,0)
EOR ; end of SAMIUR
"RTN","SAMIUR2")
0^5^B1106323315
"RTN","SAMIUR2",1,0)
SAMIUR2 ;ven/gpl - sami user reports ;2021-05-21T20:47Z
"RTN","SAMIUR2",2,0)
;;18.0;SAMI;**5,11**;2020-01;Build 21
"RTN","SAMIUR2",3,0)
;;1.18.0.11+i11
"RTN","SAMIUR2",4,0)
;
"RTN","SAMIUR2",5,0)
; SAMIUR2 contains subroutines for creating & implementing the
"RTN","SAMIUR2",6,0)
; report-definition table.
"RTN","SAMIUR2",7,0)
;
"RTN","SAMIUR2",8,0)
quit ; no entry from top
"RTN","SAMIUR2",9,0)
;
"RTN","SAMIUR2",10,0)
;
"RTN","SAMIUR2",11,0)
;
"RTN","SAMIUR2",12,0)
;@section 0 primary development
"RTN","SAMIUR2",13,0)
;
"RTN","SAMIUR2",14,0)
;
"RTN","SAMIUR2",15,0)
;
"RTN","SAMIUR2",16,0)
;@routine-credits
"RTN","SAMIUR2",17,0)
;@primary-dev George P. Lilly (gpl)
"RTN","SAMIUR2",18,0)
; [email protected]
"RTN","SAMIUR2",19,0)
;@primary-dev-org Vista Expertise Network (ven)
"RTN","SAMIUR2",20,0)
; http://vistaexpertise.net
"RTN","SAMIUR2",21,0)
;@copyright 2017/2021, gpl, all rights reserved
"RTN","SAMIUR2",22,0)
;@license see routine SAMIUL
"RTN","SAMIUR2",23,0)
;
"RTN","SAMIUR2",24,0)
;@last-updated 2021-05-21T20:47Z
"RTN","SAMIUR2",25,0)
;@application Screening Applications Management (SAM)
"RTN","SAMIUR2",26,0)
;@module Screening Applications Management - IELCAP (SAMI)
"RTN","SAMIUR2",27,0)
;@suite-of-files SAMI Forms (311.101-311.199)
"RTN","SAMIUR2",28,0)
;@version 1.18.0.11+i11
"RTN","SAMIUR2",29,0)
;@release-date 2020-01
"RTN","SAMIUR2",30,0)
;@patch-list **5,11**
"RTN","SAMIUR2",31,0)
;
"RTN","SAMIUR2",32,0)
;@additional-dev Frederick D. S. Marshall (toad)
"RTN","SAMIUR2",33,0)
; [email protected]
"RTN","SAMIUR2",34,0)
;@additional-dev Larry G. Carlson (lgc)
"RTN","SAMIUR2",35,0)
; [email protected]
"RTN","SAMIUR2",36,0)
;@additional-dev Alexis R. Carlson (arc)
"RTN","SAMIUR2",37,0)
; [email protected]
"RTN","SAMIUR2",38,0)
;@additional-dev Kenneth McGlothlen (mcglk)
"RTN","SAMIUR2",39,0)
; [email protected]
"RTN","SAMIUR2",40,0)
;
"RTN","SAMIUR2",41,0)
;@module-credits
"RTN","SAMIUR2",42,0)
;@project VA Partnership to Increase Access to Lung Screening
"RTN","SAMIUR2",43,0)
; (VA-PALS)
"RTN","SAMIUR2",44,0)
; http://va-pals.org/
"RTN","SAMIUR2",45,0)
;@funding 2017/2021, Bristol-Myers Squibb Foundation (bmsf)
"RTN","SAMIUR2",46,0)
; https://www.bms.com/about-us/responsibility/bristol-myers-squibb-foundation.html
"RTN","SAMIUR2",47,0)
;@partner-org Veterans Affairs Office of Rural health
"RTN","SAMIUR2",48,0)
; https://www.ruralhealth.va.gov/
"RTN","SAMIUR2",49,0)
;@partner-org International Early Lung Cancer Action Program (I-ELCAP)
"RTN","SAMIUR2",50,0)
; http://ielcap.com/
"RTN","SAMIUR2",51,0)
;@partner-org Paraxial Technologies (par)
"RTN","SAMIUR2",52,0)
; http://paraxialtech.com/
"RTN","SAMIUR2",53,0)
;@partner-org Open Source Electronic Health Record Alliance (OSEHRA)
"RTN","SAMIUR2",54,0)
; https://www.osehra.org/groups/va-pals-open-source-project-group
"RTN","SAMIUR2",55,0)
;
"RTN","SAMIUR2",56,0)
;@module-log repo github.com:VA-PALS-ELCAP/SAMI-VAPALS-ELCAP.git
"RTN","SAMIUR2",57,0)
;
"RTN","SAMIUR2",58,0)
; 2019-02-10/14 ven/gpl 1.18.0 d543f7b,f9869df,5e67489
"RTN","SAMIUR2",59,0)
; SAMIUR2: 1st version of revised user reports, progress, add rural/
"RTN","SAMIUR2",60,0)
; urban & compute.
"RTN","SAMIUR2",61,0)
;
"RTN","SAMIUR2",62,0)
; 2019-03-24/28 ven/gpl 1.18.0 1fd4a4c,0cebb36
"RTN","SAMIUR2",63,0)
; SAMIUR2: revise incomplete form report, remove ethnicity from
"RTN","SAMIUR2",64,0)
; enrollment report (we can't get it).
"RTN","SAMIUR2",65,0)
;
"RTN","SAMIUR2",66,0)
; 2019-05-08 ven/lgc 1.18.0 2172e51
"RTN","SAMIUR2",67,0)
; SAMIUR2: remove blank last line.
"RTN","SAMIUR2",68,0)
;
"RTN","SAMIUR2",69,0)
; 2019-06-21 par/dom 1.18.0 c6a4a57 VAP-352
"RTN","SAMIUR2",70,0)
; SAMIUR2: proper spelling of "follow up."
"RTN","SAMIUR2",71,0)
;
"RTN","SAMIUR2",72,0)
; 2019-08-03/04 ven/gpl 1.18.0 ffc94f6,d03557d,cd865e2 VPA-438
"RTN","SAMIUR2",73,0)
; SAMIUR2: fix smoking status on enrollment report, fix change log
"RTN","SAMIUR2",74,0)
; display, add pack years at intake to enrollment report, add
"RTN","SAMIUR2",75,0)
; requested changes to followup report.
"RTN","SAMIUR2",76,0)
;
"RTN","SAMIUR2",77,0)
; 2019-09-26 ven/gpl 1.18.0 92b1232 VAP-420
"RTN","SAMIUR2",78,0)
; SAMIUR2: smoking history, new cummulative packyear processing.
"RTN","SAMIUR2",79,0)
;
"RTN","SAMIUR2",80,0)
; 2019-10-01 par/dom 1.18.0 4caf1a9 VAP-344
"RTN","SAMIUR2",81,0)
; SAMIUR2: make capitalization consistent.
"RTN","SAMIUR2",82,0)
;
"RTN","SAMIUR2",83,0)
; 2020-01-01/05 ven/arc 1.18.0 399f854,62e3200
"RTN","SAMIUR2",84,0)
; SAMIUR2: add unmatched patient processing.
"RTN","SAMIUR2",85,0)
;
"RTN","SAMIUR2",86,0)
; 2020-01-10 ven/gpl 1.18.0 1590577
"RTN","SAMIUR2",87,0)
; SAMIUR2: fix return on RACE^SAMIUR2 for cache.
"RTN","SAMIUR2",88,0)
;
"RTN","SAMIUR2",89,0)
; 2020-05-13/14 ven/gpl 1.18.0.5+i5 61c7d20,b05df41
"RTN","SAMIUR2",90,0)
; SAMIUR2: add worklist functionality, fix gender & dob detection on
"RTN","SAMIUR2",91,0)
; reports.
"RTN","SAMIUR2",92,0)
;
"RTN","SAMIUR2",93,0)
; 2021-04-13 ven/gpl 1.18.0.11+i11 a12765b,f09ffef,fb399ab
"RTN","SAMIUR2",94,0)
; SAMIUR2: in RPTTBL,GENDER create inactive report, move last exam
"RTN","SAMIUR2",95,0)
; column on followup report, fix gender being blank in reports.
"RTN","SAMIUR2",96,0)
;
"RTN","SAMIUR2",97,0)
; 2021-05-20/21 ven/mcglk&toad 1.18.0.11+i11
"RTN","SAMIUR2",98,0)
; SAMIUR2: passim hdr comments, chg log, annotate, refactor, bump
"RTN","SAMIUR2",99,0)
; version.
"RTN","SAMIUR2",100,0)
;
"RTN","SAMIUR2",101,0)
;@contents
"RTN","SAMIUR2",102,0)
; RPTTBL build report-definition table
"RTN","SAMIUR2",103,0)
;
"RTN","SAMIUR2",104,0)
; $$DFN2SID study id for patient DFN
"RTN","SAMIUR2",105,0)
; $$MKNAV html for navigation to form
"RTN","SAMIUR2",106,0)
;
"RTN","SAMIUR2",107,0)
; $$SHDET table contents for smoking history
"RTN","SAMIUR2",108,0)
; CUMPY forms array of cummulative pack year data
"RTN","SAMIUR2",109,0)
; $$FMDT convert date to fileman format
"RTN","SAMIUR2",110,0)
; $$PKYDT pack-years from start & end & cigs/day
"RTN","SAMIUR2",111,0)
; $$PKY pack-years from years & packs/day
"RTN","SAMIUR2",112,0)
;
"RTN","SAMIUR2",113,0)
; $$AGE age
"RTN","SAMIUR2",114,0)
; $$BLINEDT baseline date
"RTN","SAMIUR2",115,0)
; $$CONTACT patient street address
"RTN","SAMIUR2",116,0)
; $$CTPROT ct protocol
"RTN","SAMIUR2",117,0)
; $$DOB date of birth
"RTN","SAMIUR2",118,0)
; $$FUDATE followup date
"RTN","SAMIUR2",119,0)
; $$GENDER gender
"RTN","SAMIUR2",120,0)
; $$IFORM name(s) of incomplete forms
"RTN","SAMIUR2",121,0)
; $$LASTEXM patient last exam
"RTN","SAMIUR2",122,0)
; $$MANPAT unmatched patient cell
"RTN","SAMIUR2",123,0)
; $$MATCH match button cell
"RTN","SAMIUR2",124,0)
; $$NAME name w/hyperlink
"RTN","SAMIUR2",125,0)
; $$PACKYRS smoking status
"RTN","SAMIUR2",126,0)
; $$POSSIBLE possible match cell
"RTN","SAMIUR2",127,0)
; $$RECOM recommendation
"RTN","SAMIUR2",128,0)
; $$RURAL patient's rural/urban status
"RTN","SAMIUR2",129,0)
; $$SID study id
"RTN","SAMIUR2",130,0)
; $$SMHIS smoking history cell
"RTN","SAMIUR2",131,0)
; $$SMKSTAT smoking status
"RTN","SAMIUR2",132,0)
; $$SSN social security number
"RTN","SAMIUR2",133,0)
; $$STUDYDT latest study date
"RTN","SAMIUR2",134,0)
; $$STUDYTYP latest study type
"RTN","SAMIUR2",135,0)
; $$VALS form-values cell
"RTN","SAMIUR2",136,0)
; $$WHEN followup text
"RTN","SAMIUR2",137,0)
; $$WORKPAT worklist patient name cell
"RTN","SAMIUR2",138,0)
;
"RTN","SAMIUR2",139,0)
; EPAT patient name w/nav to enrollment
"RTN","SAMIUR2",140,0)
; ETHNCTY ethnicity
"RTN","SAMIUR2",141,0)
; RACE race
"RTN","SAMIUR2",142,0)
; STATUS patient status
"RTN","SAMIUR2",143,0)
; WSVALS display form values from graph
"RTN","SAMIUR2",144,0)
;
"RTN","SAMIUR2",145,0)
;
"RTN","SAMIUR2",146,0)
;
"RTN","SAMIUR2",147,0)
;@section 1 ppi RPTTBL^SAMIUR2
"RTN","SAMIUR2",148,0)
;
"RTN","SAMIUR2",149,0)
;
"RTN","SAMIUR2",150,0)
;
"RTN","SAMIUR2",151,0)
RPTTBL(RPT,TYPE) ; build report-definition table
"RTN","SAMIUR2",152,0)
;
"RTN","SAMIUR2",153,0)
;;private;procedure;clean;silent;sac
"RTN","SAMIUR2",154,0)
;@called-by
"RTN","SAMIUR2",155,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",156,0)
; WSREPORT^SAMIUR1 (which then calls WSREPORT^SAMIUR)
"RTN","SAMIUR2",157,0)
;@calls none (defines calls for WSREPORT^SAMIUR to call)
"RTN","SAMIUR2",158,0)
;@input
"RTN","SAMIUR2",159,0)
; TYPE = report type to return
"RTN","SAMIUR2",160,0)
;@output
"RTN","SAMIUR2",161,0)
; .RPT report-definition table
"RTN","SAMIUR2",162,0)
;
"RTN","SAMIUR2",163,0)
; This routine could use a file or a graph in the next version
"RTN","SAMIUR2",164,0)
;
"RTN","SAMIUR2",165,0)
if TYPE="followup" do quit ;
"RTN","SAMIUR2",166,0)
. set RPT(1,"header")="F/U Date"
"RTN","SAMIUR2",167,0)
. set RPT(1,"routine")="$$FUDATE^SAMIUR2"
"RTN","SAMIUR2",168,0)
. set RPT(2,"header")="Name"
"RTN","SAMIUR2",169,0)
. set RPT(2,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",170,0)
. set RPT(3,"header")="SSN"
"RTN","SAMIUR2",171,0)
. set RPT(3,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",172,0)
. set RPT(4,"header")="Baseline Date"
"RTN","SAMIUR2",173,0)
. set RPT(4,"routine")="$$BLINEDT^SAMIUR2"
"RTN","SAMIUR2",174,0)
. set RPT(6,"header")="Recommend"
"RTN","SAMIUR2",175,0)
. set RPT(6,"routine")="$$RECOM^SAMIUR2"
"RTN","SAMIUR2",176,0)
. set RPT(7,"header")="When"
"RTN","SAMIUR2",177,0)
. set RPT(7,"routine")="$$WHEN^SAMIUR2"
"RTN","SAMIUR2",178,0)
. set RPT(5,"header")="Last Exam"
"RTN","SAMIUR2",179,0)
. set RPT(5,"routine")="$$LASTEXM^SAMIUR2"
"RTN","SAMIUR2",180,0)
. set RPT(8,"header")="Contact Information"
"RTN","SAMIUR2",181,0)
. set RPT(8,"routine")="$$CONTACT^SAMIUR2"
"RTN","SAMIUR2",182,0)
. quit
"RTN","SAMIUR2",183,0)
;
"RTN","SAMIUR2",184,0)
if TYPE="activity" do quit ;
"RTN","SAMIUR2",185,0)
. set RPT(1,"header")="Name"
"RTN","SAMIUR2",186,0)
. set RPT(1,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",187,0)
. set RPT(2,"header")="SSN"
"RTN","SAMIUR2",188,0)
. set RPT(2,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",189,0)
. set RPT(3,"header")="CT Date"
"RTN","SAMIUR2",190,0)
. set RPT(3,"routine")="$$STUDYDT^SAMIUR2"
"RTN","SAMIUR2",191,0)
. set RPT(4,"header")="Type"
"RTN","SAMIUR2",192,0)
. set RPT(4,"routine")="$$STUDYTYP^SAMIUR2"
"RTN","SAMIUR2",193,0)
. set RPT(5,"header")="CT Protocol"
"RTN","SAMIUR2",194,0)
. set RPT(5,"routine")="$$CTPROT^SAMIUR2"
"RTN","SAMIUR2",195,0)
. set RPT(6,"header")="Follow-up"
"RTN","SAMIUR2",196,0)
. set RPT(6,"routine")="$$RECOM^SAMIUR2"
"RTN","SAMIUR2",197,0)
. set RPT(7,"header")="When"
"RTN","SAMIUR2",198,0)
. set RPT(7,"routine")="$$WHEN^SAMIUR2"
"RTN","SAMIUR2",199,0)
. set RPT(8,"header")="on Date"
"RTN","SAMIUR2",200,0)
. set RPT(8,"routine")="$$FUDATE^SAMIUR2"
"RTN","SAMIUR2",201,0)
. quit
"RTN","SAMIUR2",202,0)
;
"RTN","SAMIUR2",203,0)
if TYPE="enrollment" do quit ;
"RTN","SAMIUR2",204,0)
. set RPT(1,"header")="Name"
"RTN","SAMIUR2",205,0)
. set RPT(1,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",206,0)
. set RPT(2,"header")="SSN"
"RTN","SAMIUR2",207,0)
. set RPT(2,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",208,0)
. set RPT(3,"header")="CT Date"
"RTN","SAMIUR2",209,0)
. set RPT(3,"routine")="$$STUDYDT^SAMIUR2"
"RTN","SAMIUR2",210,0)
. set RPT(4,"header")="Gender"
"RTN","SAMIUR2",211,0)
. set RPT(4,"routine")="$$GENDER^SAMIUR2"
"RTN","SAMIUR2",212,0)
. ; set RPT(5,"header")="Race"
"RTN","SAMIUR2",213,0)
. ; set RPT(5,"routine")="$$RACE^SAMIUR2"
"RTN","SAMIUR2",214,0)
. set RPT(6,"header")="Age"
"RTN","SAMIUR2",215,0)
. set RPT(6,"routine")="$$AGE^SAMIUR2"
"RTN","SAMIUR2",216,0)
. set RPT(7,"header")="Urban/Rural"
"RTN","SAMIUR2",217,0)
. set RPT(7,"routine")="$$RURAL^SAMIUR2"
"RTN","SAMIUR2",218,0)
. set RPT(8,"header")="Smoking Status"
"RTN","SAMIUR2",219,0)
. set RPT(8,"routine")="$$SMKSTAT^SAMIUR2"
"RTN","SAMIUR2",220,0)
. set RPT(9,"header")="Pack Years at Intake"
"RTN","SAMIUR2",221,0)
. set RPT(9,"routine")="$$PACKYRS^SAMIUR2"
"RTN","SAMIUR2",222,0)
. quit
"RTN","SAMIUR2",223,0)
;
"RTN","SAMIUR2",224,0)
if TYPE="inactive" do quit ;
"RTN","SAMIUR2",225,0)
. set RPT(1,"header")="Name"
"RTN","SAMIUR2",226,0)
. set RPT(1,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",227,0)
. set RPT(2,"header")="SSN"
"RTN","SAMIUR2",228,0)
. set RPT(2,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",229,0)
. set RPT(3,"header")="CT Date"
"RTN","SAMIUR2",230,0)
. set RPT(3,"routine")="$$STUDYDT^SAMIUR2"
"RTN","SAMIUR2",231,0)
. set RPT(4,"header")="Gender"
"RTN","SAMIUR2",232,0)
. set RPT(4,"routine")="$$GENDER^SAMIUR2"
"RTN","SAMIUR2",233,0)
. ; set RPT(5,"header")="Race"
"RTN","SAMIUR2",234,0)
. ; set RPT(5,"routine")="$$RACE^SAMIUR2"
"RTN","SAMIUR2",235,0)
. set RPT(6,"header")="Age"
"RTN","SAMIUR2",236,0)
. set RPT(6,"routine")="$$AGE^SAMIUR2"
"RTN","SAMIUR2",237,0)
. set RPT(7,"header")="Urban/Rural"
"RTN","SAMIUR2",238,0)
. set RPT(7,"routine")="$$RURAL^SAMIUR2"
"RTN","SAMIUR2",239,0)
. set RPT(8,"header")="Smoking Status"
"RTN","SAMIUR2",240,0)
. set RPT(8,"routine")="$$SMKSTAT^SAMIUR2"
"RTN","SAMIUR2",241,0)
. set RPT(9,"header")="Pack Years at Intake"
"RTN","SAMIUR2",242,0)
. set RPT(9,"routine")="$$PACKYRS^SAMIUR2"
"RTN","SAMIUR2",243,0)
. quit
"RTN","SAMIUR2",244,0)
;
"RTN","SAMIUR2",245,0)
if TYPE="incomplete" do quit ;
"RTN","SAMIUR2",246,0)
. set RPT(1,"header")="Enrollment date"
"RTN","SAMIUR2",247,0)
. set RPT(1,"routine")="$$BLINEDT^SAMIUR2"
"RTN","SAMIUR2",248,0)
. set RPT(2,"header")="Name"
"RTN","SAMIUR2",249,0)
. set RPT(2,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",250,0)
. set RPT(3,"header")="SSN"
"RTN","SAMIUR2",251,0)
. set RPT(3,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",252,0)
. set RPT(4,"header")="Incomplete form"
"RTN","SAMIUR2",253,0)
. set RPT(4,"routine")="$$IFORM^SAMIUR2"
"RTN","SAMIUR2",254,0)
. quit
"RTN","SAMIUR2",255,0)
;
"RTN","SAMIUR2",256,0)
if TYPE="missingct" do quit ;
"RTN","SAMIUR2",257,0)
. set RPT(1,"header")="Enrollment date"
"RTN","SAMIUR2",258,0)
. set RPT(1,"routine")="$$BLINEDT^SAMIUR2"
"RTN","SAMIUR2",259,0)
. set RPT(2,"header")="Name"
"RTN","SAMIUR2",260,0)
. set RPT(2,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",261,0)
. set RPT(3,"header")="SSN"
"RTN","SAMIUR2",262,0)
. set RPT(3,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",263,0)
. quit
"RTN","SAMIUR2",264,0)
;
"RTN","SAMIUR2",265,0)
if TYPE="cumpy" do quit ;
"RTN","SAMIUR2",266,0)
. set RPT(1,"header")="Name"
"RTN","SAMIUR2",267,0)
. set RPT(1,"routine")="$$NAME^SAMIUR2"
"RTN","SAMIUR2",268,0)
. set RPT(2,"header")="Study ID"
"RTN","SAMIUR2",269,0)
. set RPT(2,"routine")="$$SID^SAMIUR2"
"RTN","SAMIUR2",270,0)
. set RPT(3,"header")="Form Values"
"RTN","SAMIUR2",271,0)
. set RPT(3,"routine")="$$VALS^SAMIUR2"
"RTN","SAMIUR2",272,0)
. set RPT(4,"header")="Smoking History"
"RTN","SAMIUR2",273,0)
. set RPT(4,"routine")="$$SMHIS^SAMIUR2"
"RTN","SAMIUR2",274,0)
. quit
"RTN","SAMIUR2",275,0)
;
"RTN","SAMIUR2",276,0)
if TYPE="unmatched" do ;
"RTN","SAMIUR2",277,0)
. set RPT(1,"header")="Unmatched Entry"
"RTN","SAMIUR2",278,0)
. set RPT(1,"routine")="$$MANPAT^SAMIUR2"
"RTN","SAMIUR2",279,0)
. set RPT(2,"header")="Possible Match"
"RTN","SAMIUR2",280,0)
. set RPT(2,"routine")="$$POSSIBLE^SAMIUR2"
"RTN","SAMIUR2",281,0)
. set RPT(3,"header")="Match Control"
"RTN","SAMIUR2",282,0)
. set RPT(3,"routine")="$$MATCH^SAMIUR2"
"RTN","SAMIUR2",283,0)
. quit
"RTN","SAMIUR2",284,0)
;
"RTN","SAMIUR2",285,0)
if TYPE="worklist" do quit ;
"RTN","SAMIUR2",286,0)
. set RPT(1,"header")="Name"
"RTN","SAMIUR2",287,0)
. set RPT(1,"routine")="$$WORKPAT^SAMIUR2"
"RTN","SAMIUR2",288,0)
. set RPT(2,"header")="SSN"
"RTN","SAMIUR2",289,0)
. set RPT(2,"routine")="$$SSN^SAMIUR2"
"RTN","SAMIUR2",290,0)
. set RPT(3,"header")="Date of birth"
"RTN","SAMIUR2",291,0)
. set RPT(3,"routine")="$$DOB^SAMIUR2"
"RTN","SAMIUR2",292,0)
. set RPT(4,"header")="Gender"
"RTN","SAMIUR2",293,0)
. set RPT(4,"routine")="$$GENDER^SAMIUR2"
"RTN","SAMIUR2",294,0)
. quit
"RTN","SAMIUR2",295,0)
;
"RTN","SAMIUR2",296,0)
quit ; end of ppi RPTTBL^SAMIUR2
"RTN","SAMIUR2",297,0)
;
"RTN","SAMIUR2",298,0)
;
"RTN","SAMIUR2",299,0)
;
"RTN","SAMIUR2",300,0)
;@section 2 shared subroutines
"RTN","SAMIUR2",301,0)
;
"RTN","SAMIUR2",302,0)
;
"RTN","SAMIUR2",303,0)
;
"RTN","SAMIUR2",304,0)
DFN2SID(DFN) ;studyid for patient DFN
"RTN","SAMIUR2",305,0)
;
"RTN","SAMIUR2",306,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",307,0)
;@called-by
"RTN","SAMIUR2",308,0)
; $$SID^SAMIUR2
"RTN","SAMIUR2",309,0)
; $$IFORM^SAMIUR2
"RTN","SAMIUR2",310,0)
; $$VALS^SAMIUR2
"RTN","SAMIUR2",311,0)
; $$SMHIS^SAMIUR2
"RTN","SAMIUR2",312,0)
;@calls
"RTN","SAMIUR2",313,0)
; $$setroot^%wd
"RTN","SAMIUR2",314,0)
;
"RTN","SAMIUR2",315,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",316,0)
;
"RTN","SAMIUR2",317,0)
quit $get(@root@(DFN,"sisid")) ; end of $$DFN2SID
"RTN","SAMIUR2",318,0)
;
"RTN","SAMIUR2",319,0)
;
"RTN","SAMIUR2",320,0)
;
"RTN","SAMIUR2",321,0)
MKNAV(sid,zform,fname,form) ; html for navigation to form
"RTN","SAMIUR2",322,0)
;
"RTN","SAMIUR2",323,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",324,0)
;@called-by
"RTN","SAMIUR2",325,0)
; $$IFORM^SAMIUR2
"RTN","SAMIUR2",326,0)
;@calls none
"RTN","SAMIUR2",327,0)
;
"RTN","SAMIUR2",328,0)
new rtn set rtn="<form method=""post"" action=""/vapals"">"
"RTN","SAMIUR2",329,0)
set rtn=rtn_"<input name=""samiroute"" value=""form"" type=""hidden"">"
"RTN","SAMIUR2",330,0)
set rtn=rtn_" <input name=""studyid"" value="""_sid_""" type=""hidden"">"
"RTN","SAMIUR2",331,0)
set rtn=rtn_" <input name=""form"" value=""vapals:"_zform_""" type=""hidden"">"
"RTN","SAMIUR2",332,0)
set rtn=rtn_" <input value="""_fname_""" class=""btn btn-link"" role=""link"" type=""submit""></form>"_$char(13)
"RTN","SAMIUR2",333,0)
;
"RTN","SAMIUR2",334,0)
quit rtn ; end of $$MKNAV
"RTN","SAMIUR2",335,0)
;
"RTN","SAMIUR2",336,0)
;
"RTN","SAMIUR2",337,0)
;
"RTN","SAMIUR2",338,0)
;@section 3 smoking history subroutines
"RTN","SAMIUR2",339,0)
;
"RTN","SAMIUR2",340,0)
;
"RTN","SAMIUR2",341,0)
;
"RTN","SAMIUR2",342,0)
SHDET(SID,KEY) ; table contents for smoking history
"RTN","SAMIUR2",343,0)
;
"RTN","SAMIUR2",344,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",345,0)
;@called-by
"RTN","SAMIUR2",346,0)
; LOAD^SAMIFLD
"RTN","SAMIUR2",347,0)
; $$SMHIS^SAMIUR2
"RTN","SAMIUR2",348,0)
;@calls
"RTN","SAMIUR2",349,0)
; CUMPY
"RTN","SAMIUR2",350,0)
;
"RTN","SAMIUR2",351,0)
; KEY is the form key of the caller for "current" marker insertion
"RTN","SAMIUR2",352,0)
;
"RTN","SAMIUR2",353,0)
new pyary
"RTN","SAMIUR2",354,0)
if $get(KEY)="" set KEY=""
"RTN","SAMIUR2",355,0)
do CUMPY("pyary",SID,KEY)
"RTN","SAMIUR2",356,0)
;
"RTN","SAMIUR2",357,0)
new current set current=$get(pyary("current"))
"RTN","SAMIUR2",358,0)
new rptcnt set rptcnt=0
"RTN","SAMIUR2",359,0)
new rptmax set rptmax=$order(pyary("rpt",""),-1)
"RTN","SAMIUR2",360,0)
quit:+rptmax=0
"RTN","SAMIUR2",361,0)
;
"RTN","SAMIUR2",362,0)
new return set return=""
"RTN","SAMIUR2",363,0)
new zi set zi=""
"RTN","SAMIUR2",364,0)
for zi=1:1:rptmax do ;
"RTN","SAMIUR2",365,0)
. set rptcnt=rptcnt+1
"RTN","SAMIUR2",366,0)
. if rptcnt=current set return=return_"<tr data-current-form=""true"">"
"RTN","SAMIUR2",367,0)
. else set return=return_"<tr>"
"RTN","SAMIUR2",368,0)
. set return=return_"<td>"_pyary("rpt",rptcnt,1)_"</td>"
"RTN","SAMIUR2",369,0)
. set return=return_"<td class=""reported-date"">"_pyary("rpt",rptcnt,2)_"</td>"
"RTN","SAMIUR2",370,0)
. set return=return_"<td class=""pack-years"">"_pyary("rpt",rptcnt,3)_"</td>"
"RTN","SAMIUR2",371,0)
. set return=return_"<td class=""cumulative-pack-years"">"_pyary("rpt",rptcnt,4)_"</td>"
"RTN","SAMIUR2",372,0)
. set return=return_"</tr>"
"RTN","SAMIUR2",373,0)
. quit
"RTN","SAMIUR2",374,0)
;
"RTN","SAMIUR2",375,0)
quit return ; end of ppi $$SHDET^SAMIUR2
"RTN","SAMIUR2",376,0)
;
"RTN","SAMIUR2",377,0)
;
"RTN","SAMIUR2",378,0)
;
"RTN","SAMIUR2",379,0)
CUMPY(PYARY,sid,KEY) ; forms array of cummulative pack year data
"RTN","SAMIUR2",380,0)
;
"RTN","SAMIUR2",381,0)
;;ppi;procedure;clean;silent;sac
"RTN","SAMIUR2",382,0)
;@called-by
"RTN","SAMIUR2",383,0)
; SSTATUS^SAMINOT2
"RTN","SAMIUR2",384,0)
; SSTATUS^SAMINOT3
"RTN","SAMIUR2",385,0)
; $$SHDET
"RTN","SAMIUR2",386,0)
;@calls
"RTN","SAMIUR2",387,0)
; $$setroot^%wd
"RTN","SAMIUR2",388,0)
; GETITEMS^SAMICASE
"RTN","SAMIUR2",389,0)
; $$GETDTKEY^SAMICAS2
"RTN","SAMIUR2",390,0)
; $$KEY2DSPD^SAMICAS2
"RTN","SAMIUR2",391,0)
; $$FMDT
"RTN","SAMIUR2",392,0)
; $$PKYDT
"RTN","SAMIUR2",393,0)
;
"RTN","SAMIUR2",394,0)
; PYARY passed by name
"RTN","SAMIUR2",395,0)
; KEY is the current form key for matching to a row
"RTN","SAMIUR2",396,0)
;
"RTN","SAMIUR2",397,0)
kill @PYARY
"RTN","SAMIUR2",398,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",399,0)
; new sid set sid=$get(@root@(DFN,"samistudyid"))
"RTN","SAMIUR2",400,0)
; quit:sid=""
"RTN","SAMIUR2",401,0)
;
"RTN","SAMIUR2",402,0)
new items set items=""
"RTN","SAMIUR2",403,0)
do GETITEMS^SAMICASE("items",sid)
"RTN","SAMIUR2",404,0)
quit:'$data(items)
"RTN","SAMIUR2",405,0)
merge @PYARY@("items")=items
"RTN","SAMIUR2",406,0)
;
"RTN","SAMIUR2",407,0)
new siform set siform=$order(items("siform"))
"RTN","SAMIUR2",408,0)
quit:siform=""
"RTN","SAMIUR2",409,0)
if siform=$get(KEY) set @PYARY@("current")=1 ;this row is the current form
"RTN","SAMIUR2",410,0)
;
"RTN","SAMIUR2",411,0)
set @PYARY@("rpt",1,1)="Intake" ; Form
"RTN","SAMIUR2",412,0)
new kdate set kdate=$$GETDTKEY^SAMICAS2(siform)
"RTN","SAMIUR2",413,0)
new keydate set keydate=$$KEY2DSPD^SAMICAS2(kdate)
"RTN","SAMIUR2",414,0)
set @PYARY@("rpt",1,2)=keydate ; Reported Date
"RTN","SAMIUR2",415,0)
;
"RTN","SAMIUR2",416,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",417,0)
new lastcum set lastcum=$get(@vals@("sippy"))
"RTN","SAMIUR2",418,0)
set @PYARY@("rpt",1,3)=lastcum ; Pack Years
"RTN","SAMIUR2",419,0)
set @PYARY@("rpt",1,4)=lastcum ; Cumulative
"RTN","SAMIUR2",420,0)
;
"RTN","SAMIUR2",421,0)
new lastdt set lastdt=keydate
"RTN","SAMIUR2",422,0)
new rptcnt set rptcnt=1
"RTN","SAMIUR2",423,0)
new zi set zi=""
"RTN","SAMIUR2",424,0)
for do quit:zi="" ;
"RTN","SAMIUR2",425,0)
. set zi=$order(items("type","vapals:fuform",zi))
"RTN","SAMIUR2",426,0)
. quit:zi=""
"RTN","SAMIUR2",427,0)
. ;
"RTN","SAMIUR2",428,0)
. set rptcnt=rptcnt+1
"RTN","SAMIUR2",429,0)
. set @PYARY@("rpt",rptcnt,1)="Follow-up"
"RTN","SAMIUR2",430,0)
. new kdate set kdate=$$GETDTKEY^SAMICAS2(zi)
"RTN","SAMIUR2",431,0)
. new keydate set keydate=$$KEY2DSPD^SAMICAS2(kdate)
"RTN","SAMIUR2",432,0)
. set @PYARY@("rpt",rptcnt,2)=keydate ; Reported Date
"RTN","SAMIUR2",433,0)
. ;
"RTN","SAMIUR2",434,0)
. set vals=$name(@root@("graph",sid,zi))
"RTN","SAMIUR2",435,0)
. new newpd set newpd=$g(@vals@("sippd"))
"RTN","SAMIUR2",436,0)
. new usedate set usedate=keydate
"RTN","SAMIUR2",437,0)
. new siq set siq=$get(@vals@("siq")) ; quit date on followup form
"RTN","SAMIUR2",438,0)
. if siq'="" do ; quit date provided
"RTN","SAMIUR2",439,0)
. . quit:$$FMDT(siq)<$$FMDT(lastdt) ; quit date out of range
"RTN","SAMIUR2",440,0)
. . quit:$$FMDT(siq)>$$FMDT(keydate) ; quit date out of range
"RTN","SAMIUR2",441,0)
. . set usedate=siq ; use the quit date as end of range
"RTN","SAMIUR2",442,0)
. . quit
"RTN","SAMIUR2",443,0)
. new newpy set newpy=$$PKYDT(lastdt,usedate,newpd)
"RTN","SAMIUR2",444,0)
. set @vals@("sippy")=newpy
"RTN","SAMIUR2",445,0)
. ;
"RTN","SAMIUR2",446,0)
. set ^gpl("current","KEY")=$get(KEY)
"RTN","SAMIUR2",447,0)
. set ^gpl("current","zi")=zi
"RTN","SAMIUR2",448,0)
. if zi=$get(KEY) do
"RTN","SAMIUR2",449,0)
. . set @PYARY@("current")=rptcnt ;this row is the current form
"RTN","SAMIUR2",450,0)
. . quit
"RTN","SAMIUR2",451,0)
. ;
"RTN","SAMIUR2",452,0)
. new newcum set newcum=""
"RTN","SAMIUR2",453,0)
. if newpy'="" set newcum=lastcum+newpy
"RTN","SAMIUR2",454,0)
. set @PYARY@("rpt",rptcnt,3)=newpy ; Pack Years
"RTN","SAMIUR2",455,0)
. set @PYARY@("rpt",rptcnt,4)=newcum ; Cumulative
"RTN","SAMIUR2",456,0)
. set lastdt=keydate
"RTN","SAMIUR2",457,0)
. set lastcum=newcum
"RTN","SAMIUR2",458,0)
. quit
"RTN","SAMIUR2",459,0)
;
"RTN","SAMIUR2",460,0)
quit ; end of ppi CUMPY^SAMIUR2
"RTN","SAMIUR2",461,0)
;
"RTN","SAMIUR2",462,0)
;
"RTN","SAMIUR2",463,0)
;
"RTN","SAMIUR2",464,0)
FMDT(ZDT) ; convert date to fileman format
"RTN","SAMIUR2",465,0)
;
"RTN","SAMIUR2",466,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",467,0)
;@called-by
"RTN","SAMIUR2",468,0)
; MKPTLK^SAMIHOM4
"RTN","SAMIUR2",469,0)
; $$PKYDT
"RTN","SAMIUR2",470,0)
; CUMPY
"RTN","SAMIUR2",471,0)
;@calls
"RTN","SAMIUR2",472,0)
; ^%DT
"RTN","SAMIUR2",473,0)
;
"RTN","SAMIUR2",474,0)
new Y
"RTN","SAMIUR2",475,0)
new X set X=ZDT
"RTN","SAMIUR2",476,0)
do ^%DT
"RTN","SAMIUR2",477,0)
;
"RTN","SAMIUR2",478,0)
quit Y ; end of ppi $$FMDT^SAMIUR2
"RTN","SAMIUR2",479,0)
;
"RTN","SAMIUR2",480,0)
;
"RTN","SAMIUR2",481,0)
;
"RTN","SAMIUR2",482,0)
PKYDT(STDT,ENDT,PKS,CIGS) ; pack-years from start & end & cigs/day
"RTN","SAMIUR2",483,0)
;
"RTN","SAMIUR2",484,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",485,0)
;@called-by
"RTN","SAMIUR2",486,0)
; CUMPY
"RTN","SAMIUR2",487,0)
;@calls
"RTN","SAMIUR2",488,0)
; $$FMDT
"RTN","SAMIUR2",489,0)
; $$FMDIFF^XLFDT
"RTN","SAMIUR2",490,0)
; $$PKY
"RTN","SAMIUR2",491,0)
;
"RTN","SAMIUR2",492,0)
; if PKS is not provided, 20/CIGS will be used for packs per day
"RTN","SAMIUR2",493,0)
;
"RTN","SAMIUR2",494,0)
new pkyr set pkyr=""
"RTN","SAMIUR2",495,0)
if $get(PKS)="" do ;
"RTN","SAMIUR2",496,0)
. if $get(CIGS)="" set PKS=0 quit ;
"RTN","SAMIUR2",497,0)
. set PKS=20/CIGS
"RTN","SAMIUR2",498,0)
. quit
"RTN","SAMIUR2",499,0)
new zst set zst=$$FMDT(STDT)
"RTN","SAMIUR2",500,0)
set:zst=-1 zst=STDT
"RTN","SAMIUR2",501,0)
;
"RTN","SAMIUR2",502,0)
new zend set zend=$$FMDT(ENDT)
"RTN","SAMIUR2",503,0)
set:zend=-1 zend=ENDT ; probably a fileman date already
"RTN","SAMIUR2",504,0)
;
"RTN","SAMIUR2",505,0)
new zdif set zdif=$$FMDIFF^XLFDT(zend,zst)/365.24
"RTN","SAMIUR2",506,0)
;
"RTN","SAMIUR2",507,0)
set pkyr=$$PKY(zdif,PKS)
"RTN","SAMIUR2",508,0)
;
"RTN","SAMIUR2",509,0)
quit pkyr ; end of $$PKYDT
"RTN","SAMIUR2",510,0)
;
"RTN","SAMIUR2",511,0)
;
"RTN","SAMIUR2",512,0)
;
"RTN","SAMIUR2",513,0)
PKY(YRS,PKS) ; pack-years from years & packs/day
"RTN","SAMIUR2",514,0)
;
"RTN","SAMIUR2",515,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",516,0)
;@called-by
"RTN","SAMIUR2",517,0)
; $$PKYDT
"RTN","SAMIUR2",518,0)
;@calls none
"RTN","SAMIUR2",519,0)
;@input
"RTN","SAMIUR2",520,0)
; YRS = years
"RTN","SAMIUR2",521,0)
; PKS = packs/day
"RTN","SAMIUR2",522,0)
;
"RTN","SAMIUR2",523,0)
new rtn set rtn=""
"RTN","SAMIUR2",524,0)
set rtn=YRS*PKS
"RTN","SAMIUR2",525,0)
if $length($piece(rtn,".",2))>2 do ;
"RTN","SAMIUR2",526,0)
. new zdec set zdec=$piece(rtn,".",2)
"RTN","SAMIUR2",527,0)
. set rtn=$piece(rtn,".",1)_"."_$extract(zdec,1,2)
"RTN","SAMIUR2",528,0)
. if $extract(zdec,3)>4 set rtn=rtn+.01
"RTN","SAMIUR2",529,0)
. quit
"RTN","SAMIUR2",530,0)
set:rtn'["." rtn=rtn_".0"
"RTN","SAMIUR2",531,0)
;
"RTN","SAMIUR2",532,0)
quit rtn ; end of $$PKY
"RTN","SAMIUR2",533,0)
;
"RTN","SAMIUR2",534,0)
;
"RTN","SAMIUR2",535,0)
;
"RTN","SAMIUR2",536,0)
;@section 4 active column ppis
"RTN","SAMIUR2",537,0)
;
"RTN","SAMIUR2",538,0)
;
"RTN","SAMIUR2",539,0)
;
"RTN","SAMIUR2",540,0)
AGE(zdt,dfn,SAMIPATS) ; age
"RTN","SAMIUR2",541,0)
;
"RTN","SAMIUR2",542,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",543,0)
;@called-by
"RTN","SAMIUR2",544,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",545,0)
;@calls
"RTN","SAMIUR2",546,0)
; $$setroot^%wd
"RTN","SAMIUR2",547,0)
; ^%DT
"RTN","SAMIUR2",548,0)
; $$NOW^XLFDT
"RTN","SAMIUR2",549,0)
; $$FMDIFF^XLFDT
"RTN","SAMIUR2",550,0)
;
"RTN","SAMIUR2",551,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",552,0)
new dob set dob=$get(@root@(dfn,"sbdob")) ; dob in VAPALS format
"RTN","SAMIUR2",553,0)
;
"RTN","SAMIUR2",554,0)
new Y
"RTN","SAMIUR2",555,0)
new X set X=dob
"RTN","SAMIUR2",556,0)
do ^%DT
"RTN","SAMIUR2",557,0)
;
"RTN","SAMIUR2",558,0)
new age set age=$piece($$FMDIFF^XLFDT($$NOW^XLFDT,Y)/365,".")
"RTN","SAMIUR2",559,0)
;
"RTN","SAMIUR2",560,0)
quit age ; end of ppi $$AGE^SAMIUR2
"RTN","SAMIUR2",561,0)
;
"RTN","SAMIUR2",562,0)
;
"RTN","SAMIUR2",563,0)
;
"RTN","SAMIUR2",564,0)
BLINEDT(zdt,dfn,SAMIPATS) ; baseline date
"RTN","SAMIUR2",565,0)
;
"RTN","SAMIUR2",566,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",567,0)
;@called-by
"RTN","SAMIUR2",568,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",569,0)
;@calls none
"RTN","SAMIUR2",570,0)
;
"RTN","SAMIUR2",571,0)
new bldt set bldt=$get(SAMIPATS(zdt,dfn,"edate"))
"RTN","SAMIUR2",572,0)
;
"RTN","SAMIUR2",573,0)
quit bldt ; end of ppi $$BLINEDT^SAMIUR2
"RTN","SAMIUR2",574,0)
;
"RTN","SAMIUR2",575,0)
;
"RTN","SAMIUR2",576,0)
;
"RTN","SAMIUR2",577,0)
CONTACT(zdt,dfn,SAMIPATS) ; patient street address
"RTN","SAMIUR2",578,0)
;
"RTN","SAMIUR2",579,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",580,0)
;@called-by
"RTN","SAMIUR2",581,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",582,0)
;@calls
"RTN","SAMIUR2",583,0)
; $$setroot^%wd
"RTN","SAMIUR2",584,0)
;
"RTN","SAMIUR2",585,0)
new contact set contact=""
"RTN","SAMIUR2",586,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",587,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",588,0)
new siform set siform=$get(SAMIPATS(zdt,dfn,"siform"))
"RTN","SAMIUR2",589,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",590,0)
set contact=$get(@vals@("sinamef"))_" "_$get(@vals@("sinamel"))
"RTN","SAMIUR2",591,0)
set contact=contact_"<br>"_$get(@vals@("sipsa"))
"RTN","SAMIUR2",592,0)
if $get(@vals@("sipan"))'="" do
"RTN","SAMIUR2",593,0)
. set contact=contact_" Apt "_$get(@vals@("sipan"))
"RTN","SAMIUR2",594,0)
. quit
"RTN","SAMIUR2",595,0)
if $get(@vals@("sipcn"))'="" do
"RTN","SAMIUR2",596,0)
. set contact=contact_"<br>County "_@vals@("sipcn")
"RTN","SAMIUR2",597,0)
. quit
"RTN","SAMIUR2",598,0)
if $get(@vals@("sipc"))'="" do
"RTN","SAMIUR2",599,0)
. set contact=contact_" <br>"_@vals@("sipc")_", "
"RTN","SAMIUR2",600,0)
. quit
"RTN","SAMIUR2",601,0)
set contact=contact_" "_$get(@vals@("sips"))_" "_$get(@vals@("sipz"))_" "
"RTN","SAMIUR2",602,0)
;
"RTN","SAMIUR2",603,0)
quit contact ; end of ppi $$CONTACT^SAMIUR2
"RTN","SAMIUR2",604,0)
;
"RTN","SAMIUR2",605,0)
;
"RTN","SAMIUR2",606,0)
;
"RTN","SAMIUR2",607,0)
CTPROT(zdt,dfn,SAMIPATS) ; ct protocol
"RTN","SAMIUR2",608,0)
;
"RTN","SAMIUR2",609,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",610,0)
;@called-by
"RTN","SAMIUR2",611,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",612,0)
;@calls
"RTN","SAMIUR2",613,0)
; $$setroot^%wd
"RTN","SAMIUR2",614,0)
;
"RTN","SAMIUR2",615,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",616,0)
new ceform set ceform=$get(SAMIPATS(zdt,dfn,"ceform"))
"RTN","SAMIUR2",617,0)
quit:ceform="" ""
"RTN","SAMIUR2",618,0)
;
"RTN","SAMIUR2",619,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",620,0)
new vals set vals=$name(@root@("graph",sid,ceform))
"RTN","SAMIUR2",621,0)
new cectp set cectp=$get(@vals@("cectp"))
"RTN","SAMIUR2",622,0)
new ctyp set ctyp=$select(cectp="l":"Low-Dose CT",cectp="d":"Standard CT",cectp="i":"Limited",1:"")
"RTN","SAMIUR2",623,0)
;
"RTN","SAMIUR2",624,0)
quit ctyp ; end of ppi $$CTPROT^SAMIUR2
"RTN","SAMIUR2",625,0)
;
"RTN","SAMIUR2",626,0)
;
"RTN","SAMIUR2",627,0)
;
"RTN","SAMIUR2",628,0)
DOB(ien,dfn,SAMIPATS) ; date of birth
"RTN","SAMIUR2",629,0)
;
"RTN","SAMIUR2",630,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",631,0)
;@called-by
"RTN","SAMIUR2",632,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",633,0)
;@calls none
"RTN","SAMIUR2",634,0)
;
"RTN","SAMIUR2",635,0)
new dob set dob=$get(SAMIPATS(ien,dfn,"dob"))
"RTN","SAMIUR2",636,0)
if dob="" set dob=$get(SAMIPATS(ien,dfn,"sbdob"))
"RTN","SAMIUR2",637,0)
;
"RTN","SAMIUR2",638,0)
quit dob ; end of ppi $$DOB^SAMIUR2
"RTN","SAMIUR2",639,0)
;
"RTN","SAMIUR2",640,0)
;
"RTN","SAMIUR2",641,0)
;
"RTN","SAMIUR2",642,0)
FUDATE(zdt,dfn,SAMIPATS) ; followup date
"RTN","SAMIUR2",643,0)
;
"RTN","SAMIUR2",644,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",645,0)
;@called-by
"RTN","SAMIUR2",646,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",647,0)
;@calls none
"RTN","SAMIUR2",648,0)
;
"RTN","SAMIUR2",649,0)
new fud set fud="fudate"
"RTN","SAMIUR2",650,0)
;
"RTN","SAMIUR2",651,0)
quit $get(SAMIPATS(zdt,dfn,"cefud")) ; end of ppi $$FUDATE^SAMIUR2
"RTN","SAMIUR2",652,0)
;
"RTN","SAMIUR2",653,0)
;
"RTN","SAMIUR2",654,0)
;
"RTN","SAMIUR2",655,0)
GENDER(zdt,dfn,SAMIPATS) ; gender
"RTN","SAMIUR2",656,0)
;
"RTN","SAMIUR2",657,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",658,0)
;@called-by
"RTN","SAMIUR2",659,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",660,0)
;@calls
"RTN","SAMIUR2",661,0)
; $$setroot^%wd
"RTN","SAMIUR2",662,0)
;
"RTN","SAMIUR2",663,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",664,0)
new lroot set lroot=$$setroot^%wd("patient-lookup")
"RTN","SAMIUR2",665,0)
;
"RTN","SAMIUR2",666,0)
new gend set gend=$get(SAMIPATS(zdt,dfn,"gender"))
"RTN","SAMIUR2",667,0)
if gend="" do
"RTN","SAMIUR2",668,0)
. new pien set pien=$order(@root@("dfn",dfn,""))
"RTN","SAMIUR2",669,0)
. if pien'="" do ;
"RTN","SAMIUR2",670,0)
. . set gend=$get(@root@(pien,"sex"))
"RTN","SAMIUR2",671,0)
. . if gend="" set gend=$get(@root@(pien,"gender"))
"RTN","SAMIUR2",672,0)
. . quit
"RTN","SAMIUR2",673,0)
. if gend="" do ;
"RTN","SAMIUR2",674,0)
. . new lien set lien=$order(@lroot@("dfn",dfn,""))
"RTN","SAMIUR2",675,0)
. . set gend=$get(@lroot@(lien,"gender"))
"RTN","SAMIUR2",676,0)
. . quit
"RTN","SAMIUR2",677,0)
if gend["^" set gend=$piece(gend,"^",1)
"RTN","SAMIUR2",678,0)
;
"RTN","SAMIUR2",679,0)
quit gend ; end of ppi $$GENDER^SAMIUR2
"RTN","SAMIUR2",680,0)
;
"RTN","SAMIUR2",681,0)
;
"RTN","SAMIUR2",682,0)
;
"RTN","SAMIUR2",683,0)
IFORM(zdt,dfn,SAMIPATS) ; name(s) of incomplete forms
"RTN","SAMIUR2",684,0)
;
"RTN","SAMIUR2",685,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",686,0)
;@called-by
"RTN","SAMIUR2",687,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",688,0)
;@calls
"RTN","SAMIUR2",689,0)
; $$DFN2SID^SAMIUR2
"RTN","SAMIUR2",690,0)
; $$KEY2FM^SAMICASE
"RTN","SAMIUR2",691,0)
; $$VAPALSDT^SAMICASE
"RTN","SAMIUR2",692,0)
; $$MKNAV
"RTN","SAMIUR2",693,0)
;
"RTN","SAMIUR2",694,0)
new iform set iform=$get(SAMIPATS(zdt,dfn,"iform"))
"RTN","SAMIUR2",695,0)
quit:iform="" "" ;
"RTN","SAMIUR2",696,0)
;
"RTN","SAMIUR2",697,0)
new zkey1,zn,typ
"RTN","SAMIUR2",698,0)
new return set return="<table>"
"RTN","SAMIUR2",699,0)
for zn=2:1 quit:$piece(iform," ",zn)="" do ;
"RTN","SAMIUR2",700,0)
. set return=return_"<tr><td>"
"RTN","SAMIUR2",701,0)
. set zkey1=$piece(iform," ",zn)
"RTN","SAMIUR2",702,0)
. ;
"RTN","SAMIUR2",703,0)
. new fname
"RTN","SAMIUR2",704,0)
. if zkey1["ceform" set fname="CT Evaluation" set typ="ceform"
"RTN","SAMIUR2",705,0)
. if zkey1["sbform" set fname="Background" set typ="sbform"
"RTN","SAMIUR2",706,0)
. if zkey1["fuform" set fname="Follow-up" set typ="fuform"
"RTN","SAMIUR2",707,0)
. if zkey1["bxform" set fname="Biopsy" set typ="bxform"
"RTN","SAMIUR2",708,0)
. if zkey1["ptform" set fname="PET Evaluation" set typ="ptform"
"RTN","SAMIUR2",709,0)
. if zkey1["itform" set fname="Intervention" set typ="itform"
"RTN","SAMIUR2",710,0)
. if zkey1["siform" set fname="Intake Form" set typ="siform"
"RTN","SAMIUR2",711,0)
. if $get(fname)="" set fname="unknown" set typ=""
"RTN","SAMIUR2",712,0)
. ;
"RTN","SAMIUR2",713,0)
. new sid set sid=$$DFN2SID^SAMIUR2(dfn)
"RTN","SAMIUR2",714,0)
. new zdate set zdate=$$VAPALSDT^SAMICASE($$KEY2FM^SAMICASE(zkey1))
"RTN","SAMIUR2",715,0)
. set return=return_$$MKNAV(sid,zkey1,fname_" - "_zdate,typ)
"RTN","SAMIUR2",716,0)
. set return=return_"</td></tr>"
"RTN","SAMIUR2",717,0)
. quit
"RTN","SAMIUR2",718,0)
;
"RTN","SAMIUR2",719,0)
set return=return_"</table>"
"RTN","SAMIUR2",720,0)
;
"RTN","SAMIUR2",721,0)
quit return ; end of ppi $$IFORM^SAMIUR2
"RTN","SAMIUR2",722,0)
;
"RTN","SAMIUR2",723,0)
;
"RTN","SAMIUR2",724,0)
;
"RTN","SAMIUR2",725,0)
LASTEXM(zdt,dfn,SAMIPATS) ; patient last exam
"RTN","SAMIUR2",726,0)
;
"RTN","SAMIUR2",727,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",728,0)
;@called-by
"RTN","SAMIUR2",729,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",730,0)
;@calls none
"RTN","SAMIUR2",731,0)
;
"RTN","SAMIUR2",732,0)
new lexm set lexm=$get(SAMIPATS(zdt,dfn,"cedos"))
"RTN","SAMIUR2",733,0)
;
"RTN","SAMIUR2",734,0)
quit lexm ; end of ppi $$LASTEXM^SAMIUR2
"RTN","SAMIUR2",735,0)
;
"RTN","SAMIUR2",736,0)
;
"RTN","SAMIUR2",737,0)
;
"RTN","SAMIUR2",738,0)
MANPAT(ien,dfn,SAMIPATS) ; unmatched patient cell
"RTN","SAMIUR2",739,0)
;
"RTN","SAMIUR2",740,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",741,0)
;@called-by
"RTN","SAMIUR2",742,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",743,0)
;@calls
"RTN","SAMIUR2",744,0)
; $$setroot^%wd
"RTN","SAMIUR2",745,0)
;
"RTN","SAMIUR2",746,0)
new zcell set zcell=""
"RTN","SAMIUR2",747,0)
; set zcell=zcell_$get(SAMIPATS(ien,dfn,"saminame"))
"RTN","SAMIUR2",748,0)
set zcell=zcell_$get(SAMIPATS(ien,dfn,"editref"))
"RTN","SAMIUR2",749,0)
set zcell=zcell_"<br>Date of Birth: "_$get(SAMIPATS(ien,dfn,"dob"))
"RTN","SAMIUR2",750,0)
set zcell=zcell_" Gender: "_$get(SAMIPATS(ien,dfn,"sex"))
"RTN","SAMIUR2",751,0)
;
"RTN","SAMIUR2",752,0)
new ssn set ssn=$get(SAMIPATS(ien,dfn,"ssn"))
"RTN","SAMIUR2",753,0)
if ssn="" do ;
"RTN","SAMIUR2",754,0)
. new lroot set lroot=$$setroot^%wd("patient-lookup")
"RTN","SAMIUR2",755,0)
. new tssn set tssn=$get(@lroot@(ien,"ssn"))
"RTN","SAMIUR2",756,0)
. set ssn=$extract(tssn,1,3)_"-"_$extract(tssn,4,5)_"-"_$extract(tssn,6,9)
"RTN","SAMIUR2",757,0)
. quit
"RTN","SAMIUR2",758,0)
set zcell=zcell_"<br>SSN: "_ssn
"RTN","SAMIUR2",759,0)
;
"RTN","SAMIUR2",760,0)
set zcell=zcell_"<br>dfn: "_dfn
"RTN","SAMIUR2",761,0)
;
"RTN","SAMIUR2",762,0)
quit zcell ; end of ppi $$MANPAT^SAMIUR2
"RTN","SAMIUR2",763,0)
;
"RTN","SAMIUR2",764,0)
;
"RTN","SAMIUR2",765,0)
;
"RTN","SAMIUR2",766,0)
MATCH(ien,dfn,SAMIPATS) ; match button cell
"RTN","SAMIUR2",767,0)
;
"RTN","SAMIUR2",768,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",769,0)
;@called-by
"RTN","SAMIUR2",770,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",771,0)
;@calls none
"RTN","SAMIUR2",772,0)
;
"RTN","SAMIUR2",773,0)
new matien set matien=$get(SAMIPATS(ien,dfn,"MATCHLOG"))
"RTN","SAMIUR2",774,0)
quit:matien="" ""
"RTN","SAMIUR2",775,0)
;
"RTN","SAMIUR2",776,0)
new nuhref set nuhref="<form method=POST action=""/vapals"">"
"RTN","SAMIUR2",777,0)
set nuhref=nuhref_"<input type=hidden name=""samiroute"" value=""merge"">"
"RTN","SAMIUR2",778,0)
set nuhref=nuhref_"<input type=hidden name=""toien"" value="_ien_">"
"RTN","SAMIUR2",779,0)
set nuhref=nuhref_"<input value=""Merge"" class=""btn btn-link"" role=""link"" type=""submit""></form>"
"RTN","SAMIUR2",780,0)
;
"RTN","SAMIUR2",781,0)
quit nuhref ; end of ppi $$MATCH^SAMIUR2
"RTN","SAMIUR2",782,0)
;
"RTN","SAMIUR2",783,0)
;
"RTN","SAMIUR2",784,0)
;
"RTN","SAMIUR2",785,0)
NAME(zdt,dfn,SAMIPATS) ; name w/hyperlink
"RTN","SAMIUR2",786,0)
;
"RTN","SAMIUR2",787,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",788,0)
;@called-by
"RTN","SAMIUR2",789,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",790,0)
;@calls none
"RTN","SAMIUR2",791,0)
;
"RTN","SAMIUR2",792,0)
new nam set nam="Name"
"RTN","SAMIUR2",793,0)
;
"RTN","SAMIUR2",794,0)
quit $get(SAMIPATS(zdt,dfn,"nuhref")) ; end of ppi $$NAME^SAMIUR2
"RTN","SAMIUR2",795,0)
;
"RTN","SAMIUR2",796,0)
;
"RTN","SAMIUR2",797,0)
;
"RTN","SAMIUR2",798,0)
PACKYRS(zdt,dfn,SAMIPATS) ; smoking status
"RTN","SAMIUR2",799,0)
;
"RTN","SAMIUR2",800,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",801,0)
;@called-by
"RTN","SAMIUR2",802,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",803,0)
;@calls
"RTN","SAMIUR2",804,0)
; $$setroot^%wd
"RTN","SAMIUR2",805,0)
;
"RTN","SAMIUR2",806,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",807,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",808,0)
new siform set siform=$get(SAMIPATS(zdt,dfn,"siform"))
"RTN","SAMIUR2",809,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",810,0)
new pkyrs set pkyrs=$get(@vals@("sippy"))
"RTN","SAMIUR2",811,0)
;
"RTN","SAMIUR2",812,0)
quit pkyrs ; end of ppi $$PACKYRS^SAMIUR2
"RTN","SAMIUR2",813,0)
;
"RTN","SAMIUR2",814,0)
;
"RTN","SAMIUR2",815,0)
;
"RTN","SAMIUR2",816,0)
POSSIBLE(ien,dfn,SAMIPATS) ; possible match cell
"RTN","SAMIUR2",817,0)
;
"RTN","SAMIUR2",818,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",819,0)
;@called-by
"RTN","SAMIUR2",820,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",821,0)
;@calls
"RTN","SAMIUR2",822,0)
; $$setroot^%wd
"RTN","SAMIUR2",823,0)
;
"RTN","SAMIUR2",824,0)
new zcell set zcell=""
"RTN","SAMIUR2",825,0)
new matien set matien=$get(SAMIPATS(ien,dfn,"MATCHLOG"))
"RTN","SAMIUR2",826,0)
quit:matien="" zcell
"RTN","SAMIUR2",827,0)
;
"RTN","SAMIUR2",828,0)
new lroot set lroot=$$setroot^%wd("patient-lookup")
"RTN","SAMIUR2",829,0)
quit:'$data(@lroot@(matien)) zcell
"RTN","SAMIUR2",830,0)
;
"RTN","SAMIUR2",831,0)
set zcell=zcell_$get(@lroot@(matien,"saminame"))
"RTN","SAMIUR2",832,0)
set zcell=zcell_"<br>Date of Birth: "_$get(@lroot@(matien,"sbdob"))
"RTN","SAMIUR2",833,0)
set zcell=zcell_" Gender: "_$get(@lroot@(matien,"sex"))
"RTN","SAMIUR2",834,0)
;
"RTN","SAMIUR2",835,0)
new tssn set tssn=$get(@lroot@(matien,"ssn"))
"RTN","SAMIUR2",836,0)
new ssn set ssn=tssn
"RTN","SAMIUR2",837,0)
if tssn'["-" set ssn=$extract(tssn,1,3)_"-"_$extract(tssn,4,5)_"-"_$extract(tssn,6,9)
"RTN","SAMIUR2",838,0)
set zcell=zcell_"<br>SSN: "_ssn
"RTN","SAMIUR2",839,0)
;
"RTN","SAMIUR2",840,0)
set zcell=zcell_"<br>dfn: "_$get(@lroot@(matien,"dfn"))
"RTN","SAMIUR2",841,0)
;
"RTN","SAMIUR2",842,0)
quit zcell ; end of ppi $$POSSIBLE^SAMIUR2
"RTN","SAMIUR2",843,0)
;
"RTN","SAMIUR2",844,0)
;
"RTN","SAMIUR2",845,0)
;
"RTN","SAMIUR2",846,0)
RECOM(zdt,dfn,SAMIPATS) ; recommendation
"RTN","SAMIUR2",847,0)
;
"RTN","SAMIUR2",848,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",849,0)
;@called-by
"RTN","SAMIUR2",850,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",851,0)
;@calls
"RTN","SAMIUR2",852,0)
; $$setroot^%wd
"RTN","SAMIUR2",853,0)
;
"RTN","SAMIUR2",854,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",855,0)
new ceform set ceform=$get(SAMIPATS(zdt,dfn,"ceform"))
"RTN","SAMIUR2",856,0)
quit:ceform="" ""
"RTN","SAMIUR2",857,0)
;
"RTN","SAMIUR2",858,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",859,0)
new vals set vals=$name(@root@("graph",sid,ceform))
"RTN","SAMIUR2",860,0)
new cefuw set cefuw=$get(@vals@("cefuw"))
"RTN","SAMIUR2",861,0)
;
"RTN","SAMIUR2",862,0)
new recom set recom=""
"RTN","SAMIUR2",863,0)
set recom=$select(cefuw="1y":"Annual Repeat",cefuw="nw":"Now",cefuw="1m":"1 month",cefuw="3m":"3 months",cefuw="6m":"6 months",cefuw="os":"Other",1:"")
"RTN","SAMIUR2",864,0)
if $get(@vals@("cefuaf"))="y" set recom=recom_", Antibiotics"
"RTN","SAMIUR2",865,0)
if $get(@vals@("cefucc"))="y" set recom=recom_", Contrast CT"
"RTN","SAMIUR2",866,0)
if $get(@vals@("cefupe"))="y" set recom=recom_", PET"
"RTN","SAMIUR2",867,0)
if $get(@vals@("cefufn"))="y" set recom=recom_", Percutaneous biopsy"
"RTN","SAMIUR2",868,0)
if $get(@vals@("cefubr"))="y" set recom=recom_", Bronchoscopy"
"RTN","SAMIUR2",869,0)
if $get(@vals@("cefupc"))="y" set recom=recom_", Pulmonary consultation"
"RTN","SAMIUR2",870,0)
if $get(@vals@("cefutb"))="y" set recom=recom_", Refer to tumor board"
"RTN","SAMIUR2",871,0)
if $get(@vals@("cefunf"))="y" set recom=recom_", No other further follow-up"
"RTN","SAMIUR2",872,0)
if $extract(recom,1,2)=", " set recom=$extract(recom,3,$length(recom))
"RTN","SAMIUR2",873,0)
;
"RTN","SAMIUR2",874,0)
quit recom ; end of ppi $$RECOM^SAMIUR2
"RTN","SAMIUR2",875,0)
;
"RTN","SAMIUR2",876,0)
;
"RTN","SAMIUR2",877,0)
;
"RTN","SAMIUR2",878,0)
RURAL(zdt,dfn,SAMIPATS) ; patient's rural/urban status
"RTN","SAMIUR2",879,0)
;
"RTN","SAMIUR2",880,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",881,0)
;@called-by
"RTN","SAMIUR2",882,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",883,0)
;@calls
"RTN","SAMIUR2",884,0)
; $$setroot^%wd
"RTN","SAMIUR2",885,0)
;
"RTN","SAMIUR2",886,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",887,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",888,0)
new siform set siform=$get(SAMIPATS(zdt,dfn,"siform"))
"RTN","SAMIUR2",889,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",890,0)
new sirs set sirs=$get(@vals@("sirs"))
"RTN","SAMIUR2",891,0)
set sirs=$select(sirs="r":"rural",sirs="u":"urban",sirs="n":"unknown",1:"unknown")
"RTN","SAMIUR2",892,0)
;
"RTN","SAMIUR2",893,0)
quit sirs ; end of ppi $$RURAL^SAMIUR2
"RTN","SAMIUR2",894,0)
;
"RTN","SAMIUR2",895,0)
;
"RTN","SAMIUR2",896,0)
;
"RTN","SAMIUR2",897,0)
SID(zdt,dfn,SAMIPATS) ; study ID
"RTN","SAMIUR2",898,0)
;
"RTN","SAMIUR2",899,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",900,0)
;@called-by
"RTN","SAMIUR2",901,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",902,0)
;@calls
"RTN","SAMIUR2",903,0)
; $$DFN2SID
"RTN","SAMIUR2",904,0)
;
"RTN","SAMIUR2",905,0)
quit $$DFN2SID(dfn) ; end of ppi $$SID^SAMIUR2
"RTN","SAMIUR2",906,0)
;
"RTN","SAMIUR2",907,0)
;
"RTN","SAMIUR2",908,0)
;
"RTN","SAMIUR2",909,0)
SMHIS(zdt,dfn,SAMIPATS) ; smoking history cell
"RTN","SAMIUR2",910,0)
;
"RTN","SAMIUR2",911,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",912,0)
;@called-by
"RTN","SAMIUR2",913,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",914,0)
;@calls
"RTN","SAMIUR2",915,0)
; $$DFN2SID
"RTN","SAMIUR2",916,0)
; $$SHDET
"RTN","SAMIUR2",917,0)
;
"RTN","SAMIUR2",918,0)
new zrtn set zrtn=""
"RTN","SAMIUR2",919,0)
set zrtn=zrtn_"<div class=""row""><div class=""col-md-12""><table class=""table"" id=""pack-years-history"">"
"RTN","SAMIUR2",920,0)
set zrtn=zrtn_"<thead><tr><th>Form </th><th> Reported Date </th>"
"RTN","SAMIUR2",921,0)
set zrtn=zrtn_"<th>Pack Years</th><th>Cumulative</th></tr></thead><tbody>"
"RTN","SAMIUR2",922,0)
set zrtn=zrtn_$$SHDET($$DFN2SID(dfn))
"RTN","SAMIUR2",923,0)
set zrtn=zrtn_"</tbody></table></div></div>"
"RTN","SAMIUR2",924,0)
;
"RTN","SAMIUR2",925,0)
quit zrtn ; end of ppi $$SMHIS^SAMIUR2
"RTN","SAMIUR2",926,0)
;
"RTN","SAMIUR2",927,0)
;
"RTN","SAMIUR2",928,0)
;
"RTN","SAMIUR2",929,0)
SMKSTAT(zdt,dfn,SAMIPATS) ; smoking status
"RTN","SAMIUR2",930,0)
;
"RTN","SAMIUR2",931,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",932,0)
;@called-by
"RTN","SAMIUR2",933,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",934,0)
;@calls
"RTN","SAMIUR2",935,0)
; $$setroot^%wd
"RTN","SAMIUR2",936,0)
;
"RTN","SAMIUR2",937,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",938,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",939,0)
new siform set siform=$get(SAMIPATS(zdt,dfn,"siform"))
"RTN","SAMIUR2",940,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",941,0)
;
"RTN","SAMIUR2",942,0)
new smk set smk="unknown"
"RTN","SAMIUR2",943,0)
if $get(@vals@("siesm"))="n" set smk="Never smoked"
"RTN","SAMIUR2",944,0)
if $get(@vals@("siesm"))="p" set smk="Past smoker"
"RTN","SAMIUR2",945,0)
if $get(@vals@("siesm"))="c" set smk="Current smoker"
"RTN","SAMIUR2",946,0)
; if $get(@vals@("siesq"))=1 set smk="Cu"
"RTN","SAMIUR2",947,0)
;
"RTN","SAMIUR2",948,0)
quit smk ; end of ppi $$SMKSTAT^SAMIUR2
"RTN","SAMIUR2",949,0)
;
"RTN","SAMIUR2",950,0)
;
"RTN","SAMIUR2",951,0)
;
"RTN","SAMIUR2",952,0)
SSN(zdt,dfn,SAMIPATS) ; social security number
"RTN","SAMIUR2",953,0)
;
"RTN","SAMIUR2",954,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",955,0)
;@called-by
"RTN","SAMIUR2",956,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",957,0)
;@calls none
"RTN","SAMIUR2",958,0)
;
"RTN","SAMIUR2",959,0)
new tssn set tssn=$get(SAMIPATS(zdt,dfn,"ssn"))
"RTN","SAMIUR2",960,0)
new ssn set ssn=tssn
"RTN","SAMIUR2",961,0)
if ssn'["-" do
"RTN","SAMIUR2",962,0)
. set ssn=$extract(tssn,1,3)_"-"_$extract(tssn,4,5)_"-"_$extract(tssn,6,9)
"RTN","SAMIUR2",963,0)
. quit
"RTN","SAMIUR2",964,0)
;
"RTN","SAMIUR2",965,0)
quit ssn ; end of ppi $$SSN^SAMIUR2
"RTN","SAMIUR2",966,0)
;
"RTN","SAMIUR2",967,0)
;
"RTN","SAMIUR2",968,0)
;
"RTN","SAMIUR2",969,0)
STUDYDT(zdt,dfn,SAMIPATS) ; latest study date
"RTN","SAMIUR2",970,0)
;
"RTN","SAMIUR2",971,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",972,0)
;@called-by
"RTN","SAMIUR2",973,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",974,0)
;@calls none
"RTN","SAMIUR2",975,0)
;
"RTN","SAMIUR2",976,0)
new stdt set stdt=$get(SAMIPATS(zdt,dfn,"cedos"))
"RTN","SAMIUR2",977,0)
;
"RTN","SAMIUR2",978,0)
quit stdt ; end of ppi $$STUDYDT^SAMIUR2
"RTN","SAMIUR2",979,0)
;
"RTN","SAMIUR2",980,0)
;
"RTN","SAMIUR2",981,0)
;
"RTN","SAMIUR2",982,0)
STUDYTYP(zdt,dfn,SAMIPATS) ; latest study type
"RTN","SAMIUR2",983,0)
;
"RTN","SAMIUR2",984,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",985,0)
;@called-by
"RTN","SAMIUR2",986,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",987,0)
;@calls
"RTN","SAMIUR2",988,0)
; $$setroot^%wd
"RTN","SAMIUR2",989,0)
;
"RTN","SAMIUR2",990,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",991,0)
new ceform set ceform=$get(SAMIPATS(zdt,dfn,"ceform"))
"RTN","SAMIUR2",992,0)
quit:ceform="" ""
"RTN","SAMIUR2",993,0)
;
"RTN","SAMIUR2",994,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",995,0)
new vals set vals=$name(@root@("graph",sid,ceform))
"RTN","SAMIUR2",996,0)
new stypx set stypx=$get(@vals@("cetex"))
"RTN","SAMIUR2",997,0)
new styp set styp=$select(stypx="a":"Annual",stypx="b":"Baseline",stypx="d":"Followup",1:"")
"RTN","SAMIUR2",998,0)
;
"RTN","SAMIUR2",999,0)
quit styp ; end of ppi $$STUDYTYP^SAMIUR2
"RTN","SAMIUR2",1000,0)
;
"RTN","SAMIUR2",1001,0)
;
"RTN","SAMIUR2",1002,0)
;
"RTN","SAMIUR2",1003,0)
VALS(zdt,dfn,SAMIPATS) ; form-values cell
"RTN","SAMIUR2",1004,0)
;
"RTN","SAMIUR2",1005,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",1006,0)
;@called-by
"RTN","SAMIUR2",1007,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",1008,0)
;@calls
"RTN","SAMIUR2",1009,0)
; $$DFN2SID
"RTN","SAMIUR2",1010,0)
;
"RTN","SAMIUR2",1011,0)
new vrtn set vrtn=""
"RTN","SAMIUR2",1012,0)
new vsid set vsid=$$DFN2SID(dfn)
"RTN","SAMIUR2",1013,0)
new vgr set vgr="/vals?sid="_vsid_"&form="
"RTN","SAMIUR2",1014,0)
quit:'$data(SAMIPATS)
"RTN","SAMIUR2",1015,0)
;
"RTN","SAMIUR2",1016,0)
new vzi set vzi=""
"RTN","SAMIUR2",1017,0)
for do quit:vzi="sort" quit:vzi=""
"RTN","SAMIUR2",1018,0)
. set vzi=$order(SAMIPATS(zdt,dfn,"items",vzi))
"RTN","SAMIUR2",1019,0)
. quit:vzi="sort"
"RTN","SAMIUR2",1020,0)
. quit:vzi=""
"RTN","SAMIUR2",1021,0)
. set vrtn=vrtn_"<a href="""_vgr_vzi_""">"_vzi_"</a><br>"
"RTN","SAMIUR2",1022,0)
. quit
"RTN","SAMIUR2",1023,0)
;
"RTN","SAMIUR2",1024,0)
quit vrtn ; end of $$VALS^SAMIUR2
"RTN","SAMIUR2",1025,0)
;
"RTN","SAMIUR2",1026,0)
;
"RTN","SAMIUR2",1027,0)
;
"RTN","SAMIUR2",1028,0)
WHEN(zdt,dfn,SAMIPATS) ; followup text
"RTN","SAMIUR2",1029,0)
;
"RTN","SAMIUR2",1030,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",1031,0)
;@called-by
"RTN","SAMIUR2",1032,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",1033,0)
;@calls
"RTN","SAMIUR2",1034,0)
; $$setroot^%wd
"RTN","SAMIUR2",1035,0)
;
"RTN","SAMIUR2",1036,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",1037,0)
new ceform set ceform=$get(SAMIPATS(zdt,dfn,"ceform"))
"RTN","SAMIUR2",1038,0)
quit:ceform="" ""
"RTN","SAMIUR2",1039,0)
;
"RTN","SAMIUR2",1040,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",1041,0)
new vals set vals=$name(@root@("graph",sid,ceform))
"RTN","SAMIUR2",1042,0)
new whnx set whnx=$get(@vals@("cefuw"))
"RTN","SAMIUR2",1043,0)
quit:whnx="" ""
"RTN","SAMIUR2",1044,0)
;
"RTN","SAMIUR2",1045,0)
new DICT
"RTN","SAMIUR2",1046,0)
set DICT("cefuw","1m")="in one month"
"RTN","SAMIUR2",1047,0)
set DICT("cefuw","1y")="in one year"
"RTN","SAMIUR2",1048,0)
set DICT("cefuw","3m")="in three months"
"RTN","SAMIUR2",1049,0)
set DICT("cefuw","6m")="in six months"
"RTN","SAMIUR2",1050,0)
set DICT("cefuw","os")="other as specified"
"RTN","SAMIUR2",1051,0)
set whn=$get(DICT("cefuw",whnx))
"RTN","SAMIUR2",1052,0)
;
"RTN","SAMIUR2",1053,0)
quit whn ; end of ppi $$WHEN^SAMIUR2
"RTN","SAMIUR2",1054,0)
;
"RTN","SAMIUR2",1055,0)
;
"RTN","SAMIUR2",1056,0)
;
"RTN","SAMIUR2",1057,0)
WORKPAT(ien,dfn,SAMIPATS) ; worklist patient name cell
"RTN","SAMIUR2",1058,0)
;
"RTN","SAMIUR2",1059,0)
;;ppi;function;clean;silent;sac
"RTN","SAMIUR2",1060,0)
;@called-by
"RTN","SAMIUR2",1061,0)
; WSREPORT^SAMIUR
"RTN","SAMIUR2",1062,0)
;@calls none
"RTN","SAMIUR2",1063,0)
;
"RTN","SAMIUR2",1064,0)
new zcell set zcell=""
"RTN","SAMIUR2",1065,0)
set zcell=zcell_$get(SAMIPATS(ien,dfn,"workref"))
"RTN","SAMIUR2",1066,0)
;
"RTN","SAMIUR2",1067,0)
quit zcell ; end of ppi $$WORKPAT^SAMIUR2
"RTN","SAMIUR2",1068,0)
;
"RTN","SAMIUR2",1069,0)
;
"RTN","SAMIUR2",1070,0)
;
"RTN","SAMIUR2",1071,0)
;@section 5 unused subroutines
"RTN","SAMIUR2",1072,0)
;
"RTN","SAMIUR2",1073,0)
;
"RTN","SAMIUR2",1074,0)
;
"RTN","SAMIUR2",1075,0)
EPAT(ien,dfn,SAMIPATS) ; patient name w/nav to enrollment
"RTN","SAMIUR2",1076,0)
;
"RTN","SAMIUR2",1077,0)
;;private;procedure;clean;silent;sac
"RTN","SAMIUR2",1078,0)
;@called-by none
"RTN","SAMIUR2",1079,0)
;@calls none
"RTN","SAMIUR2",1080,0)
;
"RTN","SAMIUR2",1081,0)
quit ; end of $$EPAT
"RTN","SAMIUR2",1082,0)
;
"RTN","SAMIUR2",1083,0)
;
"RTN","SAMIUR2",1084,0)
;
"RTN","SAMIUR2",1085,0)
ETHNCTY(zdt,dfn,SAMIPATS) ; ethnicity
"RTN","SAMIUR2",1086,0)
;
"RTN","SAMIUR2",1087,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",1088,0)
;@called-by none
"RTN","SAMIUR2",1089,0)
;@calls none
"RTN","SAMIUR2",1090,0)
;
"RTN","SAMIUR2",1091,0)
quit "ethnicity" ; end of $$ETHNCTY
"RTN","SAMIUR2",1092,0)
;
"RTN","SAMIUR2",1093,0)
;
"RTN","SAMIUR2",1094,0)
;
"RTN","SAMIUR2",1095,0)
RACE(zdt,dfn,SAMIPATS) ; race
"RTN","SAMIUR2",1096,0)
;
"RTN","SAMIUR2",1097,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",1098,0)
;@called-by none [call commented out in RPTTBL]
"RTN","SAMIUR2",1099,0)
;@calls
"RTN","SAMIUR2",1100,0)
; $$setroot^%wd
"RTN","SAMIUR2",1101,0)
;
"RTN","SAMIUR2",1102,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",1103,0)
new race set race=$get(@root@(dfn,"race"))
"RTN","SAMIUR2",1104,0)
;
"RTN","SAMIUR2",1105,0)
quit race ; end of $$RACE
"RTN","SAMIUR2",1106,0)
;
"RTN","SAMIUR2",1107,0)
;
"RTN","SAMIUR2",1108,0)
;
"RTN","SAMIUR2",1109,0)
STATUS(zdt,dfn,SAMIPATS) ; patient status
"RTN","SAMIUR2",1110,0)
;
"RTN","SAMIUR2",1111,0)
;;private;function;clean;silent;sac
"RTN","SAMIUR2",1112,0)
;@called-by none
"RTN","SAMIUR2",1113,0)
;@calls
"RTN","SAMIUR2",1114,0)
; $$setroot^%wd
"RTN","SAMIUR2",1115,0)
;
"RTN","SAMIUR2",1116,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",1117,0)
new sid set sid=$get(@root@(dfn,"samistudyid"))
"RTN","SAMIUR2",1118,0)
new siform set siform=$get(SAMIPATS(zdt,dfn,"siform"))
"RTN","SAMIUR2",1119,0)
new vals set vals=$name(@root@("graph",sid,siform))
"RTN","SAMIUR2",1120,0)
new stat set stat=$get(@vals@("sistatus"))
"RTN","SAMIUR2",1121,0)
;
"RTN","SAMIUR2",1122,0)
quit stat ; end of $$STATUS
"RTN","SAMIUR2",1123,0)
;
"RTN","SAMIUR2",1124,0)
;
"RTN","SAMIUR2",1125,0)
;
"RTN","SAMIUR2",1126,0)
WSVALS(RTN,FILTER) ; display form values from graph
"RTN","SAMIUR2",1127,0)
;
"RTN","SAMIUR2",1128,0)
;;web service;procedure;clean;silent;sac
"RTN","SAMIUR2",1129,0)
;@called-by none
"RTN","SAMIUR2",1130,0)
;@calls
"RTN","SAMIUR2",1131,0)
; $$setroot^%wd
"RTN","SAMIUR2",1132,0)
; wsGtree^SYNVPR
"RTN","SAMIUR2",1133,0)
;
"RTN","SAMIUR2",1134,0)
new root set root=$$setroot^%wd("vapals-patients")
"RTN","SAMIUR2",1135,0)
new sid set sid=$get(FILTER("sid"))
"RTN","SAMIUR2",1136,0)
if sid="" set sid=$get(FILTER("studyid"))
"RTN","SAMIUR2",1137,0)
quit:sid=""
"RTN","SAMIUR2",1138,0)
;
"RTN","SAMIUR2",1139,0)
new zform set zform=$get(FILTER("form"))
"RTN","SAMIUR2",1140,0)
new groot
"RTN","SAMIUR2",1141,0)
if zform="" set groot=$name(@root@("graph",sid))
"RTN","SAMIUR2",1142,0)
else set groot=$name(@root@("graph",sid,zform))
"RTN","SAMIUR2",1143,0)
set FILTER("root")=$extract(groot,2,$length(groot))
"RTN","SAMIUR2",1144,0)
;
"RTN","SAMIUR2",1145,0)
do wsGtree^SYNVPR(.RTN,.FILTER)
"RTN","SAMIUR2",1146,0)
;
"RTN","SAMIUR2",1147,0)
quit ; end of ws WSVALS^SAMIUR2
"RTN","SAMIUR2",1148,0)
;
"RTN","SAMIUR2",1149,0)
;
"RTN","SAMIUR2",1150,0)
;
"RTN","SAMIUR2",1151,0)
EOR ; end of routine SAMIUR2
"VER")
8.0^22.2
**END**
**END**
| Genshi | 5 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-11/t9/sami-1.18.0.11-t9-i11.kid | [
"Apache-2.0"
] |
local x=10;
local y="asd"
local testy = function(){return 0;}
TestTable <- {
livello2 = {
livello3 = {
["yooo"]="I'm cool",
["jaaaa"]=[1,2,3,4,5,6,7,8,9,10],
}
}
}
function TestFunc(a,b)
{
local z=100
local s="I'm a string"
for(local i=0;i<10;i++)
TestTable.cappero(z,i);
//index_that_desnt_exist=100; //error
return 0;
}
function TestTable::cappero(a,b)
{
local ueueueu=100
local s={x="I'm a string"}
oioioi(1,2)
}
function TestTable::oioioi(a,b)
{
local frrrr=100
local xyz={x="I'm a string"}
}
local i = 0;
while(1)
{
local ret;
local testweak = "asdasd";
local weako = testweak.weakref();
i++;
ret=TestFunc("param 1","param 2");
}
| Squirrel | 2 | LavKazan/ThePassTimeProject | src/thirdparty/SQUIRREL2/sqdbg/test.nut | [
"Unlicense"
] |
<div class="mdl-cell mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<img class="tutorial-image" src="{% root %}{{ image }}"/>
<div class="tutorial-caption">{{ caption }}</div>
</div> | Liquid | 2 | noahcb/lit | website/src/_includes/partials/inset-image.liquid | [
"Apache-2.0"
] |
domain: "{ S5[i] : i >= 0 and i <= 14; S6[i, j] : i >= 0 and i <= 14 and j >= 0 and j <= 9; S7[i] : i >= 0 and i <= 14; S4[i] : i >= 0 and i <= 2; S2[i, j] : i >= 0 and i <= 2 and j >= 0 and j <= 11 - i; S1[i] : i >= 0 and i <= 2; S3[i, j] : i >= 0 and i <= 2 and j >= 0 and j <= 11 - i }"
child:
context: "{ [] }"
child:
sequence:
- filter: "{ S4[i0]; S2[i0, i1]; S1[i0]; S3[i0, i1] }"
child:
schedule: "[{ S3[i0, i1] -> [(1 + 3i0)]; S2[i0, i1] -> [(1 + 3i0)]; S1[i0] -> [(3i0)]; S4[i0] -> [(2 + 3i0)] }, { S3[i0, i1] -> [(1 + 2i1)]; S2[i0, i1] -> [(2i1)]; S1[i0] -> [(0)]; S4[i0] -> [(0)] }]"
options: "{ separate[i0] }"
- filter: "{ S5[i0]; S6[i0, i1]; S7[i0] }"
child:
schedule: "[{ S6[i0, i1] -> [(1 + 3i0)]; S7[i0] -> [(2 + 3i0)]; S5[i0] -> [(3i0)] }, { S6[i0, i1] -> [(i1)]; S7[i0] -> [(0)]; S5[i0] -> [(0)] }]"
options: "{ separate[i0] }"
| Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/orc.st | [
"MIT"
] |
/**
* This is a JavaDoc-like block comment.
* It contains asterisks inside of it.
* It might also be closed with multiple asterisks.
* Like this:
**/
true | JSON5 | 1 | leandrochomp/react-skeleton | node_modules/babelify/node_modules/babel-core/node_modules/json5/test/parse-cases/comments/block-comment-with-asterisks.json5 | [
"MIT"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Base64.sol";
contract Base64Mock {
function encode(bytes memory value) external pure returns (string memory) {
return Base64.encode(value);
}
}
| Solidity | 4 | gen4sp/STD-Contract | contracts/openzeppelin/mocks/Base64Mock.sol | [
"MIT"
] |
v5 = i1
build out3.3: dump
| Ninja | 0 | srid/shake | src/Test/Ninja/test3-inc.ninja | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html>
<body>
<h1 id="result"></h1>
<script type="text/javascript">
var reference = new Worker('./worker.js');
document.getElementById('result').innerHTML='success'
</script>
</body>
</html> | HTML | 3 | frank-dspeed/nw.js | test/sanity/issue6504-indexedDB-open-crash/main.html | [
"MIT"
] |
;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*-
;;;; Code from Paradigms of AI Programming
;;;; Copyright (c) 1991 Peter Norvig
;;;; search.lisp: Search routines from section 6.4
(defun tree-search (states goal-p successors combiner)
"Find a state that satisfies goal-p. Start with states,
and search according to successors and combiner."
(dbg :search "~&;; Search: ~a" states)
(cond ((null states) fail)
((funcall goal-p (first states)) (first states))
(t (tree-search
(funcall combiner
(funcall successors (first states))
(rest states))
goal-p successors combiner))))
(defun depth-first-search (start goal-p successors)
"Search new states first until goal is reached."
(tree-search (list start) goal-p successors #'append))
(defun binary-tree (x) (list (* 2 x) (+ 1 (* 2 x))))
(defun is (value) #'(lambda (x) (eql x value)))
(defun prepend (x y) "Prepend y to start of x" (append y x))
(defun breadth-first-search (start goal-p successors)
"Search old states first until goal is reached."
(tree-search (list start) goal-p successors #'prepend))
(defun finite-binary-tree (n)
"Return a successor function that generates a binary tree
with n nodes."
#'(lambda (x)
(remove-if #'(lambda (child) (> child n))
(binary-tree x))))
(defun diff (num)
"Return the function that finds the difference from num."
#'(lambda (x) (abs (- x num))))
(defun sorter (cost-fn)
"Return a combiner function that sorts according to cost-fn."
#'(lambda (new old)
(sort (append new old) #'< :key cost-fn)))
(defun best-first-search (start goal-p successors cost-fn)
"Search lowest cost states first until goal is reached."
(tree-search (list start) goal-p successors (sorter cost-fn)))
(defun price-is-right (price)
"Return a function that measures the difference from price,
but gives a big penalty for going over price."
#'(lambda (x) (if (> x price)
most-positive-fixnum
(- price x))))
(defun beam-search (start goal-p successors cost-fn beam-width)
"Search highest scoring states first until goal is reached,
but never consider more than beam-width states at a time."
(tree-search (list start) goal-p successors
#'(lambda (old new)
(let ((sorted (funcall (sorter cost-fn) old new)))
(if (> beam-width (length sorted))
sorted
(subseq sorted 0 beam-width))))))
(defstruct (city (:type list)) name long lat)
(defparameter *cities*
'((Atlanta 84.23 33.45) (Los-Angeles 118.15 34.03)
(Boston 71.05 42.21) (Memphis 90.03 35.09)
(Chicago 87.37 41.50) (New-York 73.58 40.47)
(Denver 105.00 39.45) (Oklahoma-City 97.28 35.26)
(Eugene 123.05 44.03) (Pittsburgh 79.57 40.27)
(Flagstaff 111.41 35.13) (Quebec 71.11 46.49)
(Grand-Jct 108.37 39.05) (Reno 119.49 39.30)
(Houston 105.00 34.00) (San-Francisco 122.26 37.47)
(Indianapolis 86.10 39.46) (Tampa 82.27 27.57)
(Jacksonville 81.40 30.22) (Victoria 123.21 48.25)
(Kansas-City 94.35 39.06) (Wilmington 77.57 34.14)))
(defun neighbors (city)
"Find all cities within 1000 kilometers."
(find-all-if #'(lambda (c)
(and (not (eq c city))
(< (air-distance c city) 1000.0)))
*cities*))
(defun city (name)
"Find the city with this name."
(assoc name *cities*))
(defun trip (start dest)
"Search for a way from the start to dest."
(beam-search start (is dest) #'neighbors
#'(lambda (c) (air-distance c dest))
1))
(defstruct (path (:print-function print-path))
state (previous nil) (cost-so-far 0) (total-cost 0))
(defun trip (start dest &optional (beam-width 1))
"Search for the best path from the start to dest."
(beam-search
(make-path :state start)
(is dest :key #'path-state)
(path-saver #'neighbors #'air-distance
#'(lambda (c) (air-distance c dest)))
#'path-total-cost
beam-width))
(defconstant earth-diameter 12765.0
"Diameter of planet earth in kilometers.")
(defun air-distance (city1 city2)
"The great circle distance between two cities."
(let ((d (distance (xyz-coords city1) (xyz-coords city2))))
;; d is the straight-line chord between the two cities,
;; The length of the subtending arc is given by:
(* earth-diameter (asin (/ d 2)))))
(defun xyz-coords (city)
"Returns the x,y,z coordinates of a point on a sphere.
The center is (0 0 0) and the north pole is (0 0 1)."
(let ((psi (deg->radians (city-lat city)))
(phi (deg->radians (city-long city))))
(list (* (cos psi) (cos phi))
(* (cos psi) (sin phi))
(sin psi))))
(defun distance (point1 point2)
"The Euclidean distance between two points.
The points are coordinates in n-dimensional space."
(sqrt (reduce #'+ (mapcar #'(lambda (a b) (expt (- a b) 2))
point1 point2))))
(defun deg->radians (deg)
"Convert degrees and minutes to radians."
(* (+ (truncate deg) (* (rem deg 1) 100/60)) pi 1/180))
(defun is (value &key (key #'identity) (test #'eql))
"Returns a predicate that tests for a given value."
#'(lambda (path) (funcall test value (funcall key path))))
(defun path-saver (successors cost-fn cost-left-fn)
#'(lambda (old-path)
(let ((old-state (path-state old-path)))
(mapcar
#'(lambda (new-state)
(let ((old-cost
(+ (path-cost-so-far old-path)
(funcall cost-fn old-state new-state))))
(make-path
:state new-state
:previous old-path
:cost-so-far old-cost
:total-cost (+ old-cost (funcall cost-left-fn
new-state)))))
(funcall successors old-state)))))
(defun print-path (path &optional (stream t) depth)
(declare (ignore depth))
(format stream "#<Path to ~a cost ~,1f>"
(path-state path) (path-total-cost path)))
(defun show-city-path (path &optional (stream t))
"Show the length of a path, and the cities along it."
(format stream "#<Path ~,1f km: ~{~:(~a~)~^ - ~}>"
(path-total-cost path)
(reverse (map-path #'city-name path)))
(values))
(defun map-path (fn path)
"Call fn on each state in the path, collecting results."
(if (null path)
nil
(cons (funcall fn (path-state path))
(map-path fn (path-previous path)))))
(defun iter-wide-search (start goal-p successors cost-fn
&key (width 1) (max 100))
"Search, increasing beam width from width to max.
Return the first solution found at any width."
(dbg :search "; Width: ~d" width)
(unless (> width max)
(or (beam-search start goal-p successors cost-fn width)
(iter-wide-search start goal-p successors cost-fn
:width (+ width 1) :max max))))
(defun graph-search (states goal-p successors combiner
&optional (state= #'eql) old-states)
"Find a state that satisfies goal-p. Start with states,
and search according to successors and combiner.
Don't try the same state twice."
(dbg :search "~&;; Search: ~a" states)
(cond ((null states) fail)
((funcall goal-p (first states)) (first states))
(t (graph-search
(funcall
combiner
(new-states states successors state= old-states)
(rest states))
goal-p successors combiner state=
(adjoin (first states) old-states
:test state=)))))
(defun new-states (states successors state= old-states)
"Generate successor states that have not been seen before."
(remove-if
#'(lambda (state)
(or (member state states :test state=)
(member state old-states :test state=)))
(funcall successors (first states))))
(defun next2 (x) (list (+ x 1) (+ x 2)))
(defun a*-search (paths goal-p successors cost-fn cost-left-fn
&optional (state= #'eql) old-paths)
"Find a path whose state satisfies goal-p. Start with paths,
and expand successors, exploring least cost first.
When there are duplicate states, keep the one with the
lower cost and discard the other."
(dbg :search ";; Search: ~a" paths)
(cond
((null paths) fail)
((funcall goal-p (path-state (first paths)))
(values (first paths) paths))
(t (let* ((path (pop paths))
(state (path-state path)))
;; Update PATHS and OLD-PATHS to reflect
;; the new successors of STATE:
(setf old-paths (insert-path path old-paths))
(dolist (state2 (funcall successors state))
(let* ((cost (+ (path-cost-so-far path)
(funcall cost-fn state state2)))
(cost2 (funcall cost-left-fn state2))
(path2 (make-path
:state state2 :previous path
:cost-so-far cost
:total-cost (+ cost cost2)))
(old nil))
;; Place the new path, path2, in the right list:
(cond
((setf old (find-path state2 paths state=))
(when (better-path path2 old)
(setf paths (insert-path
path2 (delete old paths)))))
((setf old (find-path state2 old-paths state=))
(when (better-path path2 old)
(setf paths (insert-path path2 paths))
(setf old-paths (delete old old-paths))))
(t (setf paths (insert-path path2 paths))))))
;; Finally, call A* again with the updated path lists:
(a*-search paths goal-p successors cost-fn cost-left-fn
state= old-paths)))))
(defun find-path (state paths state=)
"Find the path with this state among a list of paths."
(find state paths :key #'path-state :test state=))
(defun better-path (path1 path2)
"Is path1 cheaper than path2?"
(< (path-total-cost path1) (path-total-cost path2)))
(defun insert-path (path paths)
"Put path into the right position, sorted by total cost."
;; MERGE is a built-in function
(merge 'list (list path) paths #'< :key #'path-total-cost))
(defun path-states (path)
"Collect the states along this path."
(if (null path)
nil
(cons (path-state path)
(path-states (path-previous path)))))
(defun search-all (start goal-p successors cost-fn beam-width)
"Find all solutions to a search problem, using beam search."
;; Be careful: this can lead to an infinite loop.
(let ((solutions nil))
(beam-search
start #'(lambda (x)
(when (funcall goal-p x) (push x solutions))
nil)
successors cost-fn beam-width)
solutions))
| Common Lisp | 5 | sethaldini/paip-lisp | lisp/search.lisp | [
"MIT"
] |
" Vim filetype plugin file
" Language: C#
" Maintainer: Johannes Zellner <[email protected]>
" Last Change: Tue, 09 Mar 2004 14:09:33 CET
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
finish
endif
" Don't load another plugin for this buffer
let b:did_ftplugin = 1
let s:keepcpo= &cpo
set cpo&vim
" Set 'formatoptions' to break comment lines but not other lines,
" and insert the comment leader when hitting <CR> or using "o".
setlocal fo-=t fo+=croql
" Set 'comments' to format dashed lists in comments.
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" .
\ "All Files (*.*)\t*.*\n"
endif
let &cpo = s:keepcpo
unlet s:keepcpo
| VimL | 4 | uga-rosa/neovim | runtime/ftplugin/cs.vim | [
"Vim"
] |
# Swagger Petstore
#
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
#
# OpenAPI spec version: 1.0.0
# Contact: [email protected]
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' ApiResponse Class
#'
#' @field code
#' @field type
#' @field message
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
ApiResponse <- R6::R6Class(
'ApiResponse',
public = list(
`code` = NULL,
`type` = NULL,
`message` = NULL,
initialize = function(`code`, `type`, `message`){
if (!missing(`code`)) {
stopifnot(is.numeric(`code`), length(`code`) == 1)
self$`code` <- `code`
}
if (!missing(`type`)) {
stopifnot(is.character(`type`), length(`type`) == 1)
self$`type` <- `type`
}
if (!missing(`message`)) {
stopifnot(is.character(`message`), length(`message`) == 1)
self$`message` <- `message`
}
},
toJSON = function() {
ApiResponseObject <- list()
if (!is.null(self$`code`)) {
ApiResponseObject[['code']] <- self$`code`
}
if (!is.null(self$`type`)) {
ApiResponseObject[['type']] <- self$`type`
}
if (!is.null(self$`message`)) {
ApiResponseObject[['message']] <- self$`message`
}
ApiResponseObject
},
fromJSON = function(ApiResponseJson) {
ApiResponseObject <- jsonlite::fromJSON(ApiResponseJson)
if (!is.null(ApiResponseObject$`code`)) {
self$`code` <- ApiResponseObject$`code`
}
if (!is.null(ApiResponseObject$`type`)) {
self$`type` <- ApiResponseObject$`type`
}
if (!is.null(ApiResponseObject$`message`)) {
self$`message` <- ApiResponseObject$`message`
}
},
toJSONString = function() {
sprintf(
'{
"code": %d,
"type": %s,
"message": %s
}',
self$`code`,
self$`type`,
self$`message`
)
},
fromJSONString = function(ApiResponseJson) {
ApiResponseObject <- jsonlite::fromJSON(ApiResponseJson)
self$`code` <- ApiResponseObject$`code`
self$`type` <- ApiResponseObject$`type`
self$`message` <- ApiResponseObject$`message`
}
)
)
| R | 5 | jjssoftware/swagger-codegen | samples/client/petstore/r_test/R/ApiResponse.r | [
"Apache-2.0"
] |
% File "sortlicl.tu". % A SortedList class.
% The list contains a set of items each consisting of a key and info.
% New items are entered so that the list is kept sorted.
% Existing items can be looked up, changed, or deleted.
% The list can be printed in sorted order.
unit
class SortedList
inherit List in "listcl.tu"
% Override procedure Enter to maintain sorted order.
body procedure Enter (key, info : string)
var p : ^entry
new p
p -> key := key
p -> info := info
% Find location to insert new entry.
% See if new item goes first in list.
if first = nil or key < first -> key then
p -> next := first
first := p
else
% Find place to insert new entry.
var previous : ^entry := first
var following : ^entry := first -> next
loop
exit when following = nil or key < following -> key
previous := following
following := following -> next
end loop
% Adjust links to make insertion.
previous -> next := p
p -> next := following
end if
end Enter
end SortedList
| Turing | 5 | null-dev/Hyper | package/Examples/Programming Concepts and Paradigms/chap11/sortlicl.tu | [
"MIT"
] |
<html>
<head>
<style>
<?php include(__DIR__ . '/../../../public/assets/css/ansi-colors.css'); ?>
body { font-family: arial, verdana, sans-serif; font-size: 15px; }
header { font-size: 25px; margin-bottom: 15px; }
</style>
</head>
<body>
<div style="background: #<?php print $build->isSuccessful() ? '090' : '900'; ?>; padding: 25px;">
<div style="background: #fff; padding: 15px; border-radius: 5px">
<header><?php print $project->getTitle(); ?> - Build #<?php print $build->getId(); ?></header>
<div>
<p>
Your commit <strong><?php print $build->getCommitId(); ?></strong> generated a
<?php print $build->isSuccessful() ? 'successful' : 'failed'; ?> build in project
<strong><?php print $project->getTitle(); ?></strong>.
</p>
<?php print $content; ?>
</div>
<footer>
You can review <a href="<?php print $build->getCommitLink(); ?>">your commit</a>
and the <a href="<?php print PHPCI_URL . 'build/view/' . $build->getId(); ?>">build log</a>.
</footer>
</div>
</div>
</body>
</html>
| HTML+PHP | 3 | studio201/PHPCI | PHPCI/View/Email/layout.phtml | [
"BSD-2-Clause"
] |
<?Lassoscript
// Last modified 5/29/08 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_FileStream }
{Description= Stream a file to the browser }
{Author= Adam Randall }
{AuthorEmail= }
{ModifiedBy= Eric Landmann }
{ModifiedByEmail= [email protected] }
{Date= 9/10/2004 }
{Usage= LI_FileStream: -File='filename' }
{ExpectedResults= A file streamed to the browser }
{Dependencies= }
{DevelNotes= }
{ChangeNotes= * Author: Adam Randall
* Company: Xaren Consulting
* Date: 1/14/2004
* Modified: 9/10/2004
* Version: 1.1
*
* This tag will allow you to stream a very large
* file, while utilizing a very small amount of
* resources. Load on the server should be minimal.
* Usage: FileStream: -File='filename'
5/29/08 ECL
Added notes about buffer }
/Tagdocs;
*/
// Define the namespace
Var:'svCTNamespace' = 'LI';
If: !(Lasso_TagExists: 'LI_FileStream');
Define_Tag: 'FileStream',
-required = 'File',
-optional = 'Name',
-optional = 'Type',
-optional = 'Buffer',
-priority = 'Replace',
-Namespace = $svCTNamespace;
If: (lasso_tagexists: 'lasso_executiontimelimit');
lasso_executiontimelimit: 0;
/If;
If: (Local_defined: 'buffer');
Local: '_buffer' = (integer: #buffer);
Else;
// Eric's Notes:
// buffer set to 30000 will yield these download times:
// About 6 minutes for 48Mb Photoshop file
// About 6 seconds for 1.6Mb Illustrator file
Local: '_buffer' = 30000;
/If;
Local:
'file_size' = (file_getsize: #file);
If: !(Local_defined: 'type');
Local: 'type' = 'application/octet-stream';
/If;
If: !(Local_defined: 'name');
Local: 'safename' = #file->(split: '/')->last;
Else;
Local: 'safename' = #name;
/If;
#safename->(replace: '"', '\\"');
If: (file_currenterror) == 'No error';
$__http_header__ = 'HTTP/1.0 200 OK\r\n';
$__http_header__ += 'Server: Lasso/' (lasso_version: -lassoversion)->(get: 1) '\r\n';
$__http_header__ += 'MIME-Version: 1.0\r\n';
$__http_header__ += 'Content-Type: ' #type '\r\n';
$__http_header__ += 'Content-Disposition: attachment; filename="' #safename '"\r\n';
$__http_header__ += 'Content-Length: ' #file_size '\r\n';
Loop:
-Loopfrom = 0,
-Loopto = ((math_ceil: #file_size / (decimal: #_buffer)) - 1),
-Loopincrement = 1;
Local: 'start' = (Loop_count) * #_buffer;
Local: 'end' = #start #_buffer;
If: #end > #file_size;
#end = #file_size;
/If;
$__html_reply__ = (file_read:
#file,
-filestartpos = #start,
-fileendpos = #end);
server_push;
/Loop;
server_push; // just in case
abort;
Else;
fail: -1, 'No permission to file';
/If;
/Define_Tag;
Log_Critical: 'Custom Tag Loaded - LI_FileStream';
/If;
?> | Lasso | 5 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_Filestream.lasso | [
"MIT"
] |
server {
listen 80;
server_name www.example.com example.com;
root /var/www/www.example.com/web;
if ($http_host != "www.example.com") {
rewrite ^ http://www.example.com$request_uri permanent;
}
location = /favicon.ico {
log_not_found off;
access_log off;
expires max;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
client_max_body_size 1000M;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access user:rw group:rw all:r;
# WebDAV server
location ~ ^/sgdav {
rewrite . /bin/webdav.php;
}
# CMS real URLs
location ~ ^/cms/ {
rewrite ^/cms/ext/(.*)$ /bin/ext/cms/$1 last;
rewrite ^/cms/thumbs/(.*)$ /bin/preview.php?filename=$1 last;
rewrite ^/cms/(.*?)/file/(.*)$ /bin/cms.php?page=$1&file=$2 last;
rewrite ^/cms/(.*)$ /bin/cms.php?page=$1 last;
}
# Root
location = / {
if ($request_method = "OPTIONS") {
rewrite . /bin/webdav.php last;
}
try_files /bin/index.php /src/index.php /sgs_installer.php =404;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000; # use spawn-fcgi (!!)
}
# Root PHP /*.php
location ~ ^/([^/]+\.php)$ {
try_files /bin/$1 /src/$1 $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000; # use spawn-fcgi (!!)
}
# sgs src/*.php bin/*.php
location ~ ^/(src|bin)/([^/]+\.php|ext/.+\.php)$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000; # use spawn-fcgi (!!)
}
# Redirect static files
location ~ ^/(src/|bin/)?(ext/.*|docs/.*)$ {
try_files /custom/$2 /ext/$2 /bin/$2 /src/$2 $uri =404;
}
# Drop all other stuff
location / {
if (!-f $request_filename) { return 404; }
#return 403;
}
}
| ApacheConf | 3 | tsrivishnu/certbot | certbot-compatibility-test/nginx/nginx-roundtrip-testdata/simplegroupware/sites-available/www.example.com.vhost | [
"Apache-2.0"
] |
i=:read_string_to_parse_to_number o=0 n=1 goto(i=="")*18+(i!="")*2 // Input, setup, check for empty string
a=i---i goto(a=="1")*2+(a=="2")*3+(a=="3")*4+(a=="4")*5+(a=="5")*6+4 // Consume 1 character of input, jump to characters [12345], fall through due to runtime error is string is empty
:result=o goto 20 // SUCCESS, result is stored in `o`
goto(a=="6")*6+(a=="7")*7+(a=="8")*8+(a=="9")*9+(a=="0")*10+5 // Jump to characters [67890], jump to next line for unknown char
goto 19 // FAILURE, unknown char (stored in `a`)
o+=1*n n*=10 goto 2
o+=2*n n*=10 goto 2
o+=3*n n*=10 goto 2
o+=4*n n*=10 goto 2
o+=5*n n*=10 goto 2
o+=6*n n*=10 goto 2
o+=7*n n*=10 goto 2
o+=8*n n*=10 goto 2
o+=9*n n*=10 goto 2
o+=0*n n*=10 goto 2
failed="true" empty_input="true" goto 18 // Infinite loop for demo purposes
failed="true" unknown_char=a goto 19 // Infinite loop for demo purposes
failed="false" goto 20 // Infinite loop for demo purposes | LOLCODE | 0 | Dude112113/Yolol | YololEmulator/Scripts/jump_table_number_parser.lol | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="class-index">
</xsl:template>
<xsl:template match="function-index">
</xsl:template>
</xsl:stylesheet>
| XSLT | 2 | Bpowers4/turicreate | src/external/boost/boost_1_68_0/tools/boostbook/xsl/index.xsl | [
"BSD-3-Clause"
] |
package com.baeldung.batchinserts;
import com.baeldung.batchinserts.model.School;
import com.baeldung.batchinserts.model.Student;
public class TestObjectHelper {
public static School createSchool(int nameIdentifier) {
School school = new School();
school.setName("School" + (nameIdentifier + 1));
return school;
}
public static Student createStudent(School school) {
Student student = new Student();
student.setName("Student-" + school.getName());
student.setSchool(school);
return student;
}
}
| Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-crud/src/test/java/com/baeldung/batchinserts/TestObjectHelper.java | [
"MIT"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList
import java.util.List
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for FileSchemaTestClass
*/
@MicronautTest
public class FileSchemaTestClassSpec extends Specification {
private final FileSchemaTestClass model = new FileSchemaTestClass()
/**
* Model tests for FileSchemaTestClass
*/
void "FileSchemaTestClass test"() {
// TODO: test FileSchemaTestClass
}
/**
* Test the property 'file'
*/
void "FileSchemaTestClass property file test"() {
// TODO: test file
}
/**
* Test the property 'files'
*/
void "FileSchemaTestClass property files test"() {
// TODO: test files
}
}
| Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/FileSchemaTestClassSpec.groovy | [
"Apache-2.0"
] |
{% block content %}three{% endblock %}
| HTML | 1 | jpmallarino/django | tests/template_tests/relative_templates/three.html | [
"BSD-3-Clause",
"0BSD"
] |
using AMQPClient
const VIRTUALHOST = "/"
const HOST = "127.0.0.1"
function receive()
# 1. Create a connection to the localhost or 127.0.0.1 of virtualhost '/'
connection(; virtualhost=VIRTUALHOST, host=HOST) do conn
# 2. Create a channel to send messages
channel(conn, AMQPClient.UNUSED_CHANNEL, true) do chan
# 3. Declare a queue
queue = "task_queue"
success, queue_name, message_count, consumer_count = queue_declare(chan, queue, durable=true)
println(" [*] Waiting for messages. To exit press CTRL+C")
# 4. Setup function to receive message
on_receive = (msg) -> begin
data = String(msg.data)
println("Received the message: $data")
basic_ack(chan, msg.delivery_tag)
end
# 5. Configure Quality of Service
basic_qos(chan, 0, 1, false)
success, consumer_tag = basic_consume(chan, queue, on_receive)
@assert success == true
while true
sleep(1)
end
# 5. Close the connection
end
end
end
# Don't exit on Ctrl-C
Base.exit_on_sigint(false)
try
receive()
catch ex
if ex isa InterruptException
println("Interrupted")
else
println("Exception: $ex")
end
end
| Julia | 5 | muhammadali8767/rabbit_php | julia/worker.jl | [
"Apache-2.0"
] |
INSERT INTO `binary` VALUES
( 0, x'ee72ae0aef354c5d94ffe82f696af30d'),
( 1, x'2daD56480dbd4a00a1aed85a3fbc6c3d'),
( 2, x'a35B4b77c45349d79faa41041efad77b'),
( 3, x'950A780f93b840109a97a8c60304ef69'),
( 4, x'73dA4e0f11714304b781c2339e5c3973'),
( 5, x'0a3C47cc54ea4ce3bb917006985bf31a'),
( 6, x'd03A918aa5454cfd8400cc37490505a9'),
( 7, x'1d0F15874a93418e9b70197594e5bc8b'),
( 8, x'd5019bd872194b868b5f8d0ed4b0aed5'),
( 9, x'b292179cdf0c459291dcfb8b95afc3e8'),
(10, x'3f0F41aa5468468ab90c42eb02e909d2'),
(11, x'a6175ce6b6a74e63a784b1b4ab4a4c70'),
(12, x'a7dAe6d2275e4ffd86dcba5c00e48fe5'),
(13, x'b07B158d46174c8a90791667c5545cc4'),
(14, x'7f8E4fae730a4faf86a1a4e5b1447fab'),
(15, x'13364cf3a5174f7eb78ebd6177af0e93'),
(16, x'35a044893d1c40f9a2414c23e5a5f5bd'),
(17, x'97197ef428044b84a36190a3384402aa'),
(18, x'598555572132484989805b8fac90304b'),
(19, x'f2e49556fd864f68a10789eafb4009ca'),
(20, x'ca63c5d01b6945068fdae901ed855698'),
(21, x'2e17ff04fa374fd6a6f92d09f4ef4a5f'),
(22, x'9d65d2fc85d74c3a88f8cba092903980'),
(23, x'4b0D0e94201a45ac89c410b4fefb8d95'),
(24, x'a290faa6ee5241179702a69961b46c3b'),
(25, x'61270388bd744edf9089638806efe0a9'),
(26, x'6e54e72c08784a88991e285c49945525'),
(27, x'308D6c267c3d4b25a68c7a1435b1a4f6'),
(28, x'2944629d7fef4dc0b4472ef100718837'),
(29, x'fde1328c409c43a8b1b08c35c8000f92'),
(30, x'ba4274c329e8413cbe87611e4570f999'),
(31, x'6bd41abb12ea44899c47cfc4b43e1ed3'),
(32, x'123D777433c14deaaeadec5b5bae772c'),
(33, x'42e7ffe70e084e6fa079e9596d7f0b83'),
(34, x'115Bc64364f0456e8523bd8286c39446'),
(35, x'd9d0233306bb4e648820ef426e089d8a'),
(36, x'f48888bc0d614963907db98f3a7766b6'),
(37, x'a913d4bacc4c4c479fb9271bede8015e'),
(38, x'c567fa2b4f8e4f39896d52e59ea92e87'),
(39, x'4015636d2bf543978c6b32d145e7592c'),
(40, x'41832db1800046bea4f27f22b61bb5e7'),
(41, x'55dC0343db6a420898729096305b8c07'),
(42, x'22e65824c67a4ae1b89d997bc6ee29d4'),
(43, x'090Abbb2f22e4f97a4fea52eb1a80a0b'),
(44, x'90553b8ae4c442e08fc3f20320b1110b'),
(45, x'43626db940334c75bc11ea41099565cf'),
(46, x'747B4c36678948a8921763afbee2dd15'),
(47, x'a5e015d13d76447eaf8fb834007481e9'),
(48, x'b75264a7e7074df187a2b9052ad4e36d'),
(49, x'45cD65089a064ab781406a84a109faef'),
(50, x'');
| SQL | 2 | cuishuang/tidb | br/tests/lightning_various_types/data/vt.binary.sql | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<deprecations remainingCount="0"/>
| XML | 0 | simonberger/symfony | src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/deprecations_empty.xml | [
"MIT"
] |
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: gradle.eclass
# @MAINTAINER:
# Vadim Misbakh-Soloviov <[email protected]>
# @AUTHOR:
# VAdim Misbakh-Soloviov <[email protected]>
# @BLURB: gradle wrapper
# @DESCRIPTION:
# Trying to make gradle build to work.
# For now it just adds RESTRICT=network-sandbox, which is bad,
# but someday I hope to find a way to make it work properly.
if [[ -z ${_GRADLE_ECLASS} ]]; then
_GRADLE_ECLASS=1
# TODO: fix to work with network-sandbox
RESTRICT="${RESTRICT} network-sandbox"
egradle() {
local gradle="${EGRADLE_BIN:-/usr/bin/gradle}"
local gradle_args=(
--console=rich
--info
--stacktrace
--no-build-cache
--no-daemon
# --offline
--gradle-user-home "${T}/gradle_user_home"
--project-cache-dir "${T}/gradle_project_cache"
)
einfo "gradle "${gradle_args[@]}" ${@}"
# TERM needed, otherwise gradle may fail on terms it does not know about
TERM="dumb" "${gradle}" "${gradle_args[@]}" ${@} || die "gradle failed"
}
fi
| Gentoo Eclass | 4 | msva/mva-overlay | eclass/gradle.eclass | [
"Unlicense"
] |
<mt:IfPingsActive>
<aside id="trackbacks" class="feedback">
<h2><$mt:EntryTrackbackCount singular="<__trans phrase="TrackBack">" plural="<__trans phrase="TrackBacks">" none="<__trans phrase="TrackBacks">"$></h2>
<mt:IfPingsAccepted>
<p id="trackback-url"><__trans phrase="TrackBack URL: [_1]" params="<$mt:EntryTrackbackLink$>"></p>
</mt:IfPingsAccepted>
<mt:Pings>
<div id="ping-<$mt:PingID$>" class="trackback">
<div class="info"><__trans phrase="<a href="[_1]">[_2]</a> - [_3]</a>" params="<$mt:PingURL encode_html="1"$>%%<$mt:PingTitle$>%%<$mt:PingBlogName$>"> <time datetime="<$mt:PingDate format_name="iso8601"$>"><$mt:PingDate$></time></div>
<p><$mt:PingExcerpt$></p>
</div>
</mt:Pings>
</aside>
</mt:IfPingsActive>
| MTML | 4 | movabletype/mt-theme-eiger | themes/eiger/templates/trackbacks.mtml | [
"MIT"
] |
require "spec"
require "yaml"
private def it_parses(string, expected, file = __FILE__, line = __LINE__)
it "parses #{string.inspect}", file, line do
YAML::Schema::Core.parse(string).should eq(expected)
end
end
private def it_raises_on_parse(string, message, file = __FILE__, line = __LINE__)
it "raises on parse #{string.inspect}", file, line do
expect_raises(YAML::ParseException, message) do
YAML::Schema::Core.parse(string)
end
end
end
private def it_parses_scalar(string, expected, file = __FILE__, line = __LINE__)
it "parses #{string.inspect}", file, line do
YAML::Schema::Core.parse_scalar(string).should eq(expected)
end
end
private def it_parses_string(string, file = __FILE__, line = __LINE__)
it_parses_scalar(string, string, file, line)
end
private def it_parses_scalar_from_pull(string, expected, file = __FILE__, line = __LINE__)
it_parses_scalar_from_pull(string, file, line) do |value|
value.should eq(expected)
end
end
private def it_parses_scalar_from_pull(string, file = __FILE__, line = __LINE__, &block : YAML::Any::Type ->)
it "parses #{string.inspect}", file, line do
pull = YAML::PullParser.new(%(value: #{string}))
pull.read_stream_start
pull.read_document_start
pull.read_mapping_start
pull.read_scalar # key
block.call(YAML::Schema::Core.parse_scalar(pull).as(YAML::Any::Type))
end
end
private def parse_first_node(content)
parser = YAML::Nodes::Parser.new(%(value: #{content}))
parser.parse.nodes.first.as(YAML::Nodes::Mapping).nodes[1]
end
describe YAML::Schema::Core do
# nil
it_parses_scalar "~", nil
it_parses_scalar "null", nil
it_parses_scalar "Null", nil
it_parses_scalar "NULL", nil
# true
it_parses_scalar "yes", true
it_parses_scalar "Yes", true
it_parses_scalar "YES", true
it_parses_scalar "true", true
it_parses_scalar "True", true
it_parses_scalar "TRUE", true
it_parses_scalar "on", true
it_parses_scalar "On", true
it_parses_scalar "ON", true
# false
it_parses_scalar "no", false
it_parses_scalar "No", false
it_parses_scalar "NO", false
it_parses_scalar "false", false
it_parses_scalar "False", false
it_parses_scalar "FALSE", false
it_parses_scalar "off", false
it_parses_scalar "Off", false
it_parses_scalar "OFF", false
# +infinity
it_parses_scalar ".inf", Float64::INFINITY
it_parses_scalar ".Inf", Float64::INFINITY
it_parses_scalar ".INF", Float64::INFINITY
it_parses_scalar "+.inf", Float64::INFINITY
it_parses_scalar "+.Inf", Float64::INFINITY
it_parses_scalar "+.INF", Float64::INFINITY
# -infinity
it_parses_scalar "-.inf", -Float64::INFINITY
it_parses_scalar "-.Inf", -Float64::INFINITY
it_parses_scalar "-.INF", -Float64::INFINITY
# nan
it "parses nan" do
{".nan", ".NaN", ".NAN"}.each do |string|
value = YAML::Schema::Core.parse_scalar(string)
value.as(Float64).nan?.should be_true
end
end
# integer (base 10)
it_parses_scalar "0", 0
it_parses_scalar "123", 123
it_parses_scalar "+123", 123
it_parses_scalar "-123", -123
# integer (binary)
it_parses_scalar "0b0", 0
it_parses_scalar "0b10110", 0b10110
# integer (octal)
it_parses_scalar "00", 0
it_parses_scalar "0o0", 0
it_parses_scalar "0o123", 0o123
it_parses_scalar "0755", 0o755
# integer (hex)
it_parses_scalar "0x0", 0
it_parses_scalar "0x123abc", 0x123abc
it_parses_scalar "-0x123abc", -0x123abc
# float
it_parses_scalar "1.2", 1.2
it_parses_scalar "0.815", 0.815
it_parses_scalar "0.", 0.0
it_parses_scalar "-0.0", 0.0
it_parses_scalar "1_234.2", 1_234.2
it_parses_scalar "-2E+05", -2e05
it_parses_scalar "+12.3", 12.3
it_parses_scalar ".5", 0.5
it_parses_scalar "+.5", 0.5
it_parses_scalar "-.5", -0.5
# time
it_parses_scalar "2002-12-14", Time.utc(2002, 12, 14)
it_parses_scalar "2002-1-2", Time.utc(2002, 1, 2)
it_parses_scalar "2002-1-2T10:11:12", Time.utc(2002, 1, 2, 10, 11, 12)
it_parses_scalar "2002-1-2 10:11:12", Time.utc(2002, 1, 2, 10, 11, 12)
it_parses_scalar "2002-1-2 1:11:12", Time.utc(2002, 1, 2, 1, 11, 12)
it_parses_scalar "2002-1-2T10:11:12.3", Time.utc(2002, 1, 2, 10, 11, 12, nanosecond: 300_000_000)
it_parses_scalar "2002-1-2T10:11:12.34", Time.utc(2002, 1, 2, 10, 11, 12, nanosecond: 340_000_000)
it_parses_scalar "2002-1-2T10:11:12.345", Time.utc(2002, 1, 2, 10, 11, 12, nanosecond: 345_000_000)
it_parses_scalar "2002-1-2T10:11:12.3456", Time.utc(2002, 1, 2, 10, 11, 12, nanosecond: 345_600_000)
it_parses_scalar "2002-1-2T10:11:12Z", Time.utc(2002, 1, 2, 10, 11, 12)
it_parses_scalar "2002-1-2T10:11:12 Z", Time.utc(2002, 1, 2, 10, 11, 12)
it_parses_scalar "2002-1-2T10:11:12 +3", Time.utc(2002, 1, 2, 7, 11, 12)
it_parses_scalar "2002-1-2T10:11:12 +03:00", Time.utc(2002, 1, 2, 7, 11, 12)
it_parses_scalar "2002-1-2T10:11:12 -03:00", Time.utc(2002, 1, 2, 13, 11, 12)
it_parses_scalar "2002-1-2T10:11:12 -03:31", Time.utc(2002, 1, 2, 13, 42, 12)
it_parses_scalar "2002-1-2T10:11:12-03:31", Time.utc(2002, 1, 2, 13, 42, 12)
it_parses_scalar "2002-1-2T10:11:12 +0300", Time.utc(2002, 1, 2, 7, 11, 12)
# invalid time
it_parses_string "2002-34-45"
it_parses_string "2002-12-14 x"
it_parses_string "2002-1-2T10:11:12x"
it_parses_string "2002-1-2T10:11:12Zx"
it_parses_string "2002-1-2T10:11:12+03x"
# non-plain style
it_parses_scalar_from_pull %("1"), "1"
# bools according to the spec, but parsed as strings in Python and Ruby,
# so we do the same in Crystal for "compatibility"
it_parses_scalar "y", "y"
it_parses_scalar "Y", "Y"
it_parses_scalar "n", "n"
it_parses_scalar "N", "N"
# !!map
it_parses "!!map {1: 2}", {1 => 2}
it_raises_on_parse "!!map 1", "Expected MAPPING_START"
# !!omap
it_parses "!!omap {1: 2}", {1 => 2}
it_raises_on_parse "!!omap 1", "Expected MAPPING_START"
# !!pairs
it_parses "!!pairs [{1: 2}, {3: 4}]", [{1 => 2}, {3 => 4}]
it_raises_on_parse "!!pairs 1", "Expected SEQUENCE_START"
it_raises_on_parse "!!pairs [{1: 2, 3: 4}]", "Expected MAPPING_END"
# !!set
it_parses "!!set { 1, 2, 3 }", Set{1, 2, 3}
it_raises_on_parse "!!set 1", "Expected MAPPING_START"
# !!seq
it_parses "!!seq [ 1, 2, 3 ]", [1, 2, 3]
it_raises_on_parse "!!seq 1", "Expected SEQUENCE_START"
# !!binary
it_parses "!!binary aGVsbG8=", "hello".to_slice
it_raises_on_parse "!!binary [1]", "Expected SCALAR"
it_raises_on_parse "!!binary 1", "Error decoding Base64"
# !!bool
it_parses "!!bool yes", true
it_raises_on_parse "!!bool 1", "Invalid bool"
# !!float
it_parses "!!float '1.2'", 1.2
it_parses "!!float '0.5'", 0.5
it_parses "!!float '1_234.2'", 1_234.2
it_parses "!!float -1", -1.0
it_parses "!!float 0", 0.0
it_parses "!!float 2.3e4", 2.3e4
it "parses !!float .nan" do
YAML::Schema::Core.parse("!!float .nan").as_f.nan?.should be_true
end
it_parses "!!float .inf", Float64::INFINITY
it_raises_on_parse "!!float 'hello'", "Invalid float"
# !!int
it_parses "!!int 0", 0
it_parses "!!int 123", 123
it_parses "!!int 0b10", 0b10
it_parses "!!int 0o123", 0o123
it_parses "!!int 0755", 0o755
it_parses "!!int 0xabc", 0xabc
it_parses "!!int -123", -123
it_raises_on_parse "!!int 'hello'", "Invalid int"
# !!null
it_parses "!!null ~", nil
it_raises_on_parse "!!null 1", "Invalid null"
# !!str
it_parses "!!str 1", "1"
it_raises_on_parse "!!str [1]", "Expected SCALAR"
# # !!timestamp
it_parses "!!timestamp 2010-01-02", Time.utc(2010, 1, 2)
it_raises_on_parse "!!timestamp foo", "Invalid timestamp"
it ".parse_null_or" do
YAML::Schema::Core.parse_null_or(parse_first_node(%())) { true }.should be_nil
YAML::Schema::Core.parse_null_or(parse_first_node(%(~))) { true }.should be_nil
YAML::Schema::Core.parse_null_or(parse_first_node(%(""))) { true }.should be_true
YAML::Schema::Core.parse_null_or(parse_first_node(%(''))) { true }.should be_true
end
end
| Crystal | 4 | n00p3/crystal | spec/std/yaml/schema/core_spec.cr | [
"Apache-2.0"
] |
#include "caffe2/operators/spatial_batch_norm_op.h"
#include "caffe2/operators/spatial_batch_norm_op_impl.cuh"
namespace caffe2 {
REGISTER_CUDA_OPERATOR(SpatialBN, SpatialBNOp<CUDAContext>);
REGISTER_CUDA_OPERATOR(SpatialBNGradient, SpatialBNGradientOp<CUDAContext>);
} // namespace caffe2
| Cuda | 3 | Hacky-DH/pytorch | caffe2/operators/spatial_batch_norm_op.cu | [
"Intel"
] |
name: hol-coalgebras
version: 1.0
description: HOL coalgebras theories (before re-interpretation)
author: HOL OpenTheory Packager <[email protected]>
license: GPL
main {
import: llist
import: lbtree
import: path
}
llist {
article: "llist.ot.art"
}
lbtree {
import: llist
article: "lbtree.ot.art"
}
path {
import: llist
article: "path.ot.art"
}
| Isabelle | 3 | dwRchyngqxs/HOL | src/coalgebras/hol4-coalgebras-unint.thy | [
"BSD-3-Clause"
] |
{-
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0
Contact: [email protected]
NOTE: This file is auto generated by the swagger code generator program.
https://github.com/swagger-api/swagger-codegen.git
Do not edit this file manually.
-}
module Request.Store exposing (deleteOrder, getInventory, getOrderById, placeOrder)
import Data.Order exposing (Order, orderDecoder, orderEncoder)
import Data.Int exposing (Int, intDecoder)
import Http
import Json.Decode as Decode
basePath : String
basePath =
"http://petstore.swagger.io/v2"
{-
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-}
deleteOrder : String -> Http.Request ()
deleteOrder orderId =
{ method = "DELETE"
, url = basePath ++ "/store/order/" ++ orderId
, headers = []
, body = Http.emptyBody
, expect = Http.expectStringResponse (\_ -> Ok ())
, timeout = Just 30000
, withCredentials = False
}
|> Http.request
{-
Returns a map of status codes to quantities
-}
getInventory : Http.Request Int
getInventory =
{ method = "GET"
, url = basePath ++ "/store/inventory"
, headers = []
, body = Http.emptyBody
, expect = Http.expectJson intDecoder
, timeout = Just 30000
, withCredentials = False
}
|> Http.request
{-
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
-}
getOrderById : Int -> Http.Request Order
getOrderById orderId =
{ method = "GET"
, url = basePath ++ "/store/order/" ++ toString orderId
, headers = []
, body = Http.emptyBody
, expect = Http.expectJson orderDecoder
, timeout = Just 30000
, withCredentials = False
}
|> Http.request
{-
-}
placeOrder : Order -> Http.Request Order
placeOrder model =
{ method = "POST"
, url = basePath ++ "/store/order"
, headers = []
, body = Http.jsonBody <| orderEncoder model
, expect = Http.expectJson orderDecoder
, timeout = Just 30000
, withCredentials = False
}
|> Http.request
| Elm | 5 | derBiggi/swagger-codegen | samples/client/petstore/elm/src/Request/Store.elm | [
"Apache-2.0"
] |
@import url('other.css');
.test {
color: red;
}
| CSS | 3 | blomqma/next.js | test/integration/css-fixtures/npm-import-nested/node_modules/example/test.css | [
"MIT"
] |
//===--- DebugUtils.cpp ---------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/SIL/DebugUtils.h"
#include "swift/Basic/STLExtras.h"
#include "swift/SIL/SILArgument.h"
#include "swift/SIL/SILInstruction.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/SmallPtrSet.h"
using namespace swift;
bool swift::hasNonTrivialNonDebugTransitiveUsers(
PointerUnion<SILInstruction *, SILArgument *> V) {
llvm::SmallVector<SILInstruction *, 8> Worklist;
llvm::SmallPtrSet<SILInstruction *, 8> SeenInsts;
// Initialize our worklist.
if (auto *A = V.dyn_cast<SILArgument *>()) {
for (Operand *Op : getNonDebugUses(SILValue(A))) {
auto *User = Op->getUser();
if (!SeenInsts.insert(User).second)
continue;
Worklist.push_back(User);
}
} else {
auto *I = V.get<SILInstruction *>();
SeenInsts.insert(I);
Worklist.push_back(I);
}
while (!Worklist.empty()) {
SILInstruction *U = Worklist.pop_back_val();
assert(SeenInsts.count(U) &&
"Worklist should only contain seen instructions?!");
// If U is a terminator inst, return false.
if (isa<TermInst>(U))
return true;
// If U has side effects...
if (U->mayHaveSideEffects())
return true;
// Otherwise add all non-debug uses of I that we have not seen yet to the
// worklist.
for (SILValue Result : U->getResults()) {
for (Operand *I : getNonDebugUses(Result)) {
auto *User = I->getUser();
if (!SeenInsts.insert(User).second)
continue;
Worklist.push_back(User);
}
}
}
return false;
}
| C++ | 4 | lwhsu/swift | lib/SIL/DebugUtils.cpp | [
"Apache-2.0"
] |
gobench -package=./hugolib -bench="BenchmarkSiteNew/Deep_content_tree" | Shell | 2 | jlevon/hugo | benchbep.sh | [
"Apache-2.0"
] |
<VirtualHost 192.168.1.100:80>
ServerName example.server.com
DocumentRoot /var/www/myApp
CustomLog /var/log/apache2/myApp-access.log combined
ErrorLog /var/log/apache2/myApp-error.log
LogLevel warn
ServerSignature Off
# PyAMF gateway
<Location /flashservices/gateway>
SetHandler mod_python
PythonPath "['/var/www/myApp', '/usr/src/pyamf']+sys.path"
PythonHandler wsgi
PythonOption wsgi.application startup::application
PythonOption SCRIPT_NAME /flashservices/gateway
# Only enable the options below when you're debugging the
# application. Turn them Off in a production environment.
PythonDebug On
PythonAutoReload On
</Location>
</VirtualHost> | ApacheConf | 3 | elmordo/Py3AMF | doc/tutorials/examples/apache/mod_python.vhost | [
"MIT"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Upper Body
m_Mask: 00000000010000000100000000000000000000000100000001000000010000000100000000000000000000000100000001000000
m_Elements:
- m_Path:
m_Weight: 1
- m_Path: Hips
m_Weight: 1
- m_Path: Hips/Spine
m_Weight: 1
- m_Path: Hips/Spine/Chest
m_Weight: 1
- m_Path: Hips/Spine/Chest/Neck
m_Weight: 1
- m_Path: Hips/Spine/Chest/Neck/Head
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L/Hand.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L/Hand.L/Fingers.1.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L/Hand.L/Fingers.1.L/Fingers.2.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L/Hand.L/Thumb.1.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.L/UpperArm.L/LowerArm.L/Hand.L/Thumb.1.L/Thumb.2.L
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R/Fingers.1.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R/Fingers.1.R/Fingers.2.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R/Holder.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R/Thumb.1.R
m_Weight: 1
- m_Path: Hips/Spine/Chest/Shoulder.R/UpperArm.R/LowerArm.R/Hand.R/Thumb.1.R/Thumb.2.R
m_Weight: 1
- m_Path: Hips/UpperLeg.L
m_Weight: 1
- m_Path: Hips/UpperLeg.L/LowerLeg.L
m_Weight: 1
- m_Path: Hips/UpperLeg.L/LowerLeg.L/Foot.L
m_Weight: 1
- m_Path: Hips/UpperLeg.R
m_Weight: 1
- m_Path: Hips/UpperLeg.R/LowerLeg.R
m_Weight: 1
- m_Path: Hips/UpperLeg.R/LowerLeg.R/Foot.R
m_Weight: 1
- m_Path: LowPolyManMesh
m_Weight: 1
| Mask | 2 | DBestBean/ETandGF | Unity/Assets/Plugins/Animancer/Examples/07 Layers/Upper Body.mask | [
"MIT"
] |
@0x9663f4dd604afa35;
interface HelloWorld {
struct HelloRequest {
name @0 :Text;
}
struct HelloReply {
message @0 :Text;
}
sayHello @0 (request: HelloRequest) -> (reply: HelloReply);
} | Cap'n Proto | 4 | tomkris/capnproto-rust | capnp-rpc/examples/hello-world/hello_world.capnp | [
"MIT"
] |
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('image');
| TypeScript | 1 | fanerge/ant-design | components/image/__tests__/demo-extend.test.ts | [
"MIT"
] |
(%
% rowl - 1st generation
% Copyright (C) 2010 nineties
%
% $Id: main.rl 2010-10-19 14:04:36 nineties $
%);
(% rowl-core interpreter %);
include(stddef, code);
export main;
(% source file name %);
interpret: (p0) {
allocate(1);
init_evaluator();
init_builtin_objects();
x0 = parse(p0);
while (x0 != nil_sym) {
eval_sexp(car(x0));
x0 = cdr(x0);
}
};
usage: (p0) {
puts("USAGE: ");
puts(p0);
puts(" [file]\n");
};
(% p0: argc, p1: argv %);
main: (p0, p1) {
if (p0 < 2) {
usage(p1[0]);
return 1;
};
interpret(p1[1]);
return 0;
};
| Ragel in Ruby Host | 3 | waldo2590/amber-1 | amber/main.rl | [
"MIT"
] |
// name: fauReverb.ck
// desc: demo of Faust chugin in action!
// instantiate and connect faust => ck
Faust fck => Faust reverb => dac;
// evaluate Faust synth
fck.eval(`
freq=nentry("freq",440,50,2000,0.01);
process = os.sawtooth(freq);
`);
// evaluate Faust reverb
reverb.eval(`
process = _ <: dm.zita_light;
`);
// NOTE: alternatively, the synth and the reverb could have been combined
// in a single Faust object:
// fck.eval(`
// freq = nentry("freq",440,50,2000,0.01);
// process = os.sawtooth(freq) <: dm.zita_light;
// `);
// time loop
while( true )
{
// set
fck.v("freq", Math.random2f(400,800) );
// advance time
100::ms => now;
}
| ChucK | 4 | ccdarabundit/chugins | Faust/examples/fauReverb.ck | [
"MIT"
] |
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" resources\winsetup\YarnSetup.wixproj /p:Configuration=Release
| Batchfile | 1 | Bhanditz/yarn | scripts/build-windows-installer.bat | [
"BSD-2-Clause"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
import QtQuick 2.12
import QtQuick.Controls 2.4
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.11
import QtQuick.Window 2.11
import QGroundControl 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0
import QGroundControl.ScreenTools 1.0
import QGroundControl.FlightDisplay 1.0
import QGroundControl.FlightMap 1.0
import QGroundControl.Controllers 1.0
ApplicationWindow {
id: _root
visible: true
visibility: Qt.WindowFullScreen
color: qgcPal.window
property real editorWidth: ScreenTools.defaultFontPixelWidth * 30
QGCPalette { id: qgcPal; colorGroupEnabled: true }
Timer {
id: timer
interval: 100
onTriggered: {
var success = fullImage.grabToImage(function(result) { result.saveToFile(imagePath) })
console.log(success)
}
}
Component.onCompleted: timer.start()
Flow {
id: fullImage
anchors.fill: parent
Repeater {
model: missionItems
Column {
QGCLabel { text: modelData.commandName; color: "black" }
Loader {
id: editorLoader
source: modelData.editorQml
property var missionItem: modelData
property var masterController: planMasterController
property real availableWidth: editorWidth
}
}
}
}
}
| QML | 4 | vincentdavoust/qgroundcontrol | src/MissionManager/MissionCommandTreeEditorTestWindow.qml | [
"Apache-2.0"
] |
# Upstream server (Puma socket)
upstream bounga {
server unix:/srv/web/drail240a/shared/sockets/puma.sock;
}
# Redirect non-www requests to www host
server {
server_name 127.0.0.1;
return 301 $scheme://www.127.0.0.1$request_uri;
}
# Config for vhost
server {
listen 1224;
server_name 127.0.0.1;
access_log /var/log/nginx/drail240a3.access.log;
error_log /var/log/nginx/drail240a3.error.log;
root /srv/web/drail240a/public;
# direct to maintenance if this file exists
if (-f $document_root/system/maintenance.html) {
rewrite ^(.*)$ /system/maintenance.html last;
break;
}
# assets caching
location ~ ^/(assets)/ {
access_log off;
gzip_static on;
expires max;
add_header Cache-Control public;
add_header Last-Modified "";
add_header ETag "";
open_file_cache max=1000 inactive=500s;
open_file_cache_valid 600s;
open_file_cache_errors on;
break;
}
# serve static file directly
try_files $uri/index.html $uri @bounga;
# App proxying
location @bounga {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1;
}
error_page 500 502 503 504 /500.html;
keepalive_timeout 10;
location = /favicon.ico {
expires max;
add_header Cache-Control public;
}
}
| ApacheConf | 4 | dgleba/vamp206a | rails/older/drail240a3.conf.nginx.vhost | [
"MIT",
"Unlicense"
] |
<cfcomponent>
<cffunction name="foo">
<cfset var streetname='123'/>
<cfset tokenizedAddress["streetName"] = streetName>
<cfset tokenizedAddress["streetNumber"] = 456>
<cfscript>
tokenizedAddress["streetName"] = streetName;
tokenizedAddress2["streetNumber"] = 456;
</cfscript>
</cffunction>
</cfcomponent> | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/structUse2_404.cfc | [
"BSD-3-Clause"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,-7.94,-7.97,-7.94,-7.97,6.00,5.78,1.66,-1.94,-1.94,0.03
20.20,-7.80,-7.88,-7.80,-7.88,6.00,5.83,1.71,-1.80,-1.80,0.08
20.40,-7.65,-7.79,-7.65,-7.78,6.00,5.88,1.76,-1.65,-1.65,0.13
20.61,-7.52,-7.68,-7.52,-7.69,6.00,5.92,1.82,-1.52,-1.52,0.16
20.81,-7.37,-7.59,-7.37,-7.59,6.00,5.96,1.87,-1.37,-1.37,0.21
21.02,-7.24,-7.49,-7.24,-7.48,6.00,5.99,1.93,-1.24,-1.24,0.25
21.23,-7.11,-7.38,-7.11,-7.38,6.00,6.02,1.99,-1.11,-1.11,0.27
21.44,-6.98,-7.28,-6.98,-7.27,6.00,6.04,2.05,-0.98,-0.98,0.29
21.66,-6.86,-7.17,-6.85,-7.16,6.00,6.06,2.11,-0.86,-0.85,0.31
21.87,-6.72,-7.05,-6.73,-7.06,6.00,6.06,2.17,-0.72,-0.73,0.32
22.09,-6.61,-6.95,-6.61,-6.95,6.00,6.07,2.24,-0.61,-0.61,0.34
22.31,-6.50,-6.86,-6.50,-6.85,6.00,6.06,2.31,-0.50,-0.50,0.35
22.54,-6.40,-6.75,-6.40,-6.75,6.01,6.05,2.37,-0.39,-0.39,0.35
22.76,-6.29,-6.64,-6.29,-6.64,6.02,6.04,2.44,-0.27,-0.27,0.35
22.99,-6.18,-6.52,-6.17,-6.52,6.03,6.01,2.52,-0.15,-0.15,0.34
23.22,-6.06,-6.40,-6.05,-6.39,6.02,5.98,2.59,-0.03,-0.03,0.34
23.45,-5.93,-6.26,-5.93,-6.27,6.01,5.95,2.67,0.08,0.07,0.34
23.69,-5.81,-6.16,-5.81,-6.15,5.97,5.91,2.74,0.16,0.16,0.35
23.92,-5.67,-6.02,-5.67,-6.02,5.91,5.86,2.82,0.23,0.24,0.35
24.16,-5.53,-5.89,-5.53,-5.89,5.83,5.80,2.90,0.30,0.30,0.36
24.40,-5.38,-5.75,-5.39,-5.75,5.74,5.74,2.98,0.35,0.35,0.37
24.65,-5.25,-5.60,-5.24,-5.60,5.63,5.68,3.06,0.38,0.39,0.36
24.89,-5.09,-5.45,-5.10,-5.46,5.51,5.61,3.14,0.42,0.41,0.36
25.14,-4.97,-5.33,-4.98,-5.34,5.39,5.53,3.22,0.41,0.41,0.36
25.39,-4.87,-5.24,-4.88,-5.24,5.26,5.45,3.31,0.38,0.38,0.37
25.65,-4.79,-5.15,-4.78,-5.14,5.14,5.37,3.39,0.35,0.35,0.37
25.91,-4.69,-5.04,-4.68,-5.04,5.02,5.28,3.47,0.33,0.34,0.35
26.16,-4.56,-4.92,-4.57,-4.92,4.91,5.18,3.55,0.35,0.34,0.35
26.43,-4.45,-4.80,-4.45,-4.80,4.79,5.09,3.63,0.35,0.35,0.35
26.69,-4.32,-4.67,-4.32,-4.68,4.67,4.99,3.71,0.36,0.35,0.35
26.96,-4.20,-4.56,-4.20,-4.56,4.54,4.88,3.78,0.35,0.35,0.36
27.23,-4.07,-4.43,-4.06,-4.42,4.41,4.78,3.85,0.35,0.35,0.36
27.50,-3.93,-4.29,-3.92,-4.28,4.28,4.67,3.92,0.35,0.36,0.36
27.77,-3.78,-4.13,-3.79,-4.14,4.15,4.56,3.99,0.37,0.36,0.35
28.05,-3.66,-4.00,-3.66,-4.01,4.03,4.44,4.05,0.37,0.37,0.35
28.33,-3.56,-3.89,-3.55,-3.89,3.91,4.33,4.10,0.36,0.36,0.34
28.62,-3.45,-3.79,-3.45,-3.79,3.80,4.21,4.15,0.35,0.35,0.34
28.90,-3.35,-3.69,-3.34,-3.68,3.69,4.10,4.19,0.34,0.34,0.35
29.19,-3.24,-3.57,-3.24,-3.58,3.58,3.98,4.23,0.34,0.34,0.34
29.48,-3.14,-3.49,-3.14,-3.49,3.47,3.86,4.26,0.34,0.33,0.35
29.78,-3.04,-3.38,-3.03,-3.38,3.36,3.74,4.28,0.33,0.33,0.34
30.08,-2.93,-3.28,-2.92,-3.27,3.25,3.62,4.29,0.32,0.33,0.35
30.38,-2.80,-3.14,-2.80,-3.14,3.14,3.50,4.29,0.34,0.34,0.34
30.68,-2.67,-3.01,-2.67,-3.01,3.02,3.38,4.29,0.35,0.35,0.34
30.99,-2.54,-2.88,-2.54,-2.88,2.90,3.26,4.27,0.36,0.36,0.34
31.30,-2.43,-2.77,-2.43,-2.77,2.78,3.14,4.25,0.36,0.35,0.34
31.61,-2.33,-2.66,-2.32,-2.66,2.66,3.02,4.21,0.34,0.34,0.34
31.93,-2.22,-2.55,-2.22,-2.55,2.54,2.90,4.17,0.32,0.32,0.34
32.24,-2.10,-2.43,-2.11,-2.44,2.42,2.79,4.12,0.31,0.31,0.32
32.57,-1.99,-2.32,-1.99,-2.32,2.30,2.67,4.06,0.31,0.31,0.33
32.89,-1.87,-2.20,-1.86,-2.19,2.18,2.55,3.99,0.32,0.32,0.33
33.22,-1.74,-2.06,-1.74,-2.06,2.07,2.43,3.91,0.33,0.33,0.32
33.55,-1.61,-1.93,-1.61,-1.93,1.95,2.32,3.83,0.34,0.34,0.32
33.89,-1.49,-1.79,-1.50,-1.81,1.84,2.20,3.73,0.35,0.34,0.31
34.23,-1.40,-1.71,-1.40,-1.71,1.72,2.09,3.63,0.32,0.32,0.31
34.57,-1.32,-1.62,-1.32,-1.62,1.60,1.97,3.53,0.28,0.28,0.30
34.92,-1.24,-1.54,-1.22,-1.53,1.48,1.86,3.42,0.25,0.26,0.30
35.27,-1.11,-1.41,-1.10,-1.39,1.37,1.75,3.30,0.26,0.27,0.30
35.62,-0.96,-1.25,-0.96,-1.26,1.26,1.64,3.18,0.31,0.30,0.30
35.97,-0.81,-1.10,-0.83,-1.13,1.16,1.53,3.06,0.35,0.33,0.30
36.33,-0.73,-1.03,-0.72,-1.02,1.05,1.42,2.93,0.33,0.33,0.30
36.70,-0.65,-0.94,-0.64,-0.93,0.95,1.31,2.80,0.30,0.31,0.29
37.06,-0.57,-0.85,-0.56,-0.86,0.85,1.20,2.66,0.29,0.29,0.29
37.43,-0.48,-0.78,-0.48,-0.77,0.76,1.10,2.53,0.29,0.28,0.31
37.81,-0.39,-0.69,-0.39,-0.69,0.67,0.99,2.39,0.29,0.29,0.30
38.19,-0.30,-0.60,-0.29,-0.60,0.59,0.89,2.25,0.29,0.30,0.30
38.57,-0.20,-0.50,-0.20,-0.50,0.50,0.79,2.11,0.31,0.31,0.31
38.95,-0.10,-0.41,-0.10,-0.41,0.42,0.68,1.96,0.32,0.32,0.32
39.34,-0.01,-0.32,-0.01,-0.32,0.32,0.58,1.82,0.32,0.32,0.31
39.74,0.08,-0.23,0.08,-0.23,0.23,0.48,1.68,0.31,0.31,0.31
40.14,0.17,-0.14,0.18,-0.13,0.13,0.39,1.53,0.30,0.31,0.32
40.54,0.27,-0.04,0.28,-0.04,0.03,0.29,1.39,0.30,0.31,0.31
40.94,0.38,0.08,0.37,0.06,-0.07,0.19,1.25,0.31,0.30,0.31
41.35,0.46,0.16,0.47,0.16,-0.17,0.10,1.10,0.30,0.30,0.31
41.76,0.55,0.25,0.56,0.26,-0.26,0.00,0.96,0.29,0.30,0.30
42.18,0.65,0.35,0.67,0.37,-0.35,-0.09,0.81,0.30,0.32,0.31
42.60,0.77,0.48,0.77,0.48,-0.44,-0.18,0.67,0.33,0.33,0.29
43.03,0.88,0.59,0.84,0.55,-0.53,-0.27,0.53,0.35,0.31,0.29
43.46,0.88,0.60,0.89,0.61,-0.61,-0.36,0.38,0.27,0.28,0.29
43.90,0.89,0.63,0.93,0.67,-0.69,-0.45,0.24,0.21,0.24,0.26
44.33,0.98,0.74,0.99,0.75,-0.76,-0.54,0.10,0.22,0.23,0.25
44.78,1.10,0.87,1.08,0.85,-0.84,-0.62,-0.05,0.26,0.24,0.23
45.23,1.17,0.95,1.15,0.93,-0.92,-0.71,-0.19,0.25,0.23,0.23
45.68,1.20,0.99,1.22,1.00,-1.02,-0.79,-0.33,0.19,0.20,0.21
46.13,1.26,1.07,1.28,1.08,-1.12,-0.88,-0.47,0.15,0.17,0.20
46.60,1.38,1.18,1.38,1.19,-1.22,-0.96,-0.61,0.16,0.16,0.20
47.06,1.50,1.32,1.51,1.32,-1.32,-1.04,-0.76,0.19,0.19,0.18
47.53,1.62,1.45,1.63,1.45,-1.41,-1.12,-0.90,0.21,0.21,0.18
48.01,1.74,1.56,1.72,1.54,-1.50,-1.20,-1.04,0.24,0.21,0.18
48.49,1.77,1.61,1.78,1.61,-1.59,-1.28,-1.18,0.19,0.19,0.16
48.97,1.80,1.66,1.82,1.67,-1.67,-1.35,-1.32,0.14,0.15,0.15
49.46,1.85,1.72,1.85,1.72,-1.74,-1.43,-1.46,0.12,0.11,0.13
49.96,1.90,1.79,1.90,1.78,-1.80,-1.50,-1.60,0.11,0.10,0.11
50.46,1.95,1.84,1.95,1.84,-1.85,-1.58,-1.74,0.10,0.10,0.12
50.96,2.00,1.90,2.01,1.90,-1.90,-1.65,-1.87,0.10,0.10,0.11
51.47,2.05,1.96,2.05,1.96,-1.95,-1.72,-2.01,0.10,0.10,0.09
51.99,2.10,2.02,2.09,2.01,-2.01,-1.79,-2.14,0.10,0.09,0.08
52.51,2.13,2.05,2.13,2.05,-2.06,-1.86,-2.28,0.07,0.07,0.08
53.03,2.16,2.08,2.18,2.10,-2.11,-1.92,-2.41,0.05,0.07,0.08
53.56,2.23,2.16,2.23,2.16,-2.16,-1.99,-2.53,0.08,0.07,0.07
54.10,2.29,2.23,2.27,2.20,-2.20,-2.06,-2.66,0.09,0.07,0.06
54.64,2.30,2.25,2.32,2.26,-2.24,-2.12,-2.78,0.06,0.08,0.05
55.18,2.33,2.28,2.36,2.31,-2.29,-2.18,-2.90,0.04,0.07,0.05
55.74,2.42,2.38,2.38,2.33,-2.35,-2.24,-3.02,0.07,0.03,0.04
56.29,2.42,2.38,2.39,2.35,-2.41,-2.31,-3.13,0.02,-0.01,0.04
56.86,2.36,2.33,2.44,2.42,-2.45,-2.36,-3.24,-0.09,-0.01,0.03
57.42,2.49,2.48,2.51,2.49,-2.49,-2.42,-3.34,-0.01,0.02,0.01
58.00,2.66,2.66,2.59,2.58,-2.53,-2.48,-3.43,0.14,0.06,0.01
58.58,2.64,2.64,2.65,2.65,-2.57,-2.54,-3.53,0.08,0.09,0.00
59.16,2.63,2.64,2.65,2.66,-2.61,-2.59,-3.61,0.02,0.04,-0.01
59.76,2.61,2.64,2.59,2.62,-2.67,-2.64,-3.69,-0.06,-0.08,-0.02
60.35,2.58,2.64,2.58,2.63,-2.73,-2.70,-3.76,-0.14,-0.15,-0.06
60.96,2.54,2.63,2.63,2.71,-2.78,-2.75,-3.83,-0.24,-0.15,-0.08
61.57,2.72,2.84,2.70,2.82,-2.83,-2.80,-3.89,-0.11,-0.13,-0.12
62.18,2.85,3.01,2.78,2.94,-2.89,-2.84,-3.94,-0.03,-0.10,-0.15
62.80,2.81,3.00,2.83,3.02,-2.95,-2.89,-3.98,-0.13,-0.11,-0.19
63.43,2.80,3.03,2.82,3.05,-3.01,-2.94,-4.02,-0.21,-0.19,-0.23
64.07,2.80,3.07,2.80,3.06,-3.07,-2.98,-4.05,-0.26,-0.27,-0.26
64.71,2.80,3.10,2.80,3.10,-3.11,-3.03,-4.08,-0.30,-0.31,-0.30
65.35,2.80,3.13,2.80,3.13,-3.14,-3.07,-4.10,-0.33,-0.33,-0.33
66.01,2.80,3.17,2.80,3.17,-3.16,-3.11,-4.11,-0.36,-0.36,-0.37
66.67,2.80,3.21,2.81,3.21,-3.20,-3.15,-4.12,-0.40,-0.39,-0.41
67.33,2.80,3.25,2.79,3.23,-3.26,-3.19,-4.12,-0.45,-0.46,-0.45
68.01,2.80,3.28,2.78,3.25,-3.32,-3.23,-4.11,-0.52,-0.55,-0.48
68.69,2.76,3.28,2.83,3.34,-3.39,-3.27,-4.10,-0.63,-0.56,-0.52
69.37,2.87,3.42,2.90,3.46,-3.46,-3.31,-4.09,-0.60,-0.56,-0.56
70.07,3.07,3.67,2.98,3.57,-3.54,-3.34,-4.08,-0.46,-0.56,-0.60
70.77,3.02,3.66,3.04,3.67,-3.61,-3.38,-4.06,-0.58,-0.57,-0.63
71.48,3.01,3.69,3.04,3.72,-3.68,-3.41,-4.04,-0.66,-0.64,-0.67
72.19,3.01,3.74,3.01,3.73,-3.74,-3.44,-4.02,-0.73,-0.73,-0.73
72.91,3.01,3.79,3.01,3.78,-3.80,-3.48,-3.99,-0.79,-0.79,-0.77
73.64,3.01,3.83,3.01,3.83,-3.86,-3.51,-3.97,-0.84,-0.84,-0.82
74.38,3.01,3.88,3.01,3.88,-3.90,-3.54,-3.94,-0.88,-0.89,-0.86
75.12,3.01,3.92,3.01,3.92,-3.94,-3.57,-3.91,-0.92,-0.92,-0.91
75.87,3.01,3.97,3.02,3.97,-3.97,-3.59,-3.89,-0.95,-0.95,-0.96
76.63,3.02,4.02,3.04,4.03,-4.00,-3.62,-3.86,-0.97,-0.96,-0.99
77.40,3.04,4.07,3.03,4.06,-4.02,-3.65,-3.84,-0.98,-1.00,-1.03
78.17,3.03,4.11,3.00,4.07,-4.04,-3.67,-3.82,-1.01,-1.05,-1.08
78.95,2.91,4.01,2.95,4.06,-4.06,-3.70,-3.79,-1.15,-1.11,-1.10
79.74,2.90,4.04,2.91,4.05,-4.08,-3.72,-3.77,-1.18,-1.17,-1.14
80.54,2.90,4.07,2.89,4.06,-4.11,-3.75,-3.75,-1.20,-1.21,-1.17
81.35,2.90,4.11,2.90,4.11,-4.13,-3.77,-3.74,-1.22,-1.22,-1.21
82.16,2.90,4.14,2.90,4.14,-4.14,-3.79,-3.72,-1.24,-1.24,-1.24
82.98,2.90,4.16,2.91,4.18,-4.16,-3.82,-3.71,-1.26,-1.25,-1.26
83.81,2.90,4.21,2.91,4.21,-4.18,-3.84,-3.70,-1.27,-1.27,-1.30
84.65,2.90,4.24,2.89,4.22,-4.19,-3.86,-3.70,-1.28,-1.30,-1.34
85.50,2.86,4.22,2.86,4.22,-4.20,-3.88,-3.69,-1.33,-1.34,-1.36
86.35,2.80,4.20,2.81,4.20,-4.20,-3.90,-3.69,-1.40,-1.40,-1.39
87.22,2.75,4.18,2.75,4.18,-4.21,-3.92,-3.69,-1.45,-1.45,-1.43
88.09,2.70,4.17,2.72,4.18,-4.22,-3.94,-3.70,-1.51,-1.50,-1.46
88.97,2.71,4.21,2.71,4.21,-4.23,-3.95,-3.70,-1.52,-1.52,-1.50
89.86,2.71,4.25,2.71,4.24,-4.26,-3.97,-3.71,-1.54,-1.55,-1.53
90.76,2.71,4.28,2.71,4.28,-4.29,-3.99,-3.73,-1.57,-1.57,-1.57
91.66,2.71,4.31,2.71,4.32,-4.32,-4.01,-3.74,-1.61,-1.61,-1.60
92.58,2.71,4.36,2.72,4.36,-4.35,-4.02,-3.76,-1.64,-1.63,-1.64
93.51,2.72,4.39,2.73,4.40,-4.38,-4.04,-3.78,-1.66,-1.65,-1.67
94.44,2.74,4.44,2.72,4.42,-4.39,-4.05,-3.81,-1.65,-1.67,-1.70
95.39,2.70,4.43,2.69,4.42,-4.39,-4.07,-3.83,-1.69,-1.70,-1.73
96.34,2.60,4.37,2.62,4.39,-4.37,-4.09,-3.86,-1.77,-1.75,-1.76
97.30,2.54,4.34,2.54,4.34,-4.34,-4.10,-3.89,-1.79,-1.79,-1.79
98.28,2.47,4.30,2.48,4.30,-4.30,-4.12,-3.93,-1.82,-1.82,-1.82
99.26,2.40,4.25,2.41,4.26,-4.25,-4.13,-3.96,-1.85,-1.84,-1.85
100.25,2.35,4.23,2.32,4.19,-4.21,-4.14,-4.00,-1.86,-1.89,-1.88
101.25,2.21,4.12,2.22,4.13,-4.17,-4.16,-4.04,-1.96,-1.95,-1.91
102.27,2.11,4.05,2.15,4.09,-4.13,-4.17,-4.08,-2.02,-1.98,-1.94
103.29,2.11,4.09,2.11,4.08,-4.10,-4.18,-4.13,-1.98,-1.99,-1.98
104.32,2.11,4.11,2.10,4.10,-4.06,-4.20,-4.17,-1.95,-1.97,-2.00
105.37,2.07,4.10,2.06,4.09,-4.03,-4.21,-4.22,-1.96,-1.97,-2.03
106.42,1.99,4.05,1.99,4.04,-4.01,-4.22,-4.26,-2.02,-2.03,-2.06
107.48,1.88,3.98,1.89,3.99,-4.00,-4.23,-4.31,-2.11,-2.11,-2.09
108.56,1.80,3.94,1.82,3.95,-3.99,-4.25,-4.35,-2.18,-2.17,-2.13
109.64,1.76,3.93,1.77,3.93,-3.98,-4.26,-4.40,-2.21,-2.21,-2.16
110.74,1.75,3.96,1.75,3.95,-3.96,-4.27,-4.44,-2.21,-2.21,-2.20
111.85,1.74,3.97,1.75,3.98,-3.96,-4.28,-4.48,-2.21,-2.21,-2.22
112.97,1.73,4.00,1.73,3.99,-3.96,-4.29,-4.52,-2.23,-2.23,-2.27
114.10,1.71,4.01,1.69,3.99,-3.97,-4.30,-4.56,-2.26,-2.28,-2.30
115.24,1.63,3.96,1.66,3.99,-3.99,-4.32,-4.60,-2.35,-2.33,-2.33
116.39,1.62,3.99,1.63,3.99,-4.01,-4.33,-4.63,-2.38,-2.38,-2.36
117.55,1.62,4.01,1.62,4.00,-4.02,-4.34,-4.66,-2.40,-2.41,-2.38
118.73,1.63,4.04,1.63,4.04,-4.04,-4.35,-4.69,-2.41,-2.41,-2.41
119.92,1.64,4.06,1.64,4.07,-4.06,-4.36,-4.72,-2.42,-2.42,-2.42
121.12,1.65,4.10,1.65,4.09,-4.08,-4.37,-4.74,-2.43,-2.43,-2.44
122.33,1.65,4.11,1.66,4.11,-4.11,-4.38,-4.75,-2.45,-2.45,-2.46
123.55,1.66,4.13,1.67,4.14,-4.13,-4.39,-4.76,-2.47,-2.47,-2.47
124.79,1.67,4.16,1.67,4.15,-4.15,-4.39,-4.77,-2.48,-2.48,-2.48
126.03,1.68,4.18,1.68,4.17,-4.18,-4.40,-4.77,-2.49,-2.49,-2.50
127.29,1.68,4.18,1.69,4.19,-4.20,-4.41,-4.77,-2.51,-2.51,-2.50
128.57,1.69,4.22,1.69,4.21,-4.21,-4.42,-4.77,-2.52,-2.52,-2.52
129.85,1.69,4.23,1.70,4.23,-4.23,-4.43,-4.76,-2.54,-2.54,-2.54
131.15,1.70,4.26,1.70,4.25,-4.25,-4.44,-4.74,-2.54,-2.55,-2.55
132.46,1.70,4.27,1.71,4.27,-4.26,-4.45,-4.73,-2.56,-2.56,-2.56
133.79,1.71,4.29,1.71,4.29,-4.28,-4.45,-4.70,-2.57,-2.57,-2.58
135.12,1.71,4.31,1.72,4.31,-4.31,-4.46,-4.68,-2.59,-2.59,-2.60
136.48,1.72,4.32,1.72,4.32,-4.33,-4.47,-4.65,-2.61,-2.61,-2.60
137.84,1.72,4.34,1.71,4.33,-4.36,-4.47,-4.62,-2.64,-2.65,-2.62
139.22,1.72,4.36,1.74,4.37,-4.39,-4.48,-4.59,-2.67,-2.66,-2.64
140.61,1.74,4.40,1.78,4.43,-4.42,-4.49,-4.56,-2.68,-2.65,-2.66
142.02,1.86,4.52,1.82,4.48,-4.46,-4.49,-4.53,-2.59,-2.64,-2.66
143.44,1.85,4.53,1.84,4.52,-4.49,-4.50,-4.49,-2.63,-2.64,-2.67
144.87,1.82,4.52,1.85,4.54,-4.52,-4.50,-4.45,-2.70,-2.67,-2.70
146.32,1.82,4.55,1.82,4.55,-4.55,-4.51,-4.42,-2.73,-2.73,-2.73
147.78,1.82,4.57,1.82,4.57,-4.59,-4.51,-4.38,-2.77,-2.77,-2.74
149.26,1.82,4.60,1.82,4.61,-4.63,-4.52,-4.35,-2.81,-2.81,-2.78
150.75,1.82,4.66,1.82,4.65,-4.67,-4.52,-4.31,-2.85,-2.85,-2.83
152.26,1.82,4.71,1.82,4.71,-4.73,-4.53,-4.28,-2.91,-2.91,-2.89
153.78,1.82,4.77,1.82,4.77,-4.79,-4.53,-4.24,-2.97,-2.97,-2.94
155.32,1.82,4.83,1.83,4.83,-4.85,-4.53,-4.21,-3.02,-3.02,-3.01
156.88,1.82,4.89,1.83,4.90,-4.90,-4.53,-4.18,-3.07,-3.07,-3.07
158.44,1.82,4.96,1.83,4.97,-4.93,-4.54,-4.16,-3.10,-3.10,-3.14
160.03,1.80,5.02,1.79,5.00,-4.94,-4.54,-4.13,-3.14,-3.15,-3.21
161.63,1.73,5.01,1.72,4.99,-4.93,-4.54,-4.11,-3.20,-3.21,-3.27
163.24,1.61,4.94,1.61,4.93,-4.91,-4.54,-4.09,-3.30,-3.31,-3.32
164.88,1.48,4.85,1.50,4.87,-4.88,-4.54,-4.07,-3.40,-3.38,-3.36
166.53,1.39,4.80,1.42,4.82,-4.85,-4.54,-4.06,-3.46,-3.43,-3.40
168.19,1.38,4.81,1.34,4.77,-4.82,-4.54,-4.05,-3.43,-3.48,-3.43
169.87,1.29,4.75,1.29,4.74,-4.79,-4.54,-4.04,-3.50,-3.50,-3.46
171.57,1.21,4.68,1.28,4.75,-4.77,-4.54,-4.03,-3.56,-3.49,-3.47
173.29,1.30,4.78,1.29,4.76,-4.77,-4.54,-4.03,-3.46,-3.48,-3.47
175.02,1.36,4.83,1.30,4.78,-4.76,-4.54,-4.03,-3.39,-3.45,-3.47
176.77,1.30,4.78,1.33,4.80,-4.75,-4.54,-4.03,-3.45,-3.43,-3.48
178.54,1.27,4.75,1.32,4.79,-4.74,-4.53,-4.04,-3.47,-3.42,-3.47
180.32,1.33,4.79,1.29,4.75,-4.74,-4.53,-4.05,-3.40,-3.45,-3.46
182.13,1.30,4.75,1.27,4.72,-4.73,-4.53,-4.06,-3.43,-3.46,-3.44
183.95,1.19,4.64,1.24,4.68,-4.72,-4.52,-4.08,-3.52,-3.48,-3.45
185.79,1.21,4.65,1.21,4.66,-4.70,-4.52,-4.09,-3.49,-3.49,-3.44
187.65,1.22,4.68,1.23,4.68,-4.70,-4.51,-4.12,-3.47,-3.46,-3.45
189.52,1.27,4.73,1.26,4.72,-4.69,-4.51,-4.14,-3.42,-3.43,-3.46
191.42,1.28,4.75,1.25,4.72,-4.70,-4.50,-4.17,-3.42,-3.45,-3.47
193.33,1.21,4.69,1.24,4.72,-4.71,-4.50,-4.20,-3.49,-3.47,-3.48
195.27,1.20,4.70,1.22,4.71,-4.72,-4.49,-4.23,-3.52,-3.50,-3.49
197.22,1.22,4.73,1.22,4.73,-4.73,-4.48,-4.26,-3.51,-3.51,-3.50
199.19,1.24,4.77,1.23,4.75,-4.75,-4.47,-4.30,-3.50,-3.52,-3.52
201.18,1.24,4.78,1.22,4.75,-4.76,-4.47,-4.34,-3.51,-3.54,-3.54
203.19,1.17,4.72,1.21,4.76,-4.77,-4.46,-4.38,-3.59,-3.56,-3.55
205.23,1.19,4.76,1.21,4.77,-4.78,-4.45,-4.42,-3.59,-3.57,-3.57
207.28,1.26,4.83,1.22,4.79,-4.79,-4.44,-4.46,-3.53,-3.57,-3.56
209.35,1.23,4.82,1.24,4.82,-4.81,-4.43,-4.51,-3.57,-3.57,-3.58
211.44,1.21,4.83,1.23,4.83,-4.82,-4.42,-4.55,-3.60,-3.59,-3.61
213.56,1.21,4.83,1.21,4.82,-4.83,-4.41,-4.59,-3.62,-3.62,-3.61
215.69,1.20,4.82,1.21,4.83,-4.84,-4.39,-4.64,-3.64,-3.64,-3.62
217.85,1.20,4.83,1.20,4.83,-4.85,-4.38,-4.68,-3.64,-3.64,-3.63
220.03,1.20,4.84,1.20,4.84,-4.84,-4.37,-4.72,-3.64,-3.65,-3.64
222.23,1.19,4.85,1.20,4.84,-4.83,-4.36,-4.76,-3.64,-3.63,-3.65
224.45,1.19,4.83,1.21,4.85,-4.82,-4.34,-4.80,-3.62,-3.61,-3.64
226.70,1.20,4.84,1.20,4.84,-4.80,-4.33,-4.83,-3.60,-3.60,-3.64
228.96,1.20,4.83,1.15,4.77,-4.78,-4.31,-4.86,-3.57,-3.62,-3.62
231.25,1.08,4.69,1.11,4.72,-4.74,-4.30,-4.89,-3.66,-3.63,-3.61
233.57,1.02,4.62,1.09,4.69,-4.70,-4.28,-4.91,-3.68,-3.61,-3.60
235.90,1.12,4.71,1.09,4.68,-4.68,-4.27,-4.93,-3.55,-3.58,-3.58
238.26,1.14,4.71,1.09,4.66,-4.66,-4.25,-4.95,-3.51,-3.56,-3.57
240.64,1.07,4.62,1.08,4.62,-4.64,-4.23,-4.96,-3.57,-3.56,-3.54
243.05,1.00,4.51,1.05,4.56,-4.62,-4.22,-4.96,-3.61,-3.57,-3.51
245.48,1.06,4.55,1.08,4.57,-4.59,-4.20,-4.96,-3.53,-3.51,-3.48
247.93,1.15,4.60,1.15,4.60,-4.56,-4.18,-4.96,-3.41,-3.41,-3.45
250.41,1.24,4.68,1.19,4.62,-4.53,-4.16,-4.94,-3.28,-3.33,-3.43
252.92,1.15,4.55,1.15,4.54,-4.48,-4.14,-4.93,-3.33,-3.33,-3.40
255.45,1.04,4.42,1.05,4.42,-4.43,-4.12,-4.90,-3.38,-3.38,-3.37
258.00,0.91,4.26,0.95,4.30,-4.37,-4.10,-4.87,-3.46,-3.42,-3.35
260.58,0.91,4.24,0.95,4.27,-4.31,-4.08,-4.84,-3.39,-3.36,-3.33
263.19,0.96,4.26,0.93,4.23,-4.24,-4.06,-4.79,-3.28,-3.31,-3.29
265.82,0.98,4.26,0.90,4.17,-4.18,-4.04,-4.75,-3.20,-3.28,-3.28
268.48,0.78,4.04,0.87,4.11,-4.12,-4.02,-4.70,-3.34,-3.26,-3.25
271.16,0.78,4.00,0.83,4.05,-4.07,-4.00,-4.64,-3.28,-3.24,-3.22
273.87,0.87,4.07,0.80,4.00,-4.00,-3.98,-4.58,-3.13,-3.20,-3.20
276.61,0.80,3.97,0.82,3.98,-3.92,-3.95,-4.52,-3.12,-3.11,-3.16
279.38,0.75,3.89,0.77,3.90,-3.83,-3.93,-4.45,-3.07,-3.06,-3.14
282.17,0.69,3.80,0.67,3.77,-3.73,-3.91,-4.38,-3.04,-3.06,-3.11
284.99,0.56,3.64,0.56,3.64,-3.65,-3.88,-4.31,-3.09,-3.09,-3.07
287.84,0.43,3.49,0.44,3.49,-3.57,-3.86,-4.24,-3.13,-3.12,-3.05
290.72,0.34,3.36,0.36,3.38,-3.48,-3.83,-4.16,-3.14,-3.12,-3.02
293.63,0.33,3.32,0.35,3.33,-3.39,-3.81,-4.09,-3.06,-3.04,-2.99
296.57,0.37,3.33,0.37,3.33,-3.30,-3.78,-4.01,-2.92,-2.92,-2.95
299.53,0.41,3.34,0.40,3.33,-3.22,-3.76,-3.93,-2.80,-2.81,-2.92
302.53,0.37,3.28,0.34,3.24,-3.15,-3.73,-3.86,-2.78,-2.81,-2.91
305.55,0.27,3.13,0.22,3.09,-3.09,-3.70,-3.78,-2.82,-2.88,-2.86
308.61,0.03,2.88,0.13,2.96,-3.04,-3.68,-3.70,-3.01,-2.91,-2.84
311.69,0.03,2.85,0.09,2.90,-2.98,-3.65,-3.63,-2.95,-2.89,-2.81
314.81,0.18,2.97,0.10,2.89,-2.92,-3.62,-3.55,-2.73,-2.82,-2.79
317.96,0.14,2.91,0.13,2.90,-2.85,-3.60,-3.48,-2.71,-2.72,-2.77
321.14,0.08,2.84,0.12,2.88,-2.80,-3.57,-3.41,-2.71,-2.67,-2.76
324.35,0.07,2.81,0.08,2.82,-2.76,-3.54,-3.34,-2.69,-2.68,-2.74
327.59,0.07,2.80,0.03,2.75,-2.75,-3.51,-3.27,-2.67,-2.72,-2.72
330.87,0.00,2.72,-0.00,2.71,-2.75,-3.48,-3.20,-2.75,-2.75,-2.71
334.18,-0.07,2.63,0.00,2.70,-2.78,-3.46,-3.13,-2.85,-2.78,-2.70
337.52,0.07,2.76,0.05,2.73,-2.83,-3.43,-3.07,-2.75,-2.78,-2.69
340.90,0.17,2.84,0.14,2.81,-2.89,-3.40,-3.01,-2.71,-2.75,-2.67
344.30,0.25,2.91,0.28,2.94,-2.96,-3.37,-2.95,-2.70,-2.68,-2.66
347.75,0.37,3.03,0.42,3.08,-3.03,-3.34,-2.89,-2.66,-2.61,-2.66
351.23,0.58,3.24,0.53,3.19,-3.09,-3.31,-2.84,-2.51,-2.56,-2.65
354.74,0.63,3.29,0.58,3.23,-3.13,-3.28,-2.78,-2.50,-2.55,-2.65
358.28,0.51,3.16,0.55,3.19,-3.14,-3.25,-2.73,-2.62,-2.59,-2.64
361.87,0.43,3.08,0.48,3.12,-3.11,-3.22,-2.69,-2.68,-2.64,-2.65
365.49,0.41,3.05,0.41,3.05,-3.06,-3.19,-2.64,-2.65,-2.65,-2.64
369.14,0.38,3.03,0.33,2.98,-2.99,-3.16,-2.59,-2.60,-2.65,-2.65
372.83,0.25,2.90,0.24,2.89,-2.91,-3.13,-2.55,-2.66,-2.67,-2.65
376.56,0.09,2.74,0.17,2.81,-2.84,-3.09,-2.51,-2.75,-2.68,-2.65
380.33,0.11,2.75,0.10,2.74,-2.79,-3.06,-2.47,-2.68,-2.70,-2.64
384.13,0.12,2.77,0.07,2.72,-2.76,-3.03,-2.44,-2.64,-2.69,-2.64
387.97,0.03,2.69,0.09,2.74,-2.75,-3.00,-2.40,-2.72,-2.66,-2.65
391.85,0.09,2.76,0.09,2.75,-2.74,-2.97,-2.37,-2.65,-2.65,-2.66
395.77,0.13,2.79,0.11,2.77,-2.75,-2.94,-2.34,-2.62,-2.64,-2.65
399.73,0.13,2.80,0.14,2.80,-2.77,-2.90,-2.31,-2.63,-2.63,-2.66
403.72,0.13,2.80,0.13,2.80,-2.79,-2.87,-2.28,-2.65,-2.65,-2.67
407.76,0.12,2.80,0.13,2.80,-2.80,-2.84,-2.26,-2.68,-2.68,-2.68
411.84,0.12,2.80,0.12,2.80,-2.81,-2.81,-2.23,-2.69,-2.69,-2.68
415.96,0.12,2.80,0.13,2.80,-2.81,-2.78,-2.21,-2.69,-2.68,-2.68
420.12,0.12,2.80,0.14,2.82,-2.81,-2.74,-2.19,-2.68,-2.67,-2.68
424.32,0.15,2.83,0.14,2.81,-2.80,-2.71,-2.16,-2.64,-2.66,-2.68
428.56,0.14,2.81,0.12,2.79,-2.78,-2.68,-2.15,-2.64,-2.66,-2.67
432.85,0.08,2.74,0.10,2.77,-2.77,-2.64,-2.13,-2.69,-2.67,-2.66
437.18,0.08,2.73,0.10,2.75,-2.76,-2.61,-2.11,-2.67,-2.65,-2.65
441.55,0.12,2.73,0.12,2.73,-2.74,-2.58,-2.09,-2.62,-2.62,-2.61
445.96,0.17,2.76,0.14,2.73,-2.73,-2.55,-2.07,-2.55,-2.59,-2.58
450.42,0.14,2.70,0.16,2.71,-2.72,-2.51,-2.06,-2.57,-2.55,-2.55
454.93,0.17,2.68,0.19,2.69,-2.71,-2.48,-2.04,-2.53,-2.52,-2.50
459.48,0.23,2.69,0.23,2.68,-2.70,-2.44,-2.03,-2.47,-2.47,-2.45
464.07,0.29,2.70,0.29,2.69,-2.69,-2.41,-2.01,-2.39,-2.40,-2.40
468.71,0.34,2.69,0.33,2.68,-2.66,-2.38,-2.00,-2.32,-2.33,-2.34
473.40,0.35,2.66,0.37,2.67,-2.63,-2.34,-1.98,-2.28,-2.26,-2.30
478.13,0.37,2.62,0.38,2.63,-2.60,-2.31,-1.97,-2.23,-2.22,-2.24
482.91,0.41,2.62,0.37,2.57,-2.56,-2.27,-1.95,-2.15,-2.20,-2.20
487.74,0.32,2.49,0.34,2.50,-2.52,-2.24,-1.94,-2.20,-2.18,-2.16
492.62,0.29,2.41,0.32,2.44,-2.48,-2.20,-1.92,-2.19,-2.16,-2.12
497.55,0.31,2.41,0.31,2.40,-2.43,-2.17,-1.91,-2.12,-2.12,-2.10
502.52,0.33,2.40,0.32,2.39,-2.39,-2.13,-1.89,-2.06,-2.07,-2.07
507.55,0.32,2.38,0.32,2.37,-2.35,-2.09,-1.87,-2.03,-2.03,-2.06
512.62,0.28,2.33,0.28,2.32,-2.31,-2.06,-1.86,-2.03,-2.03,-2.05
517.75,0.21,2.25,0.24,2.28,-2.27,-2.02,-1.84,-2.06,-2.03,-2.04
522.93,0.17,2.22,0.18,2.23,-2.23,-1.98,-1.82,-2.06,-2.05,-2.05
528.16,0.15,2.23,0.11,2.18,-2.19,-1.94,-1.81,-2.03,-2.08,-2.08
533.44,0.01,2.12,0.04,2.15,-2.14,-1.90,-1.79,-2.12,-2.10,-2.11
538.77,-0.08,2.06,-0.05,2.09,-2.08,-1.86,-1.77,-2.16,-2.13,-2.14
544.16,-0.12,2.07,-0.17,2.02,-2.03,-1.82,-1.75,-2.14,-2.20,-2.19
549.60,-0.29,1.95,-0.26,1.97,-1.97,-1.78,-1.74,-2.26,-2.24,-2.24
555.10,-0.41,1.89,-0.38,1.92,-1.92,-1.74,-1.72,-2.32,-2.29,-2.30
560.65,-0.47,1.88,-0.51,1.84,-1.86,-1.70,-1.70,-2.32,-2.36,-2.35
566.25,-0.62,1.78,-0.61,1.79,-1.80,-1.65,-1.68,-2.41,-2.41,-2.40
571.92,-0.75,1.71,-0.72,1.74,-1.74,-1.60,-1.67,-2.48,-2.45,-2.46
577.64,-0.82,1.70,-0.84,1.67,-1.68,-1.56,-1.65,-2.49,-2.51,-2.52
583.41,-0.93,1.62,-0.95,1.60,-1.61,-1.51,-1.63,-2.53,-2.56,-2.55
589.25,-1.08,1.50,-1.04,1.54,-1.53,-1.45,-1.62,-2.61,-2.57,-2.58
595.14,-1.15,1.45,-1.14,1.46,-1.45,-1.40,-1.60,-2.60,-2.59,-2.60
601.09,-1.20,1.41,-1.22,1.39,-1.37,-1.34,-1.59,-2.56,-2.59,-2.61
607.10,-1.32,1.29,-1.31,1.30,-1.28,-1.28,-1.58,-2.59,-2.59,-2.61
613.17,-1.41,1.18,-1.42,1.17,-1.18,-1.22,-1.56,-2.59,-2.60,-2.59
619.30,-1.53,1.03,-1.50,1.06,-1.08,-1.15,-1.55,-2.61,-2.58,-2.56
625.50,-1.58,0.94,-1.55,0.96,-0.98,-1.08,-1.54,-2.55,-2.53,-2.52
631.75,-1.56,0.91,-1.59,0.88,-0.87,-1.01,-1.53,-2.43,-2.47,-2.47
638.07,-1.63,0.79,-1.62,0.80,-0.77,-0.93,-1.52,-2.40,-2.40,-2.42
644.45,-1.69,0.68,-1.67,0.69,-0.67,-0.85,-1.51,-2.36,-2.35,-2.37
650.89,-1.73,0.58,-1.74,0.57,-0.58,-0.76,-1.51,-2.31,-2.32,-2.31
657.40,-1.79,0.47,-1.78,0.48,-0.50,-0.67,-1.50,-2.28,-2.28,-2.26
663.98,-1.83,0.37,-1.80,0.40,-0.42,-0.58,-1.50,-2.24,-2.22,-2.20
670.62,-1.80,0.36,-1.82,0.34,-0.34,-0.48,-1.49,-2.14,-2.17,-2.16
677.32,-1.84,0.28,-1.84,0.28,-0.27,-0.38,-1.49,-2.11,-2.12,-2.12
684.10,-1.89,0.20,-1.87,0.22,-0.21,-0.29,-1.49,-2.10,-2.08,-2.09
690.94,-1.90,0.15,-1.89,0.16,-0.16,-0.19,-1.49,-2.05,-2.05,-2.05
697.85,-1.91,0.12,-1.92,0.12,-0.11,-0.10,-1.49,-2.02,-2.03,-2.03
704.83,-1.93,0.09,-1.94,0.08,-0.07,-0.03,-1.49,-2.00,-2.01,-2.02
711.87,-2.00,0.02,-1.97,0.05,-0.04,0.04,-1.50,-2.04,-2.01,-2.02
718.99,-2.02,0.01,-2.03,0.00,-0.01,0.09,-1.50,-2.03,-2.05,-2.03
726.18,-2.06,-0.01,-2.08,-0.03,0.00,0.12,-1.51,-2.05,-2.07,-2.05
733.44,-2.15,-0.08,-2.09,-0.02,0.02,0.13,-1.52,-2.13,-2.07,-2.07
740.78,-2.09,0.00,-2.11,-0.01,0.02,0.11,-1.53,-2.07,-2.09,-2.09
748.19,-2.09,0.03,-2.11,0.01,0.01,0.08,-1.54,-2.07,-2.10,-2.12
755.67,-2.14,0.03,-2.13,0.03,-0.01,0.04,-1.55,-2.15,-2.14,-2.16
763.23,-2.17,0.03,-2.16,0.03,-0.04,-0.02,-1.56,-2.21,-2.20,-2.19
770.86,-2.18,0.04,-2.15,0.06,-0.09,-0.09,-1.57,-2.27,-2.24,-2.21
778.57,-2.09,0.14,-2.11,0.12,-0.15,-0.16,-1.58,-2.23,-2.26,-2.22
786.35,-2.04,0.20,-2.04,0.20,-0.21,-0.24,-1.60,-2.25,-2.25,-2.23
794.22,-1.98,0.28,-1.96,0.29,-0.27,-0.32,-1.61,-2.25,-2.24,-2.25
802.16,-1.88,0.38,-1.88,0.37,-0.34,-0.40,-1.63,-2.22,-2.22,-2.25
810.18,-1.81,0.45,-1.81,0.44,-0.41,-0.48,-1.64,-2.21,-2.21,-2.25
818.28,-1.73,0.52,-1.74,0.50,-0.47,-0.56,-1.66,-2.20,-2.22,-2.24
826.46,-1.70,0.54,-1.68,0.55,-0.54,-0.63,-1.67,-2.23,-2.22,-2.23
834.73,-1.64,0.59,-1.62,0.59,-0.60,-0.70,-1.69,-2.24,-2.23,-2.22
843.08,-1.54,0.66,-1.56,0.63,-0.67,-0.77,-1.70,-2.20,-2.23,-2.19
851.51,-1.48,0.70,-1.47,0.70,-0.74,-0.84,-1.71,-2.21,-2.21,-2.17
860.02,-1.38,0.77,-1.35,0.79,-0.81,-0.90,-1.73,-2.19,-2.17,-2.14
868.62,-1.23,0.91,-1.23,0.89,-0.90,-0.97,-1.74,-2.12,-2.13,-2.13
877.31,-1.08,1.03,-1.10,1.00,-0.98,-1.03,-1.75,-2.06,-2.08,-2.10
886.08,-0.99,1.09,-0.99,1.09,-1.07,-1.09,-1.76,-2.06,-2.06,-2.07
894.94,-0.89,1.17,-0.88,1.17,-1.16,-1.16,-1.76,-2.04,-2.04,-2.05
903.89,-0.81,1.24,-0.78,1.26,-1.25,-1.22,-1.77,-2.06,-2.03,-2.04
912.93,-0.66,1.37,-0.69,1.33,-1.33,-1.29,-1.77,-1.99,-2.03,-2.02
922.06,-0.60,1.40,-0.60,1.40,-1.42,-1.36,-1.77,-2.01,-2.02,-1.99
931.28,-0.55,1.44,-0.50,1.48,-1.49,-1.42,-1.77,-2.04,-1.99,-1.98
940.59,-0.39,1.58,-0.41,1.55,-1.56,-1.49,-1.76,-1.95,-1.97,-1.96
950.00,-0.30,1.65,-0.30,1.64,-1.63,-1.57,-1.75,-1.92,-1.93,-1.94
959.50,-0.22,1.72,-0.21,1.72,-1.69,-1.64,-1.73,-1.91,-1.90,-1.93
969.09,-0.14,1.78,-0.16,1.76,-1.75,-1.71,-1.72,-1.89,-1.91,-1.91
978.78,-0.13,1.79,-0.12,1.80,-1.80,-1.79,-1.70,-1.93,-1.92,-1.91
988.57,-0.10,1.83,-0.07,1.84,-1.85,-1.86,-1.67,-1.94,-1.92,-1.92
998.46,-0.01,1.91,-0.02,1.89,-1.89,-1.93,-1.64,-1.90,-1.92,-1.91
1008.44,0.03,1.95,0.03,1.94,-1.94,-2.00,-1.61,-1.90,-1.91,-1.91
1018.53,0.06,1.98,0.06,1.97,-1.98,-2.06,-1.57,-1.92,-1.92,-1.91
1028.71,0.08,2.00,0.09,2.00,-2.03,-2.11,-1.53,-1.94,-1.94,-1.91
1039.00,0.11,2.02,0.14,2.05,-2.08,-2.15,-1.48,-1.96,-1.93,-1.90
1049.39,0.22,2.13,0.21,2.11,-2.12,-2.18,-1.43,-1.90,-1.91,-1.90
1059.88,0.29,2.19,0.28,2.17,-2.16,-2.20,-1.38,-1.87,-1.88,-1.89
1070.48,0.33,2.21,0.34,2.22,-2.19,-2.20,-1.32,-1.86,-1.85,-1.87
1081.19,0.38,2.24,0.36,2.21,-2.21,-2.18,-1.26,-1.83,-1.85,-1.85
1092.00,0.37,2.20,0.39,2.22,-2.21,-2.15,-1.19,-1.84,-1.82,-1.82
1102.92,0.39,2.19,0.41,2.21,-2.19,-2.11,-1.12,-1.80,-1.78,-1.79
1113.95,0.44,2.21,0.40,2.16,-2.15,-2.04,-1.05,-1.71,-1.75,-1.76
1125.09,0.38,2.10,0.38,2.10,-2.09,-1.97,-0.98,-1.70,-1.70,-1.71
1136.34,0.31,1.98,0.34,2.00,-2.00,-1.88,-0.90,-1.69,-1.66,-1.66
1147.70,0.29,1.89,0.29,1.89,-1.89,-1.78,-0.82,-1.60,-1.60,-1.59
1159.18,0.24,1.79,0.23,1.77,-1.76,-1.67,-0.73,-1.52,-1.53,-1.54
1170.77,0.16,1.65,0.17,1.65,-1.62,-1.56,-0.65,-1.46,-1.45,-1.48
1182.48,0.07,1.49,0.07,1.48,-1.47,-1.44,-0.56,-1.40,-1.41,-1.41
1194.30,-0.04,1.32,-0.05,1.31,-1.32,-1.32,-0.48,-1.35,-1.37,-1.35
1206.25,-0.19,1.12,-0.16,1.13,-1.16,-1.20,-0.38,-1.35,-1.32,-1.30
1218.31,-0.27,0.97,-0.26,0.97,-1.00,-1.08,-0.29,-1.26,-1.26,-1.23
1230.49,-0.34,0.84,-0.34,0.83,-0.84,-0.96,-0.20,-1.17,-1.18,-1.17
1242.80,-0.41,0.71,-0.40,0.71,-0.68,-0.85,-0.11,-1.09,-1.08,-1.11
1255.22,-0.46,0.59,-0.48,0.57,-0.54,-0.73,-0.01,-1.00,-1.02,-1.04
1267.78,-0.55,0.43,-0.57,0.40,-0.41,-0.62,0.09,-0.95,-0.97,-0.97
1280.45,-0.68,0.23,-0.64,0.27,-0.28,-0.51,0.19,-0.96,-0.92,-0.90
1293.26,-0.71,0.14,-0.69,0.15,-0.18,-0.40,0.28,-0.88,-0.86,-0.84
1306.19,-0.68,0.11,-0.71,0.07,-0.08,-0.29,0.38,-0.76,-0.79,-0.78
1319.25,-0.72,0.01,-0.72,0.00,-0.01,-0.19,0.49,-0.72,-0.73,-0.72
1332.45,-0.74,-0.07,-0.73,-0.06,0.04,-0.09,0.59,-0.69,-0.68,-0.66
1345.77,-0.74,-0.12,-0.72,-0.11,0.07,0.01,0.69,-0.66,-0.65,-0.61
1359.23,-0.68,-0.11,-0.69,-0.13,0.09,0.11,0.80,-0.58,-0.59,-0.56
1372.82,-0.64,-0.13,-0.64,-0.13,0.11,0.21,0.90,-0.52,-0.52,-0.50
1386.55,-0.59,-0.13,-0.58,-0.13,0.14,0.30,1.01,-0.44,-0.44,-0.45
1400.41,-0.55,-0.14,-0.54,-0.14,0.19,0.40,1.11,-0.35,-0.35,-0.40
1414.42,-0.52,-0.16,-0.53,-0.18,0.26,0.49,1.22,-0.26,-0.27,-0.35
1428.56,-0.56,-0.26,-0.57,-0.28,0.34,0.59,1.33,-0.22,-0.23,-0.29
1442.85,-0.66,-0.42,-0.66,-0.42,0.44,0.69,1.44,-0.22,-0.22,-0.23
1457.28,-0.79,-0.60,-0.77,-0.59,0.56,0.78,1.55,-0.23,-0.22,-0.18
1471.85,-0.89,-0.76,-0.88,-0.75,0.69,0.88,1.66,-0.20,-0.19,-0.12
1486.57,-0.95,-0.87,-0.94,-0.88,0.83,0.98,1.77,-0.11,-0.11,-0.07
1501.43,-0.99,-0.98,-0.98,-0.98,0.98,1.08,1.89,-0.00,-0.00,-0.00
1516.45,-1.02,-1.09,-1.03,-1.10,1.14,1.19,2.00,0.12,0.11,0.08
1531.61,-1.08,-1.23,-1.08,-1.24,1.28,1.29,2.12,0.20,0.20,0.16
1546.93,-1.16,-1.40,-1.16,-1.41,1.42,1.40,2.23,0.26,0.26,0.25
1562.40,-1.23,-1.56,-1.24,-1.58,1.56,1.52,2.35,0.33,0.31,0.34
1578.02,-1.35,-1.76,-1.31,-1.73,1.69,1.64,2.46,0.34,0.38,0.42
1593.80,-1.36,-1.85,-1.36,-1.86,1.83,1.76,2.58,0.47,0.47,0.50
1609.74,-1.38,-1.96,-1.39,-1.98,1.97,1.89,2.70,0.59,0.57,0.59
1625.84,-1.42,-2.10,-1.41,-2.09,2.11,2.02,2.82,0.69,0.70,0.69
1642.10,-1.45,-2.22,-1.43,-2.21,2.25,2.16,2.93,0.80,0.82,0.78
1658.52,-1.46,-2.33,-1.47,-2.34,2.38,2.31,3.05,0.93,0.91,0.88
1675.10,-1.51,-2.47,-1.53,-2.50,2.52,2.46,3.17,1.01,0.99,0.97
1691.85,-1.62,-2.67,-1.60,-2.67,2.66,2.61,3.28,1.04,1.05,1.06
1708.77,-1.70,-2.85,-1.68,-2.83,2.80,2.77,3.39,1.10,1.12,1.16
1725.86,-1.72,-2.97,-1.72,-2.97,2.94,2.92,3.51,1.22,1.23,1.26
1743.12,-1.73,-3.08,-1.72,-3.08,3.09,3.08,3.61,1.36,1.36,1.36
1760.55,-1.73,-3.18,-1.74,-3.20,3.22,3.23,3.72,1.50,1.48,1.46
1778.15,-1.77,-3.32,-1.78,-3.33,3.36,3.37,3.83,1.59,1.58,1.56
1795.94,-1.85,-3.48,-1.83,-3.48,3.48,3.50,3.93,1.63,1.65,1.64
1813.90,-1.89,-3.62,-1.88,-3.61,3.60,3.62,4.02,1.71,1.72,1.74
1832.03,-1.91,-3.73,-1.90,-3.73,3.71,3.73,4.12,1.80,1.81,1.83
1850.36,-1.90,-3.82,-1.91,-3.84,3.82,3.83,4.20,1.92,1.91,1.93
1868.86,-1.92,-3.93,-1.91,-3.93,3.93,3.91,4.29,2.01,2.01,2.02
1887.55,-1.93,-4.03,-1.91,-4.02,4.03,3.99,4.36,2.11,2.12,2.11
1906.42,-1.91,-4.10,-1.92,-4.12,4.13,4.07,4.44,2.23,2.21,2.20
1925.49,-1.92,-4.22,-1.91,-4.22,4.23,4.15,4.50,2.32,2.32,2.31
1944.74,-1.92,-4.32,-1.90,-4.31,4.33,4.23,4.56,2.42,2.43,2.41
1964.19,-1.90,-4.42,-1.91,-4.43,4.43,4.32,4.61,2.54,2.53,2.53
1983.83,-1.90,-4.52,-1.92,-4.55,4.54,4.40,4.66,2.64,2.62,2.63
2003.67,-1.95,-4.70,-1.91,-4.66,4.65,4.50,4.69,2.70,2.74,2.76
2023.71,-1.92,-4.77,-1.90,-4.76,4.76,4.60,4.72,2.84,2.87,2.86
2043.94,-1.84,-4.81,-1.88,-4.86,4.87,4.70,4.75,3.03,2.99,2.98
2064.38,-1.86,-4.94,-1.86,-4.94,4.97,4.81,4.76,3.11,3.11,3.09
2085.03,-1.89,-5.08,-1.86,-5.05,5.06,4.92,4.78,3.17,3.20,3.20
2105.88,-1.84,-5.14,-1.87,-5.17,5.14,5.03,4.78,3.30,3.27,3.31
2126.94,-1.85,-5.26,-1.83,-5.25,5.21,5.14,4.78,3.37,3.38,3.42
2148.20,-1.81,-5.33,-1.77,-5.30,5.28,5.25,4.77,3.47,3.51,3.53
2169.69,-1.68,-5.31,-1.70,-5.34,5.34,5.36,4.76,3.67,3.64,3.64
2191.38,-1.62,-5.35,-1.62,-5.36,5.40,5.47,4.75,3.79,3.78,3.74
2213.30,-1.58,-5.40,-1.57,-5.41,5.45,5.57,4.73,3.88,3.88,3.83
2235.43,-1.54,-5.46,-1.55,-5.48,5.50,5.67,4.70,3.96,3.94,3.93
2257.78,-1.55,-5.56,-1.52,-5.53,5.53,5.76,4.68,3.98,4.01,4.02
2280.36,-1.49,-5.57,-1.48,-5.57,5.54,5.84,4.65,4.06,4.07,4.09
2303.17,-1.40,-5.56,-1.43,-5.60,5.55,5.91,4.62,4.15,4.12,4.17
2326.20,-1.37,-5.60,-1.35,-5.59,5.55,5.97,4.59,4.18,4.19,4.24
2349.46,-1.29,-5.59,-1.26,-5.56,5.53,6.02,4.55,4.25,4.27,4.31
2372.95,-1.15,-5.49,-1.15,-5.50,5.51,6.05,4.52,4.37,4.36,4.35
2396.68,-1.02,-5.41,-1.04,-5.44,5.49,6.07,4.49,4.47,4.45,4.40
2420.65,-0.95,-5.39,-0.95,-5.39,5.46,6.08,4.46,4.51,4.51,4.45
2444.86,-0.90,-5.40,-0.90,-5.41,5.43,6.08,4.43,4.53,4.53,4.51
2469.31,-0.84,-5.41,-0.84,-5.42,5.40,6.06,4.40,4.57,4.57,4.58
2494.00,-0.78,-5.45,-0.75,-5.42,5.38,6.02,4.37,4.61,4.64,4.68
2518.94,-0.61,-5.38,-0.63,-5.40,5.37,5.98,4.34,4.76,4.74,4.78
2544.13,-0.49,-5.36,-0.47,-5.36,5.36,5.93,4.32,4.88,4.89,4.88
2569.57,-0.33,-5.32,-0.32,-5.32,5.35,5.86,4.30,5.03,5.03,5.00
2595.27,-0.14,-5.27,-0.18,-5.31,5.33,5.79,4.28,5.19,5.15,5.14
2621.22,-0.06,-5.33,-0.03,-5.31,5.30,5.70,4.26,5.25,5.27,5.28
2647.43,0.10,-5.31,0.12,-5.30,5.27,5.62,4.25,5.38,5.39,5.42
2673.90,0.28,-5.28,0.28,-5.29,5.25,5.52,4.24,5.54,5.53,5.57
2700.64,0.47,-5.23,0.48,-5.23,5.24,5.43,4.23,5.71,5.71,5.71
2727.65,0.66,-5.19,0.67,-5.18,5.22,5.33,4.23,5.89,5.89,5.86
2754.93,0.86,-5.13,0.83,-5.17,5.21,5.23,4.23,6.07,6.04,6.00
2782.48,0.98,-5.16,0.98,-5.17,5.19,5.12,4.23,6.17,6.16,6.15
2810.30,1.08,-5.21,1.10,-5.19,5.17,5.02,4.24,6.25,6.27,6.30
2838.40,1.25,-5.19,1.27,-5.18,5.15,4.92,4.25,6.40,6.42,6.45
2866.79,1.44,-5.15,1.45,-5.15,5.13,4.82,4.26,6.57,6.58,6.60
2895.46,1.70,-5.05,1.65,-5.11,5.11,4.73,4.28,6.81,6.76,6.76
2924.41,1.82,-5.10,1.86,-5.06,5.08,4.63,4.30,6.91,6.95,6.93
2953.65,2.04,-5.05,2.06,-5.04,5.05,4.54,4.33,7.10,7.11,7.10
2983.19,2.31,-4.96,2.26,-5.02,5.01,4.46,4.36,7.33,7.27,7.28
3013.02,2.45,-5.00,2.50,-4.96,4.97,4.38,4.39,7.42,7.47,7.46
3043.15,2.71,-4.93,2.72,-4.92,4.93,4.30,4.42,7.64,7.65,7.65
3073.58,2.98,-4.84,2.94,-4.90,4.88,4.23,4.46,7.86,7.81,7.83
3104.32,3.16,-4.85,3.19,-4.83,4.82,4.17,4.51,7.98,8.00,8.02
3135.36,3.39,-4.80,3.43,-4.76,4.74,4.11,4.55,8.14,8.18,8.20
3166.72,3.70,-4.66,3.66,-4.70,4.67,4.05,4.60,8.37,8.33,8.37
3198.38,3.91,-4.58,3.89,-4.62,4.60,4.01,4.65,8.52,8.49,8.50
3230.37,4.05,-4.57,4.09,-4.53,4.54,3.96,4.70,8.59,8.63,8.63
3262.67,4.27,-4.46,4.31,-4.43,4.48,3.93,4.76,8.75,8.79,8.74
3295.30,4.50,-4.33,4.48,-4.35,4.43,3.90,4.81,8.93,8.91,8.84
3328.25,4.67,-4.24,4.56,-4.35,4.39,3.88,4.87,9.06,8.95,8.92
3361.53,4.55,-4.42,4.60,-4.38,4.35,3.86,4.93,8.91,8.95,8.98
3395.15,4.54,-4.48,4.67,-4.36,4.32,3.86,4.99,8.87,8.99,9.03
3429.10,4.77,-4.28,4.75,-4.31,4.29,3.86,5.05,9.06,9.03,9.06
3463.39,4.94,-4.12,4.81,-4.26,4.25,3.86,5.11,9.19,9.06,9.07
3498.03,4.81,-4.25,4.83,-4.24,4.20,3.88,5.17,9.02,9.04,9.07
3533.01,4.71,-4.34,4.85,-4.20,4.15,3.90,5.22,8.86,9.00,9.06
3568.34,4.90,-4.10,4.91,-4.09,4.08,3.93,5.28,8.98,8.99,9.01
3604.02,5.04,-3.87,4.91,-4.01,4.02,3.96,5.33,9.07,8.94,8.92
3640.06,4.91,-3.90,4.86,-3.96,4.00,4.01,5.38,8.91,8.86,8.82
3676.46,4.56,-4.14,4.75,-3.95,4.01,4.06,5.42,8.57,8.76,8.71
3713.22,4.62,-3.94,4.61,-3.96,4.04,4.12,5.46,8.67,8.65,8.57
3750.36,4.54,-3.88,4.41,-4.02,4.10,4.19,5.49,8.65,8.51,8.43
3787.86,4.15,-4.10,4.14,-4.12,4.18,4.27,5.52,8.33,8.32,8.26
3825.74,3.67,-4.39,3.76,-4.31,4.26,4.36,5.54,7.93,8.02,8.07
3864.00,3.39,-4.47,3.42,-4.44,4.32,4.45,5.56,7.71,7.74,7.87
3902.64,3.19,-4.46,3.15,-4.51,4.36,4.55,5.57,7.55,7.51,7.66
3941.66,2.98,-4.47,2.95,-4.51,4.38,4.66,5.56,7.37,7.33,7.46
3981.08,2.70,-4.54,2.78,-4.46,4.41,4.77,5.56,7.11,7.19,7.25
4020.89,2.62,-4.41,2.64,-4.40,4.44,4.89,5.54,7.06,7.08,7.04
4061.10,2.53,-4.29,2.47,-4.36,4.49,5.01,5.51,7.02,6.95,6.83
4101.71,2.24,-4.38,2.25,-4.39,4.56,5.14,5.48,6.81,6.81,6.63
4142.73,1.87,-4.58,1.88,-4.57,4.70,5.26,5.44,6.57,6.58,6.46
4184.15,1.42,-4.85,1.37,-4.91,4.88,5.39,5.39,6.30,6.25,6.28
4226.00,0.81,-5.29,0.81,-5.30,5.09,5.51,5.33,5.90,5.90,6.11
4268.26,0.17,-5.76,0.25,-5.68,5.31,5.62,5.27,5.49,5.57,5.94
4310.94,-0.28,-6.01,-0.28,-6.02,5.53,5.73,5.20,5.25,5.25,5.74
4354.05,-0.70,-6.23,-0.74,-6.28,5.72,5.82,5.12,5.02,4.98,5.54
4397.59,-1.21,-6.54,-1.16,-6.49,5.87,5.89,5.04,4.66,4.71,5.34
4441.56,-1.65,-6.77,-1.66,-6.79,5.97,5.94,4.95,4.32,4.30,5.13
4485.98,-2.15,-7.06,-2.23,-7.15,6.02,5.98,4.86,3.88,3.79,4.92
4530.84,-2.89,-7.59,-2.80,-7.51,6.05,5.98,4.77,3.16,3.24,4.71
4576.15,-3.48,-7.96,-3.44,-7.94,6.05,5.97,4.67,2.57,2.60,4.49
4621.91,-4.01,-8.29,-4.12,-8.40,6.04,5.92,4.57,2.04,1.93,4.29
4668.13,-4.82,-8.87,-4.76,-8.81,6.04,5.85,4.47,1.23,1.29,4.06
4714.81,-5.48,-9.28,-5.43,-9.23,6.05,5.76,4.37,0.57,0.62,3.81
4761.96,-6.06,-9.59,-6.15,-9.68,6.04,5.65,4.27,-0.01,-0.10,3.54
4809.58,-6.76,-9.99,-6.79,-10.04,6.01,5.52,4.16,-0.74,-0.78,3.24
4857.67,-7.49,-10.42,-7.31,-10.25,5.95,5.37,4.06,-1.54,-1.36,2.94
4906.25,-7.78,-10.39,-7.83,-10.44,5.85,5.20,3.96,-1.93,-1.98,2.62
4955.31,-8.02,-10.30,-8.24,-10.54,5.71,5.03,3.86,-2.31,-2.53,2.29
5004.87,-8.66,-10.63,-8.48,-10.46,5.53,4.85,3.75,-3.12,-2.95,1.98
5054.91,-8.62,-10.28,-8.51,-10.18,5.32,4.67,3.66,-3.30,-3.19,1.67
5105.46,-8.18,-9.54,-8.21,-9.58,5.13,4.49,3.56,-3.05,-3.08,1.37
5156.52,-7.57,-8.64,-7.59,-8.67,4.91,4.30,3.46,-2.65,-2.68,1.08
5208.08,-6.86,-7.64,-6.93,-7.71,4.64,4.12,3.37,-2.21,-2.28,0.79
5260.16,-6.23,-6.73,-6.17,-6.68,4.30,3.94,3.28,-1.93,-1.87,0.51
5312.77,-5.45,-5.68,-5.36,-5.60,3.87,3.77,3.19,-1.57,-1.49,0.24
5365.89,-4.44,-4.43,-4.56,-4.56,3.38,3.60,3.11,-1.05,-1.18,-0.00
5419.55,-3.73,-3.49,-3.70,-3.48,2.86,3.44,3.02,-0.87,-0.84,-0.23
5473.75,-3.02,-2.60,-2.89,-2.48,2.34,3.29,2.94,-0.67,-0.55,-0.41
5528.49,-2.12,-1.55,-2.20,-1.64,1.86,3.14,2.86,-0.25,-0.33,-0.56
5583.77,-1.64,-0.94,-1.67,-0.99,1.45,3.00,2.79,-0.18,-0.22,-0.69
5639.61,-1.38,-0.60,-1.42,-0.65,1.13,2.86,2.71,-0.25,-0.29,-0.77
5696.00,-1.50,-0.64,-1.51,-0.67,0.92,2.74,2.64,-0.57,-0.59,-0.85
5752.96,-1.75,-0.84,-1.76,-0.86,0.86,2.62,2.58,-0.89,-0.89,-0.90
5810.49,-2.13,-1.17,-2.02,-1.09,0.96,2.50,2.51,-1.17,-1.07,-0.95
5868.60,-2.28,-1.29,-2.26,-1.30,1.22,2.39,2.45,-1.06,-1.05,-0.98
5927.28,-2.42,-1.40,-2.51,-1.52,1.52,2.29,2.39,-0.90,-0.99,-1.01
5986.56,-2.78,-1.74,-2.78,-1.77,1.81,2.20,2.33,-0.97,-0.97,-1.03
6046.42,-3.14,-2.06,-3.11,-2.07,2.05,2.10,2.27,-1.09,-1.06,-1.07
6106.89,-3.44,-2.31,-3.40,-2.33,2.19,2.02,2.22,-1.24,-1.21,-1.12
6167.96,-3.58,-2.41,-3.54,-2.43,2.26,1.94,2.17,-1.32,-1.28,-1.16
6229.64,-3.60,-2.38,-3.52,-2.38,2.24,1.86,2.12,-1.36,-1.29,-1.21
6291.93,-3.40,-2.13,-3.40,-2.23,2.13,1.79,2.08,-1.26,-1.27,-1.26
6354.85,-3.18,-1.86,-3.21,-2.02,1.95,1.72,2.03,-1.22,-1.26,-1.31
6418.40,-2.98,-1.60,-2.92,-1.70,1.72,1.66,1.99,-1.26,-1.20,-1.37
6482.58,-2.59,-1.17,-2.62,-1.39,1.45,1.60,1.95,-1.13,-1.17,-1.41
6547.41,-2.05,-0.56,-2.33,-1.10,1.19,1.55,1.91,-0.86,-1.15,-1.48
6612.88,-1.83,-0.28,-2.08,-0.85,0.95,1.50,1.88,-0.88,-1.13,-1.54
6679.01,-1.49,0.11,-1.89,-0.68,0.76,1.45,1.84,-0.73,-1.13,-1.59
6745.80,-1.11,0.55,-1.76,-0.57,0.61,1.40,1.81,-0.49,-1.14,-1.65
6813.26,-0.76,0.97,-1.71,-0.56,0.53,1.36,1.78,-0.22,-1.18,-1.72
6881.39,-0.54,1.28,-1.67,-0.54,0.52,1.32,1.75,-0.02,-1.15,-1.81
6950.21,-0.45,1.47,-1.61,-0.52,0.56,1.29,1.72,0.11,-1.06,-1.91
7019.71,0.39,2.42,-1.64,-0.58,0.64,1.26,1.69,1.03,-1.00,-2.02
7089.91,0.72,2.86,-1.72,-0.69,0.74,1.23,1.66,1.47,-0.98,-2.13
7160.81,0.53,2.81,-1.87,-0.86,0.86,1.20,1.64,1.40,-1.01,-2.27
7232.41,0.81,3.23,-2.06,-1.06,1.00,1.17,1.61,1.81,-1.07,-2.41
7304.74,0.82,3.39,-2.20,-1.20,1.13,1.15,1.59,1.96,-1.07,-2.56
7377.79,1.16,3.88,-2.31,-1.30,1.27,1.13,1.56,2.44,-1.03,-2.71
7451.56,1.77,4.63,-2.42,-1.40,1.41,1.11,1.54,3.18,-1.01,-2.85
7526.08,2.01,5.00,-2.55,-1.50,1.52,1.10,1.51,3.53,-1.03,-2.98
7601.34,1.62,4.70,-2.68,-1.60,1.61,1.08,1.49,3.24,-1.07,-3.07
7677.35,0.91,4.03,-2.81,-1.69,1.68,1.07,1.46,2.59,-1.13,-3.11
7754.13,0.36,3.47,-2.91,-1.75,1.73,1.07,1.43,2.09,-1.18,-3.10
7831.67,-0.14,2.91,-2.99,-1.78,1.76,1.06,1.41,1.63,-1.22,-3.04
7909.98,-0.81,2.13,-3.04,-1.79,1.78,1.05,1.38,0.97,-1.27,-2.93
7989.08,-1.42,1.36,-3.09,-1.78,1.77,1.05,1.35,0.35,-1.32,-2.77
8068.98,-1.91,0.66,-3.12,-1.74,1.74,1.05,1.32,-0.17,-1.38,-2.56
8149.67,-2.31,-0.00,-3.13,-1.69,1.69,1.05,1.29,-0.62,-1.44,-2.30
8231.16,-2.66,-0.65,-3.13,-1.63,1.62,1.06,1.26,-1.03,-1.51,-2.00
8313.47,-3.05,-1.40,-3.12,-1.55,1.55,1.06,1.22,-1.50,-1.57,-1.64
8396.61,-3.35,-2.10,-3.10,-1.46,1.47,1.07,1.19,-1.88,-1.63,-1.24
8480.57,-3.91,-3.10,-3.09,-1.37,1.38,1.07,1.16,-2.52,-1.70,-0.80
8565.38,-5.21,-4.86,-3.09,-1.29,1.30,1.08,1.12,-3.91,-1.79,-0.34
8651.03,-5.95,-6.11,-3.10,-1.21,1.22,1.09,1.08,-4.73,-1.88,0.17
8737.54,-6.01,-6.73,-3.12,-1.14,1.14,1.10,1.05,-4.87,-1.98,0.73
8824.92,-5.97,-7.27,-3.14,-1.07,1.07,1.11,1.01,-4.90,-2.08,1.31
8913.17,-4.93,-6.81,-3.19,-1.01,1.01,1.12,0.97,-3.92,-2.18,1.89
9002.30,-5.04,-7.50,-3.24,-0.95,0.95,1.13,0.93,-4.08,-2.29,2.47
9092.32,-5.57,-8.52,-3.31,-0.91,0.91,1.13,0.89,-4.65,-2.39,2.96
9183.25,-5.45,-8.78,-3.39,-0.87,0.88,1.14,0.85,-4.56,-2.50,3.34
9275.08,-4.20,-7.79,-3.48,-0.85,0.86,1.14,0.81,-3.33,-2.61,3.60
9367.83,-3.90,-7.61,-3.59,-0.84,0.85,1.14,0.77,-3.04,-2.73,3.72
9461.51,-3.78,-7.46,-3.71,-0.85,0.86,1.13,0.73,-2.92,-2.85,3.69
9556.12,-3.00,-6.50,-3.85,-0.87,0.87,1.12,0.69,-2.12,-2.98,3.51
9651.68,-2.12,-5.26,-3.99,-0.89,0.89,1.11,0.65,-1.22,-3.10,3.15
9748.20,-1.86,-4.50,-4.12,-0.91,0.91,1.09,0.61,-0.94,-3.21,2.65
9845.68,-2.90,-4.89,-4.26,-0.92,0.93,1.06,0.57,-1.97,-3.33,2.00
9944.14,-4.07,-5.31,-4.40,-0.94,0.93,1.03,0.54,-3.13,-3.47,1.25
10043.58,-6.47,-6.88,-4.57,-0.98,0.93,1.00,0.50,-5.54,-3.64,0.42
10144.02,-7.82,-7.33,-4.65,-0.94,0.91,0.96,0.46,-6.90,-3.74,-0.48
10245.46,-8.50,-7.09,-4.74,-0.89,0.89,0.91,0.42,-7.61,-3.85,-1.40
10347.91,-8.93,-6.62,-4.83,-0.85,0.85,0.86,0.38,-8.07,-3.98,-2.30
10451.39,-8.30,-5.15,-4.92,-0.80,0.81,0.81,0.35,-7.49,-4.11,-3.14
10555.91,-6.83,-2.93,-5.02,-0.75,0.76,0.76,0.31,-6.07,-4.26,-3.89
10661.46,-5.82,-1.28,-5.11,-0.70,0.71,0.70,0.27,-5.11,-4.41,-4.53
10768.08,-5.37,-0.33,-5.21,-0.65,0.65,0.64,0.23,-4.72,-4.56,-5.03
10875.76,-5.51,-0.12,-5.31,-0.60,0.60,0.57,0.20,-4.91,-4.71,-5.38
10984.52,-5.59,0.06,-5.41,-0.55,0.55,0.51,0.16,-5.04,-4.86,-5.64
11094.36,-7.92,-2.12,-5.51,-0.50,0.50,0.44,0.12,-7.42,-5.02,-5.79
11205.31,-8.47,-2.59,-5.62,-0.45,0.45,0.38,0.08,-8.02,-5.17,-5.87
11317.36,-5.76,0.20,-5.73,-0.39,0.39,0.31,0.05,-5.36,-5.33,-5.95
11430.53,-3.48,2.58,-5.84,-0.34,0.34,0.25,0.01,-3.14,-5.50,-6.05
11544.84,-3.66,2.52,-5.95,-0.29,0.29,0.19,-0.03,-3.37,-5.66,-6.17
11660.29,-3.82,2.52,-6.06,-0.23,0.23,0.12,-0.07,-3.59,-5.83,-6.33
11776.89,-3.74,2.80,-6.17,-0.18,0.18,0.06,-0.11,-3.56,-6.00,-6.53
11894.66,-4.37,2.40,-6.29,-0.12,0.12,-0.00,-0.15,-4.25,-6.17,-6.76
12013.60,-5.20,1.88,-6.41,-0.06,0.06,-0.06,-0.19,-5.13,-6.35,-7.07
12133.74,-5.60,1.87,-6.53,-0.00,0.00,-0.12,-0.24,-5.59,-6.52,-7.46
12255.08,-5.08,2.87,-6.65,0.05,-0.05,-0.18,-0.28,-5.13,-6.70,-7.94
12377.63,-5.15,3.33,-6.78,0.11,-0.11,-0.24,-0.33,-5.26,-6.89,-8.47
12501.41,-5.89,3.17,-6.90,0.17,-0.17,-0.30,-0.38,-6.06,-7.07,-9.05
12626.42,-6.87,2.80,-7.03,0.23,-0.23,-0.35,-0.43,-7.10,-7.26,-9.66
12752.68,-8.51,1.75,-7.16,0.29,-0.29,-0.41,-0.48,-8.80,-7.45,-10.25
12880.21,-9.31,1.51,-7.29,0.35,-0.35,-0.46,-0.54,-9.66,-7.64,-10.81
13009.01,-9.44,1.90,-7.42,0.41,-0.41,-0.52,-0.60,-9.85,-7.84,-11.33
13139.10,-8.13,3.66,-7.56,0.48,-0.48,-0.57,-0.66,-8.60,-8.04,-11.78
13270.49,-9.02,3.11,-7.70,0.54,-0.54,-0.63,-0.72,-9.56,-8.24,-12.12
13403.20,-12.27,0.07,-7.84,0.60,-0.60,-0.68,-0.80,-12.87,-8.44,-12.33
13537.23,-14.75,-2.28,-7.98,0.67,-0.67,-0.74,-0.87,-15.42,-8.65,-12.46
13672.60,-15.27,-2.77,-8.12,0.73,-0.73,-0.79,-0.95,-16.00,-8.86,-12.49
13809.33,-15.24,-2.78,-8.27,0.80,-0.80,-0.85,-1.03,-16.04,-9.07,-12.45
13947.42,-14.57,-2.23,-8.41,0.87,-0.87,-0.90,-1.13,-15.43,-9.28,-12.33
14086.90,-12.66,-0.50,-8.56,0.93,-0.93,-0.96,-1.22,-13.59,-9.50,-12.15
14227.77,-11.52,0.43,-8.71,1.00,-1.00,-1.01,-1.33,-12.52,-9.71,-11.94
14370.04,-10.71,1.06,-8.87,1.07,-1.07,-1.07,-1.44,-11.78,-9.93,-11.76
14513.74,-9.50,2.15,-9.02,1.14,-1.14,-1.13,-1.55,-10.63,-10.16,-11.64
14658.88,-8.88,2.70,-9.18,1.21,-1.21,-1.19,-1.67,-10.08,-10.38,-11.57
14805.47,-8.70,2.90,-9.33,1.28,-1.28,-1.25,-1.80,-9.97,-10.61,-11.59
14953.52,-8.59,3.09,-9.49,1.35,-1.35,-1.31,-1.93,-9.94,-10.84,-11.67
15103.06,-8.49,3.38,-9.66,1.42,-1.42,-1.37,-2.06,-9.91,-11.08,-11.86
15254.09,-8.39,3.74,-9.82,1.49,-1.49,-1.44,-2.18,-9.88,-11.31,-12.12
15406.63,-8.56,3.86,-9.99,1.57,-1.57,-1.51,-2.30,-10.12,-11.55,-12.41
15560.70,-8.82,3.94,-10.15,1.64,-1.64,-1.57,-2.40,-10.46,-11.79,-12.75
15716.30,-8.80,4.31,-10.32,1.71,-1.71,-1.64,-2.48,-10.51,-12.04,-13.10
15873.47,-8.83,4.63,-10.49,1.79,-1.79,-1.72,-2.54,-10.62,-12.28,-13.45
16032.20,-9.62,4.21,-10.67,1.86,-1.86,-1.79,-2.55,-11.48,-12.53,-13.82
16192.52,-10.42,3.81,-10.84,1.94,-1.94,-1.87,-2.53,-12.36,-12.78,-14.22
16354.45,-11.46,3.08,-11.02,2.02,-2.02,-1.95,-2.47,-13.47,-13.04,-14.53
16517.99,-12.49,2.26,-11.20,2.10,-2.10,-2.03,-2.37,-14.58,-13.30,-14.74
16683.17,-14.17,0.68,-11.38,2.17,-2.17,-2.11,-2.24,-16.34,-13.55,-14.84
16850.01,-14.47,0.37,-11.56,2.25,-2.25,-2.20,-2.08,-16.72,-13.82,-14.83
17018.51,-13.46,1.27,-11.75,2.33,-2.33,-2.28,-1.91,-15.79,-14.08,-14.72
17188.69,-13.42,1.25,-11.94,2.41,-2.41,-2.37,-1.73,-15.83,-14.35,-14.66
17360.58,-13.40,1.11,-12.12,2.49,-2.49,-2.47,-1.55,-15.89,-14.62,-14.50
17534.18,-13.07,1.23,-12.31,2.57,-2.57,-2.56,-1.38,-15.64,-14.89,-14.29
17709.53,-12.46,1.62,-12.51,2.66,-2.66,-2.66,-1.21,-15.11,-15.16,-14.07
17886.62,-12.07,1.81,-12.70,2.74,-2.74,-2.75,-1.06,-14.80,-15.44,-13.87
18065.49,-11.93,1.96,-12.90,2.82,-2.82,-2.85,-0.92,-14.75,-15.72,-13.88
18246.14,-11.69,2.37,-13.09,2.91,-2.91,-2.95,-0.79,-14.59,-16.00,-14.05
18428.60,-11.36,2.87,-13.29,2.99,-2.99,-3.04,-0.68,-14.35,-16.29,-14.22
18612.89,-10.69,3.70,-13.50,3.08,-3.08,-3.14,-0.58,-13.76,-16.57,-14.38
18799.02,-10.05,4.48,-13.70,3.16,-3.16,-3.23,-0.50,-13.21,-16.86,-14.52
18987.01,-9.92,4.75,-13.91,3.25,-3.25,-3.31,-0.42,-13.16,-17.15,-14.66
19176.88,-10.76,4.33,-14.11,3.34,-3.34,-3.39,-0.35,-14.09,-17.45,-15.08
19368.65,-12.68,2.85,-14.32,3.42,-3.42,-3.45,-0.29,-16.10,-17.75,-15.52
19562.33,-13.41,2.55,-14.53,3.51,-3.51,-3.50,-0.24,-16.92,-18.05,-15.95
19757.96,-13.43,2.95,-14.75,3.60,-3.60,-3.53,-0.20,-17.03,-18.35,-16.37
19955.54,-12.88,3.90,-14.96,3.69,-3.69,-3.52,-0.16,-16.57,-18.65,-16.77
| CSV | 2 | vinzmc/AutoEq | results/innerfidelity/innerfidelity_harman_over-ear_2018/Aiaiai TMA-1 Studio/Aiaiai TMA-1 Studio.csv | [
"MIT"
] |
package com.baeldung.reducingIfElse;
public class Modulo implements Operation {
@Override public int apply(int a, int b) {
return a % b;
}
}
| Java | 3 | DBatOWL/tutorials | patterns/design-patterns-creational/src/main/java/com/baeldung/reducingIfElse/Modulo.java | [
"MIT"
] |
<h2>Cookie.ClientName {{.Cookie "clientname"}}</h2> | HTML | 1 | dandycheung/caddy | caddytest/integration/testdata/cookie.html | [
"Apache-2.0"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#include "gstreamerenv.hpp"
#include "gstreamerptr.hpp"
#ifdef HAVE_GSTREAMER
#include <gst/gst.h>
#endif // HAVE_GSTREAMER
namespace cv {
namespace gapi {
namespace wip {
namespace gst {
#ifdef HAVE_GSTREAMER
const GStreamerEnv& GStreamerEnv::init()
{
static GStreamerEnv gInit;
return gInit;
}
GStreamerEnv::GStreamerEnv()
{
if (!gst_is_initialized())
{
GError* error = NULL;
gst_init_check(NULL, NULL, &error);
GStreamerPtr<GError> err(error);
if (err)
{
cv::util::throw_error(
std::runtime_error(std::string("GStreamer initializaton error! Details: ") +
err->message));
}
}
// FIXME: GStreamer libs which have same MAJOR and MINOR versions are API and ABI compatible.
// If GStreamer runtime MAJOR version differs from the version the application was
// compiled with, will it fail on the linkage stage? If so, the code below isn't needed.
guint major, minor, micro, nano;
gst_version(&major, &minor, µ, &nano);
if (GST_VERSION_MAJOR != major)
{
cv::util::throw_error(
std::runtime_error(std::string("Incompatible GStreamer version: compiled with ") +
std::to_string(GST_VERSION_MAJOR) + '.' +
std::to_string(GST_VERSION_MINOR) + '.' +
std::to_string(GST_VERSION_MICRO) + '.' +
std::to_string(GST_VERSION_NANO) +
", but runtime has " +
std::to_string(major) + '.' + std::to_string(minor) + '.' +
std::to_string(micro) + '.' + std::to_string(nano) + '.'));
}
}
GStreamerEnv::~GStreamerEnv()
{
gst_deinit();
}
#else // HAVE_GSTREAMER
const GStreamerEnv& GStreamerEnv::init()
{
GAPI_Assert(false && "Built without GStreamer support!");
}
GStreamerEnv::GStreamerEnv()
{
GAPI_Assert(false && "Built without GStreamer support!");
}
GStreamerEnv::~GStreamerEnv()
{
// No need an assert here. The assert raise C4722 warning. Constructor have already got assert.
}
#endif // HAVE_GSTREAMER
} // namespace gst
} // namespace wip
} // namespace gapi
} // namespace cv
| C++ | 5 | pazamelin/openvino | thirdparty/fluid/modules/gapi/src/streaming/gstreamer/gstreamerenv.cpp | [
"Apache-2.0"
] |
#!MC 1410
#Allows to probe over time by entering the X,Y,Z coordinates of the probe
$!PROMPTFORTEXTSTRING |xPosition| INSTRUCTIONS = "Enter X position of the probe."
$!PROMPTFORTEXTSTRING |yPosition| INSTRUCTIONS = "Enter Y position of the probe."
$!PROMPTFORTEXTSTRING |zPosition| INSTRUCTIONS = "Enter Z position of the probe."
$!EXTENDEDCOMMAND
COMMANDPROCESSORID = 'Time Series Plot'
COMMAND = 'Command = CreatePlot StrandID = 1 XPos = |xPosition| YPos = |yPosition| ZPos = |zPosition|'
| MAXScript | 3 | Mehrdadj93/handyscripts | macro/PreciseProbeOverTime.mcr | [
"MIT"
] |
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://opensource.org/licenses/MIT
// Unless required by applicable law or agreed to in writing, software distributed under the License is
// distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions and
// limitations under the License.
//
// ThreadOperationQueue.mm
// MicroMessenger
//
// Created by yerungui on 12-12-18.
//
#import "comm/objc/ThreadOperationQueue.h"
#import "comm/objc/scope_autoreleasepool.h"
static class __ThreadRunOnStart
{
public:
__ThreadRunOnStart()
{
m_operationQueue = [[NSOperationQueue alloc] init];
assert(m_operationQueue);
}
~__ThreadRunOnStart()
{
[m_operationQueue release];
m_operationQueue = nil;
}
NSOperationQueue* m_operationQueue;
} gs_threadrunonstart;
@interface __CThreadWarp : NSObject
{
void (*m_funp)(void*);
void* m_arg;
void (*m_fun)();
}
-(void) Run;
@property (nonatomic, assign) void (*m_funp)(void*);
@property (nonatomic, assign) void (*m_fun)();
@property (nonatomic, assign) void* m_arg;
@end
@implementation __CThreadWarp
@synthesize m_funp;
@synthesize m_fun;
@synthesize m_arg;
-(id) init
{
if (self = [super init]) {
m_funp = nil;
m_arg = nil;
m_fun = nil;
}
return self;
}
-(void) Run
{
SCOPE_POOL();
assert(nil!=m_funp || nil!=m_fun);
if (nil!=m_funp)
m_funp(m_arg);
else
m_fun();
}
@end
@interface __ThreadWarp : NSObject
{
id m_target;
SEL m_sel;
id m_arg;
}
-(void) Run;
@property (nonatomic, retain) id m_target;
@property (nonatomic, assign) SEL m_sel;
@property (nonatomic, retain) id m_arg;
@end
@implementation __ThreadWarp
@synthesize m_target;
@synthesize m_sel;
@synthesize m_arg;
-(id) init
{
if (self = [super init]) {
m_target = nil;
m_sel = 0;
m_arg = nil;
}
return self;
}
- (void)dealloc {
self.m_target = nil;
self.m_arg = nil;
[super dealloc];
}
-(void) Run
{
SCOPE_POOL();
[m_target performSelector:m_sel withObject:m_arg];
}
@end
@implementation ThreadQueue
+(BOOL) RunWithTarget:(id)target selector:(SEL)sel object:(id)arg
{
SCOPE_POOL();
__ThreadWarp* warp = [[__ThreadWarp alloc] init];
warp.m_target= target;
warp.m_sel= sel;
warp.m_arg = arg;
NSInvocationOperation* invocation = [[NSInvocationOperation alloc]
initWithTarget:warp selector:@selector(Run) object:nil];
if (nil==invocation)
{
[warp release];
return NO;
}
[gs_threadrunonstart.m_operationQueue addOperation:invocation];
[invocation release];
[warp release];
return YES;
}
@end
extern "C" BOOL RunWithTarget(void (*_funp)(void*), void* _arg)
{
SCOPE_POOL();
__CThreadWarp* warp = [[__CThreadWarp alloc] init];
warp.m_funp = _funp;
warp.m_arg = _arg;
NSInvocationOperation* invocation = [[NSInvocationOperation alloc]
initWithTarget:warp selector:@selector(Run) object:nil];
if (nil==invocation)
{
[warp release];
return NO;
}
[gs_threadrunonstart.m_operationQueue addOperation:invocation];
[invocation release];
[warp release];
return YES;
}
extern "C" BOOL RunWithTargetNoParam(void (*_fun)())
{
SCOPE_POOL();
__CThreadWarp* warp = [[__CThreadWarp alloc] init];
warp.m_fun = _fun;
NSInvocationOperation* invocation = [[NSInvocationOperation alloc]
initWithTarget:warp selector:@selector(Run) object:nil];
if (nil==invocation)
{
[warp release];
return NO;
}
[gs_threadrunonstart.m_operationQueue addOperation:invocation];
[invocation release];
[warp release];
return YES;
}
void comm_export_symbols_4(){}
| Objective-C++ | 3 | jonetomtom/mars | mars/comm/objc/ThreadOperationQueue.mm | [
"BSD-2-Clause",
"Apache-2.0"
] |