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

Package: Scheduling

Routine: SDES2EDITAPREQ


Information

SDES2EDITAPREQ ;ALB/BWF,JAS,JAS,TJB/JAS - EDIT APPOINTMENT REQUEST; APR 2, 2024

Source Information

Source file <SDES2EDITAPREQ.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Scheduling 7 $$DUPPIDCHK^SDES2CANCELAPPT  (ADDPIDHISTORY,VALCREDITAMIS,VALIDATEDATEPREF,VALPRIMAMIS)^SDES2CRTAPREQ  (BUILDJSON,ERRLOG)^SDES2JSON  CONDAMISCHECK^SDES2VAL44  VALCONTEXT^SDES2VALCONTEXT  $$VALISODTTM^SDES2VALISODTTM  (VALFIELD,VALFILEIEN)^SDES2VALUTIL  
VA FileMan 3 $$FIND1^DIC  (FILE,UPDATE,WP)^DIE  $$GET1^DIQ  
Kernel 1 $$NOW^XLFDT  

Entry Points

Name Comments DBIA/ICR reference
EDITREQUEST(JSONRETURN,SDCONTEXT,REQUEST) ;
VALIDATE(REQUEST,FILEDATA,INSTITUTIONIEN,ERRORS) ;
BUILDER(REQUEST,INSTITUTIONIEN,EAS,EDITUSER) ;
BUILDAPPTDATA(REQIEN,APPTDATETIME,CLINICIEN,SERVCONNPERC,SERVCONN,APPTTYPE,EAS,USER) ;
EDITMRTCLINKS(REQUEST,REQIEN) ;
EDITMRTCPID(REQUEST,REQIEN) ;
EDITPRNTPIDMULT(REQUEST,PARENTIEN,ORIGPID) ;
BUILDMRTCLINKS(REQUEST,REQIEN) ; called from SDESCREATEAPPT after appt is made from mrtc child
BUILDMRTCPID(REQUEST,REQIEN) ; called from SDESCREATEAPPT after appt is made from mrtc child
BUILDCOMMENTS(REQUEST,REQIEN) ;
AUDIT(REQIEN,CLINICIEN,STOPCODE,USER) ;
STATIONTOINST(ERRORS,STATIONNUM,INSTNAME) ; station number has precedence over institution name

External References

Name Field # of Occurrence
$$FIND1^DIC BUILDAPPTDATA+17, STATIONTOINST+4, STATIONTOINST+5
FILE^DIE BUILDER+25, BUILDAPPTDATA+19, BUILDAPPTDATA+30, EDITMRTCLINKS+7, EDITMRTCPID+6, EDITPRNTPIDMULT+5
UPDATE^DIE BUILDMRTCLINKS+4, BUILDMRTCPID+6, AUDIT+6
WP^DIE BUILDCOMMENTS+5, BUILDCOMMENTS+10
$$GET1^DIQ VALIDATE+10, VALIDATE+14, VALIDATE+87, VALIDATE+93, BUILDER+3, BUILDAPPTDATA+7, BUILDAPPTDATA+8, BUILDAPPTDATA+9, BUILDAPPTDATA+22, BUILDAPPTDATA+27
, BUILDMRTCPID+3
$$DUPPIDCHK^SDES2CANCELAPPT VALIDATE+34
ADDPIDHISTORY^SDES2CRTAPREQ BUILDER+27
VALCREDITAMIS^SDES2CRTAPREQ VALIDATE+29
VALIDATEDATEPREF^SDES2CRTAPREQ VALIDATE+72
VALPRIMAMIS^SDES2CRTAPREQ VALIDATE+28
BUILDJSON^SDES2JSON EDITREQUEST+4, EDITREQUEST+9, EDITREQUEST+13
ERRLOG^SDES2JSON VALIDATE+10, VALIDATE+14, VALIDATE+23, VALIDATE+25, VALIDATE+27, VALIDATE+34, VALIDATE+87, VALIDATE+89, VALIDATE+94, STATIONTOINST+2
, STATIONTOINST+4, STATIONTOINST+5
CONDAMISCHECK^SDES2VAL44 VALIDATE+30
VALCONTEXT^SDES2VALCONTEXT EDITREQUEST+3
$$VALISODTTM^SDES2VALISODTTM VALIDATE+33
VALFIELD^SDES2VALUTIL VALIDATE+17, VALIDATE+37, VALIDATE+41, VALIDATE+51, VALIDATE+53, VALIDATE+57, VALIDATE+61, VALIDATE+65, VALIDATE+69, VALIDATE+75
, VALIDATE+78, VALIDATE+81
VALFILEIEN^SDES2VALUTIL VALIDATE+6, VALIDATE+9, VALIDATE+21, VALIDATE+45, VALIDATE+85
$$NOW^XLFDT BUILDAPPTDATA+5, BUILDAPPTDATA+15, AUDIT+2

