LRPXAPIU ; SLC/STAFF Lab Extract API Utilities ;1/29/04 14:32
Source file <LRPXAPIU.m>
Package | Total | Call Graph |
---|---|---|
Lab Service | 2 | ($$CONDOK,NORMALS)^LRPXAPI2 $$ICD9^LRPXAPIU |
VA FileMan | 2 | ^%DT Y^DIQ |
DRG Grouper | 1 | ($$ICDD,$$ICDDX)^ICDCODE |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
LRDFN(DFN) | ; API $$(dfn) -> lrdfn
|
|
DFN(LRDFN) | ; API $$(lrdfn) -> dfn
|
|
LRIDT(DATETIME) | ; API $$(datetime) -> lridt (or lridt to datetime)
|
|
LRDN(TEST) | ; API $$(test) -> data number (subscript for test in ^LR)
|
|
TEST(LRDN) | ; API $$(lrdn) -> test
|
|
AB(ABDN) | ; API $$(antimicrobial data number) -> antimicrobial ien
|
|
ABDN(AB) | ; API $$(62.06 ien) -> antimicrobial data number
|
|
TB(TBDN) | ; API $$(mycobacteria data number) -> mycobacteria field number
|
|
TBDN(TB) | ; API $$(mycobacteria field number) -> mycobacteria data number
|
|
CATEGORY(SUB,TYPE) | ; API $$(subscript, type) -> Micro category [B P F M V], AP category [A C E M S]
|
|
CATSUB(CAT,TYPE) | ; API $$(category letter, type) -> subscript
|
|
DFNM(DFN) | ; API $$(dfn) -> patient name
|
|
LRDFNM(LRDFN) | ; API $$(lrdfn) -> patient name
|
|
TESTNM(TEST) | ; API $$(test ien) -> test name
|
|
LRDNM(LRDN) | ; API $$(data number) -> test name
|
|
SPECNM(SPEC) | ; API $$(spec ien) -> specimen name
|
|
BUGNM(BUG) | ; API $$(organism ien) -> organism name
|
|
ABNM(AB) | ; API $$(antimicrobial ien) -> antimicrobial name
|
|
TBNM(TB) | ; API $$(mycobacteria field number) -> mycobacteria drug name
|
|
ORGNM(ORGAN) | ; API $$(organ/tissue ien) -> organ/tissue name
|
|
DISNM(DISEASE) | ; API $$(disease ien) -> disease name
|
|
ETINM(ETIOLOGY) | ; API $$(etiology ien) -> etiology name
|
|
MORPHNM(MORPH) | ; API $$(morphology ien) -> morphology name
|
|
FUNNM(FUNCTION) | ; API $$(function ien) -> function name
|
|
PROCNM(PROC) | ; API $$(procedure ien) -> procedure name
|
|
ICD9(ICD9) | ; API $$(icd9 ien) -> icd code^name
|
|
DOD(DFN) | ; API $$(dfn) -> date of death else 0
|
|
EXTVALUE(Y,REF) | ; API $$(internal value,index ref) -> external value
|
|
ITEMNM(INFO) | ; API $$(ap or micro item) -> item name
|
|
CONDOK(COND,TYPE) | ; API $$(condition,type) -> 1 for valid condition, else 0
|
|
NORMALS(LOW,HIGH,TEST,SPEC) | ; API return low and high ref range on test
|
|
DATES(DATE1,DATE2) | ; API return proper date range
; DATE1 always returns oldest value |
|
EXTTOFM(X) | ; $$(external date/time) -> FM date/time
|
|
VRESULT(TEST,RESULT) | ; $$(test,result) -> valid result
|
|
RESULT(TEST,RESULT) | ; $$(test,result) -> result Convert CH result to external format
|
|
STRIP(TEXT) | ; $$(text) -> stripped text Strips white space from text
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DD(63.04 | EXTVALUE+4 |
^DD(63.39 | TB+1, TBDN+2, TBNM+1 |
^DPT - [#2] | LRDFN+1, DFNM+1, DOD+1 |
^LAB(60 - [#60] | LRDN+1, TEST+1, TESTNM+1, RESULT+4 |
^LAB(61 - [#61] | SPECNM+1, ORGNM+1 |
^LAB(61.1 - [#61.1] | MORPHNM+1 |
^LAB(61.2 - [#61.2] | BUGNM+1, ETINM+1 |
^LAB(61.3 - [#61.3] | FUNNM+1 |
^LAB(61.4 - [#61.4] | DISNM+1 |
^LAB(61.5 - [#61.5] | PROCNM+1 |
^LAB(62.06 - [#62.06] | AB+1, ABDN+2, ABNM+1 |
^LR - [#63] | DFN+2, DFN+3 |
Name | Line Occurrences |
---|---|
$$ABNM | ITEMNM+11 |
$$BUGNM | ITEMNM+10 |
$$DFN | LRDFNM+1 |
$$DFNM | LRDFNM+1 |
$$DISNM | ITEMNM+17 |
$$ETINM | ITEMNM+19 |
$$EXTTOFM | DATES+3, DATES+4 |
$$FUNNM | ITEMNM+20 |
$$MORPHNM | ITEMNM+18 |
$$ORGNM | ITEMNM+16 |
$$PROCNM | ITEMNM+21 |
$$RESULT | VRESULT+1 |
$$SPECNM | ITEMNM+8 |
$$STRIP | VRESULT+1 |
$$TBNM | ITEMNM+12 |
$$TEST | LRDNM+1 |
$$TESTNM | LRDNM+1, ITEMNM+2, ITEMNM+9, ITEMNM+15 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
%DT | EXTTOFM+1~, EXTTOFM+2* |
AB | ABDN~, ABDN+2, ABNM~, ABNM+1 |
ABDN | AB~, AB+1, ABDN+1~, ABDN+2*, ABDN+3, ABDN+4 |
BUG | BUGNM~, BUGNM+1 |
C | EXTVALUE+1~, EXTVALUE+4* |
CAT | CATEGORY+1~, CATEGORY+3, CATEGORY+4*, CATEGORY+5*, CATEGORY+6*, CATEGORY+7*, CATEGORY+8*, CATEGORY+9*, CATSUB~, CATSUB+2* , CATSUB+4, CATSUB+5, CATSUB+6, CATSUB+7, CATSUB+8, CATSUB+10, CATSUB+11, CATSUB+12, CATSUB+13 |
COND | CONDOK~, CONDOK+1 |
DATE1 | DATES~, DATES+3*, DATES+6* |
DATE2 | DATES~, DATES+4*, DATES+5*, DATES+6*, DATES+7* |
DATETIME | LRIDT~, LRIDT+1, LRIDT+2 |
DFN | LRDFN~, LRDFN+1, DFNM~, DFNM+1, DOD~, DOD+1 |
DISEASE | DISNM~, DISNM+1 |
ETIOLOGY | ETINM~, ETINM+1 |
FIELD | EXTVALUE+1~, EXTVALUE+3*, EXTVALUE+4 |
FILE | ITEMNM+1~, ITEMNM+5*, ITEMNM+8, ITEMNM+9, ITEMNM+10, ITEMNM+11, ITEMNM+12, ITEMNM+14, ITEMNM+15, ITEMNM+16 , ITEMNM+17, ITEMNM+18, ITEMNM+19, ITEMNM+20, ITEMNM+21, ITEMNM+22 |
FUNCTION | FUNNM~, FUNNM+1 |
HIGH | NORMALS~, NORMALS+1 |
I | STRIP+1~, STRIP+2* |
ICD9 | ICD9~, ICD9+2*, ICD9+3, ICD9+4 |
INFO | ITEMNM~, ITEMNM+2, ITEMNM+4, ITEMNM+5, ITEMNM+6, ITEMNM+14 |
LOW | NORMALS~, NORMALS+1 |
LRCW | RESULT+3~, RESULT+4* |
LRDFN | DFN~, DFN+1*, DFN+2, DFN+3, LRDFNM~, LRDFNM+1 |
LRDN | TEST~, TEST+1, LRDNM~, LRDNM+1 |
LRTMP | ICD9+1~, ICD9+3* |
LRTMP(1 | ICD9+4 |
MORPH | MORPHNM~, MORPHNM+1 |
NAME | ITEMNM+1~, ITEMNM+3*, ITEMNM+4, ITEMNM+5, ITEMNM+6, ITEMNM+7, ITEMNM+8*, ITEMNM+9*, ITEMNM+10*, ITEMNM+11* , ITEMNM+12*, ITEMNM+13, ITEMNM+14*, ITEMNM+15*, ITEMNM+16*, ITEMNM+17*, ITEMNM+18*, ITEMNM+19*, ITEMNM+20*, ITEMNM+21* , ITEMNM+22*, ITEMNM+23 |
NUM | ITEMNM+1~, ITEMNM+6*, ITEMNM+8, ITEMNM+9, ITEMNM+10, ITEMNM+11, ITEMNM+12, ITEMNM+15, ITEMNM+16, ITEMNM+17 , ITEMNM+18, ITEMNM+19, ITEMNM+20, ITEMNM+21, ITEMNM+22 |
ORGAN | ORGNM~, ORGNM+1 |
PROC | PROCNM~, PROCNM+1 |
REF | EXTVALUE~, EXTVALUE+2, EXTVALUE+3 |
RESULT | VRESULT~, VRESULT+1, RESULT~, RESULT+4 |
SPEC | SPECNM~, SPECNM+1, NORMALS~, NORMALS+1 |
SUB | CATEGORY~, CATEGORY+2*, CATEGORY+4, CATEGORY+5, CATEGORY+6, CATEGORY+7, CATEGORY+8, CATEGORY+10, CATEGORY+11, CATEGORY+12 , CATEGORY+13, CATEGORY+14, CATEGORY+15, CATEGORY+16, CATSUB+1~, CATSUB+3, CATSUB+4*, CATSUB+5*, CATSUB+6*, CATSUB+7* , CATSUB+8*, CATSUB+9* |
TB | TBDN~, TBDN+2, TBNM~, TBNM+1 |
TBDN | TB~, TB+1, TBDN+1~, TBDN+2*, TBDN+3, TBDN+4 |
TEMP | DATES+2~, DATES+6* |
TEST | LRDN~, LRDN+1, TESTNM~, TESTNM+1, NORMALS~, NORMALS+1, VRESULT~, VRESULT+1, RESULT~, RESULT+4 |
TEXT | STRIP~, STRIP+2 |
TYPE | CATEGORY~, CATEGORY+3, CATSUB~, CATSUB+3, ITEMNM+1~, ITEMNM+4*, ITEMNM+7, ITEMNM+13, CONDOK~, CONDOK+1 |
U | DFN+2, DFN+3, LRDN+1, ABDN+2, TBDN+2, DFNM+1, TESTNM+1, SPECNM+1, BUGNM+1, ABNM+1 , TBNM+1, ORGNM+1, DISNM+1, ETINM+1, MORPHNM+1, FUNNM+1, PROCNM+1, ICD9+2, ICD9+4, EXTVALUE+4 , RESULT+4 |
X | EXTTOFM~, RESULT+3~, RESULT+4*, RESULT+5, STRIP+1~, STRIP+2*, STRIP+3 |
X1 | RESULT+3~, RESULT+4* |
Y | EXTVALUE~, EXTVALUE+2, EXTVALUE+6, EXTTOFM+1~, EXTTOFM+4, EXTTOFM+5 |