SDECRPT ;ALB/BNT - SCHEDULING ENHANCEMENTS CLINIC REPORTS ;MAR 15, 2017
Source file <SDECRPT.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
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
|
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* |
Name | Line Occurrences |
---|---|
$$PATSTAT | GETDATA+21 |
$$VPRV | GETDATA+15 |
GETDATA | RPT+15 |
>> | 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 |