Used in RPC

RPC Name Call Tags
SDES2 EDIT APPT REQ EDITREQUEST

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(4 - [#4] FIND1^DIC
^DG(40.8 - [#40.8] GET1^DIQ
^SDEC(409.85 - [#409.85] GET1^DIQ,  WP^DIE
^SDEC(409.853 - [#409.853] FIND1^DIC
^SC - [#44] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^SDEC(409.85 - [#409.85] VALIDATE+89, VALIDATE+91, BUILDAPPTDATA+26, EDITMRTCLINKS+3, EDITMRTCPID+3, EDITPRNTPIDMULT+3, BUILDMRTCLINKS+2, BUILDMRTCPID+4

Label References

Name Line Occurrences
$$BUILDER EDITREQUEST+11
$$STATIONTOINST VALIDATE+48
AUDIT BUILDER+38
BUILDCOMMENTS BUILDER+29
EDITPRNTPIDMULT BUILDER+34
VALIDATE EDITREQUEST+8

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
APPTDATETIME BUILDAPPTDATA~, BUILDAPPTDATA+4
APPTTYPE BUILDAPPTDATA~, BUILDAPPTDATA+3
CHILDIEN VALIDATE+1~, VALIDATE+90*, VALIDATE+91*, VALIDATE+92, VALIDATE+93, BUILDAPPTDATA+24~, BUILDAPPTDATA+25*, BUILDAPPTDATA+26*, BUILDAPPTDATA+27
CLINICIEN VALIDATE+1~, BUILDAPPTDATA~, BUILDAPPTDATA+6, BUILDAPPTDATA+7, BUILDAPPTDATA+8, BUILDAPPTDATA+9, AUDIT~, AUDIT+4
CURPID VALIDATE+1~
DATERANGE1 BUILDCOMMENTS+1~, BUILDCOMMENTS+7*
DATERANGE2 BUILDCOMMENTS+1~, BUILDCOMMENTS+8*
DATERANGE3 BUILDCOMMENTS+1~, BUILDCOMMENTS+9*
DONE BUILDCOMMENTS+1~
DUZ EDITREQUEST+5
EAS BUILDER~, BUILDER+24, BUILDAPPTDATA~, BUILDAPPTDATA+14
EDITPATCOM BUILDCOMMENTS+1~
EDITPATCOM(1 BUILDCOMMENTS+5*, BUILDCOMMENTS+6*
EDITPATCOM(2 BUILDCOMMENTS+7*
EDITPATCOM(3 BUILDCOMMENTS+8*
EDITPATCOM(4 BUILDCOMMENTS+9*
EDITUSER EDITREQUEST+1~, EDITREQUEST+5*, EDITREQUEST+11, BUILDER~, BUILDER+27, BUILDER+38
ERRORS EDITREQUEST+1~, EDITREQUEST+3, EDITREQUEST+4, EDITREQUEST+8, EDITREQUEST+9, VALIDATE~, VALIDATE+6, VALIDATE+9, VALIDATE+10, VALIDATE+14
, VALIDATE+17, VALIDATE+21, VALIDATE+23, VALIDATE+25, VALIDATE+27, VALIDATE+28, VALIDATE+29, VALIDATE+30, VALIDATE+33, VALIDATE+34
, VALIDATE+37, VALIDATE+41, VALIDATE+45, VALIDATE+48, VALIDATE+51, VALIDATE+53, VALIDATE+57, VALIDATE+61, VALIDATE+65, VALIDATE+69
, VALIDATE+72, VALIDATE+75, VALIDATE+78, VALIDATE+81, VALIDATE+85, VALIDATE+87, VALIDATE+89, VALIDATE+94, STATIONTOINST~, STATIONTOINST+2
, STATIONTOINST+4, STATIONTOINST+5
ERRORS("Request" EDITREQUEST+4*, EDITREQUEST+9*
FDA BUILDER+1~, BUILDER+25!, BUILDAPPTDATA+1~, BUILDAPPTDATA+19!, BUILDAPPTDATA+30!, EDITMRTCLINKS+1~, EDITMRTCLINKS+7!, EDITMRTCPID+1~, EDITMRTCPID+6!, EDITPRNTPIDMULT+1~
, EDITPRNTPIDMULT+5!, BUILDMRTCLINKS+1~, BUILDMRTCLINKS+4!, BUILDMRTCPID+1~, BUILDMRTCPID+6!, AUDIT+1~, AUDIT+6!
FDA( BUILDER+4*, BUILDER+5*, BUILDER+6*, BUILDER+7*, BUILDER+8*, BUILDER+10*, BUILDER+11*, BUILDER+12*, BUILDER+13*, BUILDER+14*
, BUILDER+15*, BUILDER+16*, BUILDER+17*, BUILDER+18*, BUILDER+19*, BUILDER+22*, BUILDER+23*, BUILDER+24*, BUILDAPPTDATA+3*, BUILDAPPTDATA+4*
, BUILDAPPTDATA+5*, BUILDAPPTDATA+6*, BUILDAPPTDATA+7*, BUILDAPPTDATA+8*, BUILDAPPTDATA+9*, BUILDAPPTDATA+10*, BUILDAPPTDATA+11*, BUILDAPPTDATA+12*, BUILDAPPTDATA+13*, BUILDAPPTDATA+14*
, BUILDAPPTDATA+15*, BUILDAPPTDATA+16*, BUILDAPPTDATA+17*, BUILDAPPTDATA+18*, BUILDAPPTDATA+29*, EDITMRTCLINKS+5*, EDITMRTCLINKS+6*, EDITMRTCPID+5*, EDITPRNTPIDMULT+4*, BUILDMRTCLINKS+3*
, BUILDMRTCPID+5*, AUDIT+2*, AUDIT+3*, AUDIT+4*, AUDIT+5*
FDAERR BUILDER+1~, BUILDAPPTDATA+1~, EDITMRTCLINKS+1~, EDITMRTCPID+1~, EDITPRNTPIDMULT+1~, BUILDMRTCLINKS+1~, BUILDMRTCPID+1~, AUDIT+1~
FILEDATA EDITREQUEST+1~, EDITREQUEST+7*, EDITREQUEST+8, EDITREQUEST+11, VALIDATE~, VALIDATE+28, VALIDATE+29
FILEDATA("APP OINTMENT TYPE" , VALIDATE+18*
FILEDATA("MODALITY" VALIDATE+54*
FILEDATA("PAT IENT INDICATED DATE" , VALIDATE+33*, VALIDATE+34, VALIDATE+93, IENT STATUS" , VALIDATE+70*
FILEDATA("PRI ORITY GROUP" , VALIDATE+58*
FILEDATA("PRIORITY" VALIDATE+38*
FILEDATA("REQ UESTED BY" , VALIDATE+43*, VALIDATE+44
FILEDATA("SER VICE CONNECTED" , VALIDATE+62*
FILEDATA("TIM E SENSITIVE" , VALIDATE+79*
FOUND BUILDAPPTDATA+24~, BUILDAPPTDATA+25*, BUILDAPPTDATA+26, BUILDAPPTDATA+27*, BUILDAPPTDATA+28
INSTITUTIONIEN EDITREQUEST+1~, EDITREQUEST+8, EDITREQUEST+11, VALIDATE~, VALIDATE+48*, BUILDER~, BUILDER+5, STATIONTOINST+1~, STATIONTOINST+4*, STATIONTOINST+5*
, STATIONTOINST+6
INSTNAME STATIONTOINST~, STATIONTOINST+2, STATIONTOINST+3, STATIONTOINST+4
JSONRETURN EDITREQUEST~, EDITREQUEST+4, EDITREQUEST+9, EDITREQUEST+13
NUM EDITMRTCLINKS+1~, EDITMRTCLINKS+2*, EDITMRTCLINKS+4*, EDITMRTCLINKS+5, EDITMRTCLINKS+6, EDITMRTCPID+1~, EDITMRTCPID+2*, EDITMRTCPID+4*, EDITMRTCPID+5, EDITPRNTPIDMULT+1~
, EDITPRNTPIDMULT+2*, BUILDCOMMENTS+1~, BUILDCOMMENTS+2*
NUM2 BUILDCOMMENTS+1~
OLDPIDIEN EDITPRNTPIDMULT+1~, EDITPRNTPIDMULT+3*, EDITPRNTPIDMULT+4
ORIGPID BUILDER+1~, BUILDER+3*, BUILDER+34, EDITPRNTPIDMULT~, EDITPRNTPIDMULT+3
PARENTIEN BUILDAPPTDATA+21~, BUILDAPPTDATA+22*, BUILDAPPTDATA+23, BUILDAPPTDATA+26, BUILDAPPTDATA+29, EDITPRNTPIDMULT~, EDITPRNTPIDMULT+3, EDITPRNTPIDMULT+4
PATCOMMS BUILDCOMMENTS+1~
PC BUILDCOMMENTS+4~*, BUILDCOMMENTS+5, BUILDCOMMENTS+6, BUILDCOMMENTS+7, BUILDCOMMENTS+8, BUILDCOMMENTS+9
PREFDATES BUILDCOMMENTS+1~
RANGE BUILDCOMMENTS+1~
REQCOMMS BUILDCOMMENTS+1~
REQIEN EDITREQUEST+1~, BUILDER+1~, BUILDER+2*, BUILDER+3, BUILDER+4, BUILDER+5, BUILDER+6, BUILDER+7, BUILDER+8, BUILDER+10
, BUILDER+11, BUILDER+12, BUILDER+13, BUILDER+14, BUILDER+15, BUILDER+16, BUILDER+17, BUILDER+18, BUILDER+19, BUILDER+22
, BUILDER+23, BUILDER+24, BUILDAPPTDATA~, BUILDAPPTDATA+2*, BUILDAPPTDATA+3, BUILDAPPTDATA+4, BUILDAPPTDATA+5, BUILDAPPTDATA+6, BUILDAPPTDATA+7, BUILDAPPTDATA+8
, BUILDAPPTDATA+9, BUILDAPPTDATA+10, BUILDAPPTDATA+11, BUILDAPPTDATA+12, BUILDAPPTDATA+13, BUILDAPPTDATA+14, BUILDAPPTDATA+15, BUILDAPPTDATA+16, BUILDAPPTDATA+17, BUILDAPPTDATA+18
, BUILDAPPTDATA+22, EDITMRTCLINKS~, EDITMRTCLINKS+3, EDITMRTCLINKS+5, EDITMRTCLINKS+6, EDITMRTCPID~, EDITMRTCPID+3, EDITMRTCPID+5, BUILDMRTCLINKS~, BUILDMRTCLINKS+2
, BUILDMRTCLINKS+3, BUILDMRTCPID~, BUILDMRTCPID+3, BUILDMRTCPID+4, BUILDMRTCPID+5, BUILDCOMMENTS~, BUILDCOMMENTS+5, BUILDCOMMENTS+10, AUDIT~, AUDIT+2
, AUDIT+3, AUDIT+4, AUDIT+5
REQUEST EDITREQUEST~, EDITREQUEST+7, EDITREQUEST+8, VALIDATE~, VALIDATE+28, VALIDATE+29, VALIDATE+72, BUILDER~, BUILDER+29, BUILDER+34
, EDITMRTCLINKS~, EDITMRTCPID~, EDITPRNTPIDMULT~, BUILDMRTCLINKS~, BUILDMRTCPID~, BUILDCOMMENTS~
REQUEST( BUILDCOMMENTS+5, BUILDCOMMENTS+6, BUILDCOMMENTS+7, BUILDCOMMENTS+8, BUILDCOMMENTS+9
REQUEST("APPO INTMENT TYPE" , VALIDATE+16, VALIDATE+17, BUILDER+13
REQUEST("CLIN IC IEN" , VALIDATE+21, VALIDATE+22, VALIDATE+23, VALIDATE+25, VALIDATE+33, BUILDER+9, BUILDER+10, BUILDER+38
REQUEST("CRED IT AMIS" , VALIDATE+25, VALIDATE+27, VALIDATE+29, VALIDATE+30, BUILDER+12
REQUEST("DFN" VALIDATE+9, VALIDATE+10, VALIDATE+87
REQUEST("INST ITUTION NAME" , VALIDATE+47, VALIDATE+48
REQUEST("MODALITY" VALIDATE+52, VALIDATE+53, BUILDER+8
REQUEST("MRTC" VALIDATE+84, VALIDATE+85, VALIDATE+87, VALIDATE+89, VALIDATE+91, BUILDER+32, BUILDER+34, EDITMRTCLINKS+5, EDITMRTCLINKS+6, EDITMRTCPID+5
, BUILDMRTCLINKS+2, BUILDMRTCLINKS+3, BUILDMRTCPID+2
REQUEST("PATI ENT COMMENT" , BUILDER+29, BUILDCOMMENTS+3, ENT INDICATED DATE" , VALIDATE+32, VALIDATE+33, BUILDER+27, BUILDER+32, EDITPRNTPIDMULT+4, ENT PREFERRED END DATE"
, VALIDATE+72, ENT PREFERRED START DATE" , VALIDATE+72, BUILDER+29, ENT STATUS" , VALIDATE+68, VALIDATE+69, BUILDER+4
REQUEST("PRIM ARY AMIS" , VALIDATE+22, VALIDATE+23, VALIDATE+25, VALIDATE+27, VALIDATE+28, VALIDATE+30, BUILDER+9, BUILDER+11, BUILDER+38
REQUEST("PRIO RITY GROUP" , VALIDATE+56, VALIDATE+57, BUILDER+15
REQUEST("PRIORITY" VALIDATE+36, VALIDATE+37, BUILDER+14
REQUEST("PROV IDER IEN" , VALIDATE+45, BUILDER+17
REQUEST("REQU EST COMMENT" , VALIDATE+74, VALIDATE+75, VALIDATE+81, BUILDER+22, EST IEN" , VALIDATE+6, VALIDATE+7, VALIDATE+10, BUILDER+2
, BUILDER+27, BUILDER+29, BUILDER+38, BUILDER+40, EST SUB TYPE" , BUILDER+6, ESTED BY" , VALIDATE+40, VALIDATE+41, BUILDER+16
REQUEST("SERV ICE CONNECTED PERCENTAGE" , VALIDATE+64, VALIDATE+65, BUILDER+18, ICE CONNECTED" , VALIDATE+60, VALIDATE+61, BUILDER+19
REQUEST("STAT ION NUMBER" , VALIDATE+47, VALIDATE+48
REQUEST("TIME SENSITIVE" , VALIDATE+77, VALIDATE+78, BUILDER+23
REQUEST("VAOS GUID" , VALIDATE+51, BUILDER+7
RETURN EDITREQUEST+1~, EDITREQUEST+13
RETURN("Request" EDITREQUEST+11*
RETURNIEN BUILDER+1~
SDCONTEXT EDITREQUEST~, EDITREQUEST+3
SDCONTEXT("AC HERON AUDIT ID" , EDITREQUEST+11
SDCONTEXT("US ER DUZ" , EDITREQUEST+5
SDPID BUILDMRTCPID+1~, BUILDMRTCPID+2*, BUILDMRTCPID+3*, BUILDMRTCPID+4, BUILDMRTCPID+5
SERVCONN BUILDAPPTDATA~, BUILDAPPTDATA+13
SERVCONNPERC BUILDAPPTDATA~, BUILDAPPTDATA+12
STATIONNUM STATIONTOINST~, STATIONTOINST+2, STATIONTOINST+3, STATIONTOINST+5
STOPCODE AUDIT~, AUDIT+5
SUBIEN EDITMRTCLINKS+1~, EDITMRTCLINKS+2*, EDITMRTCLINKS+3*, EDITMRTCLINKS+5, EDITMRTCLINKS+6, EDITMRTCPID+1~, EDITMRTCPID+2*, EDITMRTCPID+3*, EDITMRTCPID+5, EDITPRNTPIDMULT+1~
, EDITPRNTPIDMULT+2*, BUILDMRTCLINKS+1~, BUILDMRTCLINKS+2*, BUILDMRTCLINKS+3
USER BUILDAPPTDATA~, BUILDAPPTDATA+10, BUILDAPPTDATA+16, AUDIT~, AUDIT+3
VALREQUESTIEN VALIDATE+1~, VALIDATE+5*, VALIDATE+7*, VALIDATE+10, VALIDATE+13, VALIDATE+14, VALIDATE+34, VALIDATE+84, VALIDATE+89, VALIDATE+92
VALRETURN VALIDATE+1~, VALIDATE+6, VALIDATE+7, VALIDATE+9, VALIDATE+10, VALIDATE+17, VALIDATE+21, VALIDATE+37, VALIDATE+38, VALIDATE+41
, VALIDATE+42, VALIDATE+45, VALIDATE+51, VALIDATE+53, VALIDATE+57, VALIDATE+61, VALIDATE+65, VALIDATE+69, VALIDATE+75, VALIDATE+78
, VALIDATE+79, VALIDATE+81, VALIDATE+85, VALIDATE+86
VALRETURN( VALIDATE+18, VALIDATE+38, VALIDATE+43, VALIDATE+54, VALIDATE+58, VALIDATE+62, VALIDATE+70, VALIDATE+79
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