Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call
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>

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)

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
^SC - [#44] GET1^DIQ
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call