PXRMAGE ; SLC/PKR - Utilities for age calculations. ;07-Jun-2012 09:58;DU
Source file <PXRMAGE.m>
Package | Total | Call Graph |
---|---|---|
Clinical Reminders | 2 | $$OVERLAP^PXRMAGE $$FREQ^PXRMPTD2 |
Kernel | 1 | $$UP^XLFSTR |
Registration | 1 | DEM^VADPT |
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
|
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
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! |
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 |
>> | 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 |