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: SDESBLOCKANDMOVE

Package: Scheduling

Routine: SDESBLOCKANDMOVE


Information

SDESBLOCKANDMOVE ;ALB/BLB,LAB - SCHEDULING CANCEL APPOINTMENTS RPC ;DEC 12, 2023

Source Information

Source file <SDESBLOCKANDMOVE.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Scheduling 8 ($$FMTISO,$$ISOTFM)^SDAMUTDT  ($$GET44RECORDIENS,CANAPPT2)^SDESCANAPPT2  CANCLAVAIL^SDESCCAVAIL  GETSCHEDULE^SDESCLINDAILYSCH  GETCLAVAILABLTY^SDESCLINICAVAIL  CREATEAPPTS^SDESCRTAPPTWRAP  $$GETRES^SDESINPUTVALUTL  ERRLOG^SDESJSON  
Kernel 2 $$FMADD^XLFDT  (DECODE,ENCODE)^XLFJSON  
VA FileMan 1 ($$GET1,GETS)^DIQ  

Entry Points

Name Comments DBIA/ICR reference
BLOCKANDMOVE(JSON,BLOCKANDMOVE) ;
POPULATE(APPTIEN,TARGETCLINIC,TARGETDATE,ORIGINALCLINIC) ;
VALIDATE(ERRORS,CONTEXT,APPTIEN,TARGETCLINIC,TARGETDATE,RESOURCEIEN) ;
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) ;
VALIDATEDATE(ERRORS,DATE,CLINICIEN) ;
BUILDJSON(JSON,CANRETURN) ;.
BUILDAPPTARRAY(APPTARRAY,TARGETDATE,TARGETCLINIC,APPTIEN) ;

External References

Name Field # of Occurrence
$$GET1^DIQ BLOCKANDMOVE+11, BLOCKANDMOVE+14, POPULATE+4, VALIDATE+3, VALIDATE+13, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN+3, VALIDATEAPPTIEN+4, VALIDATECLINOPEN+2, VALIDATELENGTHS+1
, VALIDATELENGTHS+2, PRIVILEGEDUSER+1, VALIDATEDATE+6, BUILDAPPTARRAY+5, BUILDAPPTARRAY+11, BUILDAPPTARRAY+15, BUILDAPPTARRAY+20, BUILDAPPTARRAY+22
GETS^DIQ BUILDAPPTARRAY+2
$$FMTISO^SDAMUTDT BLOCKANDMOVE+14, VALIDATE+13, VALIDATETARGSLOT+2, VALIDATETARGSLOT+7, BUILDAPPTARRAY+4, BUILDAPPTARRAY+5, BUILDAPPTARRAY+9
$$ISOTFM^SDAMUTDT VALIDATEDATE+2
$$GET44RECORDIENS^SDESCANAPPT2 VALIDATEORIGSLOT+8
CANAPPT2^SDESCANAPPT2 BLOCKANDMOVE+11
CANCLAVAIL^SDESCCAVAIL BLOCKANDMOVE+14
GETSCHEDULE^SDESCLINDAILYSCH VALIDATEORIGSLOT+2
GETCLAVAILABLTY^SDESCLINICAVAIL VALIDATETARGSLOT+2
CREATEAPPTS^SDESCRTAPPTWRAP BLOCKANDMOVE+18
$$GETRES^SDESINPUTVALUTL BUILDAPPTARRAY+7
ERRLOG^SDESJSON 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
$$FMADD^XLFDT BUILDAPPTARRAY+5
DECODE^XLFJSON BLOCKANDMOVE+19, VALIDATETARGSLOT+3, VALIDATEORIGSLOT+3
ENCODE^XLFJSON BUILDJSON+2

Used in RPC

