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

Package: Scheduling

Routine: SDES2CHECKIN


Information

SDES2CHECKIN ;ALB/LAB,TJB,JAS - SDES VISTA SCHEDULING SDES2 CHECKIN ;May 1,2024@10:00

Source Information

Source file <SDES2CHECKIN.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Scheduling 8 ($$HANDLE,AFTER,BEFORE,EVT)^SDAMEVT  GETVISIT^SDES2GETVISIT  (BUILDJSON,ERRLOG)^SDES2JSON  VALPROVIDER^SDES2VAL200  VALCONTEXT^SDES2VALCONTEXT  $$VALISODTTM^SDES2VALISODTTM  VALFILEIEN^SDES2VALUTIL  BUILDJSON^SDESBUILDJSON  
VA FileMan 2 FILE^DIE  $$GET1^DIQ  
Kernel 1 $$NOW^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: 2

Package Total Caller Graph
Scheduling 2 SDES2APPTCKNSTEP  SDES2CRTWALKIN  

Entry Points

Name Comments DBIA/ICR reference
CHECKIN(SDRETURN,SDCONTEXT,SDPARAM) ;Check in appointment
VALIDATEAPPT(ERRORS,SDAPPTIEN) ;validate SDEC appointment ID
VALIDATECHKINDT(ERRORS,SDCHECKINDTTIM,SDCLINICIEN) ;validate checkin date/time (required)
; need to change to accept ISO 8601 date/time
ASSIGNCLININFO(SDAPPTIEN,CLINICIEN,CLINICSTOP) ;
PROCESSCHECKIN(SDAPPTIEN,SDPROVIDER,SDCLINICIEN,SDDUZ,SDCLINICSTOP,SDCHECKINDTTIM,SDACHAUDIT,ERRORS) ;
SDECCHK(SDAPPTIEN,SDCHECKINDTTIM,SDPROVIDER,SDACHAUDIT) ;
FIND(DFN,APPTDTTM,CLINICIEN) ; -- return appt ifn for pat
; input: DFN := ifn of pat.
; APPTDTTM := appt d/t
; SDCL := ifn of clinic
; output: [returned] := ifn if pat has appt on date/time
APCHK(SDRESCLIN,DFN,SDCHECKINDTTIM,SDECSTART,SDDUZ,SDCLINSTOP,SDPROVIDER) ;
VALID(DFN,CLINICIEN,APPTDTTM,SDDA) ; -- return valid appt. 1 for valid appt., 0 for not valid
GETSITECODE(CLINICIEN) ; Get the SITE/INSTITUTION from the CLINIC IEN otherwise use DUZ(2)
BUILDERROR(RESULT,JSONRETURN) ;

External References

Name Field # of Occurrence
FILE^DIE SDECCHK+7
$$GET1^DIQ ASSIGNCLININFO+1, ASSIGNCLININFO+2, PROCESSCHECKIN+2, PROCESSCHECKIN+3, PROCESSCHECKIN+4, VALID+1, VALID+2, GETSITECODE+2, GETSITECODE+3
$$HANDLE^SDAMEVT PROCESSCHECKIN+12
AFTER^SDAMEVT PROCESSCHECKIN+20
BEFORE^SDAMEVT PROCESSCHECKIN+13
EVT^SDAMEVT PROCESSCHECKIN+24
GETVISIT^SDES2GETVISIT APCHK+21
BUILDJSON^SDES2JSON CHECKIN+25, CHECKIN+36
ERRLOG^SDES2JSON PROCESSCHECKIN+6
VALPROVIDER^SDES2VAL200 CHECKIN+30
VALCONTEXT^SDES2VALCONTEXT CHECKIN+24
$$VALISODTTM^SDES2VALISODTTM VALIDATECHKINDT+2
VALFILEIEN^SDES2VALUTIL VALIDATEAPPT+3
BUILDJSON^SDESBUILDJSON BUILDERROR+3
$$NOW^XLFDT SDECCHK+4

Used in RPC

