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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDES2BLOCKMOVE

Package: Scheduling

Routine: SDES2BLOCKMOVE


Information

SDES2BLOCKMOVE ;ALB/TJB - SCHEDULING BLOCK AND MOVE RPC ;JAN 22, 2024

Source Information

Source file <SDES2BLOCKMOVE.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Scheduling 10 ($$FMTISO,$$ISOTFM)^SDAMUTDT  TRY2CANCEL^SDES2CANCELAPPT  CANCEL^SDES2CANCLNAVAIL  CREATE^SDES2CREATEAPPT  (BUILDJSON,ERRLOG)^SDES2JSON  VALCONTEXT^SDES2VALCONTEXT  $$GET44RECORDIENS^SDESCANAPPT2  GETSCHEDULE^SDESCLINDAILYSCH  
GETCLAVAILABLTY^SDESCLINICAVAIL  $$GETRES^SDESINPUTVALUTL  
Kernel 2 $$FMADD^XLFDT  DECODE^XLFJSON  
VA FileMan 1 ($$GET1,GETS)^DIQ  

Entry Points

Name Comments DBIA/ICR reference
BLOCKANDMOVE(JSON,SDCONTEXT,SDPARAM) ;
POPULATE(PARAMS,AVPARAMS,SDPARAM,SDDUZ) ;
CANCEL(RETURN,PARAMS,SDCONTEXT) ;
CANCELAVAIL(CANAVAIL,SDCONTEXT,AVPARAMS) ;
VALIDATE(ERRORS,CONTEXT,SDDUZ) ;
VALIDATETARGSLOT(ERRORS,TARGETSLOTS,TARGETCLINIC,TARGETSTARTDATE,APPTIEN) ;
VALIDATEORIGSLOT(ERRORS,ORIGINALSLOTS,ORIGINALCLINIC,APPTDATE,APPTSTARTTIME) ;
VALIDATEAPPTIEN(ERRORS,APPTIEN,TARGETDATE) ;
VALIDATECLINIC(ERRORS,TARGETCLINIC) ;
VALIDATECLINOPEN(ERRORS,TARGETCLINIC,TARGETDATE) ;
VALIDATELENGTHS(ERRORS,RESOURCEIEN,TARGETCLINIC,APPTIEN) ;
PRIVILEGEDUSER(ERRORS,TARGETCLINIC,SDDUZ) ;
VALIDATEDATE(ERRORS,DATE,CLINICIEN) ;
BUILDAPPTARRAY(APPOINTMENT,PARAMS) ;

External References