RPC Name Call Tags
SDES BLOCK AND MOVE BLOCKANDMOVE

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
^SDEC(409.84 - [#409.84] VALIDATEAPPTIEN+2

Label References

Name Line Occurrences
BUILDAPPTARRAY BLOCKANDMOVE+17
BUILDJSON BLOCKANDMOVE+8, BLOCKANDMOVE+22
POPULATE BLOCKANDMOVE+4
PRIVILEGEDUSER VALIDATE+9
VALIDATE BLOCKANDMOVE+7
VALIDATEAPPTIEN VALIDATE+5
VALIDATECLINIC VALIDATE+6
VALIDATECLINOPEN VALIDATE+10
VALIDATEDATE VALIDATE+4
VALIDATELENGTHS VALIDATE+11
VALIDATEORIGSLOT VALIDATE+13
VALIDATETARGSLOT VALIDATE+12

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPTARRAY BLOCKANDMOVE+1~, BLOCKANDMOVE+17, BLOCKANDMOVE+18, VALIDATE+1~, BUILDAPPTARRAY~
APPTARRAY( BUILDAPPTARRAY+15*
APPTARRAY(1 BUILDAPPTARRAY+4*
APPTARRAY(10 BUILDAPPTARRAY+13*
APPTARRAY(11 BUILDAPPTARRAY+14*
APPTARRAY(13 BUILDAPPTARRAY+16*
APPTARRAY(14 BUILDAPPTARRAY+17*
APPTARRAY(15 BUILDAPPTARRAY+18*
APPTARRAY(16 BUILDAPPTARRAY+19*
APPTARRAY(17 BUILDAPPTARRAY+21*
APPTARRAY(18 BUILDAPPTARRAY+22*
APPTARRAY(19 BUILDAPPTARRAY+23*
APPTARRAY(2 BUILDAPPTARRAY+5*
APPTARRAY(20 BUILDAPPTARRAY+24*
APPTARRAY(21 BUILDAPPTARRAY+25*
APPTARRAY(22 BUILDAPPTARRAY+26*
APPTARRAY(23 BUILDAPPTARRAY+27*
APPTARRAY(24 BUILDAPPTARRAY+28*
APPTARRAY(25 BUILDAPPTARRAY+29*
APPTARRAY(26 BUILDAPPTARRAY+30*
APPTARRAY(27 BUILDAPPTARRAY+31*
APPTARRAY(28 BUILDAPPTARRAY+32*
APPTARRAY(29 BUILDAPPTARRAY+33*
APPTARRAY(3 BUILDAPPTARRAY+6*
APPTARRAY(30 BUILDAPPTARRAY+34*
APPTARRAY(4 BUILDAPPTARRAY+7*
APPTARRAY(5 BUILDAPPTARRAY+8*
APPTARRAY(6 BUILDAPPTARRAY+9*
APPTARRAY(7 BUILDAPPTARRAY+10*
APPTARRAY(8 BUILDAPPTARRAY+11*
APPTARRAY(9 BUILDAPPTARRAY+12*
APPTDATE VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2
APPTIEN BLOCKANDMOVE+4, BLOCKANDMOVE+7, BLOCKANDMOVE+11, BLOCKANDMOVE+14, BLOCKANDMOVE+17, POPULATE~, POPULATE+1*, POPULATE+4, VALIDATE~, VALIDATE+3
, VALIDATE+5, VALIDATE+11, VALIDATE+12, VALIDATE+13, VALIDATETARGSLOT~, VALIDATEORIGSLOT+8, VALIDATEAPPTIEN~, VALIDATEAPPTIEN+1, VALIDATEAPPTIEN+2, VALIDATEAPPTIEN+3
, VALIDATEAPPTIEN+4, VALIDATELENGTHS~, VALIDATELENGTHS+2, BUILDAPPTARRAY~, BUILDAPPTARRAY+2, BUILDAPPTARRAY+5, BUILDAPPTARRAY+6, BUILDAPPTARRAY+9, BUILDAPPTARRAY+11, BUILDAPPTARRAY+12
, BUILDAPPTARRAY+14, BUILDAPPTARRAY+15, BUILDAPPTARRAY+16, BUILDAPPTARRAY+17, BUILDAPPTARRAY+20, BUILDAPPTARRAY+22, BUILDAPPTARRAY+23
APPTSTARTTIME VALIDATEORIGSLOT~, VALIDATEORIGSLOT+6
ARY2 VALIDATE+1~
ARY44 VALIDATE+1~
ARY84 VALIDATE+1~
BLOCKANDMOVE BLOCKANDMOVE~
BLOCKANDMOVE( "APPOINTMENT IEN" , POPULATE+1, "TARGET CLINIC" , POPULATE+2, "TARGET DATE TIME" , POPULATE+3
CANCELCLINAVAIL BLOCKANDMOVE+1~, BLOCKANDMOVE+14
CANRETURN BUILDJSON~
CLINICIEN VALIDATEDATE~, VALIDATEDATE+6
CONTEXT BLOCKANDMOVE+1~, BLOCKANDMOVE+7, VALIDATE~
COUNT VALIDATEORIGSLOT+1~, VALIDATEORIGSLOT+4*
DATE VALIDATEDATE~, VALIDATEDATE+1, VALIDATEDATE+2*, VALIDATEDATE+3, VALIDATEDATE+4, VALIDATEDATE+6
DONE VALIDATETARGSLOT+1~, VALIDATETARGSLOT+5*, VALIDATETARGSLOT+6, VALIDATETARGSLOT+8*, VALIDATEORIGSLOT+1~, VALIDATEORIGSLOT+4*, VALIDATEORIGSLOT+5, VALIDATEORIGSLOT+7*
DUZ PRIVILEGEDUSER+2
ERRORS BLOCKANDMOVE+1~, BLOCKANDMOVE+7, BLOCKANDMOVE+8, VALIDATE~, VALIDATE+4, VALIDATE+5, VALIDATE+6, VALIDATE+7, VALIDATE+9, VALIDATE+10
, VALIDATE+11, VALIDATE+12, VALIDATE+13, 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
JSON BLOCKANDMOVE~, BLOCKANDMOVE+8, BLOCKANDMOVE+22, BUILDJSON~
JSONAPPT BLOCKANDMOVE+1~, BLOCKANDMOVE+18
JSONCANCEL BLOCKANDMOVE+1~, BLOCKANDMOVE+11
JSONERROR BUILDJSON+1~
NEWAPPT BLOCKANDMOVE+1~
NEWAPPT("Appointment" BLOCKANDMOVE+21
ORIGINALAPPT BUILDAPPTARRAY+1~
ORIGINALAPPT( BUILDAPPTARRAY+6, BUILDAPPTARRAY+9, BUILDAPPTARRAY+11, BUILDAPPTARRAY+12, BUILDAPPTARRAY+14, BUILDAPPTARRAY+15, BUILDAPPTARRAY+16, BUILDAPPTARRAY+17, BUILDAPPTARRAY+20, BUILDAPPTARRAY+22
, BUILDAPPTARRAY+23
ORIGINALCLINIC BLOCKANDMOVE+1~, BLOCKANDMOVE+4, BLOCKANDMOVE+11, BLOCKANDMOVE+14, POPULATE~, POPULATE+4*, VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2, VALIDATEORIGSLOT+8
ORIGINALSLOTS VALIDATE+1~, VALIDATE+13, VALIDATEORIGSLOT~, VALIDATEORIGSLOT+2
RESOURCEIEN BLOCKANDMOVE+1~, BLOCKANDMOVE+7, VALIDATE~, VALIDATE+3*, VALIDATE+11, VALIDATELENGTHS~, VALIDATELENGTHS+1, VALIDATELENGTHS+2
RETURN BLOCKANDMOVE+1~, BLOCKANDMOVE+8*, BLOCKANDMOVE+22
RETURN("BlockAndMoveAppointment" BLOCKANDMOVE+21*
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 BLOCKANDMOVE+4, BLOCKANDMOVE+7, BLOCKANDMOVE+17, POPULATE~, POPULATE+2*, VALIDATE~, VALIDATE+4, VALIDATE+6, VALIDATE+9, VALIDATE+10
, VALIDATE+11, VALIDATE+12, VALIDATETARGSLOT~, VALIDATETARGSLOT+2, VALIDATECLINIC~, VALIDATECLINIC+1, VALIDATECLINIC+2, VALIDATECLINOPEN~, VALIDATECLINOPEN+2, VALIDATECLINOPEN+6
, VALIDATELENGTHS~, VALIDATELENGTHS+1, PRIVILEGEDUSER~, PRIVILEGEDUSER+1, PRIVILEGEDUSER+2, BUILDAPPTARRAY~, BUILDAPPTARRAY+7, BUILDAPPTARRAY+13
TARGETDATE BLOCKANDMOVE+4, BLOCKANDMOVE+7, BLOCKANDMOVE+17, POPULATE~, POPULATE+3*, VALIDATE~, VALIDATE+4, VALIDATE+5, VALIDATE+10, VALIDATE+12
, VALIDATEAPPTIEN~, VALIDATECLINOPEN~, VALIDATECLINOPEN+5, VALIDATECLINOPEN+6, BUILDAPPTARRAY~, BUILDAPPTARRAY+4, BUILDAPPTARRAY+5
TARGETSLOTS VALIDATE+1~, VALIDATE+12, 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 |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All