DSIC GET VISITS ONLY

TITLEVALUE
NAMEDSIC GET VISITS ONLY
DESCRIPTIONUsing SELECTED^VSIT this retrieves all visits for the date range.
TAGVST
ROUTINEDSICVT0
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERDFN
DESCRIPTIONThis is the pointer value to the Patient file
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH12

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERBEG
DESCRIPTIONOptional - this is the starting date for the search in internal fileman
date/time format of the visit. If not passed, then a date of T-365 will
be used.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH14

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETEREND
DESCRIPTIONOptional - this is the ending date/time for the search in internal fileman
format. If not passed, then a date of DT+.5 will be used.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH14

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERZLOC
DESCRIPTIONKept for backward compatibility. Do not use. See SCR parameter.

Optional - you can look for visits for specific locations (file 44). The
ZLOC array is expected to be in the format ZLOC(ien)="" where ien is the
pointer to file 44.
PARAMETER TYPELIST
REQUIREDNO
MAXIMUM DATA LENGTH15

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERCAT
DESCRIPTIONThis flag controls whether service categories should be screened or not.
It is optional, the default value is to screen entries.

I +CAT then do not screen entries.
I '$G(CAT) then screen entries to exclude those whose service category is
E,D,X,N, or C
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER6
INPUT PARAMETERSCR
DESCRIPTIONSCR - optional - added 7/3/2002 - sgm
passed by reference
format: SCR(subscript) = code ^ value where
code = C for hospital location #44
D for medical center division #40.8
S for 3-digit stop code from file 40.7 (not ien)
value = for codes C,D - any unique lookup value or ien
for code S - 3-digit stop code (not ien to 40.7)
PARAMETER TYPELIST
REQUIREDNO
MAXIMUM DATA LENGTH250

RETURN VALUE TYPEGLOBAL ARRAY
RETURN PARAMETER DESCRIPTIONThe data is passed to the broker in the ^TMP("DSIC",$J,"VSIT",#) where
^TMP("DSIC",$J,"VSIT",#) = p1^p2^p3^p4^p5^p6 where
p1 := A (if admission) or V (if visit)
p2 := visit file pointer (#9000010)
p3 := visit/admission external date/time
p4 := location name (file 44)
p5 := visit/admission internal fileman date/time
p6 := pointer to location (file 44)

Or it will return
-1^No Patient DFN or
-1^No visits found
AVAILABILITYAGREEMENT
INACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED