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

Package: Scheduling

Routine: SDESCHECKIN


Information

SDESCHECKIN ;ALB/LAB - SDES VISTA SCHEDULING RPCS CHECK IN APPOINTMENT ;Sep 14,2022@16:15

Source Information

Source file <SDESCHECKIN.m>

Call Graph

Call Graph

Call Graph Total: 8

Package Total Call Graph
Scheduling 5 ($$HANDLE,AFTER,BEFORE,EVT)^SDAMEVT  $$ISOTFM^SDAMUTDT  GETVISIT^SDECAPI4  BUILDJSON^SDESBUILDJSON  ERRLOG^SDESJSON  
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: 1

Package Total Caller Graph
Scheduling 1 SDESCRTWALKIN  

Entry Points

Name Comments DBIA/ICR reference
CHECKIN(SDRETURN,SDAPPTIEN,SDCHECKINDTTIM,SDPROVIDER) ;Check in appointment
VALIDATEAPPT(ERRORS,SDAPPTIEN) ;validate SDEC appointment ID
VALIDATECHKINDT(ERRORS,SDCHECKINDTTIM,SDAPPTIEN,SDCLINICIEN) ;validate checkin date/time (required)
; need to change to accept ISO 8601 date/time
ASSIGNCLININFO(SDAPPTIEN,SDCLINICIEN,SDCLINSTOP) ;
VALIDATEPROV(ERRORS,SDPROVIDER) ;validate provider (optional)
PROCESSCHECKIN(SDAPPTIEN,SDPROVIDER,ERRORS) ;
SDECCHK(SDAPPTIEN,SDCHECKINDTTIM,SDPROVIDER) ;
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)
VALID(DFN,CLINICIEN,APPTDTTM,SDDA) ; -- return valid appt. 1 for valid appt., 0 for not valid
BUILDERROR(RESULT,JSONRETURN) ;

External References

Name Field # of Occurrence
FILE^DIE SDECCHK+6
$$GET1^DIQ ASSIGNCLININFO+1, ASSIGNCLININFO+2, PROCESSCHECKIN+2, PROCESSCHECKIN+3, PROCESSCHECKIN+4, PROCESSCHECKIN+6, VALID+1, VALID+2
$$HANDLE^SDAMEVT PROCESSCHECKIN+14
AFTER^SDAMEVT PROCESSCHECKIN+24
BEFORE^SDAMEVT PROCESSCHECKIN+15
EVT^SDAMEVT PROCESSCHECKIN+28
$$ISOTFM^SDAMUTDT VALIDATECHKINDT+4
GETVISIT^SDECAPI4 APCHK+21
BUILDJSON^SDESBUILDJSON CHECKIN+16, BUILDERROR+3
ERRLOG^SDESJSON VALIDATEAPPT+2, VALIDATEAPPT+3, VALIDATECHKINDT+3, VALIDATECHKINDT+5, VALIDATEPROV+2, PROCESSCHECKIN+8
$$NOW^XLFDT SDECCHK+4

Used in RPC

