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

Package: Scheduling

Routine: SDES2CRTVETAPPT


Information

SDES2CRTVETAPPT ;ALB/BLB,MGD,TJB - SDES2 CREATE VET REQ AND APPT ;Jun 17, 2024

Source Information

Source file <SDES2CRTVETAPPT.m>

Call Graph

Call Graph

Call Graph Total: 14

Package Total Call Graph
Scheduling 10 $$FMTISO^SDAMUTDT  DISPOSITION^SDES2ARCLOSE  (CREATE,VALIDATE)^SDES2CREATEAPPT  BUILDJSON^SDES2JSON  VALCONTEXT^SDES2VALCONTEXT  $$VALISODTTM^SDES2VALISODTTM  VALFILEIEN^SDES2VALUTIL  (CREATEREQUEST,VALIDATE)^SDESCREATEAPPREQ  
$$GETRES^SDESINPUTVALUTL  ERRLOG^SDESJSON  
Kernel 2 ($$FMTE,$$NOW)^XLFDT  DECODE^XLFJSON  
VA FileMan 2 FILE^DIE  $$GET1^DIQ  

Entry Points

Name Comments DBIA/ICR reference
CREATEREQANDAPPT(JSON,SDCONTEXT,REQUEST) ;
CREATEREQUEST(JSONREQUEST,REQUESTRETURN,REQUEST,REQUESTIEN,ERRORS) ;
CREATEAPPT(JSONAPPT,APPTRETURN,APPTIEN,REQUESTIEN,SDCONTEXT,ERRORS) ;
DISPOSITIONREQ(DISPOSITION,JSONDISP,SDCONTEXT,REQUESTIEN,COMMENTS) ;
DELETEREQUEST(REQUESTIEN) ;
VALIDATE(ERRORS,VALRETURN,SDCONTEXT,DFN,START,END,CLINICIEN) ;
CHECKAPPTOVERLAP(ERRORS,DFN,START,END) ; checking for overlaps with existing appointments
BUILDAPPTARRAY(REQUEST,APPOINTMENT,REQUESTIEN) ;

External References

Name Field # of Occurrence
FILE^DIE DELETEREQUEST+3
$$GET1^DIQ CHECKAPPTOVERLAP+5, CHECKAPPTOVERLAP+6
$$FMTISO^SDAMUTDT BUILDAPPTARRAY+6
DISPOSITION^SDES2ARCLOSE DISPOSITIONREQ+5
CREATE^SDES2CREATEAPPT CREATEAPPT+8
VALIDATE^SDES2CREATEAPPT CREATEAPPT+5
BUILDJSON^SDES2JSON CREATEREQANDAPPT+5, CREATEREQANDAPPT+9, CREATEREQANDAPPT+14, CREATEREQANDAPPT+21
VALCONTEXT^SDES2VALCONTEXT VALIDATE+1
$$VALISODTTM^SDES2VALISODTTM VALIDATE+6, VALIDATE+7
VALFILEIEN^SDES2VALUTIL VALIDATE+2, VALIDATE+3
CREATEREQUEST^SDESCREATEAPPREQ CREATEREQUEST+8
VALIDATE^SDESCREATEAPPREQ CREATEREQUEST+5
$$GETRES^SDESINPUTVALUTL BUILDAPPTARRAY+4
ERRLOG^SDESJSON CHECKAPPTOVERLAP+9
$$FMTE^XLFDT DISPOSITIONREQ+3
$$NOW^XLFDT DISPOSITIONREQ+3
DECODE^XLFJSON CREATEREQUEST+9, CREATEAPPT+9

Used in RPC

