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

Package: Scheduling

Routine: SDES2CONTACTS


Information

SDES2CONTACTS ;ALB/LAB,MCB/TJB,JAS - VISTA SCHEDULING CONTACT SDES2 CONTACT ATTEMPTS ;Aug 28,2024

Source Information

Source file <SDES2CONTACTS.m>

Call Graph

Call Graph

Call Graph Total: 10

Package Total Call Graph
Scheduling 8 $$FMTISO^SDAMUTDT  (BUILDJSON,ERRLOG)^SDES2JSON  VALCONTEXT^SDES2VALCONTEXT  $$VALISODTTM^SDES2VALISODTTM  (VALFIELD,VALFILEIEN)^SDES2VALUTIL  BUILDJSON^SDESBUILDJSON  ERRLOG^SDESJSON  $$STOPCODETOAMIS^SDESUTIL  
VA FileMan 2 UPDATE^DIE  ($$GET1,GETS)^DIQ  

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

Package Total Caller Graph
Scheduling 4 SDES2GETAPPTREQ  SDES2GETCONSULTS  SDES2GETRECALL  SDESCONTACTS  

Entry Points

Name Comments DBIA/ICR reference
ADDCONTACT(RESULT,SDCONTEXT,CONTACT) ; RPC: SDEC2 ADD CONTACT ATTEMPT
ASSIGNNEWIEN(NEWCONTACTIEN,CONTACTIEN,NEWIEN) ;get the iens that were created during create/update
GETCONTACTIEN(CONTACTIEN,APPTREQTYPE) ;if a contact attempt already exists, get it's ien
BLDNEWCONT(FDA,IENS,DFN,CLINIC,PREFDATE,REQTYPE,APPTREQTYPE) ; build the new contact attempt record.
BLDNEWATTMPT(FDA,IENS,DTTMOFCONTACT,CONTACTTYPE,COMMENTS,SDDUZ,DTTMENTERED,LEFTMSG,SEQUENCE) ;add a new entry to existing contact attempt record.
BLDRETNINFO(RESULT,IEN,CLINIC) ;build return result of contact attempts
ASSIGNVARS(CONTACT,REQTYPE,DTTMOFCONTACT,COMMENTS,DTMENTERED,LEFTMSG,SDDUZ) ;assign variables used sent in from CONTACT array
VALIDATE(ERRORS,REQTYPE,DTTMOFCONTACT,COMMENTS,DTTMENTERED,LEFTMSG,CONTACTTYPE,CLINIC) ;validate input array values
REQUESTINFO(ERRORS,CONTACT,APPTREQTYPE,REQUESTIEN,REQTYP,DFN,CLINIC,PREFDATE,CONTACTIEN) ;
; Given the request ien and request type, return back information needed from request
CREATECONTACT(RESULT,FDA,DFN,CONTACTIEN,CLINIC,PREFDATE,REQTYPE,APPTREQTYPE,DTTMOFCONTACT,CONTACTTYPE,COMMENTS,SDDUZ,DTTMENTERED,LEFTMSG) ;
UPDATECONTACT(RESULT,FDA,CONTACTIEN,DTTMOFCONTACT,CONTACTTYPE,COMMENTS,SDDUZ,DTTMENTERED,LEFTMSG) ;
SAVECONTACT(ERRORS,RESULT,FDA,NEWIEN) ;file contact attempt in 409.86 file
GETCONTACTS(RESULT,SDCONTEXT,REQARRAY) ; RPC: SDES2 GET CONTACT ATTEMPT
ASSIGNREQVAR(REQARRAY,REQTYPE,REQIEN) ;
DISPCONTACT(RESULT,CONTACTIEN,CLINIC) ;get contact attempt information given contact ien
GETSRV(REQTYP,REQIEN) ; Function to get SERVICE based on Request type and ien

External References

