SDESGETAPPTWRAP2 ;ALB/RRM,MGD - RPC WRAPPER FOR VIEWING AN APPOINTMENT ;JULY 5, 2022
Source file <SDESGETAPPTWRAP2.m>
Package | Total | Call Graph |
---|---|---|
Scheduling | 6 | $$ISOTFM^SDAMUTDT (GETAPPT40984,GETAPPT44)^SDESGETAPPTWRAP3 ($$VALIDATECLINIC,$$VALIDATEPTDFN)^SDESGETPATAPPT ERRLOG^SDESJSON ($$VALIDATEBEGDT,$$VALIDATEENDDT)^SDESPRINTPATAPPT $$EASVALIDATE^SDESUTIL |
Kernel | 1 | ENCODE^XLFJSON |
VA FileMan | 1 | $$GET1^DIQ |
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 SDESAPPT SDESAPPT4 |
Name | Comments | DBIA/ICR reference |
---|---|---|
GETAPPTBYPATDFN(RETURNJSON,DFN,SDBEGDATE,SDENDDATE,SDEAS) | ;Called from the RPC: SDES GET APPTS BY PATIENT DFN
|
|
GETAPPTBYCLNIEN(RETURNJSON,CLINICIEN,SDBEGDATE,SDENDDATE,SDEAS) | ;Called from the RPC: SDES GET APPTS BY CLIN IEN
|
|
GETAPPTBYIEN(RETURNJSON,SDAPPTIEN,SDEAS) | ;Called from the RPC: SDES GET APPTS BY IEN
|
|
GETAPPOINTMENTS(SDALLAPPTARY,SDPOINTERIEN,SDBEGDATE,SDENDDATE,SDVIEWAPPTBY,SDAPPTIEN) | ;
; Input: ; SDPOINTERIEN [Required] = This can be a patient's DFN from PATIENT File #2 or the Internal Entry Number (IEN) from HOSPITAL LOCATION FILE #44. ; SDBEGDATE [Required] = The beginning date/time in FileMan Format for the search. ; SDENDDATE [Required] = The ending date/time in FileMan Time Format for the search. ; SDVIEWAPPTBY [Optional] = The driver of which process to perform when retrieving appointments (By DFN, Clinic IEN, or Appointment IEN) ; = If NULL, this will be defaulted to by DFN ; SDAPPTIEN [Optional] = Only send this parameter if you want to retrieve appointments using APPOINTMENT IEN from SDEC APPOINTMENT File #409.84 |
|
VALIDATEPTDFN(ERRORS,SDDFN) | ||
VALIDATECLINIC(ERRORS,SDCLINICIEN) | ||
VALIDATEAPPTIEN(ERRORS,SDAPPTIEN) | ;Validate Appointment IEN
|
|
INPUTDATEVAL(SDBEGDATE,SDENDDATE) | ;beginning and ending date input parameter validation
|
|
VALIDATEBEGDATE(ERRORS,SDBEGDATE) | ||
VALIDATEENDDATE(ERRORS,SDENDDATE) | ||
VALIDATEEAS(ERRORS,EAS) | ;
|
|
BUILDJSON(RETURNJSON,INPUT) | ; Build JSON format
|
|
CLEANUP | ;
|
Name | Field # of Occurrence |
---|---|
$$GET1^DIQ | GETAPPTBYIEN+26, GETAPPTBYIEN+27, GETAPPTBYIEN+28 |
$$ISOTFM^SDAMUTDT | GETAPPTBYPATDFN+22, GETAPPTBYPATDFN+23, GETAPPTBYCLNIEN+22, GETAPPTBYCLNIEN+23 |
GETAPPT40984^SDESGETAPPTWRAP3 | GETAPPOINTMENTS+16 |
GETAPPT44^SDESGETAPPTWRAP3 | GETAPPOINTMENTS+17 |
$$VALIDATECLINIC^SDESGETPATAPPT | VALIDATECLINIC+2 |
$$VALIDATEPTDFN^SDESGETPATAPPT | VALIDATEPTDFN+2 |
ERRLOG^SDESJSON | VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3, VALIDATEBEGDATE+2, VALIDATEENDDATE+2, VALIDATEEAS+2 |
$$VALIDATEBEGDT^SDESPRINTPATAPPT | VALIDATEBEGDATE+3 |
$$VALIDATEENDDT^SDESPRINTPATAPPT | VALIDATEENDDATE+3 |
$$EASVALIDATE^SDESUTIL | VALIDATEEAS+1 |
ENCODE^XLFJSON | BUILDJSON+3 |
FileNo | Call Tags |
---|---|
^SDEC(409.84 - [#409.84] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^SDEC(409.84 - [#409.84] | VALIDATEAPPTIEN+3 |
Name | Line Occurrences |
---|---|
$$VALIDATEAPPTIEN | GETAPPTBYIEN+17 |
$$VALIDATEBEGDATE | INPUTDATEVAL+1 |
$$VALIDATECLINIC | GETAPPTBYCLNIEN+19 |
$$VALIDATEEAS | GETAPPTBYPATDFN+26, GETAPPTBYCLNIEN+26, GETAPPTBYIEN+20 |
$$VALIDATEENDDATE | INPUTDATEVAL+4 |
$$VALIDATEPTDFN | GETAPPTBYPATDFN+19 |
BUILDJSON | GETAPPTBYPATDFN+29, GETAPPTBYPATDFN+33, GETAPPTBYCLNIEN+29, GETAPPTBYCLNIEN+33, GETAPPTBYIEN+23, GETAPPTBYIEN+30 |
CLEANUP | GETAPPTBYPATDFN+34, GETAPPTBYCLNIEN+34, GETAPPTBYIEN+31 |
GETAPPOINTMENTS | GETAPPTBYPATDFN+32, GETAPPTBYCLNIEN+32, GETAPPTBYIEN+29 |
INPUTDATEVAL | GETAPPTBYPATDFN+24, GETAPPTBYCLNIEN+24 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
APPTIEN | GETAPPTBYIEN+15~ |
CLINICIEN | GETAPPTBYCLNIEN~, GETAPPTBYCLNIEN+19, GETAPPTBYCLNIEN+32 |
DFN | GETAPPTBYPATDFN~, GETAPPTBYPATDFN+19, GETAPPTBYPATDFN+32, GETAPPTBYIEN+15~, GETAPPTBYIEN+26*, GETAPPTBYIEN+29 |
EAS | VALIDATEEAS~, VALIDATEEAS+1*, VALIDATEEAS+2 |
ERR | CLEANUP+2! |
ERRORFLAG | VALIDATEPTDFN+1~, VALIDATEPTDFN+2*, VALIDATEPTDFN+3, VALIDATECLINIC+1~, VALIDATECLINIC+2*, VALIDATECLINIC+3, VALIDATEAPPTIEN+1~, VALIDATEAPPTIEN+2*, VALIDATEAPPTIEN+3*, VALIDATEAPPTIEN+4 , VALIDATEBEGDATE+1~, VALIDATEBEGDATE+2*, VALIDATEBEGDATE+3*, VALIDATEBEGDATE+4, VALIDATEENDDATE+1~, VALIDATEENDDATE+2*, VALIDATEENDDATE+3*, VALIDATEENDDATE+4, CLEANUP+1! |
ERRORS | GETAPPTBYPATDFN+14~, GETAPPTBYPATDFN+19, GETAPPTBYPATDFN+20, GETAPPTBYPATDFN+26, GETAPPTBYPATDFN+27, GETAPPTBYCLNIEN+14~, GETAPPTBYCLNIEN+19, GETAPPTBYCLNIEN+20, GETAPPTBYCLNIEN+26, GETAPPTBYCLNIEN+27 , GETAPPTBYIEN+12~, GETAPPTBYIEN+17, GETAPPTBYIEN+18, GETAPPTBYIEN+20, GETAPPTBYIEN+21, VALIDATEPTDFN~, VALIDATEPTDFN+2, VALIDATECLINIC~, VALIDATECLINIC+2, VALIDATEAPPTIEN~ , VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3, INPUTDATEVAL+1, INPUTDATEVAL+2, INPUTDATEVAL+4, INPUTDATEVAL+5, VALIDATEBEGDATE~, VALIDATEBEGDATE+2, VALIDATEBEGDATE+3, VALIDATEENDDATE~ , VALIDATEENDDATE+2, VALIDATEENDDATE+3, VALIDATEEAS~, VALIDATEEAS+2, CLEANUP+1! |
FOUND | GETAPPTBYIEN+15~, CLEANUP+2! |
HASAPPTIENERRORS | GETAPPTBYIEN+15~, GETAPPTBYIEN+17*, GETAPPTBYIEN+18 |
HASBEGDATEERRORS | GETAPPTBYPATDFN+17~, GETAPPTBYCLNIEN+17~, INPUTDATEVAL+1*, INPUTDATEVAL+2, CLEANUP+2! |
HASCLINIENERRORS | GETAPPTBYCLNIEN+17~, GETAPPTBYCLNIEN+19*, GETAPPTBYCLNIEN+20, CLEANUP+1! |
HASDFNERRORS | GETAPPTBYPATDFN+17~, GETAPPTBYPATDFN+19*, GETAPPTBYPATDFN+20, CLEANUP+1! |
HASEASERRORS | GETAPPTBYPATDFN+17~, GETAPPTBYPATDFN+26*, GETAPPTBYPATDFN+27, GETAPPTBYCLNIEN+17~, GETAPPTBYCLNIEN+26*, GETAPPTBYCLNIEN+27, GETAPPTBYIEN+15~, GETAPPTBYIEN+20*, GETAPPTBYIEN+21 |
HASENDDATEERRORS | GETAPPTBYPATDFN+17~, GETAPPTBYCLNIEN+17~, INPUTDATEVAL+4*, INPUTDATEVAL+5, CLEANUP+2! |
INPUT | BUILDJSON~ |
JSONERROR | BUILDJSON+1~, BUILDJSON+2* |
RECNUM | GETAPPOINTMENTS+12~, GETAPPOINTMENTS+13*, GETAPPOINTMENTS+16, GETAPPOINTMENTS+17 |
RETURNERROR | GETAPPTBYPATDFN+14~, GETAPPTBYPATDFN+20*, GETAPPTBYPATDFN+27*, GETAPPTBYPATDFN+29, GETAPPTBYCLNIEN+14~, GETAPPTBYCLNIEN+20*, GETAPPTBYCLNIEN+27*, GETAPPTBYCLNIEN+29, GETAPPTBYIEN+12~, GETAPPTBYIEN+18* , GETAPPTBYIEN+21*, GETAPPTBYIEN+23, INPUTDATEVAL+2*, INPUTDATEVAL+5*, CLEANUP+1! |
RETURNERROR("Appointment" | GETAPPTBYPATDFN+29*, GETAPPTBYCLNIEN+29*, GETAPPTBYIEN+23* |
RETURNERROR("Error" | GETAPPTBYPATDFN+29, GETAPPTBYCLNIEN+29, GETAPPTBYIEN+23 |
RETURNJSON | GETAPPTBYPATDFN~, GETAPPTBYPATDFN+29, GETAPPTBYPATDFN+33, GETAPPTBYCLNIEN~, GETAPPTBYCLNIEN+29, GETAPPTBYCLNIEN+33, GETAPPTBYIEN~, GETAPPTBYIEN+23, GETAPPTBYIEN+30, BUILDJSON~ |
SDALLAPPTARY | GETAPPTBYPATDFN+15~, GETAPPTBYPATDFN+32, GETAPPTBYPATDFN+33, GETAPPTBYCLNIEN+15~, GETAPPTBYCLNIEN+32, GETAPPTBYCLNIEN+33, GETAPPTBYIEN+13~, GETAPPTBYIEN+29, GETAPPTBYIEN+30, GETAPPOINTMENTS~ , GETAPPOINTMENTS+16, GETAPPOINTMENTS+17, CLEANUP+1! |
SDAPPTIEN | GETAPPTBYIEN~, GETAPPTBYIEN+17, GETAPPTBYIEN+26, GETAPPTBYIEN+27, GETAPPTBYIEN+28, GETAPPTBYIEN+29, GETAPPOINTMENTS~, GETAPPOINTMENTS+15*, GETAPPOINTMENTS+16, VALIDATEAPPTIEN~ , VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3 |
SDAPPTNO | GETAPPTBYPATDFN+17~, GETAPPTBYPATDFN+31*, GETAPPTBYCLNIEN+17~, GETAPPTBYIEN+15~ |
SDBEG | CLEANUP+1! |
SDBEGDATE | GETAPPTBYPATDFN~, GETAPPTBYPATDFN+22*, GETAPPTBYPATDFN+24, GETAPPTBYPATDFN+32, GETAPPTBYCLNIEN~, GETAPPTBYCLNIEN+22*, GETAPPTBYCLNIEN+24, GETAPPTBYCLNIEN+32, GETAPPTBYIEN+15~, GETAPPTBYIEN+27* , GETAPPTBYIEN+29, GETAPPOINTMENTS~, GETAPPOINTMENTS+16, GETAPPOINTMENTS+17, INPUTDATEVAL~, INPUTDATEVAL+1, VALIDATEBEGDATE~, VALIDATEBEGDATE+2, VALIDATEBEGDATE+3 |
SDCLINICIEN | VALIDATECLINIC~, VALIDATECLINIC+2, CLEANUP+2! |
SDDFN | VALIDATEPTDFN~, VALIDATEPTDFN+2, CLEANUP+2! |
SDEAS | GETAPPTBYPATDFN~, GETAPPTBYPATDFN+26, GETAPPTBYCLNIEN~, GETAPPTBYCLNIEN+26, GETAPPTBYIEN~, GETAPPTBYIEN+20 |
SDEND | CLEANUP+1! |
SDENDDATE | GETAPPTBYPATDFN~, GETAPPTBYPATDFN+23*, GETAPPTBYPATDFN+24, GETAPPTBYPATDFN+32, GETAPPTBYCLNIEN~, GETAPPTBYCLNIEN+23*, GETAPPTBYCLNIEN+24, GETAPPTBYCLNIEN+32, GETAPPTBYIEN+15~, GETAPPTBYIEN+28* , GETAPPTBYIEN+29, GETAPPOINTMENTS~, GETAPPOINTMENTS+16, GETAPPOINTMENTS+17, INPUTDATEVAL~, INPUTDATEVAL+4, VALIDATEENDDATE~, VALIDATEENDDATE+2, VALIDATEENDDATE+3 |
SDMSG | CLEANUP+2! |
SDPOINTERIEN | GETAPPOINTMENTS~, GETAPPOINTMENTS+16, GETAPPOINTMENTS+17 |
SDVIEWAPPTBY | GETAPPTBYPATDFN+16~, GETAPPTBYPATDFN+31*, GETAPPTBYPATDFN+32, GETAPPTBYCLNIEN+16~, GETAPPTBYCLNIEN+31*, GETAPPTBYCLNIEN+32, GETAPPTBYIEN+14~, GETAPPTBYIEN+25*, GETAPPTBYIEN+29, GETAPPOINTMENTS~ , GETAPPOINTMENTS+14*, GETAPPOINTMENTS+16, GETAPPOINTMENTS+17, CLEANUP+2! |
STARTTIME | CLEANUP+2! |
U | VALIDATEEAS+2 |