RPC Name Call Tags
SDES CHECKIN CHECKIN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
2.98 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+8, FIND+10, FIND+11, FIND+12
^SDEC(409.831 - [#409.831] PROCESSCHECKIN+5
^SDEC(409.84 - [#409.84] VALIDATEAPPT+3
^VA(200 - [#200] VALIDATEPROV+2

Label References

Name Line Occurrences
$$FIND PROCESSCHECKIN+13
$$VALID FIND+14
APCHK PROCESSCHECKIN+20
ASSIGNCLININFO CHECKIN+8
PROCESSCHECKIN CHECKIN+13
SDECCHK PROCESSCHECKIN+19
VALIDATEAPPT CHECKIN+7
VALIDATECHKINDT CHECKIN+9
VALIDATEPROV CHECKIN+10

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT CHECKIN+4~
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+2~
CLINICIEN FIND~, FIND+10, FIND+11, FIND+12, FIND+14, VALID~, VALID+1
CLNAPPTIEN FIND+6~, FIND+7*, FIND+10*, FIND+11, FIND+12, FIND+14, FIND+16
DA CHECKIN+3~
DFN CHECKIN+3~, PROCESSCHECKIN+1~, PROCESSCHECKIN+2*, PROCESSCHECKIN+13, PROCESSCHECKIN+14, PROCESSCHECKIN+15, PROCESSCHECKIN+20, PROCESSCHECKIN+24, FIND~, FIND+12
, FIND+13, FIND+14, APCHK~, APCHK+4, VALID~, VALID+2
DIK CHECKIN+3~
DUZ APCHK+10
DUZ(2 APCHK+15
EMSG CHECKIN+2~
ERRORS CHECKIN+2~, CHECKIN+7, CHECKIN+8, CHECKIN+9, CHECKIN+10, CHECKIN+11, CHECKIN+12, CHECKIN+13, CHECKIN+14, VALIDATEAPPT~
, VALIDATEAPPT+2, VALIDATEAPPT+3, VALIDATECHKINDT~, VALIDATECHKINDT+3, VALIDATECHKINDT+5, VALIDATEPROV~, VALIDATEPROV+2, PROCESSCHECKIN~, PROCESSCHECKIN+8, PROCESSCHECKIN+29
FND FIND+6~, FIND+9*, FIND+10, FIND+15*
JSONRETURN BUILDERROR~, BUILDERROR+3
RESULT BUILDERROR~, BUILDERROR+2
RETURN CHECKIN+2~, CHECKIN+11*, CHECKIN+16, PROCESSCHECKIN+29*
RETURN("Checkin" CHECKIN+15*
RETURNERROR BUILDERROR+1~, BUILDERROR+2*, BUILDERROR+3
SDAPPTIEN CHECKIN~, CHECKIN+7, CHECKIN+8, CHECKIN+9, CHECKIN+13, VALIDATEAPPT~, VALIDATEAPPT+2, VALIDATEAPPT+3, VALIDATECHKINDT~, ASSIGNCLININFO~
, ASSIGNCLININFO+1, PROCESSCHECKIN~, PROCESSCHECKIN+2, PROCESSCHECKIN+3, PROCESSCHECKIN+4, PROCESSCHECKIN+19, SDECCHK~, SDECCHK+2
SDATA PROCESSCHECKIN+12~, PROCESSCHECKIN+14*, PROCESSCHECKIN+15, PROCESSCHECKIN+24, PROCESSCHECKIN+28
SDCHECKINDTTIM CHECKIN~, CHECKIN+9, VALIDATECHKINDT~, VALIDATECHKINDT+2*, VALIDATECHKINDT+3, VALIDATECHKINDT+4*, VALIDATECHKINDT+5, PROCESSCHECKIN+19, PROCESSCHECKIN+20, SDECCHK~
, SDECCHK+3, SDECCHK+4, APCHK~, APCHK+9, APCHK+14
SDCIHDL PROCESSCHECKIN+12~, PROCESSCHECKIN+14*, PROCESSCHECKIN+15, PROCESSCHECKIN+24, PROCESSCHECKIN+28
SDCLINICIEN CHECKIN+8, CHECKIN+9, VALIDATECHKINDT~, VALIDATECHKINDT+4, ASSIGNCLININFO~, ASSIGNCLININFO+1*, ASSIGNCLININFO+2
SDCLINSTOP CHECKIN+8, ASSIGNCLININFO~, ASSIGNCLININFO+2*, APCHK+6
SDDA PROCESSCHECKIN+12~, PROCESSCHECKIN+13*, PROCESSCHECKIN+14, PROCESSCHECKIN+15, PROCESSCHECKIN+24, VALID~, VALID+1
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+4~
SDECFDA SDECCHK+1~
SDECFDA( SDECCHK+3*, SDECCHK+4*, SDECCHK+5*
SDECI CHECKIN+3~
SDECID CHECKIN+3~
SDECIENS CHECKIN+3~, SDECCHK+2*, SDECCHK+3, SDECCHK+4, SDECCHK+5
SDECMSG SDECCHK+1~
SDECNOD CHECKIN+3~
SDECNOEV CHECKIN+4~, CHECKIN+5*
SDECOUT APCHK+20~, APCHK+21
SDECSTART CHECKIN+3~, PROCESSCHECKIN+1~, PROCESSCHECKIN+3*, PROCESSCHECKIN+13, PROCESSCHECKIN+14, PROCESSCHECKIN+15, PROCESSCHECKIN+20, PROCESSCHECKIN+24, APCHK~, APCHK+8
SDECVEN CHECKIN+3~
SDPROVIDER CHECKIN~, CHECKIN+10, CHECKIN+13, VALIDATEPROV~, VALIDATEPROV+1*, VALIDATEPROV+2, PROCESSCHECKIN~, PROCESSCHECKIN+19, SDECCHK~, SDECCHK+5
, APCHK+7
SDRESCLIN PROCESSCHECKIN+6*, PROCESSCHECKIN+8, PROCESSCHECKIN+13, PROCESSCHECKIN+14, PROCESSCHECKIN+15, PROCESSCHECKIN+20, PROCESSCHECKIN+24, APCHK~, APCHK+5
SDRESOURCE CHECKIN+4~, PROCESSCHECKIN+1~, PROCESSCHECKIN+4*, PROCESSCHECKIN+5, PROCESSCHECKIN+6
SDRETURN CHECKIN~, CHECKIN+16
U PROCESSCHECKIN+14
X CHECKIN+4~
Y CHECKIN+4~
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