Name Field # of Occurrence
UPDATE^DIE SAVECONTACT+2
$$GET1^DIQ BLDRETNINFO+11, REQUESTINFO+9, REQUESTINFO+10, REQUESTINFO+11, REQUESTINFO+17, REQUESTINFO+19, REQUESTINFO+20, REQUESTINFO+26, REQUESTINFO+27, REQUESTINFO+28
, DISPCONTACT+8, DISPCONTACT+19, GETSRV+4, GETSRV+5, GETSRV+7, GETSRV+8
GETS^DIQ BLDRETNINFO+3, DISPCONTACT+7
$$FMTISO^SDAMUTDT BLDRETNINFO+6, DISPCONTACT+11, DISPCONTACT+20
BUILDJSON^SDES2JSON ADDCONTACT+5, ADDCONTACT+8, ADDCONTACT+12, ADDCONTACT+21, ADDCONTACT+23, SAVECONTACT+6, GETCONTACTS+4, GETCONTACTS+8, GETCONTACTS+11
ERRLOG^SDES2JSON REQUESTINFO+31
VALCONTEXT^SDES2VALCONTEXT ADDCONTACT+4, GETCONTACTS+3
$$VALISODTTM^SDES2VALISODTTM VALIDATE+5, VALIDATE+6
VALFIELD^SDES2VALUTIL VALIDATE+1, VALIDATE+2, VALIDATE+3, VALIDATE+4, GETCONTACTS+6
VALFILEIEN^SDES2VALUTIL REQUESTINFO+7, REQUESTINFO+15, REQUESTINFO+24
BUILDJSON^SDESBUILDJSON GETCONTACTS+14
ERRLOG^SDESJSON SAVECONTACT+4
$$STOPCODETOAMIS^SDESUTIL BLDRETNINFO+12

Used in RPC

