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 |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All
Print Page as PDF
Routine: PXRMAGE

Package: Clinical Reminders

Routine: PXRMAGE


Information

PXRMAGE ; SLC/PKR - Utilities for age calculations. ;07-Jun-2012 09:58;DU

Source Information

Source file <PXRMAGE.m>

Call Graph

Call Graph Total: 4

Package Total Call Graph
Clinical Reminders 2 $$OVERLAP^PXRMAGE  $$FREQ^PXRMPTD2  
Kernel 1 $$UP^XLFSTR  
Registration 1 DEM^VADPT  

Caller Graph

Caller Graph Total: 10

Package Total Caller Graph
Clinical Reminders 9 PXRMAGE  PXRMLOG  PXRMOUTC  PXRMP4I  PXRMPDEM  PXRMPINF  PXRMPTD1  PXRMPTD2  
PXRMREDT  
IHS Mods To Patient Care Encounter 1 BPXRMPCC  

Entry Points

Name Comments DBIA/ICR reference
AGECHECK(AGE,MINAGE,MAXAGE) ;Given an AGE, MINimumAGE, and MAXimumAGE
FMTFREQ(FREQ) ;Format the frequency for display.
FMTAGE(MINAGE,MAXAGE) ;Format the minimum age and maximum age for display.
AGE(DOB,DOD,DATE) ;Given a date of birth, date of death, and a date
MMF(DEFARR,PXRMPDEM,MINAGE,MAXAGE,FREQ,FIEVAL) ;Set the baseline minimum age,
OVLAP() ;Check age ranges for overlap. Called from definition editor after
DECODE(AGEVALUE) ;Determine the age in years or months
; IHS/MSC/MGH - 2/28/2012 PATCH 1001 Added function to change reminder
DECAGE(AGEVALUE) ; Put age from VADPT into format for reminders
; IHS/MSC/MGH - 2/28/2012 PATCH 1001 Added function to change age into days or months
OVERLAP(NAR,MINA,MAXA) ;Check age ranges for overlap. Return an error message

External References

Name Field # of Occurrence
$$OVERLAP^PXRMAGE OVLAP+9
$$FREQ^PXRMPTD2 FMTFREQ+3
DEM^VADPT AGE+9
$$UP^XLFSTR MMF+10

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,"Error - the following age ranges overlap:"
  • Line Location: OVLAP+11
Function Call: WRITE
  • Prompt: !,?2,^TMP($J,"OVERLAP",IC)
  • Line Location: OVLAP+13