Name Field # of Occurrence
$$GET1^DIQ POPULATE+3, POPULATE+6, POPULATE+9, POPULATE+15, POPULATE+16, VALIDATE+15, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN+3, VALIDATEAPPTIEN+4, VALIDATECLINOPEN+2
, VALIDATELENGTHS+1, VALIDATELENGTHS+2, PRIVILEGEDUSER+1, VALIDATEDATE+6, BUILDAPPTARRAY+9, BUILDAPPTARRAY+15, BUILDAPPTARRAY+20, BUILDAPPTARRAY+25, BUILDAPPTARRAY+27
GETS^DIQ BUILDAPPTARRAY+6
$$FMTISO^SDAMUTDT POPULATE+15, POPULATE+16, VALIDATE+15, VALIDATETARGSLOT+2, VALIDATETARGSLOT+7, BUILDAPPTARRAY+9, BUILDAPPTARRAY+13
$$ISOTFM^SDAMUTDT VALIDATEDATE+2, BUILDAPPTARRAY+4
TRY2CANCEL^SDES2CANCELAPPT CANCEL+10
CANCEL^SDES2CANCLNAVAIL CANCELAVAIL+3
CREATE^SDES2CREATEAPPT BLOCKANDMOVE+19
BUILDJSON^SDES2JSON BLOCKANDMOVE+10, BLOCKANDMOVE+23
ERRLOG^SDES2JSON VALIDATETARGSLOT+8, VALIDATEORIGSLOT+7, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN+1, VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3, VALIDATEAPPTIEN+4, VALIDATECLINIC+1, VALIDATECLINIC+2, VALIDATECLINOPEN+5
, VALIDATECLINOPEN+6, VALIDATELENGTHS+1, VALIDATELENGTHS+2, PRIVILEGEDUSER+2, VALIDATEDATE+1, VALIDATEDATE+3, VALIDATEDATE+4, VALIDATEDATE+6
VALCONTEXT^SDES2VALCONTEXT BLOCKANDMOVE+3
$$GET44RECORDIENS^SDESCANAPPT2 VALIDATEORIGSLOT+8
GETSCHEDULE^SDESCLINDAILYSCH VALIDATEORIGSLOT+2
GETCLAVAILABLTY^SDESCLINICAVAIL VALIDATETARGSLOT+2
$$GETRES^SDESINPUTVALUTL BUILDAPPTARRAY+11
$$FMADD^XLFDT BUILDAPPTARRAY+9
DECODE^XLFJSON BLOCKANDMOVE+20, VALIDATETARGSLOT+3, VALIDATEORIGSLOT+3

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^SD(409.1 - [#409.1] GET1^DIQ
^SDEC(409.831 - [#409.831] GET1^DIQ
^SDEC(409.84 - [#409.84] GET1^DIQ,  GETS^DIQ
^SDEC(409.85 - [#409.85] GET1^DIQ
^SC - [#44] GET1^DIQ
44.003 GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^HOLIDAY - [#40.5] VALIDATEDATE+6
^SC - [#44] VALIDATECLINIC+2, VALIDATECLINOPEN+6, PRIVILEGEDUSER+2
^SD(409.2 - [#409.2] POPULATE+12
^SDEC(409.84 - [#409.84] VALIDATEAPPTIEN+2

Label References

Name Line Occurrences
BUILDAPPTARRAY BLOCKANDMOVE+18
CANCEL BLOCKANDMOVE+12
CANCELAVAIL BLOCKANDMOVE+15
POPULATE BLOCKANDMOVE+6
PRIVILEGEDUSER VALIDATE+11
VALIDATE BLOCKANDMOVE+9
VALIDATEAPPTIEN VALIDATE+7
VALIDATECLINIC VALIDATE+8
VALIDATECLINOPEN VALIDATE+12
VALIDATEDATE VALIDATE+6
VALIDATELENGTHS VALIDATE+13
VALIDATEORIGSLOT VALIDATE+15
VALIDATETARGSLOT VALIDATE+14

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPOINTMENT BUILDAPPTARRAY~
APPOINTMENT(" APPOINTMENT LENGTH" , BUILDAPPTARRAY+22*, APPOINTMENT REASON" , BUILDAPPTARRAY+28*, APPOINTMENT TYPE NAME" , BUILDAPPTARRAY+20*, APPOINTMENT TYPE" , BUILDAPPTARRAY+19*, CLINIC IEN" , BUILDAPPTARRAY+17*
, EKG DATE TIME" , BUILDAPPTARRAY+33*, END DATE TIME" , BUILDAPPTARRAY+9*, EXTERNAL ID" , BUILDAPPTARRAY+14*, LAB DATE TIME" , BUILDAPPTARRAY+31*, MRTC PARENT" , BUILDAPPTARRAY+27*
, NEXT AVAILABLE APPOINTMENT" , BUILDAPPTARRAY+37*, PATIENT ELIGIBILITY" , BUILDAPPTARRAY+29*, PATIENT INDICATED DATE" , BUILDAPPTARRAY+13*, PATIENT STATUS" , BUILDAPPTARRAY+21*, PROVIDER IEN" , BUILDAPPTARRAY+16*
, REQUEST TYPE" , BUILDAPPTARRAY+15*, RESOURCE IEN" , BUILDAPPTARRAY+11*, SCHEDULE REQUEST TYPE" , BUILDAPPTARRAY+36*, SERVICE CONNECTED PERCENTAGE" , BUILDAPPTARRAY+24*, SERVICE CONNECTED" , BUILDAPPTARRAY+23*
, START DATE TIME" , BUILDAPPTARRAY+8*, XRAY DATE TIME" , BUILDAPPTARRAY+32*
APPOINTMENT("COLLATERAL" BUILDAPPTARRAY+35*
APPOINTMENT("DFN" BUILDAPPTARRAY+10*
APPOINTMENT("FOLLOWUP" BUILDAPPTARRAY+38*
APPOINTMENT("MRTC" BUILDAPPTARRAY+26*
APPOINTMENT("NOTE" BUILDAPPTARRAY+18*
APPOINTMENT("OVERBOOK" BUILDAPPTARRAY+30*
APPOINTMENT("PURPOSE" BUILDAPPTARRAY+34*
APPOINTMENT("WALKIN" BUILDAPPTARRAY+12*
APPTARRAY BLOCKANDMOVE+1~, BLOCKANDMOVE+18, BLOCKANDMOVE+19, VALIDATE+1~
APPTDATE VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2
APPTIEN POPULATE+1~, POPULATE+2*, POPULATE+3, POPULATE+4, POPULATE+9, POPULATE+15, POPULATE+16, VALIDATE+3*, VALIDATE+7, VALIDATE+13
, VALIDATE+14, VALIDATE+15, VALIDATETARGSLOT~, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN~, VALIDATEAPPTIEN+1, VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3, VALIDATEAPPTIEN+4, VALIDATELENGTHS~
, VALIDATELENGTHS+2, BUILDAPPTARRAY+1~, BUILDAPPTARRAY+2*, BUILDAPPTARRAY+6, BUILDAPPTARRAY+9, BUILDAPPTARRAY+10, BUILDAPPTARRAY+13, BUILDAPPTARRAY+15, BUILDAPPTARRAY+16, BUILDAPPTARRAY+18
, BUILDAPPTARRAY+20, BUILDAPPTARRAY+21, BUILDAPPTARRAY+22, BUILDAPPTARRAY+25, BUILDAPPTARRAY+27
APPTSTARTTIME VALIDATEORIGSLOT~, VALIDATEORIGSLOT+6
ARY2 VALIDATE+1~
ARY44 VALIDATE+1~
ARY84 VALIDATE+1~
AVPARAM BLOCKANDMOVE+1~, BLOCKANDMOVE+6, BLOCKANDMOVE+15
AVPARAM("CLIN IC IEN" , POPULATE+14*
AVPARAM("END DATE TIME" , POPULATE+16*
AVPARAM("FULL PARTIAL FLAG" , POPULATE+17*
AVPARAM("REMARKS" POPULATE+18*
AVPARAM("STAR T DATE TIME" , POPULATE+15*
AVPARAMS POPULATE~, CANCELAVAIL~, CANCELAVAIL+3
BLKPARAM BLOCKANDMOVE+1~, BLOCKANDMOVE+6, BLOCKANDMOVE+9, BLOCKANDMOVE+12, BLOCKANDMOVE+18
CANAVAIL CANCELAVAIL~, CANCELAVAIL+4*
CANCAVJSON CANCELAVAIL+1~, CANCELAVAIL+3, CANCELAVAIL+4
CANCELCLINAVAIL BLOCKANDMOVE+1~, BLOCKANDMOVE+15
CLINICIEN VALIDATEDATE~, VALIDATEDATE+6
CONTEXT VALIDATE~
CONTEXT("APPT IEN" , VALIDATE+3
CONTEXT("RESO URCE IEN" , VALIDATE+13
CONTEXT("TARG ET CLINIC IEN" , VALIDATE+5, ET DATE TIME" , VALIDATE+4
COUNT VALIDATEORIGSLOT+1~, VALIDATEORIGSLOT+4*
DATE VALIDATEDATE~, VALIDATEDATE+1, VALIDATEDATE+2*, VALIDATEDATE+3, VALIDATEDATE+4, VALIDATEDATE+6
DECDATA CANCELAVAIL+1~
DFN BLOCKANDMOVE+1~
DONE VALIDATETARGSLOT+1~, VALIDATETARGSLOT+5*, VALIDATETARGSLOT+6, VALIDATETARGSLOT+8*, VALIDATEORIGSLOT+1~, VALIDATEORIGSLOT+4*, VALIDATEORIGSLOT+5, VALIDATEORIGSLOT+7*
DUZ BLOCKANDMOVE+5, POPULATE+13
ERRORS BLOCKANDMOVE+1~, BLOCKANDMOVE+3, BLOCKANDMOVE+9, BLOCKANDMOVE+10, VALIDATE~, VALIDATE+6, VALIDATE+7, VALIDATE+8, VALIDATE+9, VALIDATE+11
, VALIDATE+12, VALIDATE+13, VALIDATE+14, VALIDATE+15, VALIDATETARGSLOT~, VALIDATETARGSLOT+8, VALIDATEORIGSLOT~, VALIDATEORIGSLOT+7, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN~
, VALIDATEAPPTIEN+1, VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3, VALIDATEAPPTIEN+4, VALIDATECLINIC~, VALIDATECLINIC+1, VALIDATECLINIC+2, VALIDATECLINOPEN~, VALIDATECLINOPEN+5, VALIDATECLINOPEN+6
, VALIDATELENGTHS~, VALIDATELENGTHS+1, VALIDATELENGTHS+2, PRIVILEGEDUSER~, PRIVILEGEDUSER+2, VALIDATEDATE~, VALIDATEDATE+1, VALIDATEDATE+3, VALIDATEDATE+4, VALIDATEDATE+6
FMDATETIME BUILDAPPTARRAY+1~, BUILDAPPTARRAY+4*, BUILDAPPTARRAY+9
JSON BLOCKANDMOVE~, BLOCKANDMOVE+10, BLOCKANDMOVE+23
JSONAPPT BLOCKANDMOVE+1~, BLOCKANDMOVE+19
JSONCANCEL BLOCKANDMOVE+1~, BLOCKANDMOVE+12
NEWAPPT BLOCKANDMOVE+1~
NEWAPPT("Appointment" BLOCKANDMOVE+22
ORIGINALAPPT BUILDAPPTARRAY+1~
ORIGINALAPPT( BUILDAPPTARRAY+10, BUILDAPPTARRAY+13, BUILDAPPTARRAY+15, BUILDAPPTARRAY+16, BUILDAPPTARRAY+18, BUILDAPPTARRAY+20, BUILDAPPTARRAY+21, BUILDAPPTARRAY+22, BUILDAPPTARRAY+25, BUILDAPPTARRAY+27
ORIGINALCLINIC BLOCKANDMOVE+1~, VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2, VALIDATEORIGSLOT+8
ORIGINALSLOTS VALIDATE+1~, VALIDATE+15, VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2
PARAMS POPULATE~, CANCEL~, CANCEL+10, BUILDAPPTARRAY~
PARAMS("APPT IEN" , POPULATE+4*, BUILDAPPTARRAY+2
PARAMS("CANCE L REASON IEN" , POPULATE+12*, L REASON" , POPULATE+11*, POPULATE+12, LLED BY" , POPULATE+10*
PARAMS("CLINI C IEN" , POPULATE+6*, POPULATE+14, POPULATE+15, POPULATE+16
PARAMS("DFN" POPULATE+9*
PARAMS("ORIGI NAL USER" , POPULATE+13*
PARAMS("RESOU RCE IEN" , POPULATE+5*
PARAMS("TARGE T CLINIC IEN" , POPULATE+7*, BUILDAPPTARRAY+5, T DATE TIME" , POPULATE+8*, BUILDAPPTARRAY+3
RESOURCEIEN BLOCKANDMOVE+1~, POPULATE+1~, POPULATE+3*, POPULATE+5, POPULATE+6, VALIDATELENGTHS~, VALIDATELENGTHS+1, VALIDATELENGTHS+2
RETURN BLOCKANDMOVE+1~, BLOCKANDMOVE+10*, BLOCKANDMOVE+23, CANCEL~, CANCEL+11*, CANCEL+12*
RETURN("BlockAndMoveAppointment" BLOCKANDMOVE+10*, BLOCKANDMOVE+22*
SDCONTEXT BLOCKANDMOVE~, BLOCKANDMOVE+3, BLOCKANDMOVE+12, BLOCKANDMOVE+15, BLOCKANDMOVE+19, CANCEL~, CANCEL+10, CANCELAVAIL~, CANCELAVAIL+3
SDCONTEXT("US ER DUZ" , BLOCKANDMOVE+5
SDDUZ BLOCKANDMOVE+1~, BLOCKANDMOVE+5*, BLOCKANDMOVE+6, BLOCKANDMOVE+9, POPULATE~, POPULATE+13, VALIDATE~, VALIDATE+11, PRIVILEGEDUSER~, PRIVILEGEDUSER+2
SDERRORS CANCEL+1~, CANCEL+10, CANCEL+11, CANCEL+12
SDPARAM BLOCKANDMOVE~, BLOCKANDMOVE+6, POPULATE~
SDPARAM("APPO INTMENT IEN" , POPULATE+2
SDPARAM("TARG ET CLINIC" , POPULATE+7, ET DATE TIME" , POPULATE+8
SDRETURN CANCEL+1~, CANCEL+10, CANCEL+12
SINC VALIDATE+1~
SLOTNUM VALIDATETARGSLOT+1~, VALIDATETARGSLOT+5*, VALIDATETARGSLOT+6*, VALIDATETARGSLOT+7, VALIDATETARGSLOT+8, VALIDATEORIGSLOT+1~, VALIDATEORIGSLOT+4*, VALIDATEORIGSLOT+5*, VALIDATEORIGSLOT+6, VALIDATEORIGSLOT+7
SLOTS VALIDATETARGSLOT+1~, VALIDATETARGSLOT+2, VALIDATEORIGSLOT+1~
SLOTS("ClinicSlot" VALIDATEORIGSLOT+5, VALIDATEORIGSLOT+6, VALIDATEORIGSLOT+7
STARTOFDAY VALIDATE+1~
TARGETCLINIC VALIDATE+5*, VALIDATE+6, VALIDATE+8, VALIDATE+11, VALIDATE+12, VALIDATE+13, VALIDATE+14, VALIDATETARGSLOT~, VALIDATETARGSLOT+2, VALIDATECLINIC~
, VALIDATECLINIC+1, VALIDATECLINIC+2, VALIDATECLINOPEN~, VALIDATECLINOPEN+2, VALIDATECLINOPEN+6, VALIDATELENGTHS~, VALIDATELENGTHS+1, PRIVILEGEDUSER~, PRIVILEGEDUSER+1, PRIVILEGEDUSER+2
, BUILDAPPTARRAY+1~, BUILDAPPTARRAY+5*, BUILDAPPTARRAY+11, BUILDAPPTARRAY+17
TARGETDATE VALIDATE+1~, VALIDATE+4*, VALIDATE+6, VALIDATE+7, VALIDATE+12, VALIDATE+14, VALIDATEAPPTIEN~, VALIDATECLINOPEN~, VALIDATECLINOPEN+5, VALIDATECLINOPEN+6
, BUILDAPPTARRAY+1~, BUILDAPPTARRAY+3*, BUILDAPPTARRAY+4, BUILDAPPTARRAY+8
TARGETSLOTS VALIDATE+1~, VALIDATE+14, VALIDATETARGSLOT~
TARGETSLOTS("ClinAvail" VALIDATETARGSLOT+6, VALIDATETARGSLOT+7, VALIDATETARGSLOT+8
TARGETSTARTDATE VALIDATETARGSLOT~, VALIDATETARGSLOT+2, VALIDATETARGSLOT+7
TIMECLINICOPENS VALIDATECLINOPEN+1~, VALIDATECLINOPEN+2*, VALIDATECLINOPEN+3*, VALIDATECLINOPEN+5
Info |  Source |  Call Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All