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 |  Caller 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: SDES2UTIL1

Package: Scheduling

Routine: SDES2UTIL1


Information

SDES2UTIL1 ;ALB/MGD/TJB/MGD,TJB,BLB - SDES2 UTILITIES Continued ;FEB 08, 2024

Source Information

Source file <SDES2UTIL1.m>

Call Graph

Call Graph

Call Graph Total: 12

Package Total Call Graph
Scheduling 9 $$FMTISO^SDAMUTDT  OVR^SDAUT1  C^SDB  B1^SDB1  ERRLOG^SDES2JSON  (ENCODE,ERRLOG)^SDESJSON  DOW^SDM0  DTS^SDUTL  
$$NEWGAF^SDUTL2  
VA FileMan 2 C^%DTC  $$GET1^DIQ  
Kernel 1 ($$FMADD,$$FMDIFF)^XLFDT  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 8

Package Total Caller Graph
Scheduling 8 SDES2CLNSEARCH  SDES2CRTCLNAVAIL  SDES2GETAPPTRPCS  SDES2GETREGS  SDES2INACTCLIN  SDES2REACTTCLIN  SDESCLINICAVAIL  SDESGETAPPTRPCS  

Entry Points

Name Comments DBIA/ICR reference
VALBOOLEAN(SDERRORS,SDBOOLEAN,SDREQUIRED,SDERRORTEXT) ;
; SDERRORS = Array to hold any logged errors
; SDBOOLEAN = Boolean input array element to validate
; SDREQUIRED = 1:Required, 0:Optional, Defaults to 0
; SDERRORTEXT = Additional text to append to error message. This is normally the name of the input parameter element.
GETRES(SDCL,INACT)
GETGAF(DFN) ;
ETHNLIST(ETHNICITY,DFN) ;get ethnicity list
RACELIST(RACELST,DFN) ;get list of race information for given patient
HRN(DFN) ;Health Record Number
FLAGS(DFN,FNUM) ;get PRF flags
FLST(PRFLIST,FNUM)
CHECKDURATION(T1,T2,SLT) ;Ensure the appointment lengths align with the time segment
CREATE(DA,STARTDAY,SLT,DOW,INDEFINITEUNTIL,DATES,TIMES,SDDISPPERHR,SDRETURN,ERRORS) ;
G3 ;
G3A
G4
G4A
G5 ;
CKSI1
DEL1
D
R
EN1 ;
DAYSINFUTURE(CLINICIEN,STARTDATE) ;
1
11
OVR ;
APPCK ;
APPERR ;
DELERR ;
CHK1
CHK2 ;
OB ;
TX ;
ERRLOG(ERNUM,OPTIONALTXT) ;
BUILDER ;

External References

