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

Package: Scheduling

Routine: SDES2QRYAPREQS


Information

SDES2QRYAPREQS ;ALB/BWF - QUERY APPOINTMENT REQUESTS; JAN 4,2023

Source Information

Source file <SDES2QRYAPREQS.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Scheduling 10 GETREQUEST^SDES2GETAPPTREQ  GETCONSULT^SDES2GETCONSULTS  GETRECALL^SDES2GETRECALL  ERRLOG^SDES2JSON  ($$REQCHK,FINDBYREQ,GETSVC)^SDES2QRYAPREQSA  (FLTRAPPTREQ,FLTRCONSULT,FLTRRECALL,GETPATENR)^SDES2QRYAPREQSB  $$AMISTOSTOPCODE^SDES2UTIL  VALCONTEXT^SDES2VALCONTEXT  
$$VALISODTTM^SDES2VALISODTTM  (VALFIELD,VALFILEIEN,VALNUMBERRNG)^SDES2VALUTIL  
Kernel 2 $$FMADD^XLFDT  ENCODE^XLFJSON  
VA FileMan 1 $$GET1^DIQ  

Entry Points

Name Comments DBIA/ICR reference
QUERY(JSONRETURN,SDCONTEXT,SDINPUT) ;
VALIDATE(ERRORS,SDINPUT,FLTRORIGDATE,FLTRPIDDATE,STARTDT,ENDDT,AMISLIST) ;
FINDBYPAT(ERRORS,SDINPUT,FLTRORIGDATE,FLTRPIDDATE,STARTDT,ENDDT) ;
; get consults for this patient
BUILDXREF(SORT) ;
BUILDRESULTS(RETURNNUMREC,REQUESTS,SDDUZ) ;
BUILDBYLASTREC(LASTRECORD,NUMRECORDS,REQUESTS,SDDUZ) ;
VALREQTYPE(ERRORS,SDINPUT) ;
VALREQSUBTYPE(ERRORS,SDINPUT)
VALWAITTIME(ERRORS,WAITTIME) ;
VALPRIOGROUP(ERRORS,SDINPUT) ;
VALSORT(ERRORS,SORT) ;

External References

Name Field # of Occurrence
$$GET1^DIQ FINDBYPAT+15, FINDBYPAT+34, BUILDRESULTS+9, BUILDBYLASTREC+9
GETREQUEST^SDES2GETAPPTREQ BUILDRESULTS+7, BUILDBYLASTREC+7
GETCONSULT^SDES2GETCONSULTS BUILDRESULTS+8, BUILDBYLASTREC+8
GETRECALL^SDES2GETRECALL BUILDRESULTS+9, BUILDBYLASTREC+9
ERRLOG^SDES2JSON QUERY+16, VALREQTYPE+6, VALREQSUBTYPE+6, VALWAITTIME+2, VALSORT+1
$$REQCHK^SDES2QRYAPREQSA FINDBYPAT+35, FINDBYPAT+44
FINDBYREQ^SDES2QRYAPREQSA QUERY+40
GETSVC^SDES2QRYAPREQSA FINDBYPAT+25
FLTRAPPTREQ^SDES2QRYAPREQSB FINDBYPAT+16
FLTRCONSULT^SDES2QRYAPREQSB FINDBYPAT+37, FINDBYPAT+45
FLTRRECALL^SDES2QRYAPREQSB FINDBYPAT+52
GETPATENR^SDES2QRYAPREQSB FINDBYPAT+7, FINDBYPAT+36
$$AMISTOSTOPCODE^SDES2UTIL VALIDATE+14
VALCONTEXT^SDES2VALCONTEXT QUERY+6
$$VALISODTTM^SDES2VALISODTTM VALIDATE+30, VALIDATE+33
VALFIELD^SDES2VALUTIL VALPRIOGROUP+6
VALFILEIEN^SDES2VALUTIL VALIDATE+4, VALIDATE+11, VALIDATE+15, VALIDATE+35
VALNUMBERRNG^SDES2VALUTIL VALIDATE+41, VALIDATE+47
$$FMADD^XLFDT VALWAITTIME+5, VALWAITTIME+7
ENCODE^XLFJSON QUERY+7, QUERY+11, QUERY+18, QUERY+21, QUERY+24, QUERY+36, QUERY+48

