SDESBLKANDMOVE ;ALB/TAW,MGD,LAB - BLOCK AND MOVE ;May 09,2023
Source file <SDESBLKANDMOVE.m>
Package | Total | Call Graph |
---|---|---|
Scheduling | 8 | APPADD^SDEC07 APPDEL^SDEC08 $$APPTSTS^SDEC50 ($$FMTONET,$$NETTOFM)^SDECDATE ($$IDTIMESLOT,BUILDER,CHKAVAILABILITY,PREBLOCK,TOOVBCHECK)^SDESBLKANDMOVE1 $$PRIVUSR^SDESCLINICUTIL ERRLOG^SDESJSON ($$EASVALIDATE,$$PADCLTIME,$$PADFMTIME,$$PADLENGTH)^SDESUTIL |
VA FileMan | 3 | $$FIND1^DIC UPDATE^DIE ($$GET1,GETS)^DIQ |
Kernel | 1 | ($$DOW,$$FMADD,$$FMDIFF,$$FMTE)^XLFDT |
MailMan | 1 | $$CTRL^XMXUTIL1 |
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 | 1 | SDES |
Name | Comments | DBIA/ICR reference |
---|---|---|
APPTBLOCKMOVE(RETURN,APPTIEN,TORES,TODTNET,EASTRCKNGNMBR) | ;
|
|
VALIDATEINPUT | ;Validate input parameters from the APPTBLOCKMOVE entry point
|
|
LOADAPPTDATA(FN,APPTARY,SDECAPPTIENS) | ;Load variables used throughout B&M
|
|
VALIDATE | ; Simple validation
|
|
COMPARETIMESCALE | ;Compare the Time Scale of the Clinic Resource from the original appt vs new appt
|
|
SDSEGMENTS | ; Build local array of slots with SCHEDULE and EVALUATE nodes
|
|
SEGARRAY(CLIEN,TIMESCALE,FROMDTFM,CLINBEG,CLINID) | ; Create local array to hold segments for validation comparisons
|
|
SLOTCOUNT | ;
; Verifying that we don't have more than the max allowable slots defined for the period of time we are reviewing |
|
APPDEL | ;Call APPDEL RPC to cancel the current appointment
|
|
APPADD(SDECAPPTIEN,SDECSTART,SDECLEN,SDECRES,SDECEND,FN,APPTARY,SDECAPPTIENS) | ;entry point before calling APPADD^SDEC07
|
FileNo | Call Tags |
---|---|
^VA(200 - [#200] | FIND1^DIC |
^HOLIDAY - [#40.5] | FIND1^DIC |
^SD(409.2 - [#409.2] | FIND1^DIC |
^SDEC(409.831 - [#409.831] | GET1^DIQ |
^SC - [#44] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT - [#2] | APPADD+22, APPADD+29 |
^SC - [#44] | LOADAPPTDATA+12, LOADAPPTDATA+16, SEGARRAY+3, SEGARRAY+5, SEGARRAY+9, SEGARRAY+10 |
^SDEC(409.831 - [#409.831] | VALIDATEINPUT+7, LOADAPPTDATA+20, LOADAPPTDATA+21, APPADD+18 |
^SDEC(409.84 - [#409.84] | VALIDATEINPUT+3 |
^TMP("SDEC07" | APPADD+16!, APPADD+35, APPADD+36, APPADD+48! |
^TMP("SDEC08" | APPDEL+14, APPDEL+18! |
^TMP("SDEC57" | APPTBLOCKMOVE+21! |
Name | Line Occurrences |
---|---|
APPADD | APPTBLOCKMOVE+15, APPTBLOCKMOVE+16 |
APPDEL | APPTBLOCKMOVE+13 |
COMPARETIMESCALE | APPTBLOCKMOVE+9 |
LOADAPPTDATA | APPTBLOCKMOVE+6 |
SDSEGMENTS | LOADAPPTDATA+25 |
SEGARRAY | SDSEGMENTS+18, SDSEGMENTS+55 |
SLOTCOUNT | APPTBLOCKMOVE+7 |
VALIDATE | APPTBLOCKMOVE+8 |
VALIDATEINPUT | APPTBLOCKMOVE+5 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
APPTARY | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+6, APPTBLOCKMOVE+12, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, LOADAPPTDATA~, APPADD~ |
APPTARY( | LOADAPPTDATA+4, LOADAPPTDATA+6, LOADAPPTDATA+7, LOADAPPTDATA+10, APPDEL+11, APPADD+17, APPADD+20, APPADD+21, APPADD+25, APPADD+43 , APPADD+45 |
APPTIEN | APPTBLOCKMOVE~, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, VALIDATEINPUT+1*, VALIDATEINPUT+2, VALIDATEINPUT+3, LOADAPPTDATA+2, VALIDATE+13, APPDEL+13 |
APPTLENGTH | APPTBLOCKMOVE+3~, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, SDSEGMENTS+4*, SDSEGMENTS+5, SDSEGMENTS+6 |
APPTSTAT | VALIDATE+12~, VALIDATE+13*, VALIDATE+14 |
CLIEN | SEGARRAY~, SEGARRAY+3, SEGARRAY+5, SEGARRAY+9, SEGARRAY+10, SEGARRAY+12, SEGARRAY+15, SEGARRAY+22, SEGARRAY+25 |
CLINBEG | APPTBLOCKMOVE+1~, SEGARRAY~, SEGARRAY+16, SEGARRAY+24 |
CLINBEGFROM | APPTBLOCKMOVE+3~, LOADAPPTDATA+13*, LOADAPPTDATA+14*, LOADAPPTDATA+15*, SDSEGMENTS+55 |
CLINBEGTO | APPTBLOCKMOVE+3~, LOADAPPTDATA+17*, LOADAPPTDATA+18*, LOADAPPTDATA+19*, VALIDATE+19, SDSEGMENTS+18 |
CLINID | SDSEGMENTS+1~, SDSEGMENTS+16*, SDSEGMENTS+18, SDSEGMENTS+21, SDSEGMENTS+25, SDSEGMENTS+27, SDSEGMENTS+29, SDSEGMENTS+31, SDSEGMENTS+34, SDSEGMENTS+36 , SDSEGMENTS+38, SDSEGMENTS+53*, SDSEGMENTS+55, SDSEGMENTS+58, SDSEGMENTS+62, SDSEGMENTS+64, SDSEGMENTS+66, SDSEGMENTS+68, SDSEGMENTS+71, SDSEGMENTS+73 , SDSEGMENTS+75, SEGARRAY~, SEGARRAY+12, SEGARRAY+15, SEGARRAY+22, SEGARRAY+25 |
CNTR | APPADD+33~, APPADD+35*, APPADD+36 |
DT | VALIDATEINPUT+14, SEGARRAY+11, SEGARRAY+19, SEGARRAY+20 |
DUZ | VALIDATEINPUT+20, VALIDATEINPUT+22, VALIDATE+16, VALIDATE+17 |
EASTRCKNGNMBR | APPTBLOCKMOVE~, VALIDATEINPUT+16*, VALIDATEINPUT+17*, VALIDATEINPUT+18, APPDEL+13, APPADD+31 |
ENDDTFM | APPTBLOCKMOVE+3~, LOADAPPTDATA+6*, VALIDATE+5, SDSEGMENTS+4, SDSEGMENTS+44*, SDSEGMENTS+50, SDSEGMENTS+51 |
ENDDTFMPAD | VALIDATE+1~, VALIDATE+5*, VALIDATE+10 |
ERROR | APPADD+33~, APPADD+34*, APPADD+36*, APPADD+37*, APPADD+38, APPADD+40, APPADD+42 |
FN | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+6, APPTBLOCKMOVE+12, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, LOADAPPTDATA~, LOADAPPTDATA+2*, LOADAPPTDATA+3, LOADAPPTDATA+4, LOADAPPTDATA+6 , LOADAPPTDATA+7, LOADAPPTDATA+10, APPDEL+11, APPADD~, APPADD+17, APPADD+20, APPADD+21, APPADD+25, APPADD+26, APPADD+28 , APPADD+43, APPADD+45 |
FROMDTFM | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+11, APPTBLOCKMOVE+17, LOADAPPTDATA+4*, LOADAPPTDATA+5, VALIDATE+3, SDSEGMENTS+4, SDSEGMENTS+43*, SDSEGMENTS+47, SDSEGMENTS+48 , SDSEGMENTS+55, SEGARRAY~, SEGARRAY+2 |
FROMDTFMPAD | VALIDATE+1~, VALIDATE+3*, VALIDATE+7, VALIDATE+10 |
FROMDTNET | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+11, LOADAPPTDATA+5* |
FROMRES | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+11, APPTBLOCKMOVE+17, LOADAPPTDATA+7*, LOADAPPTDATA+8, LOADAPPTDATA+20 |
FROMTIMESCALE | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+17, LOADAPPTDATA+20*, LOADAPPTDATA+22, COMPARETIMESCALE+3, COMPARETIMESCALE+5, SDSEGMENTS+42, SDSEGMENTS+55 |
FRSTTMFMADJ | SDSEGMENTS+1~, SDSEGMENTS+12*, SDSEGMENTS+13*, SDSEGMENTS+21, SDSEGMENTS+48*, SDSEGMENTS+49*, SDSEGMENTS+58 |
HASPATRN | VALIDATE+1~ |
I | SEGARRAY+1~, SEGARRAY+18* |
NEWAPPTIEN | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+4*, APPTBLOCKMOVE+19, APPADD+42*, APPADD+45 |
OVB | APPTBLOCKMOVE+3~, APPTBLOCKMOVE+12, APPADD+31 |
PADENDDTFM | SDSEGMENTS+1~, SDSEGMENTS+11*, SDSEGMENTS+34, SDSEGMENTS+36, SDSEGMENTS+38, SDSEGMENTS+50*, SDSEGMENTS+71, SDSEGMENTS+73, SDSEGMENTS+75 |
PADFROMDTFM | SDSEGMENTS+1~, SDSEGMENTS+10*, SDSEGMENTS+25, SDSEGMENTS+27, SDSEGMENTS+29, SDSEGMENTS+47*, SDSEGMENTS+62, SDSEGMENTS+64, SDSEGMENTS+66 |
PATRNIEN | SEGARRAY+1~, SEGARRAY+2*, SEGARRAY+3, SEGARRAY+4, SEGARRAY+5*, SEGARRAY+6, SEGARRAY+9, SEGARRAY+10 |
POP | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+4*, APPTBLOCKMOVE+6, APPTBLOCKMOVE+7, APPTBLOCKMOVE+8, APPTBLOCKMOVE+9, APPTBLOCKMOVE+10, APPTBLOCKMOVE+11, APPTBLOCKMOVE+12, APPTBLOCKMOVE+13 , APPTBLOCKMOVE+14, APPTBLOCKMOVE+17, APPTBLOCKMOVE+18, VALIDATEINPUT+2*, VALIDATEINPUT+3*, VALIDATEINPUT+6*, VALIDATEINPUT+7*, VALIDATEINPUT+10*, VALIDATEINPUT+13*, VALIDATEINPUT+14* , VALIDATEINPUT+18*, VALIDATEINPUT+21*, VALIDATEINPUT+22*, LOADAPPTDATA+22*, LOADAPPTDATA+23*, LOADAPPTDATA+24, LOADAPPTDATA+25, VALIDATE+7*, VALIDATE+10*, VALIDATE+14* , VALIDATE+16*, VALIDATE+17*, VALIDATE+19*, VALIDATE+21*, COMPARETIMESCALE+3*, COMPARETIMESCALE+5*, SDSEGMENTS+5*, SDSEGMENTS+7*, SDSEGMENTS+19, SDSEGMENTS+23* , SDSEGMENTS+32*, SDSEGMENTS+56, SDSEGMENTS+60*, SDSEGMENTS+69*, SEGARRAY+6*, SLOTCOUNT+2*, APPDEL+17*, APPADD+39* |
RET | APPDEL+7~, APPDEL+13 |
RETURN | APPTBLOCKMOVE~ |
SDAPPT | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+12, APPTBLOCKMOVE+20, VALIDATEINPUT+2, VALIDATEINPUT+3, VALIDATEINPUT+6, VALIDATEINPUT+7, VALIDATEINPUT+10, VALIDATEINPUT+13, VALIDATEINPUT+14 , VALIDATEINPUT+18, VALIDATEINPUT+21, VALIDATEINPUT+22, LOADAPPTDATA+22, LOADAPPTDATA+23, VALIDATE+7, VALIDATE+10, VALIDATE+14, VALIDATE+16, VALIDATE+17 , VALIDATE+19, VALIDATE+21, COMPARETIMESCALE+3, COMPARETIMESCALE+5, SDSEGMENTS+5, SDSEGMENTS+7, SDSEGMENTS+23, SDSEGMENTS+32, SDSEGMENTS+60, SDSEGMENTS+69 , SEGARRAY+6, SLOTCOUNT+2, APPDEL+17, APPADD+40 |
SDAPPT("BlockAndMove" | APPTBLOCKMOVE+19* |
SDAPTYP | APPDEL+7~, APPDEL+11*, APPADD+15~, APPADD+26*, APPADD+27*, APPADD+28*, APPADD+31, APPADD+43 |
SDBM | APPADD+44~ |
SDBM( | APPADD+45* |
SDCANDT | APPDEL+7~ |
SDCANRSN | APPDEL+7~, APPDEL+8*, APPDEL+9*, APPDEL+13 |
SDCL | APPADD+15~, APPADD+18*, APPADD+31 |
SDDATA44SLFROM | APPTBLOCKMOVE+3~, APPTBLOCKMOVE+17, LOADAPPTDATA+12*, LOADAPPTDATA+13 |
SDDATA44SLTO | APPTBLOCKMOVE+3~, LOADAPPTDATA+16*, LOADAPPTDATA+17 |
SDDDT | APPADD+15~, APPADD+25* |
SDDFN | APPADD+15~, APPADD+17*, APPADD+22, APPADD+29, APPADD+31 |
SDDOW | VALIDATE+1~, VALIDATE+22*, SEGARRAY+1~, SEGARRAY+4*, SEGARRAY+5 |
SDDUZ | APPTBLOCKMOVE+1~, VALIDATEINPUT+20*, VALIDATEINPUT+21, VALIDATEINPUT+22 |
SDECAPPTIEN | APPADD~ |
SDECAPPTIENS | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+6, APPTBLOCKMOVE+12, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, LOADAPPTDATA~, LOADAPPTDATA+2*, LOADAPPTDATA+3, LOADAPPTDATA+4, LOADAPPTDATA+6 , LOADAPPTDATA+7, LOADAPPTDATA+10, APPDEL+11, APPADD~, APPADD+17, APPADD+20, APPADD+21, APPADD+25, APPADD+26, APPADD+28 , APPADD+43, APPADD+45 |
SDECATID | APPADD+15~, APPADD+21*, APPADD+22*, APPADD+23*, APPADD+24, APPADD+31 |
SDECCR | APPADD+15~, APPADD+24* |
SDECEND | APPADD~, APPADD+31 |
SDECLEN | APPADD~, APPADD+31 |
SDECNOTE | APPADD+15~, APPADD+20*, APPADD+31 |
SDECRES | APPADD~, APPADD+18, APPADD+31 |
SDECSTART | APPADD~, APPADD+22, APPADD+31 |
SDECY | APPADD+15~, APPADD+30!, APPADD+31 |
SDEL | APPADD+15~, APPADD+29*, APPADD+31 |
SDENDTIME | SEGARRAY+1~, SEGARRAY+11*, SEGARRAY+12 |
SDF | APPDEL+7~, APPDEL+10*, APPDEL+13 |
SDINDX | SEGARRAY+1~, SEGARRAY+8*, SEGARRAY+9*, SEGARRAY+10, SEGARRAY+14*, SEGARRAY+15*, SEGARRAY+16, SEGARRAY+19, SEGARRAY+22, SEGARRAY+25 , SEGARRAY+26* |
SDMSG | LOADAPPTDATA+1~ |
SDORGCLIEN | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+11, APPTBLOCKMOVE+17, LOADAPPTDATA+8*, LOADAPPTDATA+12, VALIDATE+16, SDSEGMENTS+55, SDSEGMENTS+58, SDSEGMENTS+62, SDSEGMENTS+64 , SDSEGMENTS+66, SDSEGMENTS+68, SDSEGMENTS+71, SDSEGMENTS+73, SDSEGMENTS+75, SLOTCOUNT+2 |
SDPID | APPTBLOCKMOVE+3~, LOADAPPTDATA+10*, APPADD+31 |
SDRET | APPADD+15~ |
SDSEGENDTIM | SDSEGMENTS+1~, SDSEGMENTS+31*, SDSEGMENTS+32, SDSEGMENTS+34, SDSEGMENTS+36, SDSEGMENTS+38, SDSEGMENTS+68*, SDSEGMENTS+69, SDSEGMENTS+71, SDSEGMENTS+73 , SDSEGMENTS+75 |
SDSEGMENTS | APPTBLOCKMOVE+3~, APPTBLOCKMOVE+17 |
SDSEGMENTS( | SDSEGMENTS+21, SDSEGMENTS+25*, SDSEGMENTS+27*, SDSEGMENTS+29*, SDSEGMENTS+31, SDSEGMENTS+34*, SDSEGMENTS+36*, SDSEGMENTS+38*, SDSEGMENTS+58, SDSEGMENTS+62* , SDSEGMENTS+64*, SDSEGMENTS+66*, SDSEGMENTS+68, SDSEGMENTS+71*, SDSEGMENTS+73*, SDSEGMENTS+75*, SEGARRAY+12*, SEGARRAY+15, SEGARRAY+22*, SEGARRAY+25* |
SDSEGSTTIM | SDSEGMENTS+1~, SDSEGMENTS+21*, SDSEGMENTS+23, SDSEGMENTS+25, SDSEGMENTS+27, SDSEGMENTS+29, SDSEGMENTS+58*, SDSEGMENTS+60, SDSEGMENTS+62, SDSEGMENTS+64 , SDSEGMENTS+66 |
SDSLDATA | SEGARRAY+1~, SEGARRAY+10*, SEGARRAY+11, SEGARRAY+12 |
SDSLOT2BLK | APPTBLOCKMOVE+2~ |
SDTOCLIEN | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+10, APPTBLOCKMOVE+12, LOADAPPTDATA+9*, LOADAPPTDATA+16, VALIDATE+17, VALIDATE+21, SDSEGMENTS+18, SDSEGMENTS+21, SDSEGMENTS+25 , SDSEGMENTS+27, SDSEGMENTS+29, SDSEGMENTS+31, SDSEGMENTS+34, SDSEGMENTS+36, SDSEGMENTS+38 |
SDUSRNOTE | APPDEL+7~ |
STOP | SEGARRAY+1~, SEGARRAY+17*, SEGARRAY+18, SEGARRAY+20*, SEGARRAY+22*, SEGARRAY+24* |
TEXT | APPDEL+7~, APPDEL+14*, APPDEL+15*, APPDEL+16, APPDEL+17 |
TIMESCALE | SEGARRAY~, SEGARRAY+11, SEGARRAY+19 |
TIMESCALEDIFF | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+4* |
TINDX | SEGARRAY+1~, SEGARRAY+19*, SEGARRAY+20, SEGARRAY+21, SEGARRAY+23*, SEGARRAY+24*, SEGARRAY+25, SEGARRAY+26 |
TODTFM | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+10, APPTBLOCKMOVE+12, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, VALIDATEINPUT+12*, VALIDATEINPUT+13, VALIDATEINPUT+14, LOADAPPTDATA+24, VALIDATE+4 , VALIDATE+19, VALIDATE+21, VALIDATE+22, SDSEGMENTS+6, SDSEGMENTS+7, SDSEGMENTS+10, SDSEGMENTS+12, SDSEGMENTS+18, SDSEGMENTS+43 |
TODTFMEND | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+4* |
TODTFMPAD | VALIDATE+1~, VALIDATE+4*, VALIDATE+7 |
TODTNET | APPTBLOCKMOVE~, APPTBLOCKMOVE+10, VALIDATEINPUT+9*, VALIDATEINPUT+10, VALIDATEINPUT+11, VALIDATEINPUT+12 |
TOENDDTFM | APPTBLOCKMOVE+2~, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, LOADAPPTDATA+24*, SDSEGMENTS+6*, SDSEGMENTS+7, SDSEGMENTS+11, SDSEGMENTS+14, SDSEGMENTS+44 |
TOENDTMFMADJ | SDSEGMENTS+1~, SDSEGMENTS+14*, SDSEGMENTS+15*, SDSEGMENTS+31, SDSEGMENTS+51*, SDSEGMENTS+52*, SDSEGMENTS+68 |
TORES | APPTBLOCKMOVE~, APPTBLOCKMOVE+10, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, VALIDATEINPUT+5*, VALIDATEINPUT+6, VALIDATEINPUT+7, LOADAPPTDATA+9, LOADAPPTDATA+21 |
TOTIMESCALE | APPTBLOCKMOVE+1~, APPTBLOCKMOVE+15, APPTBLOCKMOVE+16, LOADAPPTDATA+21*, LOADAPPTDATA+23, LOADAPPTDATA+24, COMPARETIMESCALE+3, COMPARETIMESCALE+5, SDSEGMENTS+6, SDSEGMENTS+18 , SDSEGMENTS+42 |
U | LOADAPPTDATA+13, LOADAPPTDATA+17, SDSEGMENTS+34, SDSEGMENTS+36, SDSEGMENTS+38, SDSEGMENTS+71, SDSEGMENTS+73, SDSEGMENTS+75, SEGARRAY+11, SEGARRAY+12 , APPADD+18, APPADD+22, APPADD+29 |