RPC Name Call Tags
SDES2 CREATE VET REQ AND APPT CREATEREQANDAPPT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^SDEC(409.84 - [#409.84] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^SDEC(409.84 - [#409.84] CHECKAPPTOVERLAP+4

Label References

Name Line Occurrences
BUILDAPPTARRAY CREATEAPPT+2
CHECKAPPTOVERLAP VALIDATE+4
CREATEAPPT CREATEREQANDAPPT+13
CREATEREQUEST CREATEREQANDAPPT+8
DELETEREQUEST CREATEREQANDAPPT+14
DISPOSITIONREQ CREATEREQANDAPPT+18
VALIDATE CREATEREQANDAPPT+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPOINTMENT CREATEREQANDAPPT+1~, CREATEAPPT+2, CREATEAPPT+4, CREATEAPPT+8, BUILDAPPTARRAY~
APPOINTMENT(" APPOINTMENT LENGTH" , BUILDAPPTARRAY+15*, APPOINTMENT REASON" , BUILDAPPTARRAY+20*, APPOINTMENT TYPE NAME" , BUILDAPPTARRAY+13*, APPOINTMENT TYPE" , BUILDAPPTARRAY+12*, CLINIC IEN" , BUILDAPPTARRAY+10*
, EKG DATE TIME" , BUILDAPPTARRAY+25*, END DATE TIME" , BUILDAPPTARRAY+2*, EXTERNAL ID" , BUILDAPPTARRAY+7*, LAB DATE TIME" , BUILDAPPTARRAY+23*, MRTC PARENT" , BUILDAPPTARRAY+19*
, NEXT AVAILABLE APPOINTMENT" , BUILDAPPTARRAY+29*, PATIENT ELIGIBILITY" , BUILDAPPTARRAY+21*, PATIENT INDICATED DATE" , BUILDAPPTARRAY+6*, PATIENT STATUS" , BUILDAPPTARRAY+14*, PROVIDER IEN" , BUILDAPPTARRAY+9*
, REQUEST TYPE" , BUILDAPPTARRAY+8*, RESOURCE IEN" , BUILDAPPTARRAY+4*, SCHEDULE REQUEST TYPE" , BUILDAPPTARRAY+28*, SERVICE CONNECTED PERCENTAGE" , BUILDAPPTARRAY+17*, SERVICE CONNECTED" , BUILDAPPTARRAY+16*
, START DATE TIME" , BUILDAPPTARRAY+1*, XRAY DATE TIME" , BUILDAPPTARRAY+24*
APPOINTMENT("COLLATERAL" BUILDAPPTARRAY+27*
APPOINTMENT("DFN" BUILDAPPTARRAY+3*
APPOINTMENT("FOLLOWUP" BUILDAPPTARRAY+30*
APPOINTMENT("MRTC" BUILDAPPTARRAY+18*
APPOINTMENT("NOTE" BUILDAPPTARRAY+11*
APPOINTMENT("OVERBOOK" BUILDAPPTARRAY+22*
APPOINTMENT("PURPOSE" BUILDAPPTARRAY+26*
APPOINTMENT("WALKIN" BUILDAPPTARRAY+5*
APPTEND CHECKAPPTOVERLAP+1~, CHECKAPPTOVERLAP+6*, CHECKAPPTOVERLAP+7, CHECKAPPTOVERLAP+8
APPTIEN CREATEREQANDAPPT+13, CREATEREQANDAPPT+15, CREATEAPPT~, CREATEAPPT+10*, CHECKAPPTOVERLAP+1~, CHECKAPPTOVERLAP+3*, CHECKAPPTOVERLAP+4*, CHECKAPPTOVERLAP+5, CHECKAPPTOVERLAP+6
APPTRETURN CREATEREQANDAPPT+1~, CREATEREQANDAPPT+13, CREATEAPPT~
APPTRETURN("Appointment" CREATEAPPT+10
APPTSTART CHECKAPPTOVERLAP+1~, CHECKAPPTOVERLAP+5*, CHECKAPPTOVERLAP+7, CHECKAPPTOVERLAP+8
CLINICIEN VALIDATE~, VALIDATE+3, VALIDATE+6, VALIDATE+7
COMMENTS DISPOSITIONREQ~, DISPOSITIONREQ+4
DFN VALIDATE~, VALIDATE+2, VALIDATE+4, CHECKAPPTOVERLAP~, CHECKAPPTOVERLAP+4
DISPOSITION CREATEREQANDAPPT+1~, CREATEREQANDAPPT+18, DISPOSITIONREQ~, DISPOSITIONREQ+5
DISPOSITION(" REQUEST ID" , DISPOSITIONREQ+2*
DISPOSITION("DISP" DISPOSITIONREQ+1*
DISPOSITION("DISPDT" DISPOSITIONREQ+3*
DISPOSITION("PATCMMTS" DISPOSITIONREQ+4*
END VALIDATE~, VALIDATE+4, VALIDATE+7*, CHECKAPPTOVERLAP~, CHECKAPPTOVERLAP+8
ERRORS CREATEREQANDAPPT+1~, CREATEREQANDAPPT+4, CREATEREQANDAPPT+5, CREATEREQANDAPPT+8, CREATEREQANDAPPT+9, CREATEREQANDAPPT+13, CREATEREQANDAPPT+14, CREATEREQUEST~, CREATEREQUEST+5, CREATEREQUEST+6
, CREATEAPPT~, CREATEAPPT+5, CREATEAPPT+6, VALIDATE~, VALIDATE+1, VALIDATE+2, VALIDATE+3, VALIDATE+4, VALIDATE+6, VALIDATE+7
, CHECKAPPTOVERLAP~, CHECKAPPTOVERLAP+9
ERRORS("Appointment" CREATEREQANDAPPT+5*, CREATEREQANDAPPT+9*, CREATEREQANDAPPT+14*
ERRORS("Request" CREATEREQANDAPPT+5*, CREATEREQANDAPPT+9*, CREATEREQANDAPPT+14*
FDA DELETEREQUEST+1~, DELETEREQUEST+3!
FDA( DELETEREQUEST+2*
INSTITUTIONIEN CREATEREQUEST+1~, CREATEREQUEST+5
JSON CREATEREQANDAPPT~, CREATEREQANDAPPT+5, CREATEREQANDAPPT+9, CREATEREQANDAPPT+14, CREATEREQANDAPPT+21
JSONAPPT CREATEREQANDAPPT+1~, CREATEREQANDAPPT+13, CREATEAPPT~, CREATEAPPT+8
JSONDISP CREATEREQANDAPPT+1~, CREATEREQANDAPPT+18, DISPOSITIONREQ~, DISPOSITIONREQ+5
JSONREQUEST CREATEREQANDAPPT+1~, CREATEREQANDAPPT+8, CREATEREQUEST~, CREATEREQUEST+8
OVERLAP CHECKAPPTOVERLAP+1~, CHECKAPPTOVERLAP+3*, CHECKAPPTOVERLAP+4, CHECKAPPTOVERLAP+7*, CHECKAPPTOVERLAP+8*, CHECKAPPTOVERLAP+9
REQUEST CREATEREQANDAPPT~, CREATEREQANDAPPT+8, CREATEREQUEST~, CREATEREQUEST+4, CREATEREQUEST+8, CREATEAPPT+2, BUILDAPPTARRAY~
REQUEST("APPO INTMENT END TIME" , CREATEREQANDAPPT+4, BUILDAPPTARRAY+2, INTMENT LENGTH" , BUILDAPPTARRAY+15, INTMENT REASON" , BUILDAPPTARRAY+20, INTMENT START TIME" , CREATEREQANDAPPT+4, BUILDAPPTARRAY+1
, INTMENT TYPE IEN" , BUILDAPPTARRAY+12, INTMENT TYPE NAME" , BUILDAPPTARRAY+13
REQUEST("CLIN IC IEN" , CREATEREQANDAPPT+4, BUILDAPPTARRAY+4, BUILDAPPTARRAY+10
REQUEST("COLL ATERAL VISIT" , BUILDAPPTARRAY+27
REQUEST("DFN" CREATEREQANDAPPT+4, BUILDAPPTARRAY+3
REQUEST("FOLLOWUP" BUILDAPPTARRAY+30
REQUEST("NOTE" BUILDAPPTARRAY+11
REQUEST("OVERBOOK" BUILDAPPTARRAY+22
REQUEST("PATI ENT COMMENT" , CREATEREQANDAPPT+18, ENT ELIGIBILITY IEN" , BUILDAPPTARRAY+21, ENT INDICATED DATE" , BUILDAPPTARRAY+6, ENT STATUS" , BUILDAPPTARRAY+14
REQUEST("REQU EST SUB TYPE" , CREATEREQUEST+3*, ESTED BY" , CREATEREQUEST+2*
REQUEST("SERV ICE CONNECTED PERCENTAGE" , BUILDAPPTARRAY+17, ICE CONNECTED" , BUILDAPPTARRAY+16
REQUESTIEN CREATEREQANDAPPT+1~, CREATEREQANDAPPT+8, CREATEREQANDAPPT+10, CREATEREQANDAPPT+13, CREATEREQANDAPPT+14, CREATEREQANDAPPT+18, CREATEREQUEST~, CREATEREQUEST+10*, CREATEAPPT~, CREATEAPPT+2
, DISPOSITIONREQ~, DISPOSITIONREQ+2, DELETEREQUEST~, DELETEREQUEST+2, BUILDAPPTARRAY~, BUILDAPPTARRAY+8
REQUESTRETURN CREATEREQANDAPPT+1~, CREATEREQANDAPPT+8, CREATEREQUEST~
REQUESTRETURN("Request" CREATEREQUEST+10
RETURN CREATEREQANDAPPT+1~, CREATEREQANDAPPT+21
RETURN("Appointment" CREATEREQANDAPPT+15*
RETURN("Request" CREATEREQANDAPPT+10*
SDCONTEXT CREATEREQANDAPPT~, CREATEREQANDAPPT+4, CREATEREQANDAPPT+13, CREATEREQANDAPPT+18, CREATEAPPT~, CREATEAPPT+5, CREATEAPPT+8, DISPOSITIONREQ~, DISPOSITIONREQ+5, VALIDATE~
, VALIDATE+1
START VALIDATE~, VALIDATE+4, VALIDATE+6*, CHECKAPPTOVERLAP~, CHECKAPPTOVERLAP+7
VAL CREATEAPPT+1~, CREATEAPPT+5
VALIDATEAPPT CREATEAPPT+1~, CREATEAPPT+4*, CREATEAPPT+5
VALIDATEREQUEST CREATEREQUEST+1~, CREATEREQUEST+4*, CREATEREQUEST+5
VALRETURN CREATEREQANDAPPT+1~, CREATEREQANDAPPT+4, VALIDATE~, VALIDATE+2, VALIDATE+3
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All