Used in RPC

RPC Name Call Tags
SDES2 QUERY APPT REQUESTS QUERY

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^GMR(123 - [#123] GET1^DIQ
^SD(403.5 - [#403.5] GET1^DIQ
^SDEC(409.85 - [#409.85] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^GMR(123 - [#123] FINDBYPAT+32, FINDBYPAT+33, FINDBYPAT+41, FINDBYPAT+43
^ORD(100.01 - [#100.01] FINDBYPAT+26, FINDBYPAT+27
^SD(403.5 - [#403.5] FINDBYPAT+51
^SDEC(409.85 - [#409.85] FINDBYPAT+14
^TMP("SDES2QUERY" QUERY+3!, QUERY+5, QUERY+15, QUERY+23, BUILDXREF+4, BUILDXREF+5, BUILDXREF+6, BUILDXREF+7, BUILDXREF+8, BUILDXREF+9
, BUILDXREF+11*, BUILDXREF+12, BUILDXREF+13, BUILDXREF+14, BUILDXREF+16*, BUILDRESULTS+3, BUILDRESULTS+4, BUILDRESULTS+5, BUILDBYLASTREC+4, BUILDBYLASTREC+5
, BUILDBYLASTREC+6

Label References

Name Line Occurrences
$$BUILDBYLASTREC QUERY+19
$$BUILDRESULTS QUERY+30, QUERY+42
$$BUILDXREF QUERY+29, QUERY+41
$$VALWAITTIME VALIDATE+23
FINDBYPAT QUERY+28
VALIDATE QUERY+10
VALPRIOGROUP VALIDATE+27
VALREQSUBTYPE VALIDATE+8
VALREQTYPE VALIDATE+6
VALSORT VALIDATE+38

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
AMISLIST QUERY+1~, QUERY+10, VALIDATE~, VALIDATE+18*
CONEND FINDBYPAT+2~, FINDBYPAT+39*, FINDBYPAT+40
CONSIEN FINDBYPAT+2~, FINDBYPAT+33*, FINDBYPAT+34, FINDBYPAT+35, FINDBYPAT+37, FINDBYPAT+42*, FINDBYPAT+43*, FINDBYPAT+44, FINDBYPAT+45
CONSTART FINDBYPAT+2~, FINDBYPAT+39*, FINDBYPAT+41
CONSTAT FINDBYPAT+2~
COUNT FINDBYPAT+2~, FINDBYPAT+4*, FINDBYPAT+16, FINDBYPAT+37, FINDBYPAT+45, FINDBYPAT+52, BUILDXREF+1~, BUILDBYLASTREC+1~, BUILDBYLASTREC+2*, BUILDBYLASTREC+4
, BUILDBYLASTREC+11*
CURRENTENR FINDBYPAT+2~, FINDBYPAT+7, FINDBYPAT+36
DESDATE BUILDXREF+1~, BUILDXREF+6*, BUILDXREF+7, BUILDXREF+8, BUILDXREF+9
DFN FINDBYPAT+2~, FINDBYPAT+5*, FINDBYPAT+7, FINDBYPAT+14, FINDBYPAT+34, FINDBYPAT+36, FINDBYPAT+41, FINDBYPAT+43, FINDBYPAT+51, BUILDRESULTS+1~
, BUILDRESULTS+9*, BUILDBYLASTREC+1~, BUILDBYLASTREC+9*
DT VALWAITTIME+5, VALWAITTIME+7
DUZ QUERY+9
ENDDDT QUERY+1~
ENDDT QUERY+10, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+2*, VALIDATE+25*, FINDBYPAT~, FINDBYPAT+16, FINDBYPAT+31, FINDBYPAT+37
, FINDBYPAT+39, FINDBYPAT+45, FINDBYPAT+52
ENRRET FINDBYPAT+2~
ERRORS QUERY+1~, QUERY+6, QUERY+7, QUERY+10, QUERY+11, QUERY+16, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+4
, VALIDATE+6, VALIDATE+8, VALIDATE+11, VALIDATE+15, VALIDATE+23, VALIDATE+27, VALIDATE+30, VALIDATE+33, VALIDATE+35, VALIDATE+38
, VALIDATE+41, VALIDATE+47, FINDBYPAT~, VALREQTYPE~, VALREQTYPE+6, VALREQSUBTYPE~, VALREQSUBTYPE+6, VALWAITTIME~, VALWAITTIME+2, VALPRIOGROUP~
, VALPRIOGROUP+6, VALSORT~, VALSORT+1
ERRORS("QueryResults" QUERY+7*, QUERY+11*, QUERY+17*
FLTRORIGDATE QUERY+1~, QUERY+10, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+2*, VALIDATE+30*, FINDBYPAT~, FINDBYPAT+16, FINDBYPAT+37
, FINDBYPAT+45, FINDBYPAT+52
FLTRPIDDATE QUERY+1~, QUERY+10, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+2*, VALIDATE+33*, FINDBYPAT~, FINDBYPAT+16, FINDBYPAT+37
, FINDBYPAT+45, FINDBYPAT+52
GMRSERVICE FINDBYPAT+3~, FINDBYPAT+28*, FINDBYPAT+32, FINDBYPAT+33
GMRSVC FINDBYPAT+3~, FINDBYPAT+25
GMRSVC( FINDBYPAT+28
GRP VALPRIOGROUP+1~, VALPRIOGROUP+4*
INVDTTM FINDBYPAT+2~, FINDBYPAT+40*, FINDBYPAT+41*, FINDBYPAT+43
INVSTART FINDBYPAT+3~, FINDBYPAT+31*, FINDBYPAT+32*, FINDBYPAT+33
JSONRETURN QUERY~, QUERY+5*, QUERY+7, QUERY+11, QUERY+18, QUERY+21, QUERY+24, QUERY+36, QUERY+48
LASTREC QUERY+1~, QUERY+30*, QUERY+35, QUERY+42*, QUERY+47, BUILDRESULTS+1~, BUILDRESULTS+2*, BUILDRESULTS+6*, BUILDRESULTS+10
LASTRECORD BUILDBYLASTREC~, BUILDBYLASTREC+3
NEWLASTREC QUERY+1~, QUERY+19*, QUERY+22
NEWLASTRECORD BUILDBYLASTREC+1~, BUILDBYLASTREC+2*, BUILDBYLASTREC+10*, BUILDBYLASTREC+12
NUMRECORDS VALIDATE+1~, VALIDATE+40*, VALIDATE+41, VALIDATE+42, VALIDATE+44, BUILDBYLASTREC~, BUILDBYLASTREC+4
ORIGDT BUILDXREF+1~, BUILDXREF+7*, BUILDXREF+8, BUILDXREF+9
OSACT FINDBYPAT+3~, FINDBYPAT+26*, FINDBYPAT+29
OSPEND FINDBYPAT+3~, FINDBYPAT+27*, FINDBYPAT+29
PATIENT FINDBYPAT+2~
PATSCPERCENT FINDBYPAT+2~, FINDBYPAT+7, FINDBYPAT+16, FINDBYPAT+36, FINDBYPAT+37, FINDBYPAT+45, FINDBYPAT+52
PATSVCCONN FINDBYPAT+2~, FINDBYPAT+7, FINDBYPAT+16, FINDBYPAT+36, FINDBYPAT+37, FINDBYPAT+45, FINDBYPAT+52
PCE FINDBYPAT+2~
PGROUP VALPRIOGROUP+1~, VALPRIOGROUP+2*, VALPRIOGROUP+3, VALPRIOGROUP+5, VALPRIOGROUP+6
PRIOGRP BUILDXREF+1~, BUILDXREF+4*, BUILDXREF+5, BUILDXREF+6, BUILDXREF+7, BUILDXREF+8, BUILDXREF+9
PRIORITYGROUP FINDBYPAT+2~, FINDBYPAT+7, FINDBYPAT+8, FINDBYPAT+16, FINDBYPAT+36, FINDBYPAT+37, FINDBYPAT+45, FINDBYPAT+52
RECALLIEN FINDBYPAT+3~, FINDBYPAT+51*, FINDBYPAT+52
RECORDER BUILDXREF+2*, BUILDXREF+3, BUILDXREF+10*, BUILDXREF+11, BUILDXREF+15*, BUILDXREF+16, BUILDXREF+17, BUILDRESULTS+1~, BUILDRESULTS+3*, BUILDRESULTS+4
, BUILDRESULTS+5, BUILDRESULTS+6, BUILDBYLASTREC+1~, BUILDBYLASTREC+3*, BUILDBYLASTREC+4*, BUILDBYLASTREC+5, BUILDBYLASTREC+6, BUILDBYLASTREC+10
REQCNT FINDBYPAT+2~, FINDBYPAT+13*, FINDBYPAT+14, FINDBYPAT+16, FINDBYPAT+20*, FINDBYPAT+29, FINDBYPAT+32, FINDBYPAT+33, FINDBYPAT+37, FINDBYPAT+41
, FINDBYPAT+43, FINDBYPAT+45, FINDBYPAT+50*, FINDBYPAT+51, FINDBYPAT+52
REQIEN FINDBYPAT+2~, FINDBYPAT+14*, FINDBYPAT+15, FINDBYPAT+16, BUILDXREF+1~, BUILDXREF+8*, BUILDXREF+9, BUILDXREF+11, BUILDXREF+13*, BUILDXREF+14
, BUILDXREF+16, BUILDRESULTS+1~, BUILDRESULTS+4*, BUILDRESULTS+5, BUILDRESULTS+7, BUILDRESULTS+8, BUILDRESULTS+9, BUILDBYLASTREC+1~, BUILDBYLASTREC+5*, BUILDBYLASTREC+6
, BUILDBYLASTREC+7, BUILDBYLASTREC+8, BUILDBYLASTREC+9
REQTYPE BUILDXREF+1~, BUILDXREF+9*, BUILDXREF+11, BUILDXREF+14*, BUILDXREF+16, BUILDRESULTS+1~, BUILDRESULTS+5*, BUILDRESULTS+7, BUILDRESULTS+8, BUILDRESULTS+9
, BUILDBYLASTREC+1~, BUILDBYLASTREC+6*, BUILDBYLASTREC+7, BUILDBYLASTREC+8, BUILDBYLASTREC+9
REQUESTS QUERY+1~, QUERY+19, QUERY+20, QUERY+30, QUERY+31, QUERY+42, QUERY+43, BUILDRESULTS~, BUILDRESULTS+7, BUILDRESULTS+8
, BUILDRESULTS+9, BUILDBYLASTREC~, BUILDBYLASTREC+7, BUILDBYLASTREC+8, BUILDBYLASTREC+9
REQUESTS("QueryResults" QUERY+21*, QUERY+22*, QUERY+23*, QUERY+32*, QUERY+33*, QUERY+34*, QUERY+35*, QUERY+44*, QUERY+45*, QUERY+46*
, QUERY+47*
RETURNNUMREC BUILDRESULTS~, BUILDRESULTS+3, BUILDRESULTS+4
RETURNRECORDCNT VALIDATE+1~, VALIDATE+46*, VALIDATE+47, VALIDATE+48
SDBEG VALWAITTIME+1~, VALWAITTIME+3*, VALWAITTIME+5*, VALWAITTIME+6*, VALWAITTIME+9
SDCONTEXT QUERY~, QUERY+6
SDCONTEXT("US ER DUZ" , QUERY+9
SDDUZ QUERY+1~, QUERY+9*, QUERY+19, QUERY+30, QUERY+42, BUILDRESULTS~, BUILDRESULTS+7, BUILDRESULTS+8, BUILDRESULTS+9, BUILDBYLASTREC~
, BUILDBYLASTREC+7, BUILDBYLASTREC+8, BUILDBYLASTREC+9
SDEND VALWAITTIME+1~, VALWAITTIME+4*, VALWAITTIME+7*, VALWAITTIME+8*, VALWAITTIME+9
SDINPUT QUERY~, QUERY+10, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+6, VALIDATE+8, VALIDATE+27, FINDBYPAT~, FINDBYPAT+16
, FINDBYPAT+37, FINDBYPAT+45, FINDBYPAT+52, VALREQTYPE~, VALREQSUBTYPE~, VALPRIOGROUP~
SDINPUT("FILTER" QUERY+27, QUERY+39, VALIDATE+3, VALIDATE+10, VALIDATE+13, VALIDATE+18, VALIDATE+19!, VALIDATE+20*, VALIDATE+22*, VALIDATE+23
, VALIDATE+29, VALIDATE+30, VALIDATE+32, VALIDATE+33, VALIDATE+35, FINDBYPAT+5, FINDBYPAT+8, FINDBYPAT+11, FINDBYPAT+12, FINDBYPAT+19
, FINDBYPAT+22, FINDBYPAT+23, FINDBYPAT+48, FINDBYPAT+49, VALREQTYPE+3*, VALREQTYPE+5, VALREQSUBTYPE+3*, VALREQSUBTYPE+5, VALPRIOGROUP+2, VALPRIOGROUP+4*
, VALPRIOGROUP+5*, VALPRIOGROUP+7*
SDINPUT("LAST RECORD" , QUERY+3, QUERY+14, QUERY+15, QUERY+19, VALIDATE+42
SDINPUT("MAX NUMBER OF RECORDS" , VALIDATE+40, VALIDATE+42*, VALIDATE+44*, FINDBYPAT+14, FINDBYPAT+29, FINDBYPAT+32, FINDBYPAT+33, FINDBYPAT+41, FINDBYPAT+43
, FINDBYPAT+51
SDINPUT("RETU RN NUMBER OF RECORDS" , QUERY+19, QUERY+30, QUERY+42, VALIDATE+46, VALIDATE+48*
SDINPUT("SORT" QUERY+29, QUERY+41, VALIDATE+37*, VALIDATE+38
SERVICE FINDBYPAT+3~, FINDBYPAT+23*, FINDBYPAT+24
SERVICELIST FINDBYPAT+3~, FINDBYPAT+25
SERVICELIST( FINDBYPAT+24*
SERVICEREL BUILDXREF+1~, BUILDXREF+5*, BUILDXREF+6, BUILDXREF+7, BUILDXREF+8, BUILDXREF+9
SORT BUILDXREF~, BUILDXREF+3, VALSORT~, VALSORT+1
SORTBY BUILDXREF+1~, BUILDXREF+12*, BUILDXREF+13, BUILDXREF+14
STARTDT QUERY+1~, QUERY+10, QUERY+28, QUERY+40, VALIDATE~, VALIDATE+2*, VALIDATE+24*, FINDBYPAT~, FINDBYPAT+16, FINDBYPAT+32
, FINDBYPAT+37, FINDBYPAT+39, FINDBYPAT+45, FINDBYPAT+52
STAT FINDBYPAT+3~, FINDBYPAT+29*, FINDBYPAT+30, FINDBYPAT+32, FINDBYPAT+33
STOPCODEIEN VALIDATE+1~, VALIDATE+14*, VALIDATE+15, VALIDATE+16
STOPCODELIST VALIDATE+1~, VALIDATE+17, VALIDATE+20
STOPCODELIST( VALIDATE+16*
STOPCODETYPE VALIDATE+1~
STRTENDDATES VALIDATE+1~, VALIDATE+23*, VALIDATE+24, VALIDATE+25
TOTALRECORDS QUERY+1~, QUERY+29*, QUERY+34, QUERY+41*, QUERY+46
TYPE VALREQTYPE+1~, VALREQTYPE+5*, VALREQTYPE+6, VALREQSUBTYPE+1~, VALREQSUBTYPE+5*, VALREQSUBTYPE+6
U VALIDATE+24, VALIDATE+25, VALWAITTIME+9
VALSTAT VALIDATE+1~, VALIDATE+41, VALIDATE+47
VAMIS VALIDATE+1~, VALIDATE+13*, VALIDATE+14
VCLIN VALIDATE+1~, VALIDATE+10*, VALIDATE+11
VPAT VALIDATE+1~, VALIDATE+3*, VALIDATE+4
VRET VALIDATE+1~, VALIDATE+4, VALIDATE+11, VALIDATE+15, VALIDATE+35, VALPRIOGROUP+6
VRET( VALPRIOGROUP+7
WAITTIME VALWAITTIME~, VALWAITTIME+2, VALWAITTIME+3, VALWAITTIME+4
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