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

Package: Scheduling

Routine: SDESGETTIUDOC


Information

SDESGETTIUDOC ;ALB/RRM - VISTA SCHEDULING GET TIU DOCUMENT BY CONTEXT RPC; Oct 07, 2022@15:02

Source Information

Source file <SDESGETTIUDOC.m>

Call Graph

Call Graph

Call Graph Total: 7

Package Total Call Graph
Scheduling 4 ($$CVTTOFM,$$FMTISO,$$ISOTFM)^SDAMUTDT  BUILDJSON^SDESBUILDJSON  ($$LAST4SSN,VALIDATEDFN,VALIDATEEAS)^SDESINPUTVALUTL  ERRLOG^SDESJSON  
VA FileMan 2 $$FIND1^DIC  ($$GET1,GETS)^DIQ  
Text Integration Utility 1 CONTEXT^TIUSRVLO  

Entry Points

Name Comments DBIA/ICR reference
TIUDOCBYCONTEXT(JSONRETURN,CLASS,CONTEXT,DFN,BEGINDATE,ENDDATE,PERSON,OCCLIM,SEQUENCE,SHOWADD,INCUND,SHOW,TIUIEN,EAS) ; ep: SDES GET TIU DOC BY CONTEXT RPC
; Input:
; CLASS [Required] - Pointer to TIU DOCUMENT DEFINITION #8925.1
; (e.g. 3 for PROGRESS NOTES, 244 for DISCHARGE SUMMARIES)
; CONTEXT [Required] - 1=All Signed (by PT),
; 2="Unsigned (by PT&(AUTHOR!TRANSCRIBER))
; 3="Uncosigned (by PT&EXPECTED COSIGNER
; 4="Signed notes (by PT&selected author)
; 5="Signed notes (by PT&date range)
; DFN [Required] - Pointer to Patient File#2
; BEGINDATE [Optional] - The beginning date/time in ISO 8601 Time Format to start for the search.
; ENDDATE [Optional] - The ending date/time in ISO 8601 Time Format to start for the search.
; PERSON [Optional] - Pointer to file 200 (The program will use the default DUZ if not passed)
; OCCLIM [Optional] - The number of documents/records to the return array
; SEQUENCE [Optional] - "A"=ascending (Regular date/time)
; "D"=descending (Reverse date/time) (dflt)
; SHOWADD [Optional] - Boolean: Include addenda in the return array, when their parent documents are identified by the search
; INCUND [Optional] - Boolean: Include Undictated and Untranscribed documents along with Unsigned documents, when the CONTEXT is 2.
; SHOW [Optional] - Boolean: Return "0^SHOW MORE" in return
; array when additional notes available for
; context of 1 or 5 when occurrence limit
; prevents all notes from displaying
; TIUIEN [Optional] - Starting TIU IEN for additional return
; when "SHOW MORE" was received in previous
; return array (LATE date/time will be set
; to Reference date of this TIU document)
; EAS [Optional] - The Enterprise Appointment Scheduling (EAS) Tracking Number associated to an appointment.
BUILDDATA(TMPTIU,RETURN,DFN) ;
VALIDATECLASS(ERRORS,CLASS) ;
VALIDATECONTEXT(ERRORS,CONTEXT) ;
VALIDATEDFN(ERRORS,DFN) ;
VALBEGENDDATE(ERRORS,BEGINDATE,ENDDATE) ;
VALIDATEPERSON(ERRORS,PERSON) ;
VALIDATEOCCLIM(ERRORS,OCCLIM) ;
VALIDATESEQ(ERRORS,SEQUENCE) ;
VALIDATESHOWADD(ERRORS,SHOWADD) ;
VALIDATEINCUND(ERRORS,INCUND) ;
VALIDATESHOW(ERRORS,SHOW) ;
VALIDATETIUIEN(ERRORS,TIUEN) ;
INITVAR ;Initialize input parameter variables

External References

