LRDAGE ;DFW/MRL/DALOI/FHS - RETURN TIMEFRAME IN DAYS, MONTHS OR YEARS;JUL 06, 2010 3:14 PM
Source file <LRDAGE.m>
Package | Total | Call Graph |
---|---|---|
VA Fileman | 2 | ^%DT GETS^DIQ |
Kernel | 1 | ($$DT,$$FMDIFF)^XLFDT |
Package | Total | Caller Graph |
---|---|---|
Lab Service | 3 | LRLNC63A LRRP1 LRRPU |
IHS Changes To Lab | 2 | BLRAGUT BLRAGUT1 |
Name | Comments | DBIA/ICR reference |
---|---|---|
DFN(DFN,FILE,LRCDT) | ; Call returns patient age based on specimen collection date
; Age is returned as day (dy) month (mo) or years (yr) ; DFN = IEN of patient ; FILE = File number where patient is found ; LRCDT = Specimen collection date otherwise age will be calculated ; using the current date ; Sex is a coded value of Male = "M" (default) Female = "F" ; DOD = Date of Death |
|
DATE(DOB,LRCDT) | ;Entry point if passing only a valid Date without patient
; Dates must be defined in VA FileManager internal format. ; DOB, Date of birth ; LRCDT = collection date ; Date formate 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 | Line Occurrences |
---|---|
$$DATE | DFN+16 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
%DT | DATE+8~, DATE+22! |
>> AGE | DFN+11*, DFN+16* |
DFN | DFN~, DFN+12, DFN+13, DFN+14, DFN+15 |
DOB | DFN+14*, DFN+16, DATE~, DATE+10*, DATE+12, DATE+13, DATE+17, DATE+18, CALC+8, CALC+9 , CALC+10, CALC+12 |
>> DOD | DFN+15* |
FILE | DFN~, DFN+12, DFN+13, DFN+14, DFN+15 |
LRCDT | DFN~, DFN+9*, DFN+10*, DFN+16, DATE~, DATE+9*, DATE+13*, DATE+17, DATE+18, DATE+20 , CALC+8, CALC+9, CALC+10, CALC+12 |
LRSAGE | DFN+8~ |
LRSAGE( | DFN+13, DFN+14, DFN+15 |
>> SEX | DFN+11*, DFN+13* |
X | DATE+8~, DATE+13*, DATE+20*, CALC+10*, CALC+11*, CALC+12*, CALC+13*, CALC+14* |
Y | DATE+8~, DATE+19, DATE+22 |