SDAM2 ;ALB/MJK - Appt Mgt (cont) ;JAN 15, 2016
Source file <SDAM2.m>
Package | Total | Call Graph |
---|---|---|
Scheduling | 11 | BLD^SDAM ($$TIME,BLD)^SDAM1 BLD^SDAM3 ($$HANDLE,AFTER,BEFORE,EVT)^SDAMEVT ($$CL,$$PT)^SDAMWI SDECCHK^SDEC25 $$APPTGET^SDECUTL SDM^SDKILL ^SDM (ANSW,APPT,ASKREM,EN)^SDWLEVAL (INIT,LIST)^SDWLPL |
List Manager | 4 | ($$FTIME,$$LOWER,FULL,PAUSE)^VALM1 (CNTRL,FLDTEXT,SELECT)^VALM10 RANGE^VALM11 SEL^VALM2 |
VA FileMan | 3 | NOW^%DTC ^DIE $$GET1^DIQ |
Kernel | 1 | (T0,T1)^%ZOSV |
Registration | 1 | ADM^VADPT2 |
Name | Comments | DBIA/ICR reference |
---|---|---|
CI | ; -- protocol SDAM APPT CHECK IN entry pt
; input: VALMY := array entries |
|
ONE(DFN,SDCL,SDT,SDDA,SDASK,SDAMCIDT) | ; -- check in one appt
; input: DFN := ifn of patient ; SDCL := clinic# ; SDT := appt d/t ; SDDA := ifn in ^SC multiple or null ; SDASK := ask d/t of ci always [1|yes or 0|no] ; SDAMCIDT := ci date/time [optional] |
|
ONEQ | ||
FIND(DFN,SDT,SDCL) | ; -- return appt ifn for pat
; input: DFN := ifn of pat. ; SDT := appt d/t ; SDCL := ifn of clinic ; output: [returned] := ifn if pat has appt on date/time |
|
UPD(TEXT,FLD,LINE,SAVE) | ; -- update data for screen
|
|
MAKE | ; -- make appt action
|
|
WI | ; -- walk-in visit action
|
|
EWLCHK | ;check if patient has any open EWL entries (SD/372)
|
|
DATE | ; -- change date range
|
|
DATEQ | ||
INP(DFN,VDATE) | ; -- determine inpatient status ; dom is not an inpatient appt
|
|
INPQ | ||
VALID(DFN,SDCL,SDT,SDDA) | ; -- return valid appt.
; **NOTE: For speed consideration the ^SC and ^DPT nodes must be ; check to see they exist prior to calling this entry point. ; input: DFN := ifn of pat. ; SDT := appt d/t ; SDCL := ifn of clinic ; SDDA := ifn of appt ; output: [returned] := 1 for valid appt., 0 for not valid |
Name | Field # of Occurrence |
---|---|
NOW^%DTC | CI+5 |
T0^%ZOSV | ONE+8 |
T1^%ZOSV | ONE+44 |
^DIE | ONE+28 |
$$GET1^DIQ | ONE+32 |
BLD^SDAM | MAKE+5 |
$$TIME^SDAM1 | ONE+42 |
BLD^SDAM1 | WI+3, DATE+4 |
BLD^SDAM3 | WI+4, DATE+5 |
$$HANDLE^SDAMEVT | ONE+11 |
AFTER^SDAMEVT | ONE+35 |
BEFORE^SDAMEVT | ONE+12 |
EVT^SDAMEVT | ONE+43 |
$$CL^SDAMWI | WI+3 |
$$PT^SDAMWI | WI+4 |
SDECCHK^SDEC25 | ONE+33 |
$$APPTGET^SDECUTL | ONE+31 |
SDM^SDKILL | MAKE+7 |
^SDM | MAKE+4 |
ANSW^SDWLEVAL | EWLCHK+16, EWLCHK+17 |
APPT^SDWLEVAL | EWLCHK+9 |
ASKREM^SDWLEVAL | EWLCHK+19 |
EN^SDWLEVAL | EWLCHK+11, EWLCHK+18 |
INIT^SDWLPL | EWLCHK+13 |
LIST^SDWLPL | EWLCHK+15, EWLCHK+16 |
ADM^VADPT2 | INP+2 |
$$FTIME^VALM1 | ONE+23, ONE+26, ONE+38 |
$$LOWER^VALM1 | ONE+41 |
FULL^VALM1 | MAKE+2, WI+2 |
PAUSE^VALM1 | ONE+10, ONE+13, ONE+16, ONE+36, MAKE+6, DATE+2 |
CNTRL^VALM10 | UPD+2 |
FLDTEXT^VALM10 | UPD+1 |
SELECT^VALM10 | CI+9, CI+11 |
RANGE^VALM11 | DATE+1 |
SEL^VALM2 | CI+4 |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DG(43 - [#43] | INP+3 |
^DGPM - [#405] | INP+3 |
^DIC(42 - [#42] | INP+3 |
^DPT - [#2] | FIND+8, VALID+8 |
^SC - [#44] | ONE+17, ONE+18, ONE+23, ONE+26, FIND+8, VALID+8 |
^SD(409.63 - [#409.63] | ONE+13 |
^TMP("SDAM" | CI+8 |
^TMP("SDAMIDX" | CI+6, CI+7 |
^TMP("SDWLPL" | EWLCHK+12! |
^TMP($J | EWLCHK+4!, EWLCHK+8!, EWLCHK+10, EWLCHK+12!, EWLCHK+14, EWLCHK+16, EWLCHK+17, EWLCHK+18, EWLCHK+19 |
Name | Field # of Occurrence |
---|---|
^( | FIND+8 |
^(0 | ONE+17*, FIND+8 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | CI+3~, CI+5 |
>> CLN | EWLCHK+6 |
CNSTLNK | FIND+8*! |
DA | ONE+28*, ONEQ! |
DA(1 | ONE+28* |
DA(2 | ONE+28* |
DE | ONEQ! |
DFN | ONE~, ONE+9, ONE+11, ONE+12, ONE+31, ONE+35, FIND~, FIND+8, EWLCHK+2, EWLCHK+9 , EWLCHK+11, EWLCHK+13, EWLCHK+15, EWLCHK+16, EWLCHK+18, INP~, VALID~, VALID+8 |
DIE | ONE+28*, ONEQ! |
DQ | ONEQ! |
DR | ONE+18*, ONE+19*, ONE+21, ONE+22*, ONE+23*, ONE+24*, ONE+26*, ONE+27*, ONEQ! |
DT | ONE+16, ONE+42 |
FLD | UPD~, UPD+1, UPD+2 |
IOF | EWLCHK+9 |
>> IOINHI | UPD+2 |
>> IOINORM | UPD+2 |
LINE | UPD~, UPD+1, UPD+2 |
ORACTION | MAKE+1~ |
ORVP | MAKE+1~ |
SAVE | UPD~, UPD+2 |
>> SC | EWLCHK+6*, EWLCHK+9 |
SD | EWLCHK+5~*, EWLCHK+9 |
SDAMCIDT | CI+3~, CI+5*, CI+10, ONE~, ONE+26, ONE+27 |
SDAMERR | MAKE+1~, MAKE+5, MAKE+6 |
>> SDAMTYP | WI+3, WI+4, DATE+4, DATE+5 |
SDASK | ONE~, ONE+23, ONE+26 |
SDAT | CI+3~, CI+6!, CI+7*, CI+8, CI+9, CI+10, CI+11, ONE+41, ONE+42 |
SDATA | ONE+11~*, ONE+12, ONE+35, ONE+43 |
SDATA("AFTER" | ONE+36, ONE+37, ONE+38, ONE+40, ONE+42 |
SDATA("BEFORE" | ONE+13, ONE+36, ONE+37, ONE+38, ONE+41 |
>> SDBEG | DATE+1, DATE+2, DATE+3* |
SDCIACT | CI+3~, CI+4*, ONE+39 |
SDCIHDL | ONE+11~*, ONE+12, ONE+35, ONE+43 |
SDCL | ONE~, ONE+9, ONE+11, ONE+12, ONE+17, ONE+18, ONE+23, ONE+26, ONE+28, ONE+31 , ONE+32, ONE+35, FIND~, FIND+8, VALID~, VALID+8 |
>> SDCLN | WI+4 |
>> SDCTN | EWLCHK+19* |
SDDA | ONE~, ONE+9*, ONE+10, ONE+11, ONE+12, ONE+18, ONE+28, ONE+32, ONE+35, VALID~ , VALID+8 |
SDECAPPT | ONE+30~, ONE+31*, ONE+33 |
SDECDT | ONE+30~, ONE+32*, ONE+33 |
>> SDEND | DATE+2, DATE+3* |
SDEV | EWLCHK+11~, EWLCHK+18~ |
SDEV(1 | EWLCHK+11, EWLCHK+18 |
>> SDFN | WI+3 |
SDI | CI+3~, CI+4*, CI+6*, CI+7 |
SDINP | INP+1~, INP+2*, INP+4*, INPQ |
SDR | EWLCHK+16~, EWLCHK+17~ |
SDT | ONE~, ONE+9, ONE+11, ONE+12, ONE+16, ONE+18, ONE+28, ONE+31, ONE+32, ONE+35 , FIND~, FIND+8, EWLCHK+3, EWLCHK+5, VALID~, VALID+8 |
TEXT | UPD~, UPD+1 |
U | CI+10, ONE+11, ONE+21, ONE+23, ONE+24, ONE+26, ONE+36, ONE+38, ONE+40, ONE+41 , ONE+42, FIND+8, UPD+2, INP+3, VALID+8 |
VADMVT | INP+1~, INP+2, INP+3 |
VAINDT | INP+1~, INP+2* |
VALMB | DATE+1*, DATEQ! |
>> VALMBCK | CI+12*, MAKE+7*, WI+1*, DATE+2*, DATE+6* |
VALMBEG | DATE+2, DATE+3, DATEQ! |
>> VALMCC | CI+9, CI+11, CI+12, UPD+2 |
>> VALMDDF( | UPD+2 |
VALMEND | DATE+2, DATE+3, DATEQ! |
>> VALMHDR(1 | MAKE+3 |
VALMY | CI+3~ |
VALMY( | CI+6 |
VDATE | INP~, INP+2 |
X | ONE+11~, ONE+18*, ONE+19, ONE+21, ONE+23, ONE+24 |
XQORQUIT | MAKE+1~ |
>> XRT0 | ONE+44 |
>> XRTL | ONE+8 |
>> XRTN | ONE+44* |
Y | ONE+40*, ONE+41, ONEQ!, FIND+6~, FIND+8*, FIND+9 |
Y1 | ONE+40*, ONE+42, ONEQ! |