Name Field # of Occurrence
$$FIND1^DIC BUILDDATA+22, VALIDATECLASS+3
$$GET1^DIQ BUILDDATA+8
GETS^DIQ BUILDDATA+31
$$CVTTOFM^SDAMUTDT BUILDDATA+24, BUILDDATA+25
$$FMTISO^SDAMUTDT BUILDDATA+7, BUILDDATA+26, BUILDDATA+27
$$ISOTFM^SDAMUTDT VALBEGENDDATE+2, VALBEGENDDATE+6
BUILDJSON^SDESBUILDJSON TIUDOCBYCONTEXT+47, TIUDOCBYCONTEXT+50
$$LAST4SSN^SDESINPUTVALUTL BUILDDATA+10
VALIDATEDFN^SDESINPUTVALUTL VALIDATEDFN+1
VALIDATEEAS^SDESINPUTVALUTL TIUDOCBYCONTEXT+46
ERRLOG^SDESJSON VALIDATECLASS+2, VALIDATECLASS+4, VALIDATECONTEXT+1, VALIDATECONTEXT+2, VALBEGENDDATE+9
CONTEXT^TIUSRVLO TIUDOCBYCONTEXT+48

Used in RPC

RPC Name Call Tags
SDES GET TIU DOC BY CONTEXT TIUDOCBYCONTEXT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
^SC - [#44] FIND1^DIC
^TIU(8925 - [#8925] GETS^DIQ
^TIU(8925.1 - [#8925.1] FIND1^DIC

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^TIU(8925 - [#8925] VALIDATETIUIEN+1
^VA(200 - [#200] VALIDATEPERSON+1

Label References

Name Line Occurrences
BUILDDATA TIUDOCBYCONTEXT+49
INITVAR TIUDOCBYCONTEXT+34
VALBEGENDDATE TIUDOCBYCONTEXT+38
VALIDATECLASS TIUDOCBYCONTEXT+35
VALIDATECONTEXT TIUDOCBYCONTEXT+36
VALIDATEDFN TIUDOCBYCONTEXT+37
VALIDATEINCUND TIUDOCBYCONTEXT+43
VALIDATEOCCLIM TIUDOCBYCONTEXT+40
VALIDATEPERSON TIUDOCBYCONTEXT+39
VALIDATESEQ TIUDOCBYCONTEXT+41
VALIDATESHOW TIUDOCBYCONTEXT+44
VALIDATESHOWADD TIUDOCBYCONTEXT+42
VALIDATETIUIEN TIUDOCBYCONTEXT+45

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
BEGINDATE TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+38, TIUDOCBYCONTEXT+48, VALBEGENDDATE~, VALBEGENDDATE+1, VALBEGENDDATE+2*, VALBEGENDDATE+3*, VALBEGENDDATE+9, INITVAR+4*
CLASS TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+35, TIUDOCBYCONTEXT+48, VALIDATECLASS~, VALIDATECLASS+2, VALIDATECLASS+3, INITVAR+1*
CLINICIEN BUILDDATA+1~, BUILDDATA+22*, BUILDDATA+23, BUILDDATA+26, BUILDDATA+27
CONTEXT TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+36, TIUDOCBYCONTEXT+48, VALIDATECONTEXT~, VALIDATECONTEXT+1, VALIDATECONTEXT+2, INITVAR+2*
DFN TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+37, TIUDOCBYCONTEXT+48, TIUDOCBYCONTEXT+49, BUILDDATA~, BUILDDATA+8, BUILDDATA+9, BUILDDATA+10, VALIDATEDFN~, VALIDATEDFN+1
INITVAR+3*
DUZ VALIDATEPERSON+1, INITVAR+6*
EAS TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+46, INITVAR+14*
ENDDATE TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+38, TIUDOCBYCONTEXT+48, VALBEGENDDATE~, VALBEGENDDATE+5, VALBEGENDDATE+6*, VALBEGENDDATE+7*, VALBEGENDDATE+9, INITVAR+5*
EPBEGDATETIME BUILDDATA+1~, BUILDDATA+24*, BUILDDATA+26
EPENDDATETIME BUILDDATA+1~, BUILDDATA+25*, BUILDDATA+27
ERR BUILDDATA+1~, BUILDDATA+30!, VALIDATECLASS+1~
ERRORS TIUDOCBYCONTEXT+33~, TIUDOCBYCONTEXT+35, TIUDOCBYCONTEXT+36, TIUDOCBYCONTEXT+37, TIUDOCBYCONTEXT+38, TIUDOCBYCONTEXT+39, TIUDOCBYCONTEXT+40, TIUDOCBYCONTEXT+41, TIUDOCBYCONTEXT+42, TIUDOCBYCONTEXT+43
, TIUDOCBYCONTEXT+44, TIUDOCBYCONTEXT+45, TIUDOCBYCONTEXT+46, TIUDOCBYCONTEXT+47, VALIDATECLASS~, VALIDATECLASS+2, VALIDATECLASS+4, VALIDATECONTEXT~, VALIDATECONTEXT+1, VALIDATECONTEXT+2
, VALIDATEDFN~, VALIDATEDFN+1, VALBEGENDDATE~, VALBEGENDDATE+9, VALIDATEPERSON~, VALIDATEOCCLIM~, VALIDATESEQ~, VALIDATESHOWADD~, VALIDATEINCUND~, VALIDATESHOW~
, VALIDATETIUIEN~
INCUND TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+43, TIUDOCBYCONTEXT+48, VALIDATEINCUND~, VALIDATEINCUND+1*, INITVAR+11*
JSONRETURN TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+47, TIUDOCBYCONTEXT+50
OCCLIM TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+40, TIUDOCBYCONTEXT+48, VALIDATEOCCLIM~, VALIDATEOCCLIM+1*, INITVAR+8*
PERSON TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+39, TIUDOCBYCONTEXT+48, VALIDATEPERSON~, VALIDATEPERSON+1*, INITVAR+7*
RECNT BUILDDATA+1~, BUILDDATA+3*, BUILDDATA+4, BUILDDATA+5, BUILDDATA+6, BUILDDATA+7, BUILDDATA+8, BUILDDATA+9, BUILDDATA+10, BUILDDATA+11
, BUILDDATA+12, BUILDDATA+13, BUILDDATA+14, BUILDDATA+15, BUILDDATA+16, BUILDDATA+17, BUILDDATA+18, BUILDDATA+19, BUILDDATA+20, BUILDDATA+22
, BUILDDATA+23, BUILDDATA+24, BUILDDATA+25, BUILDDATA+26, BUILDDATA+27, BUILDDATA+28, BUILDDATA+32, BUILDDATA+33
RETURN TIUDOCBYCONTEXT+33~, TIUDOCBYCONTEXT+47*, TIUDOCBYCONTEXT+49, TIUDOCBYCONTEXT+50, BUILDDATA~, BUILDDATA+2!
RETURN("TIUDocument" BUILDDATA+5*, BUILDDATA+6*, BUILDDATA+7*, BUILDDATA+8*, BUILDDATA+9*, BUILDDATA+10*, BUILDDATA+11*, BUILDDATA+12*, BUILDDATA+13*, BUILDDATA+14*
, BUILDDATA+15*, BUILDDATA+16*, BUILDDATA+17*, BUILDDATA+18*, BUILDDATA+19*, BUILDDATA+20*, BUILDDATA+23*, BUILDDATA+26*, BUILDDATA+27*, BUILDDATA+28*
, BUILDDATA+32*, BUILDDATA+33*, BUILDDATA+35*
SDTIUCLASSIEN VALIDATECLASS+1~, VALIDATECLASS+3*, VALIDATECLASS+4
SEQUENCE TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+41, TIUDOCBYCONTEXT+48, VALIDATESEQ~, VALIDATESEQ+1*, INITVAR+9*
SHOW TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+44, TIUDOCBYCONTEXT+48, VALIDATESHOW~, VALIDATESHOW+1*, INITVAR+12*
SHOWADD TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+42, TIUDOCBYCONTEXT+48, VALIDATESHOWADD~, VALIDATESHOWADD+1*, INITVAR+10*
TIUDATA BUILDDATA+1~, BUILDDATA+30!
TIUDATA(8925 BUILDDATA+32, BUILDDATA+33
TIUEN VALIDATETIUIEN~
TIUIEN TIUDOCBYCONTEXT~, TIUDOCBYCONTEXT+45, TIUDOCBYCONTEXT+48, BUILDDATA+4*, BUILDDATA+5, BUILDDATA+31, BUILDDATA+32, BUILDDATA+33, VALIDATETIUIEN+1*, INITVAR+13*
TMPTIU TIUDOCBYCONTEXT+33~, TIUDOCBYCONTEXT+48, TIUDOCBYCONTEXT+49, BUILDDATA~, BUILDDATA+3, BUILDDATA+4, BUILDDATA+6, BUILDDATA+7, BUILDDATA+11, BUILDDATA+12
, BUILDDATA+13, BUILDDATA+14, BUILDDATA+15, BUILDDATA+16, BUILDDATA+17, BUILDDATA+18, BUILDDATA+19, BUILDDATA+20, BUILDDATA+22, BUILDDATA+24
, BUILDDATA+25, BUILDDATA+28
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