SDECRPT ;ALB/BNT - SCHEDULING ENHANCEMENTS CLINIC REPORTS ;MAR 15, 2017
Source file <SDECRPT.m>
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
|