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 |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDECRPT

Package: Scheduling

Routine: SDECRPT


Information

SDECRPT ;ALB/BNT - SCHEDULING ENHANCEMENTS CLINIC REPORTS ;MAR 15, 2017

Source Information

Source file <SDECRPT.m>

Call Graph

Call Graph

Call Graph Total: 3

Package Total Call Graph
Kernel 1 ($$FMDIFF,$$HTFM,$$NOW)^XLFDT  
Scheduling 1 $$SDAPI^SDAMA301  
VA FileMan 1 GETS^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: 1

Package Total Caller Graph
Scheduling 1 SDCED  

Entry Points

Name Comments DBIA/ICR reference
RPT(DAYS,SDSTPAR) ; Get all clinic appointments for each report type category
; Input: DAYS = The number of days to go back and search for appointments
; The default is 365, one year.
; SDSTPAR = Array of clinics
GETDATA(SDECARR,SDRT) ;
PATSTAT(DFN,SDT) ; Return Patient Appointment status of New and Established
; Input: DFN = Patient IEN
; SDT = Current appointment
; Return: New Patient(1/0)^Established Patient(1/0)
MERGE(SDECARR) ; Merge Report data into ^TMP global
; Input: Array passed by ref
; Appointment Data:
; SDECARR(Report Type,Hospital Location IEN,FileMan Date/Time,Patient IEN,"APPT",Provider IEN (Or zero if appt not checked out))
; Overbook(1/0)^New Patient(1/0)^Established Patient(1/0)^Length of Appt(min)^Appt Status
; Encounter Data:
; SDECARR(Report Type,Hospital Location IEN,FileMan Date/Time,Patient IEN,"ENC",Provider IEN)=Telephone(1/0)
VPRV(VISIT) ; Find encounter provider

External References

Name Field # of Occurrence
GETS^DIQ GETDATA+12, VPRV+6
$$SDAPI^SDAMA301 GETDATA+4
$$FMDIFF^XLFDT PATSTAT+12
$$HTFM^XLFDT RPT+10
$$NOW^XLFDT RPT+9

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNVPRV("AD" VPRV+3
^DPT - [#2] PATSTAT+10, PATSTAT+11
^SCE - [#409.68] GETDATA+9
^TMP($J GETDATA+3!, GETDATA+5, GETDATA+6, GETDATA+7, GETDATA+8, GETDATA+18, GETDATA+19, GETDATA+20, GETDATA+24!, GETDATA+25!
^VA(200 - [#200] GETDATA+16
^XTMP("SDVSE" RPT+8, RPT+9*!, GETDATA+21*, GETDATA+23*, MERGE+8*

Label References

Name Line Occurrences
$$PATSTAT GETDATA+21
$$VPRV GETDATA+15
GETDATA RPT+15

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
CLN GETDATA+1~, GETDATA+6*, GETDATA+7, GETDATA+8, GETDATA+18, GETDATA+19, GETDATA+20, GETDATA+21, GETDATA+24
CNT GETDATA+1~, GETDATA+2*, GETDATA+22*, GETDATA+23
DA GETDATA+10~, GETDATA+11*, GETDATA+12, GETDATA+13, VPRV+2~, VPRV+5*, VPRV+6, VPRV+7
DAYS RPT~, RPT+6*, RPT+10
DFN GETDATA+1~, GETDATA+5*, GETDATA+6, GETDATA+7, GETDATA+8, GETDATA+18, GETDATA+19, GETDATA+20, GETDATA+21, GETDATA+24
, PATSTAT~, PATSTAT+10, PATSTAT+11
DIC GETDATA+10~, GETDATA+11*, GETDATA+12, VPRV+2~, VPRV+5*, VPRV+6
DIQ GETDATA+10~, VPRV+2~
DIQ(0 GETDATA+11*, VPRV+5*
DR GETDATA+10~, GETDATA+11*, GETDATA+12, VPRV+2~, VPRV+5*, VPRV+6
DT RPT+9, RPT+10, GETDATA+21, GETDATA+23, PATSTAT+12, MERGE+8
ENCARAY GETDATA+10~, VPRV+2~
ENCARAY("409.68" GETDATA+13
PROV GETDATA+1~, VPRV+7*, VPRV+8
SDECARR RPT+5~, RPT+15, GETDATA~, GETDATA+4, MERGE~, MERGE+7, MERGE+8
SDECARR("FLDS" RPT+10*
SDECARR(1 RPT+10*
SDECARR(2 RPT+11*, RPT+14*, RPT+16*
SDECARR(4 RPT+11*
SDECCNT GETDATA+1~, GETDATA+4*, GETDATA+5
SDECLNM RPT+5~, RPT+11*, RPT+14*
SDECPRV GETDATA+1~, GETDATA+9*, GETDATA+17*, GETDATA+21
SDECSTS GETDATA+1~, GETDATA+18*, GETDATA+21
SDECTOT RPT+5~
SDENC GETDATA+1~, GETDATA+8*, GETDATA+9, GETDATA+11
SDENCPR GETDATA+10~, GETDATA+15*, GETDATA+16, GETDATA+17
SDIFF PATSTAT+9~, PATSTAT+12*, PATSTAT+13
SDLAST RPT+5~, RPT+8*, RPT+9
SDLEN GETDATA+1~, GETDATA+20*, GETDATA+21
SDLST PATSTAT+9~, PATSTAT+11*, PATSTAT+12
SDOB GETDATA+1~, GETDATA+19*, GETDATA+21
SDRT RPT+13*, RPT+14, RPT+15, GETDATA~, GETDATA+21, GETDATA+23
SDSTPAR RPT~
SDSTPAR( RPT+14
SDT GETDATA+1~, GETDATA+7*, GETDATA+8, GETDATA+18, GETDATA+19, GETDATA+20, GETDATA+21, GETDATA+24, PATSTAT~, PATSTAT+11
SDVISIT GETDATA+10~, GETDATA+13*, GETDATA+14, GETDATA+15
U RPT+14, GETDATA+8, GETDATA+18, GETDATA+19, GETDATA+20, GETDATA+21
VARAY VPRV+2~
VARAY("9000010.06" VPRV+7
VISIT VPRV~, VPRV+1, VPRV+3
VPRV VPRV+2~, VPRV+3*, VPRV+4, VPRV+5
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables  | All