| INPUT PARAMETER |
-
- DFN
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 12
- REQUIRED: YES
- SEQUENCE NUMBER: 1
- DESCRIPTION:
This is the pointer value to the Patient file
-
- BEG
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 14
- REQUIRED: NO
- SEQUENCE NUMBER: 2
- DESCRIPTION:
Optional - 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.
-
- END
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 14
- REQUIRED: NO
- SEQUENCE NUMBER: 3
- DESCRIPTION:
Optional - 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.
-
- ZLOC
- PARAMETER TYPE: LIST
- MAXIMUM DATA LENGTH: 15
- REQUIRED: NO
- SEQUENCE NUMBER: 4
- DESCRIPTION:
Optional - you can look for visits for specific locations (file 44). The
LC array is expected to be in the format LC(ien)="" where ien is the
pointer to file 44.
-
- CAT
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 1
- REQUIRED: NO
- SEQUENCE NUMBER: 5
- DESCRIPTION:
This 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 do not return entries whose service category is E,D,X,N,
or C
-
- VECLIN
- PARAMETER TYPE: LIST
- REQUIRED: NO
- SEQUENCE NUMBER: 6
- DESCRIPTION:
VECLIN is a local array which contains a list of clinics to be used to
screen appointment list. Only those appointments in these clinics will
be returned.
VECLIN - optional - passed by reference
VECLIN(#) = clinic name or ien
-
- SCODE
- PARAMETER TYPE: LIST
- REQUIRED: NO
- SEQUENCE NUMBER: 7
- DESCRIPTION:
This is a list of 3-digit stop codes used to screen appointments
returned. Only those clinic locations whose stop code is in this list
will be returned.
SCODE - optional - passed by reference
SCODE(#) = 3-digit stop code (lookup on C xref)
-
- VEDIV
- PARAMETER TYPE: LIST
- REQUIRED: NO
- SEQUENCE NUMBER: 8
- DESCRIPTION:
This is a list of divisions to be used to screen appointments. Only
appointments in clinics for divisions in this list will be returned.
VEDIV - optional - passed by reference
VEDIV(#) = division name or ien
|
| RETURN PARAMETER DESCRIPTION |
The data is passed to the broker in the ^TMP("VEJD",$J,"VSIT",#) where
Or it will return
-1^No Patient DFN or
-1^No visits found
^TMP("VEJD",$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)
|