RPC Name Call Tags
SDES2 GET CONTACT ATTEMPTS GETCONTACTS
SDES2 ADD CONTACT ATTEMPT ADDCONTACT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^GMR(123 - [#123] GET1^DIQ
^VA(200 - [#200] GET1^DIQ
^SD(403.5 - [#403.5] GET1^DIQ
^SDEC(409.85 - [#409.85] GET1^DIQ
^SDEC(409.86 - [#409.86] GET1^DIQ,  GETS^DIQ
409.863 GETS^DIQ
^SC - [#44] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^SDEC(409.86 - [#409.86] GETCONTACTIEN+2, UPDATECONTACT+3, DISPCONTACT+5

Label References

Name Line Occurrences
$$GETSRV BLDRETNINFO+17
ASSIGNNEWIEN ADDCONTACT+19
ASSIGNREQVAR GETCONTACTS+2
ASSIGNVARS ADDCONTACT+10
BLDNEWATTMPT CREATECONTACT+4, UPDATECONTACT+4
BLDNEWCONT CREATECONTACT+2
BLDRETNINFO ADDCONTACT+20, GETCONTACTS+12
CREATECONTACT ADDCONTACT+17
DISPCONTACT ADDCONTACT+22, GETCONTACTS+13
GETCONTACTIEN ADDCONTACT+14, GETCONTACTS+10
REQUESTINFO ADDCONTACT+7, GETCONTACTS+7
SAVECONTACT ADDCONTACT+18
UPDATECONTACT ADDCONTACT+16
VALIDATE ADDCONTACT+11

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPTREQTYPE ADDCONTACT+2~, ADDCONTACT+7, ADDCONTACT+14, ADDCONTACT+17, GETCONTACTIEN~, GETCONTACTIEN+2, BLDNEWCONT~, BLDNEWCONT+7, REQUESTINFO~, REQUESTINFO+12*
, REQUESTINFO+21*, REQUESTINFO+29*, CREATECONTACT~, CREATECONTACT+2, GETCONTACTS+1~, GETCONTACTS+7, GETCONTACTS+10
CCNT DISPCONTACT+1~, DISPCONTACT+4*, DISPCONTACT+9*, DISPCONTACT+12, DISPCONTACT+13, DISPCONTACT+14, DISPCONTACT+15, DISPCONTACT+16, DISPCONTACT+17, DISPCONTACT+18
, DISPCONTACT+19, DISPCONTACT+21
CIENS DISPCONTACT+1~, DISPCONTACT+6*, DISPCONTACT+7, DISPCONTACT+10, DISPCONTACT+13, DISPCONTACT+14, DISPCONTACT+15, DISPCONTACT+16, DISPCONTACT+17, DISPCONTACT+18
, DISPCONTACT+19, DISPCONTACT+20
CLINIC ADDCONTACT+1~, ADDCONTACT+7, ADDCONTACT+11, ADDCONTACT+17, ADDCONTACT+20, ADDCONTACT+22, BLDNEWCONT~, BLDNEWCONT+2, BLDRETNINFO~, BLDRETNINFO+5*
, BLDRETNINFO+6, BLDRETNINFO+11, VALIDATE~, VALIDATE+5, REQUESTINFO~, REQUESTINFO+10*, REQUESTINFO+18*, REQUESTINFO+27*, CREATECONTACT~, CREATECONTACT+2
, GETCONTACTS+1~, DISPCONTACT~, DISPCONTACT+8*, DISPCONTACT+11
COMMENTS ADDCONTACT+1~, ADDCONTACT+10, ADDCONTACT+11, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+3, ASSIGNVARS~, ASSIGNVARS+3*, VALIDATE~
, VALIDATE+3, CREATECONTACT~, CREATECONTACT+4, UPDATECONTACT~, UPDATECONTACT+4
CONTACT ADDCONTACT~, ADDCONTACT+7, ADDCONTACT+10, ASSIGNVARS~, REQUESTINFO~
CONTACT("COMMENTS" ASSIGNVARS+3
CONTACT("CONTACTTYPE" ASSIGNVARS+2
CONTACT("DTTMENTERED" ASSIGNVARS+4
CONTACT("DTTMOFCONTACT" ASSIGNVARS+1
CONTACT("LEFTMESSAGE" ASSIGNVARS+5
CONTACT("REQTYPE" REQUESTINFO+5
CONTACT("REQUESTIEN" REQUESTINFO+4
CONTACTIEN ADDCONTACT+2~, ADDCONTACT+14, ADDCONTACT+16, ADDCONTACT+17, ADDCONTACT+19, ADDCONTACT+20, ADDCONTACT+22, ASSIGNNEWIEN~, ASSIGNNEWIEN+1, ASSIGNNEWIEN+2
, ASSIGNNEWIEN+3*, GETCONTACTIEN~, GETCONTACTIEN+1*, GETCONTACTIEN+2*, REQUESTINFO~, CREATECONTACT~, UPDATECONTACT~, UPDATECONTACT+2, UPDATECONTACT+3, GETCONTACTS+1~
, GETCONTACTS+10, GETCONTACTS+11, GETCONTACTS+12, GETCONTACTS+13, DISPCONTACT~, DISPCONTACT+3*, DISPCONTACT+5, DISPCONTACT+6, DISPCONTACT+8
CONTACTS ADDCONTACT+21, GETCONTACTS+1~, GETCONTACTS+11, GETCONTACTS+12, GETCONTACTS+13, GETCONTACTS+14, DISPCONTACT+1~, DISPCONTACT+23, DISPCONTACT+24
CONTACTS("Contact" GETCONTACTS+11*
CONTACTS("ContactAttempts" GETCONTACTS+11*, DISPCONTACT+12*, DISPCONTACT+13*, DISPCONTACT+14*, DISPCONTACT+15*, DISPCONTACT+16*, DISPCONTACT+17*, DISPCONTACT+18*, DISPCONTACT+19*, DISPCONTACT+21*
, DISPCONTACT+23*
CONTACTTYPE ADDCONTACT+1~, ADDCONTACT+11, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+2, ASSIGNVARS+2*, VALIDATE~, VALIDATE+4, CREATECONTACT~
, CREATECONTACT+4, UPDATECONTACT~, UPDATECONTACT+4
CONTDATA BLDRETNINFO+1~, BLDRETNINFO+21!, DISPCONTACT+1~, DISPCONTACT+22!
CONTDATA( BLDRETNINFO+5, BLDRETNINFO+6, BLDRETNINFO+9, BLDRETNINFO+10, BLDRETNINFO+14, BLDRETNINFO+15, BLDRETNINFO+17, BLDRETNINFO+20, DISPCONTACT+10, DISPCONTACT+13
, DISPCONTACT+14, DISPCONTACT+15, DISPCONTACT+16, DISPCONTACT+17, DISPCONTACT+18, DISPCONTACT+19, DISPCONTACT+20
CONTDATE DISPCONTACT+1~, DISPCONTACT+10*, DISPCONTACT+11*, DISPCONTACT+12
CONTMULT DISPCONTACT+1~, DISPCONTACT+5*, DISPCONTACT+6
DFN ADDCONTACT+1~, ADDCONTACT+7, ADDCONTACT+17, BLDNEWCONT~, BLDNEWCONT+1, REQUESTINFO~, REQUESTINFO+9*, REQUESTINFO+17*, REQUESTINFO+26*, CREATECONTACT~
, CREATECONTACT+2, GETCONTACTS+1~
DIERR SAVECONTACT+1~
DTMENTERED ADDCONTACT+10, ASSIGNVARS~
DTTMENTERED ADDCONTACT+1~, ADDCONTACT+11, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+8, ASSIGNVARS+4*, VALIDATE~, VALIDATE+6*, CREATECONTACT~
, CREATECONTACT+4, UPDATECONTACT~, UPDATECONTACT+4, DISPCONTACT+1~, DISPCONTACT+20*, DISPCONTACT+21
DTTMOFCONTACT ADDCONTACT+1~, ADDCONTACT+10, ADDCONTACT+11, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+1, ASSIGNVARS~, ASSIGNVARS+1*, VALIDATE~
, VALIDATE+5*, CREATECONTACT~, CREATECONTACT+4, UPDATECONTACT~, UPDATECONTACT+4
DUZ ASSIGNVARS+8
ERR BLDRETNINFO+1~, BLDRETNINFO+4
ERRORS ADDCONTACT+1~, ADDCONTACT+4, ADDCONTACT+5, ADDCONTACT+7, ADDCONTACT+8, ADDCONTACT+11, ADDCONTACT+12, ADDCONTACT+18, VALIDATE~, VALIDATE+1
, VALIDATE+2, VALIDATE+3, VALIDATE+4, VALIDATE+5, VALIDATE+6, REQUESTINFO~, REQUESTINFO+7, REQUESTINFO+15, REQUESTINFO+24, REQUESTINFO+31
, SAVECONTACT~, SAVECONTACT+4, SAVECONTACT+6, GETCONTACTS+1~, GETCONTACTS+3, GETCONTACTS+4, GETCONTACTS+6, GETCONTACTS+7, GETCONTACTS+8, DISPCONTACT+1~
ERRORS("Contact" ADDCONTACT+5*, ADDCONTACT+8*, ADDCONTACT+12*, SAVECONTACT+5*, GETCONTACTS+4*, GETCONTACTS+8*
ERRORS("ContactAttempts" ADDCONTACT+5*, ADDCONTACT+8*, ADDCONTACT+12*, ADDCONTACT+21*
F BLDRETNINFO+1~, BLDRETNINFO+2*, BLDRETNINFO+5, BLDRETNINFO+6, BLDRETNINFO+9, BLDRETNINFO+10, BLDRETNINFO+14, BLDRETNINFO+15, BLDRETNINFO+17, BLDRETNINFO+20
FDA ADDCONTACT+2~, ADDCONTACT+16, ADDCONTACT+17, ADDCONTACT+18, BLDNEWCONT~, BLDNEWATTMPT~, CREATECONTACT~, CREATECONTACT+2, CREATECONTACT+4, UPDATECONTACT~
, UPDATECONTACT+4, SAVECONTACT~, SAVECONTACT+2!
FDA( BLDNEWCONT+1*, BLDNEWCONT+2*, BLDNEWCONT+3*, BLDNEWCONT+4*, BLDNEWCONT+6*, BLDNEWCONT+7*, BLDNEWATTMPT+1*, BLDNEWATTMPT+2*, BLDNEWATTMPT+3*, BLDNEWATTMPT+4*
, BLDNEWATTMPT+6*, BLDNEWATTMPT+7*, BLDNEWATTMPT+8*
FILERR SAVECONTACT+1~, SAVECONTACT+3
FILERR("DIERR" SAVECONTACT+4
IEN BLDRETNINFO~, BLDRETNINFO+2
IENS BLDNEWCONT~, BLDNEWCONT+1, BLDNEWCONT+2, BLDNEWCONT+3, BLDNEWCONT+4, BLDNEWCONT+6, BLDNEWCONT+7, BLDNEWATTMPT~, BLDNEWATTMPT+1, BLDNEWATTMPT+2
, BLDNEWATTMPT+3, BLDNEWATTMPT+4, BLDNEWATTMPT+6, BLDNEWATTMPT+7, BLDNEWATTMPT+8, BLDRETNINFO+1~, BLDRETNINFO+2*, BLDRETNINFO+3, BLDRETNINFO+5, BLDRETNINFO+6
, BLDRETNINFO+8, BLDRETNINFO+9, BLDRETNINFO+10, BLDRETNINFO+14, BLDRETNINFO+15, BLDRETNINFO+17, BLDRETNINFO+20
LEFTMSG ADDCONTACT+2~, ADDCONTACT+10, ADDCONTACT+11, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+4, ASSIGNVARS~, ASSIGNVARS+5*, ASSIGNVARS+6*
, VALIDATE~, VALIDATE+2, CREATECONTACT~, CREATECONTACT+4, UPDATECONTACT~, UPDATECONTACT+4
NEWCONTACT ADDCONTACT+1~, ADDCONTACT+20, ADDCONTACT+21, ADDCONTACT+22, ADDCONTACT+23
NEWCONTACT("Contact" ADDCONTACT+21*
NEWCONTACTIEN ADDCONTACT+19, ASSIGNNEWIEN~
NEWCONTATTMTIEN ADDCONTACT+2~, ASSIGNNEWIEN+1*, ASSIGNNEWIEN+4*
NEWCONTIEN ADDCONTACT+2~
NEWIEN ADDCONTACT+2~, ADDCONTACT+18, ADDCONTACT+19, ASSIGNNEWIEN~, SAVECONTACT~
NEWIEN(1 ASSIGNNEWIEN+1, ASSIGNNEWIEN+3
NEWIEN(2 ASSIGNNEWIEN+4
PREFDATE ADDCONTACT+1~, ADDCONTACT+7, ADDCONTACT+17, BLDNEWCONT~, BLDNEWCONT+3, BLDRETNINFO+1~, BLDRETNINFO+6*, BLDRETNINFO+7*, BLDRETNINFO+13, REQUESTINFO~
, REQUESTINFO+11*, REQUESTINFO+19*, REQUESTINFO+20*, REQUESTINFO+28*, CREATECONTACT~, CREATECONTACT+2, GETCONTACTS+1~
REQARRAY GETCONTACTS~, GETCONTACTS+2, GETCONTACTS+7, ASSIGNREQVAR~
REQARRAY("REQTYPE" ASSIGNREQVAR+1
REQARRAY("REQUESTIEN" ASSIGNREQVAR+2
REQIEN GETCONTACTS+1~, GETCONTACTS+2, ASSIGNREQVAR~, ASSIGNREQVAR+2*, GETSRV~, GETSRV+2, GETSRV+4, GETSRV+5, GETSRV+7, GETSRV+8
REQTYP ADDCONTACT+7, REQUESTINFO~, GETSRV~, GETSRV+2, GETSRV+3, GETSRV+6
REQTYPE ADDCONTACT+1~, ADDCONTACT+10, ADDCONTACT+11, ADDCONTACT+17, BLDNEWCONT~, BLDNEWCONT+4, ASSIGNVARS~, VALIDATE~, VALIDATE+1, REQUESTINFO+5*
, REQUESTINFO+6, REQUESTINFO+14, REQUESTINFO+23, CREATECONTACT~, CREATECONTACT+2, GETCONTACTS+1~, GETCONTACTS+2, GETCONTACTS+6, ASSIGNREQVAR~, ASSIGNREQVAR+1*
REQTYPEFOUND REQUESTINFO+2~, REQUESTINFO+3*, REQUESTINFO+13*, REQUESTINFO+22*, REQUESTINFO+30*, REQUESTINFO+31
REQUESTIEN ADDCONTACT+1~, ADDCONTACT+7, REQUESTINFO~, REQUESTINFO+4*, REQUESTINFO+7, REQUESTINFO+9, REQUESTINFO+10, REQUESTINFO+11, REQUESTINFO+12, REQUESTINFO+15
, REQUESTINFO+17, REQUESTINFO+19, REQUESTINFO+20, REQUESTINFO+21, REQUESTINFO+24, REQUESTINFO+26, REQUESTINFO+27, REQUESTINFO+28, REQUESTINFO+29
RESULT ADDCONTACT~, ADDCONTACT+5, ADDCONTACT+8, ADDCONTACT+12, ADDCONTACT+16, ADDCONTACT+17, ADDCONTACT+18, ADDCONTACT+21, ADDCONTACT+23, BLDRETNINFO~
, CREATECONTACT~, UPDATECONTACT~, SAVECONTACT~, SAVECONTACT+6, GETCONTACTS~, GETCONTACTS+4, GETCONTACTS+8, GETCONTACTS+11, GETCONTACTS+14, DISPCONTACT~
, DISPCONTACT+24*
RESULT("Contact" BLDRETNINFO+8*, BLDRETNINFO+9*, BLDRETNINFO+10*, BLDRETNINFO+12*, BLDRETNINFO+13*, BLDRETNINFO+14*, BLDRETNINFO+15*, BLDRETNINFO+18*, BLDRETNINFO+19*, BLDRETNINFO+20*
SDCONTEXT ADDCONTACT~, ADDCONTACT+4, GETCONTACTS~, GETCONTACTS+3
SDCONTEXT("US ER DUZ" , ASSIGNVARS+7, ASSIGNVARS+8
SDDUZ ADDCONTACT+10, ADDCONTACT+16, ADDCONTACT+17, BLDNEWATTMPT~, BLDNEWATTMPT+7, ASSIGNVARS~, ASSIGNVARS+7*, ASSIGNVARS+8*, CREATECONTACT~, CREATECONTACT+4
, UPDATECONTACT~, UPDATECONTACT+4
SEQUENCE ADDCONTACT+2~, BLDNEWATTMPT~, BLDNEWATTMPT+6, UPDATECONTACT+3*, UPDATECONTACT+4
SERVICE GETSRV+1~*, GETSRV+2, GETSRV+3, GETSRV+4*, GETSRV+5*, GETSRV+6, GETSRV+7*, GETSRV+8*, GETSRV+9
SRVSTRING BLDRETNINFO+16~, BLDRETNINFO+17*, BLDRETNINFO+18, BLDRETNINFO+19
STOPIEN BLDRETNINFO+1~, BLDRETNINFO+11*, BLDRETNINFO+12
SUBIENS ADDCONTACT+2~, CREATECONTACT+3*, CREATECONTACT+4, UPDATECONTACT+2*, UPDATECONTACT+4
VALID ADDCONTACT+2~, REQUESTINFO+2~, REQUESTINFO+7, REQUESTINFO+8, REQUESTINFO+15, REQUESTINFO+16, REQUESTINFO+24, REQUESTINFO+25
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All