VAFCTF ;BIR/DLR-Utility for capturing patient's Date Last Treated and Event Reason ; 5/6/20 5:29pm
Source file <VAFCTF.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Registration | 1 | VAFCQRY2 |
Name | Comments | DBIA/ICR reference |
---|---|---|
EN1(VAFCDFN,VAFCSUP) | ; determine the LAST TREATMENT DATE for a single
; patient ; input: VAFCDFN - the dfn of the patient ; VAFCSUP - if 1, suppress add entries to the ADT HL7 PIVOT ; (#391.71) file for TF messaging - VAFCTFMF (optional) ; output: VAFCDATE - patient's DATE LAST TREATED ; VAFCENVR - event reason |
|
ADMDIS(DFN) | ; find the patient's last admission and discharge dates if
; they exist. ; Input: DFN - ien of the patient (file 2) |
|
ENCDT(DFN,INPDT) | ; find the last patient check out date/time. 'ADFN'
; cross-reference accessed through DBIA: 2953 ; Input: DFN - ien of the patient (file 2) ; INPDT - date (if any) returned from the inpatient admission/ ; discharge subroutine |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^SCE("ADFN" | ENCDT+10, ENCDT+11 |
Name | Line Occurrences |
---|---|
$$ADMDIS | EN1+13 |
$$ENCDT | EN1+15 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | ADMDIS+5~ |
DFN | ADMDIS~, ENCDT~, ENCDT+7, ENCDT+10, ENCDT+11 |
ERR | EN1+8~, EN1+30 |
ERR( | EN1+30 |
ICN | EN1+27~* |
INPDT | ENCDT~, ENCDT+10 |
STA | EN1+8~, EN1+12*, EN1+30 |
U | EN1+9*, EN1+18, EN1+19, EN1+30, ADMDIS+8, ADMDIS+10 |
VAERR | ADMDIS+5~ |
VAFCADMD | EN1+8~, EN1+13*, EN1+14*, EN1+15 |
VAFCDATA | ENCDT+8~, ENCDT+13, ENCDT+15!, ENCDT+18! |
VAFCDATE | EN1+8~, EN1+20*, EN1+25*, EN1+26, EN1+30 |
VAFCDFN | EN1~, EN1+13, EN1+15, EN1+27, EN1+30 |
VAFCENDT | EN1+8~, EN1+15*, EN1+18, EN1+19 |
VAFCENVR | EN1+8~, EN1+25*, EN1+26*, EN1+30 |
VAFCLAST | EN1+8~, EN1+13*, EN1+15, EN1+18*, EN1+19*, EN1+20 |
VAFCPARS | ENCDT+15! |
VAFCPARS( | ENCDT+14 |
VAFCPURG | ENCDT+8~, ENCDT+18! |
VAFCSITE | EN1+8~, EN1+10*, EN1+12*, EN1+30 |
VAFCSUP | EN1~, EN1+30 |
VAFCTYPE | EN1+8~, EN1+20*, EN1+26 |
VAFCX | ENCDT+8~, ENCDT+9*, ENCDT+10*, ENCDT+11, ENCDT+14, ENCDT+18! |
VAFCX1 | ENCDT+8~, ENCDT+11*, ENCDT+12, ENCDT+18! |
VAFCX2 | ENCDT+8~, ENCDT+9*, ENCDT+10, ENCDT+11, ENCDT+14*, ENCDT+18! |
VAFCX3 | ENCDT+8~, ENCDT+9*, ENCDT+14*, ENCDT+20*, ENCDT+21*, ENCDT+23*, ENCDT+24 |
VAIP | ADMDIS+5~ |
VAIP("D" | ADMDIS+5* |
VAIP(13 | ADMDIS+6, ADMDIS+8, ADMDIS+10, ADMDIS+12, ADMDIS+14 |
VAIP(17 | ADMDIS+6, ADMDIS+8, ADMDIS+10, ADMDIS+12 |