LRX ;DALOI/STAFF - UTILITY ROUTINES -- PREVIOUSLY ^LAB("X","...") ;03/31/09 11:39
Source file <LRX.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
PT | ; Patient info
|
|
DEM | ; Call DEM^VADPT instead of OERR used above
|
|
DD | ;date/time format
|
|
DDOLD | ;OLD
|
|
DT | ;current date format is LRDT0
|
|
DTOLD | ;2-DIGIT
|
|
DASH | ;line of dashes
|
|
EQUALS | ;line of equals
|
|
DUZ | ;user info
|
|
DOC | ;provider info
|
|
PRAC(X) | ;prac info
|
|
YMD | ;year/month/date
|
|
STAMP | ;time stamp
|
|
KEYCOM | ;key to result flags
|
|
URG | ;urgencies
|
|
ADD | ;date format
|
|
INF | ;Display Infectious Warning
|
|
LRGLIN | ;
|
|
LRUID(LRAA,LRAD,LRAN) | ;Extrinsic function call to create a unique
|
|
SET3 | ||
KVAR | ;Kill laboratory/VADPT patient demographics
|
|
ADDPT | ;Returns VAPA( Patient data
|
|
OPDPT | ;Returns VAPD( Patient data
|
|
SVCPT | ;Returns VASV( Patient data
|
|
OADPT | ;Returns VAOA( Patient data
|
|
INPPT | ;Returns VAIN( Patient data
|
|
IN5PT | ;Returns VAIP( Patient data
|
|
PIDPT | ;Returns VA("PID") and VA("BID") Patient Identifier
|
|
Y2K(X,LRYR) | ; --> used to convert 2digit year to 4digit century and year
; 1/1/91 TO 1/1/1991 |
|
RD | ;DIR read
|
|
AGE2(DOB,LRCDT) | ;Entry point if passing only a valid Date without patient
; DOB, LRCDT must be defined in VA FileManager internal format ; Date error will return 99yr |
|
CALC | ;Calculate timeframe based on difference between DOB and collection
; date. Time is stripped off. ; .0001-24 hour = dy ; 0-29 days = dy ; 30-730 dy = mo ; >24 mo = yr |
Name | Field # of Occurrence |
---|---|
^%DT | STAMP+1, AGE2+10, AGE2+12 |
^%DTC | LRUID+17 |
GKILL^%ZISS | LRGLIN+4 |
GSET^%ZISS | LRGLIN+2 |
DT^DICRW | DT+2, DTOLD+3 |
$$GET1^DID | PT+11 |
^DIE | SET3+6 |
^DIR | RD+4 |
SSNFM^LRU | PT+31, DEM+22 |
ADD^VADPT | ADDPT+1 |
DEM^VADPT | DEM+17 |
IN5^VADPT | IN5PT+1 |
INP^VADPT | INPPT+1 |
KVA^VADPT | KVAR+2 |
KVAR^VADPT | PT+3, DEM+2 |
OAD^VADPT | OADPT+1 |
OERR^VADPT | PT+23 |
OPD^VADPT | OPDPT+1 |
PID^VADPT | PIDPT+1 |
SVC^VADPT | SVCPT+1 |
$$DT^XLFDT | AGE2+4 |
$$FMDIFF^XLFDT | CALC+11 |
$$FMTE^XLFDT | DD+1, DT+3, Y2K+6 |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Routine Call |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DIC - [#1] | DEM+9 |
^LAB(62.05 - [#62.05] | URG+1 |
^LR - [#63] | PT+6, DEM+5, INF+1 |
^LRO(68 - [#68] | LRUID+7, LRUID+9, LRUID+11, LRUID+28, LRUID+29, LRUID+32, SET3+3, SET3+7, SET3+8 |
^VA(200 - [#200] | DUZ+1, DOC+2, PRAC+3 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | YMD+1*! |
%D | YMD+1*! |
%DT | DT+1~, DTOLD+2~, STAMP+1*, AGE2+3~, AGE2+12! |
>> %H | YMD+1 |
%I | DT+1~, DTOLD+2~ |
%M | YMD+1*! |
%Y | YMD+1*! |
AGE | PT+4!, PT+5*, PT+17*, PT+26*, DEM+3!, DEM+4*, DEM+13*, DEM+20* |
AGE(2 | PT+5*, PT+18*, PT+26*, DEM+4*, DEM+14*, DEM+20* |
DA | LRUID+8~, SET3+5* |
DA(1 | SET3+5* |
DA(2 | SET3+5* |
>> DFN | PT+6*, PT+8, PT+12, DEM+5*, DEM+6, DEM+9 |
DIC | DT+1~, DTOLD+2~ |
DICS | DT+1~, DTOLD+2~ |
DIE | LRUID+8~, SET3+5* |
DIK | DT+1~, DTOLD+2~ |
>> DIROUT | RD+4 |
>> DIRUT | RD+4 |
DLAYGO | LRUID+8~, SET3+5* |
DOB | PT+5*, PT+16*, PT+17, PT+18, PT+25*, PT+26, DEM+4*, DEM+12*, DEM+13, DEM+14 , DEM+19*, DEM+20, KVAR+1!, AGE2~, AGE2+5, AGE2+6*, AGE2+7, AGE2+8, AGE2+9, CALC+7 , CALC+8, CALC+9, CALC+11 |
DOD | PT+5*, PT+12*, PT+25*, DEM+4*, DEM+18*, KVAR+1! |
DR | LRUID+8~, SET3*, SET3+2*, SET3+4* |
DT | PT+17, DEM+13, DT+3, DTOLD+4 |
>> DTOUT | RD+4 |
>> DUOUT | RD+4 |
HZ | LRGLIN+1~, LRGLIN+3* |
I | PT+2~, PT+22~, DEM+1~, DEM+16~, URG+1*, ADDPT+1~, OPDPT+1~, SVCPT+1~, OADPT+1~, INPPT+1~ , IN5PT+1~, PIDPT+1~ |
IO | INF+1 |
>> IOG0 | LRGLIN+4 |
>> IOG1 | LRGLIN+2 |
>> IOHL | LRGLIN+3 |
IOM | DASH+1, EQUALS+1 |
LRAA | LRUID~, LRUID+7, LRUID+9, LRUID+11, LRUID+29, SET3+5, SET3+8 |
LRAD | LRUID~, LRUID+12, LRUID+13, LRUID+14, LRUID+17, LRUID+29, SET3+5, SET3+8 |
LRAN | LRUID~, LRUID+20, LRUID+22, LRUID+25, LRUID+27, LRUID+29, SET3+5, SET3+8 |
LRANSX | RD+2!, RD+5* |
LRANSY | RD+2!, RD+5* |
LRCDT | PT+18, PT+26, DEM+14, DEM+20, AGE2~, AGE2+4*, AGE2+7*, AGE2+8, AGE2+9, AGE2+11 , CALC+7, CALC+8, CALC+9, CALC+11 |
LRDFN | PT+6, DEM+5, INF+1, KVAR+1! |
>> LRDOC | DOC+1*, DOC+2*, DOC+3* |
LRDPF | PT+6*, PT+8, PT+10, PT+11, PT+14, PT+21, DEM+5*, DEM+6, DEM+8, DEM+9 , DEM+11, DEM+16, KVAR+1! |
>> LRDT0 | DT+4* |
>> LRDTO | DTOLD+4* |
LREND | PT+7*, PT+8*, DEM+6*, KVAR+1!, RD+3*, RD+4* |
LRJUL | LRUID+8~, LRUID+18*, LRUID+19 |
LRMNTH | LRUID+8~, LRUID+14*, LRUID+15, LRUID+27 |
>> LRORDRR | LRUID+33, SET3, SET3+1 |
>> LRORU3 | SET3+8* |
>> LRPRAC | PT+28* |
LRQTR | LRUID+8~, LRUID+15*, LRUID+24 |
>> LRQUIET | INF+1 |
LRRB | PT+5*, PT+12*, PT+28*, DEM+4*, DEM+9*, KVAR+1! |
>> LRRSITE("IDTYPE" | SET3+3 |
>> LRRSITE("RPSITE" | SET3+2 |
>> LRRSITE("RSITE" | SET3+2 |
>> LRSD("RUID" | SET3+2, SET3+3 |
LRTREA | PT+4!, PT+5*, PT+29*, DEM+3!, DEM+4*, KVAR+1! |
LRTYPE | LRUID+8~, LRUID+11*, LRUID+16, LRUID+21, LRUID+23, LRUID+26 |
LRUID | LRUID+8~, LRUID+9*, LRUID+10*, LRUID+19*, LRUID+20*, LRUID+22*, LRUID+24*, LRUID+25*, LRUID+27*, LRUID+29 , LRUID+31, LRUID+32*, LRUID+33, SET3, SET3+2, SET3+3*, SET3+4, SET3+9 |
LRURG | URG+1! |
LRURG( | URG+1* |
LRURG(0 | URG+1* |
>> LRUSI | DUZ+1* |
>> LRUSNM | DUZ+1* |
LRWRD | PT+4!, PT+5*, PT+12*, PT+27*, DEM+3!, DEM+4*, DEM+9*, KVAR+1! |
LRWRD(1 | PT+28* |
LRYR | Y2K~, Y2K+4*, Y2K+6 |
LRYR1 | LRUID+8~, LRUID+12*, LRUID+19, LRUID+24, LRUID+27 |
LRYR2 | LRUID+8~, LRUID+13*, LRUID+22 |
N | PT+2~, PT+22~, DEM+1~, DEM+16~, ADDPT+1~, OPDPT+1~, SVCPT+1~, OADPT+1~, INPPT+1~, IN5PT+1~ , PIDPT+1~ |
PNM | PT+5*, PT+13*, PT+24*, DEM+4*, DEM+10*, DEM+18*, KVAR+1! |
SEX | PT+5*, PT+15*, PT+25*, DEM+4*, DEM+12*, DEM+18*, KVAR+1! |
SSN | PT+5*, PT+13*, PT+27*, DEM+4*, DEM+10*, DEM+19*, KVAR+1! |
SSN(1 | PT+27*, DEM+19* |
U | PT+6, PT+12, PT+13, PT+15, PT+16, PT+25, PT+27, DEM+5, DEM+9, DEM+10 , DEM+12, DEM+18, DEM+19, DOC+2, PRAC+3, URG+1 |
VA | KVAR+1! |
VA("BID" | PT+5*, PT+27, DEM+4*, DEM+19 |
VA("PID" | PT+5*, PT+27, DEM+4*, DEM+19 |
>> VA200 | PT+5*, DEM+4* |
>> VADM(1 | PT+24, DEM+18 |
>> VADM(3 | PT+25, DEM+19 |
>> VADM(4 | PT+26, DEM+20 |
>> VADM(5 | PT+25, DEM+18 |
>> VADM(6 | PT+25, DEM+18 |
VAERR | PT+23, DEM+17, KVAR+1! |
>> VAIN(2 | PT+28 |
>> VAIN(3 | PT+29 |
>> VAIN(4 | PT+27, PT+28 |
>> VAIN(5 | PT+28 |
X | PT+2~, PT+11*, PT+12*, PT+13, PT+15, PT+16, PT+22~, DEM+1~, DEM+9*, DEM+10 , DEM+12, DEM+16~, DT+1~, DTOLD+2~, DUZ+1, DOC+1, DOC+2, PRAC~, PRAC+2, PRAC+3 , YMD+1*, STAMP+1*, LRUID+18*, LRUID+30~, LRUID+31*, LRUID+32*, ADDPT+1~, OPDPT+1~, SVCPT+1~, OADPT+1~ , INPPT+1~, IN5PT+1~, PIDPT+1~, Y2K~, Y2K+6, RD+1~, RD+5, AGE2+3~, AGE2+7*, AGE2+11* , CALC+9*, CALC+10*, CALC+11*, CALC+12*, CALC+13* |
>> X1 | LRUID+17* |
>> X2 | LRUID+17* |
Y | PT+2~, PT+22~, DEM+1~, DEM+16~, DD+1*, DD+2*, DDOLD+1*, DDOLD+2*, DT+3*, DT+4 , DTOLD+4*, PRAC+1~, PRAC+3*, PRAC+4*, PRAC+5, ADD+1*, ADDPT+1~, OPDPT+1~, SVCPT+1~, OADPT+1~ , INPPT+1~, IN5PT+1~, PIDPT+1~, Y2K+6*, Y2K+7*, Y2K+8*, Y2K+9, RD+1~, RD+5, AGE2+3~ , AGE2+10, AGE2+12 |
YR | Y2K+5~ |