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 |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDESAPPT3

Package: Scheduling

Routine: SDESAPPT3


Information

SDESAPPT3 ;ALB/RRM- GET APPT REQUESTS ;July 5, 2022

Source Information

Source file <SDESAPPT3.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
Scheduling 6 ($$FMTONET,$$NETTOFM)^SDECDATE  SUMMARY^SDESAPPTDATA  GETAPPTBYIEN^SDESGETAPPTWRAP4  (ENCODE,ERRLOG)^SDESJSON  PATIENTIDADDDON^SDESPATIENTDATA  $$EASVALIDATE^SDESUTIL  
VA FileMan 2 $$ROOT^DILFD  ($$GET1,GETS)^DIQ  
Kernel 1 $$FMADD^XLFDT  

Entry Points

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

External References

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
GETAPPTBYIEN^SDESGETAPPTWRAP4 BLDAPTBYRIEN+9
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, 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
$$EASVALIDATE^SDESUTIL VALIDATEEAS+1
$$FMADD^XLFDT APPTBYCLINICLIST+4, APPTBYCLINICLIST+6

Used in RPC

RPC Name Call Tags
SDES GET APPT BY REQ/APPT TYP2 APPTBYRIENAPTYP

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^GMR(123 - [#123] GET1^DIQ
^SDEC(409.84 - [#409.84] GET1^DIQ
^SDEC(409.85 - [#409.85] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] APPGETJSON+13
^GMR(123 - [#123] VALREQIEN+5
^SC - [#44] APPTBYCLINIC+9
^SDEC(409.831 - [#409.831] APPTBYRESOURCE+9, APPTBYCLINIC+16, APPTBYCLINIC+17
^SDEC(409.84 - [#409.84] APPGETJSON+18, APPGETONEJSON+8, APPTBYRESOURCE+16, APPTBYRESOURCE+19, APPTBYCLINIC+21, APPTBYCLINIC+24, BLDAPTBYRIEN+7
^SDEC(409.85 - [#409.85] VALREQIEN+4

Label References

Name Line Occurrences
$$APPTINDTRANGE APPGETJSON+19
$$VALIDATEDT APPGETJSON+11, APPTBYRESOURCE+7, APPTBYCLINIC+7
$$VALIDATEEAS APPGETJSON+14, APPGETONEJSON+9, APPTBYRESOURCE+10, APPTBYCLINIC+10, APPTBYRIENAPTYP+8
APPTBYCLINIC APPTBYCLINICLIST+10, GETAPPTSBYCLINIC+2
BLDAPTBYRIEN APPTBYRIENAPTYP+11
BUILDER APPGETJSON+25, APPGETONEJSON+17, APPTBYRESOURCE+28
BUILDJSON APPTBYCLINICLIST+13, GETAPPTSBYCLINIC+3, APPTBYRIENAPTYP+10, APPTBYRIENAPTYP+13
VALAPPTTYPE APPTBYRIENAPTYP+6
VALREQIEN APPTBYRIENAPTYP+7

Local Variables

Legend:

>> 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
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
, 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
, 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+5*, APPTBYRIENAPTYP+6, APPTBYRIENAPTYP+7, APPTBYRIENAPTYP+11, 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+26, APPTBYCLINIC+1~, APPTBYCLINIC+2*, APPTBYCLINIC+26*, APPTBYCLINIC+27
, APPTBYCLINIC+28, APPTBYCLINIC+31
DFN APPGETJSON~, APPGETJSON+9*, APPGETJSON+12, APPGETJSON+13, APPGETJSON+18, APPTBYRESOURCE+1~, APPTBYRESOURCE+23*, APPTBYRESOURCE+25, APPTBYCLINIC+1~, APPTBYCLINIC+28*
, APPTBYCLINIC+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*, BUILDER+1~, BUILDER+2*, BUILDER+4, BUILDJSON+1~, BUILDJSON+2*, BUILDJSON+3
NOAPPTS APPTBYRIENAPTYP+1~, APPTBYRIENAPTYP+13
NOAPPTS("Appointment" APPTBYRIENAPTYP+13*
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+26, APPTBYCLINIC+1~, APPTBYCLINIC+29*, APPTBYCLINIC+30, APPTBYCLINIC+31
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*, APPTBYRIENAPTYP+9*, BUILDER+3, VALIDATEDT+1~, VALIDATEDT+2*, VALIDATEDT+3*, VALIDATEDT+4*, VALIDATEDT+7*, VALIDATEDT+10*
, VALIDATEDT+11, VALIDATEDT+12*, VALIDATEDT+13
REQIEN APPTBYRIENAPTYP~, APPTBYRIENAPTYP+2*, APPTBYRIENAPTYP+7, APPTBYRIENAPTYP+11, BLDAPTBYRIEN~, BLDAPTBYRIEN+3, BLDAPTBYRIEN+4, BLDAPTBYRIEN+6
REQTYPE APPTBYRIENAPTYP~, APPTBYRIENAPTYP+3*, APPTBYRIENAPTYP+5
RESTYPE APPTBYCLINIC+1~, APPTBYCLINIC+17*, APPTBYCLINIC+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, 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+26*, APPTBYRESOURCE+27*, APPTBYCLINIC+12*, APPTBYCLINIC+27*
, APPTBYCLINIC+28, APPTBYCLINIC+31*, APPTBYCLINIC+32*, BUILDER+3*
SDBEG APPTBYRESOURCE~, APPTBYRESOURCE+5*, APPTBYRESOURCE+7, APPTBYRESOURCE+14, GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+5*, APPTBYCLINIC+7, APPTBYCLINIC+19
SDCLINICIEN GETAPPTSBYCLINIC~, GETAPPTSBYCLINIC+2, APPTBYCLINIC~, APPTBYCLINIC+8, APPTBYCLINIC+9, APPTBYCLINIC+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, APPTBYRIENAPTYP~, APPTBYRIENAPTYP+4*, APPTBYRIENAPTYP+8*, APPTBYRIENAPTYP+9, APPTBYRIENAPTYP+11, BLDAPTBYRIEN~
, BLDAPTBYRIEN+9, VALIDATEEAS~, VALIDATEEAS+1*, VALIDATEEAS+2
SDECY APPGETJSON~, APPGETONEJSON~, APPTBYRESOURCE~, APPTBYRESOURCE+3!, APPTBYCLINIC+3!, APPTBYRIENAPTYP~, APPTBYRIENAPTYP+10, APPTBYRIENAPTYP+11, APPTBYRIENAPTYP+12, APPTBYRIENAPTYP+13
, 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
SDERR APPTBYRIENAPTYP+1~, APPTBYRIENAPTYP+6, APPTBYRIENAPTYP+7, APPTBYRIENAPTYP+8, APPTBYRIENAPTYP+10
SDERR("Appointment" APPTBYRIENAPTYP+10*
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
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
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All