Name Field # of Occurrence
C^%DTC D+7, OVR+2, CHK2+3
$$GET1^DIQ GETRES+10, GETRES+13, GETRES+14, FLAGS+22, FLST+5, DAYSINFUTURE+3
$$FMTISO^SDAMUTDT EN1+11
OVR^SDAUT1 EN1+11
C^SDB G5+2
B1^SDB1 EN1+9, 11+9
ERRLOG^SDES2JSON G5+16
ENCODE^SDESJSON BUILDER+3
ERRLOG^SDESJSON VALBOOLEAN+8, VALBOOLEAN+9, ERRLOG+2
DOW^SDM0 D+3, D+7, CHK2+3
DTS^SDUTL CHK2+4
$$NEWGAF^SDUTL2 GETGAF+2
$$FMADD^XLFDT DAYSINFUTURE+4
$$FMDIFF^XLFDT DAYSINFUTURE+8

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DGPF(26.13 - [#26.13] GET1^DIQ
^SDEC(409.831 - [#409.831] GET1^DIQ
^SC - [#44] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNPAT - [#9000001] HRN+2
^DGPF( FLST+3, FLST+4
^DGPF(26.13 - [#26.13] FLAGS+21
^DIC(10 - [#10] RACELIST+12
^DIC(10.2 - [#10.2] ETHNLIST+12
^DPT - [#2] ETHNLIST+9, ETHNLIST+10, RACELIST+9, RACELIST+10, FLAGS+16
^HOLIDAY - [#40.5] 11
^HOLIDAY("B" DAYSINFUTURE+5
^SC - [#44] CREATE+12*, G4*, G5+3*, G5+4*, G5+6!, G5+7, G5+8, G5+16!, D+2, D+3
EN1+4, EN1+5, EN1+6!*, EN1+7*, EN1+8*, 11+8*, 11+9*, OB+2*, OB+3!, TX+1*
^SDEC(409.831 - [#409.831] GETRES+12

Label References

Name Line Occurrences
$$DAYSINFUTURE EN1+9
1 EN1+2
APPCK 111+6
APPERR 11+7
CHK1 EN1+6
CHK2 11+2, OVR+1, OVR+2
CKSI1 G5+12
D G5+11, G5+17
DEL1 G5+2
DELERR 1
FLST FLAGS+19
G3 CREATE+25
G3A G3A
G4 G4A+3
G4A G4A
G5 CREATE+27
OVR 11111+3, 11+7
R D+3, D+8
TX EN1+6, EN1+7, EN1+8

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% 11+5*, 11+7, APPERR+1~
A CREATE+4~
CLINICIEN DAYSINFUTURE~, DAYSINFUTURE+3
CNT CREATE+3~, CREATE+17*, G4*, G5+2, G5+3, G5+6, G5+16*, EN1+10
CTR CREATE+3~, D+1*, CHK2+4*
D CREATE+4~, G5+9*, EN1+1*, 1111+8, OVR+1*, OVR+2*, DELERR+1, CHK2+1, CHK2+2
CHK2+3*
D0 CREATE+3~, CREATE+14*, CREATE+15*, CREATE+16, CREATE+18, G4G5+3, G5+4, G5+6, G5+7
G5+8, G5+16, DD+3, D+4, D+8, EN1+1, EN1+4, EN1+5, EN1+6
EN1+7, EN1+9
DA CREATE~, CREATE+12, G4G5+3, G5+4, G5+6, G5+7, G5+8, G5+16, D+2
D+3, EN1+4, EN1+5, EN1+6, EN1+7, EN1+8, EN1+9, 11+8, 11+9, OB+2
OB+3, TX+1
DATES CREATE~, CREATE+28!
DATES( CREATE+15, CREATE+18
DFN GETGAF~, GETGAF+2, ETHNLIST~, ETHNLIST+9, ETHNLIST+10, RACELIST~, RACELIST+9, RACELIST+10, HRN~, HRN+2
, FLAGS~, FLAGS+14*, FLAGS+15, FLAGS+16, FLAGS+21
DH CREATE+4~, G5+5*, G5+9, G5+10*, G5+13*, DEL1*, D+1*, EN1+8
DO CREATE+4~, G5+10*, G5+13*, DEL1*, D+3*, D+8*, D+9*, EN1+8, EN1+11, 11+8*
DOW CREATE~, D+3, D+7, EN1+4, EN1+5, EN1+6, EN1+7, EN1+8, CHK2+3, TX+1
DR CREATE+3~, OB+2, OB+3
DUZ(2 HRN+2
ERNUM ERRLOG~, ERRLOG+2
ERRORS CREATE~, G5+16
ETHNICITY ETHNLIST~
ETHNICITY("IENS" ETHNLIST+14*
ETHNICITY("NAMES" ETHNLIST+13*
FNUM FLAGS~, FLAGS+17*, FLAGS+18, FLAGS+19, FLST~, FLST+3, FLST+4, FLST+5
FUTUREBOOKDATE DAYSINFUTURE+1~, DAYSINFUTURE+4*, DAYSINFUTURE+7
FUTUREBOOKINGNUM DAYSINFUTURE+1~, DAYSINFUTURE+3*, DAYSINFUTURE+4, DAYSINFUTURE+7
GAF GETGAF+1~, GETGAF+2*, GETGAF+4*, GETGAF+5
GAFR GETGAF+1~, GETGAF+3*, GETGAF+5*, GETGAF+6
H1 CHECKDURATION+1~, CHECKDURATION+2*, CHECKDURATION+3*, CHECKDURATION+5, CREATE+4~, G3+6*, G4, G4A*, G4A+1*, G4A+2
H2 CHECKDURATION+1~, CHECKDURATION+2*, CHECKDURATION+4*, CHECKDURATION+5, CREATE+4~, G3+6*, G3A*, G3A+1*, G4A+2
HHY CREATE+4~, CKSI1+1*
HOLIDAYFILEDATE DAYSINFUTURE+1~, DAYSINFUTURE+5*, DAYSINFUTURE+7, DAYSINFUTURE+8
HSI CREATE+4~, CREATE+7*, CREATE+8*, CREATE+9*, G5+12, CKSI1
HY CREATE+3~
HY( CKSI1*, CKSI1+1
I CREATE+4~, D+7*, CHK2+3*
INACT GETRES~, GETRES+14
INDEFINITELY CREATE+3~, CREATE+17*, CREATE+18*, EN1+2
INDEFINITEUNTIL CREATE~, EN1+11*
JSONERR BUILDER+1~, BUILDER+2*, BUILDER+3
LT CREATE+4~, G3+6*, G5+16*
M1 CHECKDURATION+1~, CHECKDURATION+2*, CHECKDURATION+3*, CHECKDURATION+5, CREATE+4~, G3+6*, G4G4+1*, G4A*, G4A+1*
G4A+2
M2 CHECKDURATION+1~, CHECKDURATION+2*, CHECKDURATION+4*, CHECKDURATION+5, CREATE+4~, G3+6*, G3+7*, G3A*, G3A+1*, G4A+2
MAX CREATE+3~, EN1+9*
NSL CREATE+3~, CREATE+23*, G4
OK CREATE+4~, D+1*, D+7*, D+8, R!
OPTIONALTXT ERRLOG~, ERRLOG+2
PETH ETHNLIST+7~, ETHNLIST+8*, ETHNLIST+11*, ETHNLIST+14
PETHN ETHNLIST+7~, ETHNLIST+8*, ETHNLIST+12*, ETHNLIST+13
POP CREATE+4~, CREATE+5*, CREATE+15, CREATE+20, CREATE+27, G5+16*, EN1+6*, 1*, 11+1*, 11+3
11+4*, 11+7, OVR+1*, OVR+2*, CHK1+1*, CHK2+2*, CHK2+3*, CHK2+4, ERRLOG+1*
PRFAID FLAGS+12~, FLAGS+21*, FLAGS+22, FLAGS+23
PRFID FLAGS+12~, FLAGS+20*, FLAGS+21, FLAGS+23, FLST+1~, FLST+4*, FLST+5
PRFLIST FLAGS+19, FLST~, FLST+2!
PRFLIST( FLAGS+20, FLAGS+23, FLST+5*
PRFLST FLAGS+12~
PRFN FLST+1~, FLST+3*, FLST+4
RACEIEN RACELIST+7~, RACELIST+8*, RACELIST+11*, RACELIST+14
RACELST RACELIST~
RACELST("IENS" RACELIST+14*
RACELST("NAMES" RACELIST+13*
RACENAM RACELIST+7~, RACELIST+8*, RACELIST+12*, RACELIST+13
RET FLAGS+12~, FLAGS+13*, FLAGS+23*, FLAGS+24
RETURN CREATE+4~, BUILDER+3
SC CREATE+3~, EN1+9*
SD CREATE+3~, CREATE+15*, EN1+9
SD1 CHECKDURATION+1~, CHECKDURATION+5*, CHECKDURATION+6
SDA1 CREATE+4~
SDBOOLEAN VALBOOLEAN~, VALBOOLEAN+6, VALBOOLEAN+8, VALBOOLEAN+9
SDCL GETRES~, GETRES+10, GETRES+12
SDDISPPERHR CREATE~, CREATE+7
SDEL CREATE+4~, G5+1*, G5+11*, G5+16*, DEL1*, 1
SDERRORS VALBOOLEAN~, VALBOOLEAN+8, VALBOOLEAN+9
SDERRORTEXT VALBOOLEAN~, VALBOOLEAN+8, VALBOOLEAN+9
SDHLN GETRES+8~, GETRES+10*, GETRES+11
SDI GETRES+8~, GETRES+12*, GETRES+13, GETRES+14, GETRES+15, GETRES+17, ETHNLIST+7~, ETHNLIST+9*, ETHNLIST+10, RACELIST+7~
, RACELIST+9*, RACELIST+10
SDID ETHNLIST+7~, ETHNLIST+10*, ETHNLIST+11, ETHNLIST+12, RACELIST+7~, RACELIST+10*, RACELIST+11, RACELIST+12
SDIN CREATE+4~, DD+4, D+6, 11+2, OVR+1, OVR+2, CHK1CHK1+1, CHK2+1!
CHK2+2, CHK2+3, CHK2+4
SDJJ CREATE+4~, CKSI1*
SDL CHECKDURATION+1~, CHECKDURATION+5*, CHECKDURATION+6
SDRE CREATE+4~, DD+5, CHK2+1, CHK2+2, CHK2+3
SDRE1 CREATE+4~, D*, D+5*, D+7, CHK2+4
SDREACT CREATE+4~, G5+2, 11+8*
SDREB CREATE+3~, 11+4*, 11+7*
SDREQUIRED VALBOOLEAN~, VALBOOLEAN+6, VALBOOLEAN+7*, VALBOOLEAN+8
SDRES GETRES+8~, GETRES+9*, GETRES+12, GETRES+17*, GETRES+18*, GETRES+19
SDRES1 GETRES+8~, GETRES+9*, GETRES+15*, GETRES+18
SDRESTYP GETRES+8~, GETRES+13*, GETRES+16
SDRETURN CREATE~, CREATE+3~, ERRLOG+2, BUILDER+3
SDRETURN("ClinicAvailability" EN1+11*
SDSLOT OB+1*, OB+2!, OB+3!
SDSOH CREATE+4~, D+2*, 11
SDSTRTDT CREATE+3~, EN1+9*
SDTOP CREATE+4~, G3+3*, G5+2
SDZQ CREATE+3~, G3+4*, EN1+11
SI CREATE+4~, CREATE+7*, CREATE+8*, CREATE+9*, G5+5, G5+9, G5+13, G5+16
SLT CHECKDURATION~, CHECKDURATION+5, CHECKDURATION+6, CREATE~, G3+7, G4+1, G5+5
ST CREATE+3~, OB+1
STARTDATE DAYSINFUTURE~, DAYSINFUTURE+4, DAYSINFUTURE+8
STARTDAY CREATE~, CREATE+6, G5+9
STARTTIME CREATE+3~, CREATE+6*, CREATE+19*, CREATE+20*, CREATE+21, CREATE+24
STAT FLAGS+12~, FLAGS+22*, FLAGS+23
STIME CREATE+3~, G5+16
STR CREATE+3~, OB+1
T1 CHECKDURATION~, CHECKDURATION+2, CREATE+3~, CREATE+24*, G3+6
T2 CHECKDURATION~, CHECKDURATION+2, CREATE+3~, CREATE+22*, G3+6
TIMES CREATE~, CREATE+28!
TIMES( CREATE+20, CREATE+21
U ETHNLIST+10, ETHNLIST+12, RACELIST+10, RACELIST+12, HRN+3, FLAGS+23, FLST+5, G5+9
X HRN+1~, HRN+2*, HRN+3, CREATE+3~, CREATE+4~, CREATE+21*, CREATE+22, CREATE+23, G5+4*, G5+7*
G5+8, G5+10*, G5+13*, G5+16, DEL1*, D+1, D+3*, D+4, D+6*, D+7
D+8, EN1+6*, EN1+9*, 11+8*, OVR+2, CHK2+3*
X1 CREATE+4~, D+7*, OVR+2*, CHK2+3*
X2 CREATE+4~, D+7*, OVR+2*, CHK2+3*
Y CREATE+4~, G5+8*, G5+9, G5+11, G5+13*, G5+15!, D+3*, D+7, D+8*, EN1+3*
EN1+5*, EN1+6, EN1+7, DELERR+1*, CHK1+1, CHK2+3, CHK2+4*, OB+2, OB+3
Y( G5+9*, G5+13, CKSI1CKSI1+1!
Y1 CREATE+3~, CHK2+4*
ZDX CREATE+4~, G5+6*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All