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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDECRT0

Package: Scheduling

Routine: SDECRT0


Information

SDECRT0 ;ALB/SAT - VISTA SCHEDULING RPCS ;JAN 15, 2016

Source Information

Source file <SDECRT0.m>

Call Graph

Call Graph

Call Graph Total: 3

Package Total Call Graph
Scheduling 2 ($$HRCN,$$HRCND,$$HRCNT)^SDECF2  ($$DIVC,$$FAC,$$PRIN)^SDECU  
VA FileMan 1 $$GET1^DIQ  

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: 3

Package Total Caller Graph
Scheduling 3 SDECRT  SDECRT1  SDECRT2  

Entry Points

Name Comments DBIA/ICR reference
FIND(CLN,APPT,APPN,ORDER,BSDMODE,SDX,SDSTART,SDSTOP,SDREP,SDATE) ;EP; -- set up ^tmp sort for patient's appt
; called by START^SDECRT and SINGLE^SDECRT
; assumes SD variables SDX,SDSTART,SDSTOP,SDREP,SDATE are set
; CLN=clinic ien, APPT=appt date/time, APPN=appt ien in ^SC
; ORDER=1 means sort by terminal digit (or chart # per site param)
; ORDER=2 means sort by clinic; ORDER=3 means sort by principal clinic
; ORDER=4 means sort by name; ORDER="" means single routing slip
; BSDMODE="WI" for walkins, "SD" for same day, "" for all others
; BSDMODE="CR" used for chart requests in routine BSDROUT
TDO(P,D,C,T,S,F) ; -- sort by terminal digit
CLO(P,D,C,T,S,F) ; -- sort by clinic
PCO(P,D,C,T,S,F) ; -- sort by principal clinic
NMO(P,D,C,T,S,F) ; -- sort by name
STOPS(P,D,C,T,ORDER) ; checks for xray, lab or ekg stops
PRTOK(P,D,TERM) ; -- check to see if rs should be printed for patient
; remove cancelled appts from list
FIRST(DFN,DATE)

External References

Name Field # of Occurrence
$$GET1^DIQ FIND+16, CLO+1, PCO+2, NMO+1, PRTOK+13, PRTOK+14
$$HRCN^SDECF2 FIND+14
$$HRCND^SDECF2 FIND+17
$$HRCNT^SDECF2 FIND+15
$$DIVC^SDECU FIND+16
$$FAC^SDECU FIND+14
$$PRIN^SDECU PCO+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
^SC - [#44] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] STOPS+2, STOPS+3, PRTOK+2, PRTOK+10, PRTOK+17, FIRST+4, FIRST+5
^SC - [#44] FIND+13
^TMP("SDRS" TDO+1*, TDO+2*, CLO+5*, CLO+8*, PCO+6*, PCO+9*, NMO+2*, NMO+3*
^TMP("SDRS1" CLO+6*, PCO+7*

Label References

Name Line Occurrences
$$FIRST FIND+21
$$PRTOK FIND+19
CLO FIND+25, STOPS+5
NMO FIND+27, STOPS+7
PCO FIND+26, STOPS+6
STOPS FIND+23
TDO FIND+24, STOPS+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
A STOPS+1~, STOPS+3*, STOPS+4, STOPS+5, STOPS+6, STOPS+7
APPN FIND~, FIND+13
APPT FIND~, FIND+13, FIND+19, FIND+21, FIND+23, FIND+24, FIND+25, FIND+26, FIND+27
BSDGD FIND+12~
BSDL FIND+12~
BSDMODE FIND~, TDO+2, CLO+8, PCO+9, NMO+3
BSDSC FIND+12~
C TDO~, TDO+2, CLO~, CLO+1, CLO+8, PCO~, PCO+1, PCO+2, PCO+9, NMO~
, NMO+3, STOPS~, STOPS+4, STOPS+5, STOPS+6, STOPS+7
CLN FIND~, FIND+13, FIND+14, FIND+16, FIND+23, FIND+24, FIND+25, FIND+26, FIND+27
D TDO~, TDO+2, CLO~, CLO+6, CLO+8, PCO~, PCO+7, PCO+9, NMO~, NMO+3
, STOPS~, STOPS+2, STOPS+3, PRTOK~, PRTOK+2, PRTOK+10, PRTOK+17
DATE FIRST~, FIRST+3, FIRST+4, FIRST+6
DFN FIND+11~, FIND+13*, FIND+14, FIND+19, FIND+21, FIND+23, FIND+24, FIND+25, FIND+26, FIND+27
, FIRST~, FIRST+4, FIRST+5
F TDO~, TDO+1, CLO~, CLO+5, PCO~, PCO+6, NMO~, NMO+2
FIRST FIND+11~, FIND+21*, FIND+24, FIND+25, FIND+26, FIND+27
HRCN FIND+11~, FIND+14*, FIND+15, FIND+17
I STOPS+1~, STOPS+2*, STOPS+3
N CLO+1~*, CLO+2, CLO+3, CLO+5, CLO+6, CLO+8, NMO+1~*, NMO+2, NMO+3
ORDER FIND~, FIND+23, FIND+24, FIND+25, FIND+26, STOPS~, STOPS+4, STOPS+5, STOPS+6, PRTOK+11
, PRTOK+12, PRTOK+13, PRTOK+14, FIRST+1
P TDO~, TDO+1, TDO+2, CLO~, CLO+5, CLO+6, CLO+8, PCO~, PCO+6, PCO+7
, PCO+9, NMO~, NMO+1, NMO+2, NMO+3, STOPS~, STOPS+2, STOPS+3, STOPS+4, STOPS+5
, STOPS+6, STOPS+7, PRTOK~, PRTOK+2, PRTOK+10, PRTOK+13, PRTOK+14, PRTOK+17
PRINC PCO+1~*, PCO+2*, PCO+3, PCO+4, PCO+6, PCO+7, PCO+9
S TDO~, TDO+2, CLO~, CLO+8, PCO~, PCO+9, NMO~, NMO+3
SDATE FIND~
SDREP FIND~, PRTOK+9, PRTOK+17
SDSTART FIND~, CLO+2, PCO+3, PRTOK+4, PRTOK+11, PRTOK+13, PRTOK+17
SDSTOP FIND~, CLO+3, PCO+4, PRTOK+12, PRTOK+14
SDX FIND~, CLO+2, CLO+3, PCO+3, PCO+4, PRTOK+4, PRTOK+10, PRTOK+17
STOP STOPS+1~, STOPS+3*, STOPS+4, STOPS+5, STOPS+6, STOPS+7
T TDO~, TDO+1, TDO+2, CLO~, CLO+8, PCO~, PCO+9, NMO~, NMO+2, NMO+3
, STOPS~, STOPS+4, STOPS+5, STOPS+6, STOPS+7
TERM FIND+11~, FIND+15*, FIND+17*, FIND+19, FIND+23, FIND+24, FIND+25, FIND+26, FIND+27, PRTOK~
, PRTOK+11, PRTOK+12
U FIND+13, TDO+2, CLO+8, PCO+9, NMO+3, STOPS+2, STOPS+3, PRTOK+2, PRTOK+10, PRTOK+17
, FIRST+5
X PRTOK+9~*, PRTOK+10*, PRTOK+11*, PRTOK+12*, PRTOK+13*, PRTOK+14*, FIRST+2~, FIRST+3*, FIRST+4*, FIRST+5
, FIRST+6
Y FIRST+2~, FIRST+4, FIRST+6*, FIRST+7
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All