Function Call: WRITE
  • Prompt: !,"Please correct this problem."
  • Line Location: OVLAP+15

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PXD(811.9 - [#811.9] OVLAP+4, OVLAP+6
^TMP( OVERLAP+22*
^TMP($J OVERLAP+23*, OVLAP+13, OVLAP+14!

Label References

Name Line Occurrences
$$AGECHECK MMF+24
$$DECAGE AGECHECK+8
$$DECODE AGECHECK+9, AGECHECK+10, OVERLAP+7, OVERLAP+9, OVERLAP+12, OVERLAP+14
$$OVERLAP MMF+18

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
AGE AGECHECK~, AGECHECK+8*, AGECHECK+12, AGECHECK+16
AGEVALUE DECAGE~, DECAGE+3, DECODE~, DECODE+3, DECODE+4, DECODE+5
BAGE AGE+5~, AGE+7*, AGE+8, AGE+10*, AGE+11
CDATE AGE+5~, AGE+6*, AGE+7
CODE DECAGE+2~, DECAGE+3*, DECAGE+5, DECAGE+6, DECODE+2~, DECODE+5*, DECODE+7, DECODE+8
>> DA OVLAP+4, OVLAP+6
DATE AGE~, AGE+6
DEFARR MMF~
DEFARR(7 MMF+7, MMF+9
DOB AGE~, AGE+7
DOD AGE~, AGE+6
FIEVAL MMF~
FIEVAL("AGE" MMF+14*, MMF+29*
FR MMF+3~
FR( MMF+10*, MMF+28
FREQ FMTFREQ~, FMTFREQ+3, FMTFREQ+4, MMF~, MMF+5*, MMF+21*, MMF+28*
FREQT FMTFREQ+1~, FMTFREQ+3*, FMTFREQ+4, FMTFREQ+5
IC MMF+3~, MMF+6*, MMF+7*, MMF+9, MMF+13, MMF+14, MMF+23*, MMF+24, MMF+26, MMF+27
, MMF+28, MMF+29, OVERLAP+4~, OVERLAP+6*, OVERLAP+7, OVERLAP+9, OVERLAP+11, OVERLAP+21, OVLAP+2~, OVLAP+3*
, OVLAP+4*, OVLAP+6, OVLAP+12*, OVLAP+13*
IN OVERLAP+4~, OVERLAP+16*, OVERLAP+17*, OVERLAP+18*, OVERLAP+19
INDEX MMF+3~
INDEX( MMF+13*, MMF+29
JC OVERLAP+4~, OVERLAP+11*, OVERLAP+12, OVERLAP+14, OVERLAP+21
LEN DECODE+2~, DECODE+3*, DECODE+4, DECODE+5
MATCH MMF+3~, MMF+22*, MMF+23, MMF+25*
MAXA MMF+3~, MMF+18, OVERLAP~, OVLAP+2~, OVLAP+9
MAXA( MMF+12*, MMF+24, MMF+27, OVERLAP+7, OVERLAP+12, OVERLAP+21, OVLAP+8*
MAXAGE AGECHECK~, AGECHECK+9*, AGECHECK+12, FMTAGE~, FMTAGE+2, FMTAGE+3, FMTAGE+5, MMF~, MMF+5*, MMF+27*
MAXI OVERLAP+4~, OVERLAP+7*, OVERLAP+8*, OVERLAP+17, OVERLAP+18
MAXJ OVERLAP+4~, OVERLAP+12*, OVERLAP+13*, OVERLAP+18
MINA MMF+3~, MMF+18, OVERLAP~, OVLAP+2~, OVLAP+9
MINA( MMF+11*, MMF+24, MMF+26, OVERLAP+9, OVERLAP+14, OVERLAP+21, OVLAP+7*
MINAGE AGECHECK~, AGECHECK+10*, AGECHECK+15, AGECHECK+16, FMTAGE~, FMTAGE+2, FMTAGE+3, FMTAGE+4, MMF~, MMF+5*
, MMF+26*
MINI OVERLAP+4~, OVERLAP+9*, OVERLAP+10*, OVERLAP+17, OVERLAP+18
MINJ OVERLAP+4~, OVERLAP+14*, OVERLAP+15*, OVERLAP+17
MULT DECAGE+2~, DECAGE+4*, DECAGE+5*, DECAGE+6*, DECAGE+7, DECODE+2~, DECODE+6*, DECODE+7*, DECODE+8*, DECODE+9
NAR MMF+3~, MMF+6*, MMF+8*, MMF+10, MMF+11, MMF+12, MMF+13, MMF+15, MMF+18, MMF+23
, OVERLAP~, OVERLAP+3, OVERLAP+6, OVERLAP+11, OVLAP+2~, OVLAP+3*, OVLAP+5*, OVLAP+7, OVLAP+8, OVLAP+9
NUM DECAGE+2~, DECAGE+3*, DECAGE+7, DECODE+2~, DECODE+4*, DECODE+9
OVERLAP OVLAP+2~, OVLAP+9*, OVLAP+10, OVLAP+16
OVRLAP OVERLAP+4~, OVERLAP+5*, OVERLAP+20*, OVERLAP+22, OVERLAP+23, OVERLAP+24*, OVERLAP+25
PTAGE AGECHECK+7~
>> PXRMDEBG MMF+18
>> PXRMITEM OVERLAP+22
PXRMPDEM MMF~
PXRMPDEM("AGE" MMF+24
>> PXRMPID OVERLAP+22
STR FMTAGE+1~, FMTAGE+3*, FMTAGE+4*, FMTAGE+5*, FMTAGE+6*, FMTAGE+7, FMTFREQ+1~, FMTFREQ+2*, FMTFREQ+4, FMTFREQ+5
TEMP MMF+3~, MMF+9*, MMF+10, MMF+11, MMF+12, OVLAP+2~, OVLAP+6*, OVLAP+7, OVLAP+8
TEXT OVERLAP+4~, OVERLAP+21*, OVERLAP+22, OVERLAP+23
U MMF+10, MMF+11, MMF+12, OVLAP+7, OVLAP+8
VADM AGE+5~
VADM(4 AGE+10
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All