Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Label References |  Local Variables  | All
Print Page as PDF
Routine: LRDAGE

Package: Lab Service

Routine: LRDAGE


Information

LRDAGE ;DFW/MRL/DALOI/FHS - RETURN TIMEFRAME IN DAYS, MONTHS OR YEARS; 15 MAR 90

Source Information

Source file <LRDAGE.m>

Call Graph

Call Graph

Call Graph Total: 3

Package Total Call Graph
VA FileMan 2 ^%DT  GETS^DIQ  
Kernel 1 ($$DT,$$FMDIFF)^XLFDT  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
Lab Service 2 LRLNC63A  LRRPU  

Entry Points

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

External References

Name Field # of Occurrence
^%DT DATE+12, DATE+14
GETS^DIQ DFN+12
$$DT^XLFDT DFN+9, DATE+6
$$FMDIFF^XLFDT CALC+11

Label References

Name Line Occurrences
$$DATE DFN+16

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT DATE+5~, DATE+14!
>> AGE DFN+11*, DFN+16*
DFN DFN~, DFN+12, DFN+13, DFN+14, DFN+15
DOB DFN+14*, DFN+16, DATE~, DATE+7*, DATE+8, DATE+9, DATE+10, DATE+11, CALC+7, CALC+8
CALC+9, CALC+11
>> DOD DFN+15*
FILE DFN~, DFN+12, DFN+13, DFN+14, DFN+15
LRCDT DFN~, DFN+9*, DFN+10*, DFN+16, DATE~, DATE+6*, DATE+9*, DATE+10, DATE+11, DATE+13
CALC+7, CALC+8, CALC+9, CALC+11
LRSAGE DFN+8~
LRSAGE( DFN+13, DFN+14, DFN+15
>> SEX DFN+11*, DFN+13*
X DATE+5~, DATE+9*, DATE+13*, CALC+9*, CALC+10*, CALC+11*, CALC+12*, CALC+13*
Y DATE+5~, DATE+12, DATE+14
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Label References |  Local Variables  | All