TITLE | VALUE | |
---|---|---|
NAME | VEJDWPB GET VISITS ONLY | |
DESCRIPTION | This loops through the Visit file (#9000010) AA cross reference to find all visits for a patient and date range | |
TAG | VS | |
ROUTINE | VEJDVST2 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 1 |
INPUT PARAMETER | DFN | |
DESCRIPTION | This is the pointer value to the Patient file | |
PARAMETER TYPE | LITERAL | |
REQUIRED | YES | |
MAXIMUM DATA LENGTH | 12 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 2 |
INPUT PARAMETER | BEG | |
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. | |
PARAMETER TYPE | LITERAL | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 14 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 3 |
INPUT PARAMETER | END | |
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. | |
PARAMETER TYPE | LITERAL | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 14 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 4 |
INPUT PARAMETER | ZLOC | |
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. | |
PARAMETER TYPE | LIST | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 15 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 5 |
INPUT PARAMETER | CAT | |
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 | |
PARAMETER TYPE | LITERAL | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 1 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 6 |
INPUT PARAMETER | VECLIN | |
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 | |
PARAMETER TYPE | LIST | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | ||
INPUT PARAMETERS | SEQUENCE NUMBER | 7 |
INPUT PARAMETER | SCODE | |
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) | |
PARAMETER TYPE | LIST | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | ||
INPUT PARAMETERS | SEQUENCE NUMBER | 8 |
INPUT PARAMETER | VEDIV | |
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 | |
PARAMETER TYPE | LIST | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | ||
RETURN VALUE TYPE | GLOBAL ARRAY | |
RETURN PARAMETER DESCRIPTION | The data is passed to the broker in the ^TMP("VEJD",$J,"VSIT",#) where ^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) Or it will return -1^No Patient DFN or -1^No visits found | |
AVAILABILITY | AGREEMENT | |
INACTIVE | ||
CLIENT MANAGER | ||
WORD WRAP ON | TRUE | |
VERSION | ||
SUPPRESS RDV USER SETUP | ||
APP PROXY ALLOWED |