RPC Name Call Tags
SDES2 CHECKIN CHECKIN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
2.98 GET1^DIQ
^DG(40.8 - [#40.8] GET1^DIQ
^SDEC(409.831 - [#409.831] GET1^DIQ
^SDEC(409.84 - [#409.84] GET1^DIQ
^SC - [#44] GET1^DIQ
44.003 GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] FIND+13
^SC - [#44] PROCESSCHECKIN+6, FIND+10, FIND+11, FIND+12
^SDEC(409.831 - [#409.831] PROCESSCHECKIN+7

Label References

Name Line Occurrences
$$FIND PROCESSCHECKIN+11
$$GETSITECODE APCHK+15
$$VALID FIND+14
$$VALIDATECHKINDT CHECKIN+29
APCHK PROCESSCHECKIN+17
ASSIGNCLININFO CHECKIN+27
PROCESSCHECKIN CHECKIN+33
SDECCHK PROCESSCHECKIN+16
VALIDATEAPPT CHECKIN+26

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT CHECKIN+21~
APPTDTTM FIND~, FIND+10, FIND+11, FIND+12, FIND+13, FIND+14, VALID~, VALID+1, VALID+2
APPTIEN FIND+6~, FIND+8*, FIND+16*, FIND+17
BSDMSG APCHK+3~
BSDVSTN CHECKIN+19~
CLINICIEN ASSIGNCLININFO~, ASSIGNCLININFO+1*, ASSIGNCLININFO+2, FIND~, FIND+10, FIND+11, FIND+12, FIND+14, VALID~, VALID+1
, GETSITECODE~, GETSITECODE+2
CLINICSITECODE GETSITECODE+1~, GETSITECODE+3*, GETSITECODE+4
CLINICSTOP ASSIGNCLININFO~, ASSIGNCLININFO+2*
CLNAPPTIEN FIND+6~, FIND+7*, FIND+10*, FIND+11, FIND+12, FIND+14, FIND+16
DA CHECKIN+20~
DFN CHECKIN+20~, PROCESSCHECKIN+1~, PROCESSCHECKIN+2*, PROCESSCHECKIN+11, PROCESSCHECKIN+12, PROCESSCHECKIN+13, PROCESSCHECKIN+17, PROCESSCHECKIN+20, FIND~, FIND+12
, FIND+13, FIND+14, APCHK~, APCHK+4, VALID~, VALID+2
DIK CHECKIN+20~
DUZ APCHK+10
DUZ(2 GETSITECODE+4
EMSG CHECKIN+19~
ERRORS CHECKIN+19~, CHECKIN+24, CHECKIN+25, CHECKIN+26, CHECKIN+27, CHECKIN+29, CHECKIN+30, CHECKIN+31, CHECKIN+32, CHECKIN+33
, CHECKIN+34, VALIDATEAPPT~, VALIDATEAPPT+3, VALIDATECHKINDT~, VALIDATECHKINDT+2, PROCESSCHECKIN~, PROCESSCHECKIN+6
ERRORS("Checkin" CHECKIN+25*, CHECKIN+31*
FND FIND+6~, FIND+9*, FIND+10, FIND+15*
JSONRETURN BUILDERROR~, BUILDERROR+3
RESULT BUILDERROR~, BUILDERROR+2
RET VALIDATEAPPT+2~, VALIDATEAPPT+3
RETURN CHECKIN+19~, CHECKIN+31*, CHECKIN+36
RETURN("Checkin" CHECKIN+35*
RETURNERROR BUILDERROR+1~, BUILDERROR+2*, BUILDERROR+3
SDACHAUDIT PROCESSCHECKIN~, PROCESSCHECKIN+16, SDECCHK~, SDECCHK+6
SDAPPTIEN VALIDATEAPPT~, VALIDATEAPPT+3, ASSIGNCLININFO~, ASSIGNCLININFO+1, PROCESSCHECKIN~, PROCESSCHECKIN+2, PROCESSCHECKIN+3, PROCESSCHECKIN+4, PROCESSCHECKIN+16, SDECCHK~
, SDECCHK+2
SDATA PROCESSCHECKIN+10~, PROCESSCHECKIN+12*, PROCESSCHECKIN+13, PROCESSCHECKIN+20, PROCESSCHECKIN+24
SDCHECKINDTTIM VALIDATECHKINDT~, VALIDATECHKINDT+2*, VALIDATECHKINDT+3, PROCESSCHECKIN~, PROCESSCHECKIN+16, PROCESSCHECKIN+17, SDECCHK~, SDECCHK+3, SDECCHK+4, APCHK~
, APCHK+9, APCHK+14
SDCIHDL PROCESSCHECKIN+10~, PROCESSCHECKIN+12*, PROCESSCHECKIN+13, PROCESSCHECKIN+20, PROCESSCHECKIN+24
SDCLINICIEN CHECKIN+20~, CHECKIN+27, CHECKIN+29, CHECKIN+33, VALIDATECHKINDT~, VALIDATECHKINDT+2, PROCESSCHECKIN~, PROCESSCHECKIN+6, PROCESSCHECKIN+11, PROCESSCHECKIN+12
, PROCESSCHECKIN+13, PROCESSCHECKIN+17, PROCESSCHECKIN+20
SDCLINICSTOP PROCESSCHECKIN~, PROCESSCHECKIN+17
SDCLINSTOP CHECKIN+27, CHECKIN+33, APCHK~, APCHK+6
SDCONTEXT CHECKIN~, CHECKIN+24
SDCONTEXT("AC HERON AUDIT ID" , CHECKIN+33
SDCONTEXT("US ER DUZ" , CHECKIN+33
SDDA PROCESSCHECKIN+10~, PROCESSCHECKIN+11*, PROCESSCHECKIN+12, PROCESSCHECKIN+13, PROCESSCHECKIN+20, VALID~, VALID+1
SDDIV GETSITECODE+1~, GETSITECODE+2*, GETSITECODE+3
SDDUZ PROCESSCHECKIN~, PROCESSCHECKIN+17, APCHK~, APCHK+10
SDECC APCHK+3~, APCHK+21
SDECC("ADT" APCHK+18*
SDECC("APPT D ATE" , APCHK+8*, APCHK+18
SDECC("CDT" APCHK+9*
SDECC("CLINIC CODE" , APCHK+6*
SDECC("CLN" APCHK+17*
SDECC("HOS LO C" , APCHK+5*, APCHK+17
SDECC("PAT" APCHK+4*
SDECC("PROVIDER" APCHK+7*
SDECC("SITE" APCHK+15*
SDECC("SRV CA T" , APCHK+12*
SDECC("TIME R ANGE" , APCHK+13*
SDECC("USR" APCHK+10*
SDECC("VISIT DATE" , APCHK+14*, TYPE" , APCHK+16*
SDECCAN CHECKIN+21~
SDECFDA SDECCHK+1~
SDECFDA( SDECCHK+3*, SDECCHK+4*, SDECCHK+5*, SDECCHK+6*
SDECI CHECKIN+20~
SDECID CHECKIN+20~
SDECIENS CHECKIN+20~, SDECCHK+2*, SDECCHK+3, SDECCHK+4, SDECCHK+5, SDECCHK+6
SDECMSG SDECCHK+1~
SDECNOD CHECKIN+20~
SDECNOEV CHECKIN+21~, CHECKIN+22*
SDECOUT APCHK+20~, APCHK+21
SDECSTART CHECKIN+20~, PROCESSCHECKIN+1~, PROCESSCHECKIN+3*, PROCESSCHECKIN+11, PROCESSCHECKIN+12, PROCESSCHECKIN+13, PROCESSCHECKIN+17, PROCESSCHECKIN+20, APCHK~, APCHK+8
SDECVEN CHECKIN+20~
SDPARAM CHECKIN~
SDPARAM("APPO INTMENT IEN" , CHECKIN+26, CHECKIN+27, CHECKIN+33
SDPARAM("CHEC KIN DATE TIME" , CHECKIN+28*, CHECKIN+29*, CHECKIN+33
SDPARAM("PROVIDER" CHECKIN+30, CHECKIN+33
SDPROVIDER PROCESSCHECKIN~, PROCESSCHECKIN+16, PROCESSCHECKIN+17, SDECCHK~, SDECCHK+5, APCHK~, APCHK+7
SDRESCLIN APCHK~, APCHK+5, APCHK+15
SDRESOURCE CHECKIN+21~, PROCESSCHECKIN+1~, PROCESSCHECKIN+4*, PROCESSCHECKIN+7
SDRETURN CHECKIN~, CHECKIN+25, CHECKIN+36
U PROCESSCHECKIN+12
X CHECKIN+21~
Y CHECKIN+21~
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