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

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
Info |  Source |  Entry Points