SDESAPPT ;ALB/BLB,KML,TAW,BWF,MGD,LAB,RRM- GET APPT REQUESTS ;July 5, 2022
Source file <SDESAPPT.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 |
Package | Total | Caller Graph |
---|---|---|
Scheduling | 3 | SDES SDESCLNSETAVAIL SDESGETAPPTWRAP |
Name | Comments | DBIA/ICR reference |
---|---|---|
APPGETJSON(SDECY,DFN,BDATE,EDATE,SDEAS) | ; Return a list of appointments and associated data by PATIENT
|
|
APPGETONEJSON(SDECY,IEN,SDEAS) | ; Return a single appointment and associated data by IEN
|
|
APPTBYRESOURCE(SDECY,SDRESIEN,SDBEG,SDEND,SDEAS) | ;
|
|
APPTBYCLINICLIST(APPTLISTJSON,CLINICIENS) | ;
|
|
GETAPPTSBYCLINIC(APPTLISTJSON,SDCLINICIEN,SDBEG,SDEND,SDEAS) | ;
|
|
APPTBYCLINIC(SDAPPT,SDCLINICIEN,SDBEG,SDEND,SDEAS) | ;
|
|
APPTBYCLINIC2(SDAPPT,SDCLINICIEN,SDBEG,SDEND,SDEAS) | ;
|
|
APPTBYRIENAPTYP(SDECY,REQIEN,REQTYPE,SDEAS) | ;
|
|
BLDAPTBYRIEN(SDECY,REQIEN,CHKTYPE,SDEAS) | ;
|
|
VALREQIEN(ERRORS,IEN,TYPE) | ; validate request IEN
; PLACE HOLDER |
|
VALAPPTTYPE(ERRORS,APTYPE) | ; validate appointment type
; PLACE HOLDER |
|
VALIDATEEAS(ERRORS,SDEAS) | ;
|
|
BUILDER | ;Convert data to JSON
|
|
BUILDJSON(APPTLISTJSON,APPTLISTARRAY) | ;Convert data to JSON
|
|
VALIDATEDT(FROM,THRU) | ;
|
|
APPTINDTRANGE(IEN,BEG,END) | ;
|
Name | Field # of Occurrence |
---|---|
$$ROOT^DILFD | BLDAPTBYRIEN+5 |
$$GET1^DIQ | APPGETJSON+22, BLDAPTBYRIEN+3, BLDAPTBYRIEN+4, BLDAPTBYRIEN+8 |
GETS^DIQ | APPTINDTRANGE+13 |
$$FMTONET^SDECDATE | APPTBYCLINICLIST+5, APPTBYCLINICLIST+7 |
$$NETTOFM^SDECDATE | VALIDATEDT+6, VALIDATEDT+9 |
SUMMARY^SDESAPPTDATA | APPGETJSON+21, APPGETONEJSON+14, APPTBYRESOURCE+20, APPTBYCLINIC+25, APPTBYCLINIC2+25 |
GETAPPTBYIEN^SDESGETAPPTWRAP2 | BLDAPTBYRIEN+9 |
$$GETPATICN^SDESINPUTVALUTL | APPTBYRESOURCE+26 |
ENCODE^SDESJSON | BUILDER+4, BUILDJSON+3 |
ERRLOG^SDESJSON | APPGETJSON+12, APPGETJSON+13, APPGETONEJSON+7, APPGETONEJSON+8, APPTBYRESOURCE+8, APPTBYRESOURCE+9, APPTBYCLINICLIST+3, APPTBYCLINIC+8, APPTBYCLINIC+9, APPTBYCLINIC2+8 , APPTBYCLINIC2+9, VALREQIEN+3, VALREQIEN+4, VALREQIEN+5, VALAPPTTYPE+3, VALAPPTTYPE+4, VALIDATEEAS+2, VALIDATEDT+3, VALIDATEDT+4, VALIDATEDT+7 , VALIDATEDT+10, VALIDATEDT+12 |
PATIENTIDADDDON^SDESPATIENTDATA | APPTBYRESOURCE+25, APPTBYCLINIC+30 |
PATIENTIDADDDON^SDESPATIENTDATA2 | APPTBYCLINIC2+30 |
$$EASVALIDATE^SDESUTIL | VALIDATEEAS+1 |
$$FMADD^XLFDT | APPTBYCLINICLIST+4, APPTBYCLINICLIST+6 |
FileNo | Call Tags |
---|---|
^GMR(123 - [#123] | GET1^DIQ |
^SDEC(409.84 - [#409.84] | GET1^DIQ |
^SDEC(409.85 - [#409.85] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT - [#2] | APPGETJSON+13 |
^GMR(123 - [#123] | VALREQIEN+5 |
^SC - [#44] | APPTBYCLINIC+9, APPTBYCLINIC2+9 |
^SDEC(409.831 - [#409.831] | APPTBYRESOURCE+9, APPTBYCLINIC+16, APPTBYCLINIC+17, APPTBYCLINIC2+16, APPTBYCLINIC2+17 |
^SDEC(409.84 - [#409.84] | APPGETJSON+18, APPGETONEJSON+8, APPTBYRESOURCE+16, APPTBYRESOURCE+19, APPTBYCLINIC+21, APPTBYCLINIC+24, APPTBYCLINIC2+21, APPTBYCLINIC2+24, BLDAPTBYRIEN+7 |
^SDEC(409.85 - [#409.85] | VALREQIEN+4 |
Name | Line Occurrences |
---|---|
$$APPTINDTRANGE | APPGETJSON+19 |
$$VALIDATEDT | APPGETJSON+11, APPTBYRESOURCE+7, APPTBYCLINIC+7, APPTBYCLINIC2+7 |
$$VALIDATEEAS | APPGETJSON+14, APPGETONEJSON+9, APPTBYRESOURCE+10, APPTBYCLINIC+10, APPTBYCLINIC2+10, APPTBYRIENAPTYP+5 |
APPTBYCLINIC | GETAPPTSBYCLINIC+2 |
APPTBYCLINIC2 | APPTBYCLINICLIST+10 |
BLDAPTBYRIEN | APPTBYRIENAPTYP+8 |
BUILDER | APPGETJSON+25, APPGETONEJSON+17, APPTBYRESOURCE+29 |
BUILDJSON | APPTBYCLINICLIST+13, GETAPPTSBYCLINIC+3, APPTBYRIENAPTYP+7, APPTBYRIENAPTYP+10 |
VALAPPTTYPE | APPTBYRIENAPTYP+3 |
VALREQIEN | APPTBYRIENAPTYP+4 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
APPTARY | APPTINDTRANGE+10~ |
APPTARY( | APPTINDTRANGE+14 |
APPTCNT | BLDAPTBYRIEN+1~, BLDAPTBYRIEN+7* |
APPTDATA | APPGETJSON+7~, APPGETJSON+21, APPGETJSON+23, APPGETONEJSON+5~, APPGETONEJSON+14, APPGETONEJSON+15, APPTBYRESOURCE+1~, APPTBYRESOURCE+20, APPTBYRESOURCE+22, APPTBYCLINIC+1~ , APPTBYCLINIC+25, APPTBYCLINIC+27, APPTBYCLINIC2+1~, APPTBYCLINIC2+25, APPTBYCLINIC2+27 |
APPTDATA("AppointmentType" | APPGETJSON+22* |
APPTDT | APPTBYRESOURCE+1~, APPTBYRESOURCE+14*, APPTBYRESOURCE+16*, APPTBYRESOURCE+17, APPTBYRESOURCE+19, APPTBYCLINIC+1~, APPTBYCLINIC+19*, APPTBYCLINIC+21*, APPTBYCLINIC+22, APPTBYCLINIC+24 , APPTBYCLINIC2+1~, APPTBYCLINIC2+19*, APPTBYCLINIC2+21*, APPTBYCLINIC2+22, APPTBYCLINIC2+24, APPTINDTRANGE+10~, APPTINDTRANGE+14*, APPTINDTRANGE+15, APPTINDTRANGE+16, APPTINDTRANGE+17 |
APPTIEN | APPTBYRESOURCE+1~, APPTBYRESOURCE+2*, APPTBYRESOURCE+18*, APPTBYRESOURCE+19*, APPTBYRESOURCE+20, APPTBYCLINIC+1~, APPTBYCLINIC+2*, APPTBYCLINIC+23*, APPTBYCLINIC+24*, APPTBYCLINIC+25 , APPTBYCLINIC2+1~, APPTBYCLINIC2+2*, APPTBYCLINIC2+23*, APPTBYCLINIC2+24*, APPTBYCLINIC2+25, BLDAPTBYRIEN+1~, BLDAPTBYRIEN+7*, BLDAPTBYRIEN+8, BLDAPTBYRIEN+9 |
APPTLIST | APPTBYCLINICLIST+1~, APPTBYCLINICLIST+3, APPTBYCLINICLIST+13, GETAPPTSBYCLINIC+1~, GETAPPTSBYCLINIC+2, GETAPPTSBYCLINIC+3 |
APPTLIST("CLI | NIC IEN: " , APPTBYCLINICLIST+12* |
APPTLISTARRAY | BUILDJSON~, BUILDJSON+3 |
APPTLISTJSON | APPTBYCLINICLIST~, APPTBYCLINICLIST+13, GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+3, BUILDJSON~, BUILDJSON+3 |
APTYPE | VALAPPTTYPE~, VALAPPTTYPE+3, VALAPPTTYPE+4 |
BDATE | APPGETJSON~, APPGETJSON+10*, APPGETJSON+11, APPGETJSON+19 |
BEG | APPTINDTRANGE~, APPTINDTRANGE+16 |
CHKTYPE | APPTBYRIENAPTYP+1~, APPTBYRIENAPTYP+2*, APPTBYRIENAPTYP+3, APPTBYRIENAPTYP+4, APPTBYRIENAPTYP+8, BLDAPTBYRIEN~, BLDAPTBYRIEN+2 |
CLINICIEN | APPTBYCLINICLIST+1~, APPTBYCLINICLIST+11*, APPTBYCLINICLIST+12 |
CLINICIENS | APPTBYCLINICLIST~ |
CLINICIENS( | APPTBYCLINICLIST+8, APPTBYCLINICLIST+10, APPTBYCLINICLIST+11 |
CLINICIENS(1 | APPTBYCLINICLIST+3 |
COUNTER | APPTBYRESOURCE+1~, APPTBYRESOURCE+2*, APPTBYRESOURCE+21*, APPTBYRESOURCE+22, APPTBYRESOURCE+23, APPTBYRESOURCE+27, APPTBYCLINIC+1~, APPTBYCLINIC+2*, APPTBYCLINIC+26*, APPTBYCLINIC+27 , APPTBYCLINIC+28, APPTBYCLINIC+31, APPTBYCLINIC2+1~, APPTBYCLINIC2+2*, APPTBYCLINIC2+26*, APPTBYCLINIC2+27, APPTBYCLINIC2+28, APPTBYCLINIC2+31 |
DFN | APPGETJSON~, APPGETJSON+9*, APPGETJSON+12, APPGETJSON+13, APPGETJSON+18, APPTBYRESOURCE+1~, APPTBYRESOURCE+23*, APPTBYRESOURCE+25, APPTBYRESOURCE+26, APPTBYCLINIC+1~ , APPTBYCLINIC+28*, APPTBYCLINIC+30, APPTBYCLINIC2+1~, APPTBYCLINIC2+28*, APPTBYCLINIC2+30 |
DT | APPTBYCLINICLIST+4, APPTBYCLINICLIST+6 |
EDATE | APPGETJSON~, APPGETJSON+10*, APPGETJSON+11, APPGETJSON+19 |
EFLAG | VALREQIEN+2~, VALREQIEN+3*, VALREQIEN+4*, VALREQIEN+5*, VALREQIEN+6, VALAPPTTYPE+2~, VALAPPTTYPE+3*, VALAPPTTYPE+4*, VALAPPTTYPE+5 |
END | APPTINDTRANGE~, APPTINDTRANGE+17 |
ERR | APPGETJSON+7~, APPGETJSON+10*, APPGETONEJSON+5~, APPGETONEJSON+6* |
ERRORS | VALREQIEN~, VALREQIEN+3, VALREQIEN+4, VALREQIEN+5, VALAPPTTYPE~, VALAPPTTYPE+3, VALAPPTTYPE+4, VALIDATEEAS~, VALIDATEEAS+2 |
FILEROOT | BLDAPTBYRIEN+1~, BLDAPTBYRIEN+5*, BLDAPTBYRIEN+6 |
FN | APPTINDTRANGE+10~, APPTINDTRANGE+12*, APPTINDTRANGE+13, APPTINDTRANGE+14 |
FROM | VALIDATEDT~, VALIDATEDT+3, VALIDATEDT+5, VALIDATEDT+6*, VALIDATEDT+7, VALIDATEDT+11, VALIDATEDT+12 |
FULLREF | BLDAPTBYRIEN+1~, BLDAPTBYRIEN+6*, BLDAPTBYRIEN+8 |
IEN | APPGETJSON+7~, APPGETJSON+10*, APPGETJSON+18*, APPGETJSON+19, APPGETJSON+21, APPGETJSON+22, APPGETONEJSON~, APPGETONEJSON+6*, APPGETONEJSON+7, APPGETONEJSON+8 , APPGETONEJSON+14, VALREQIEN~, VALREQIEN+3, VALREQIEN+4, VALREQIEN+5, APPTINDTRANGE~, APPTINDTRANGE+12, APPTINDTRANGE+13 |
IENCOUNT | APPTBYCLINICLIST+1~, APPTBYCLINICLIST+2*, APPTBYCLINICLIST+8*, APPTBYCLINICLIST+10, APPTBYCLINICLIST+11 |
IENS | APPGETJSON+7~, APPGETONEJSON+5~, APPTINDTRANGE+10~, APPTINDTRANGE+12*, APPTINDTRANGE+14 |
INRANGE | APPTINDTRANGE+10~, APPTINDTRANGE+11*, APPTINDTRANGE+15*, APPTINDTRANGE+16*, APPTINDTRANGE+17*, APPTINDTRANGE+18 |
JSONERR | APPTBYRESOURCE+1~, APPTBYRESOURCE+2*, APPTBYCLINIC+1~, APPTBYCLINIC+2*, APPTBYCLINIC2+1~, APPTBYCLINIC2+2*, BUILDER+1~, BUILDER+2*, BUILDER+4, BUILDJSON+1~ , BUILDJSON+2*, BUILDJSON+3 |
NOAPPTS | APPTBYRIENAPTYP+1~, APPTBYRIENAPTYP+10 |
NOAPPTS("Appointment" | APPTBYRIENAPTYP+10* |
NUM | APPGETJSON+7~, APPGETJSON+10*, APPGETJSON+20*, APPGETJSON+23, APPGETONEJSON+5~, APPGETONEJSON+6*, APPGETONEJSON+13*, APPGETONEJSON+15 |
PATIENT | APPTBYRESOURCE+1~, APPTBYRESOURCE+24*, APPTBYRESOURCE+25, APPTBYRESOURCE+27, APPTBYCLINIC+1~, APPTBYCLINIC+29*, APPTBYCLINIC+30, APPTBYCLINIC+31, APPTBYCLINIC2+1~, APPTBYCLINIC2+29* , APPTBYCLINIC2+30, APPTBYCLINIC2+31 |
PATIENT("ICN" | APPTBYRESOURCE+26* |
POP | APPGETJSON+7~, APPGETJSON+8*, APPGETJSON+11*, APPGETJSON+12*, APPGETJSON+13*, APPGETJSON+15*, APPGETJSON+17, APPGETONEJSON+5~, APPGETONEJSON+6*, APPGETONEJSON+7* , APPGETONEJSON+8*, APPGETONEJSON+10*, APPGETONEJSON+12, APPTBYRESOURCE+1~, APPTBYRESOURCE+2*, APPTBYRESOURCE+7*, APPTBYRESOURCE+8*, APPTBYRESOURCE+9*, APPTBYRESOURCE+11*, APPTBYRESOURCE+13 , APPTBYRESOURCE+16, APPTBYRESOURCE+17*, APPTBYCLINIC+1~, APPTBYCLINIC+2*, APPTBYCLINIC+7*, APPTBYCLINIC+8*, APPTBYCLINIC+9*, APPTBYCLINIC+11*, APPTBYCLINIC+12, APPTBYCLINIC+14 , APPTBYCLINIC+21, APPTBYCLINIC+22*, APPTBYCLINIC2+1~, APPTBYCLINIC2+2*, APPTBYCLINIC2+7*, APPTBYCLINIC2+8*, APPTBYCLINIC2+9*, APPTBYCLINIC2+11*, APPTBYCLINIC2+12, APPTBYCLINIC2+14 , APPTBYCLINIC2+21, APPTBYCLINIC2+22*, APPTBYRIENAPTYP+6*, BUILDER+3, VALIDATEDT+1~, VALIDATEDT+2*, VALIDATEDT+3*, VALIDATEDT+4*, VALIDATEDT+7*, VALIDATEDT+10* , VALIDATEDT+11, VALIDATEDT+12*, VALIDATEDT+13 |
REQIEN | APPTBYRIENAPTYP~, APPTBYRIENAPTYP+4, APPTBYRIENAPTYP+8, BLDAPTBYRIEN~, BLDAPTBYRIEN+3, BLDAPTBYRIEN+4, BLDAPTBYRIEN+6 |
REQTYPE | APPTBYRIENAPTYP~, APPTBYRIENAPTYP+2 |
RESTYPE | APPTBYCLINIC+1~, APPTBYCLINIC+17*, APPTBYCLINIC+18, APPTBYCLINIC2+1~, APPTBYCLINIC2+17*, APPTBYCLINIC2+18 |
SDAPPT | APPGETJSON+7~, APPGETJSON+12, APPGETJSON+13, APPGETJSON+14, APPGETONEJSON+5~, APPGETONEJSON+7, APPGETONEJSON+8, APPGETONEJSON+9, APPTBYRESOURCE+1~, APPTBYRESOURCE+8 , APPTBYRESOURCE+9, APPTBYRESOURCE+10, APPTBYCLINIC~, APPTBYCLINIC+8, APPTBYCLINIC+9, APPTBYCLINIC+10, APPTBYCLINIC2~, APPTBYCLINIC2+8, APPTBYCLINIC2+9, APPTBYCLINIC2+10 , APPTBYRIENAPTYP+1~, BUILDER+4, VALIDATEDT+3, VALIDATEDT+4, VALIDATEDT+7, VALIDATEDT+10, VALIDATEDT+12 |
SDAPPT("Appt" | APPGETJSON+23*, APPGETJSON+24*, APPGETONEJSON+15*, APPGETONEJSON+16*, APPTBYRESOURCE+22*, APPTBYRESOURCE+23, APPTBYRESOURCE+27*, APPTBYRESOURCE+28*, APPTBYCLINIC+12*, APPTBYCLINIC+27* , APPTBYCLINIC+28, APPTBYCLINIC+31*, APPTBYCLINIC+32*, APPTBYCLINIC2+12*, APPTBYCLINIC2+27*, APPTBYCLINIC2+28, APPTBYCLINIC2+31*, APPTBYCLINIC2+32*, BUILDER+3* |
SDBEG | APPTBYRESOURCE~, APPTBYRESOURCE+5*, APPTBYRESOURCE+7, APPTBYRESOURCE+14, GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+5*, APPTBYCLINIC+7, APPTBYCLINIC+19 , APPTBYCLINIC2~, APPTBYCLINIC2+5*, APPTBYCLINIC2+7, APPTBYCLINIC2+19 |
SDCLINICIEN | GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+8, APPTBYCLINIC+9, APPTBYCLINIC+16, APPTBYCLINIC2~, APPTBYCLINIC2+8, APPTBYCLINIC2+9, APPTBYCLINIC2+16 |
SDEAS | APPGETJSON~, APPGETJSON+14*, APPGETJSON+15, APPGETONEJSON~, APPGETONEJSON+9*, APPGETONEJSON+10, APPTBYRESOURCE~, APPTBYRESOURCE+10*, APPTBYRESOURCE+11, GETAPPTSBYCLINIC~ , GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+10*, APPTBYCLINIC+11, APPTBYCLINIC2~, APPTBYCLINIC2+10*, APPTBYCLINIC2+11, APPTBYRIENAPTYP~, APPTBYRIENAPTYP+5*, APPTBYRIENAPTYP+6 , APPTBYRIENAPTYP+8, BLDAPTBYRIEN~, BLDAPTBYRIEN+9, VALIDATEEAS~, VALIDATEEAS+1*, VALIDATEEAS+2 |
SDECY | APPGETJSON~, APPGETONEJSON~, APPTBYRESOURCE~, APPTBYRESOURCE+3!, APPTBYCLINIC+3!, APPTBYCLINIC2+3!, APPTBYRIENAPTYP~, APPTBYRIENAPTYP+7, APPTBYRIENAPTYP+8, APPTBYRIENAPTYP+9 , APPTBYRIENAPTYP+10, BLDAPTBYRIEN~, BLDAPTBYRIEN+9, BUILDER+4 |
SDEND | APPTBYRESOURCE~, APPTBYRESOURCE+6*, APPTBYRESOURCE+7, APPTBYRESOURCE+15*, APPTBYRESOURCE+17, GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+6*, APPTBYCLINIC+7 , APPTBYCLINIC+20*, APPTBYCLINIC+22, APPTBYCLINIC2~, APPTBYCLINIC2+6*, APPTBYCLINIC2+7, APPTBYCLINIC2+20*, APPTBYCLINIC2+22 |
SDERR | APPTBYRIENAPTYP+1~, APPTBYRIENAPTYP+3, APPTBYRIENAPTYP+4, APPTBYRIENAPTYP+5, APPTBYRIENAPTYP+7 |
SDERR("Appointment" | APPTBYRIENAPTYP+7* |
SDMSG | APPTINDTRANGE+10~, APPTINDTRANGE+15 |
SDREQPATIEN | BLDAPTBYRIEN+1~, BLDAPTBYRIEN+3*, BLDAPTBYRIEN+4*, BLDAPTBYRIEN+7 |
SDRESIEN | APPTBYRESOURCE~, APPTBYRESOURCE+8, APPTBYRESOURCE+9, APPTBYRESOURCE+16, APPTBYRESOURCE+19, APPTBYCLINIC+1~, APPTBYCLINIC+15*, APPTBYCLINIC+16*, APPTBYCLINIC+17, APPTBYCLINIC+21 , APPTBYCLINIC+24, APPTBYCLINIC2+1~, APPTBYCLINIC2+15*, APPTBYCLINIC2+16*, APPTBYCLINIC2+17, APPTBYCLINIC2+21, APPTBYCLINIC2+24 |
TEMPLIST | APPTBYCLINICLIST+9~, APPTBYCLINICLIST+10, APPTBYCLINICLIST+12 |
THRU | VALIDATEDT~, VALIDATEDT+4, VALIDATEDT+8, VALIDATEDT+9*, VALIDATEDT+10, VALIDATEDT+11, VALIDATEDT+12 |
TODAYEXTERNAL | APPTBYCLINICLIST+1~, APPTBYCLINICLIST+6*, APPTBYCLINICLIST+7*, APPTBYCLINICLIST+10 |
TRGTFILE | APPTBYRIENAPTYP+1~, BLDAPTBYRIEN+1~, BLDAPTBYRIEN+2*, BLDAPTBYRIEN+3, BLDAPTBYRIEN+4, BLDAPTBYRIEN+5 |
TYPE | VALREQIEN~, VALREQIEN+4, VALREQIEN+5 |
U | BLDAPTBYRIEN+6, VALIDATEEAS+2 |
YESTERDAYEXTERNL | APPTBYCLINICLIST+1~, APPTBYCLINICLIST+4*, APPTBYCLINICLIST+5*, APPTBYCLINICLIST+10 |