| DESCRIPTION |
This will call the DSIC GET SCHED APPTS rpc to get the scheduled
appointments for the user inputted date range. It uses SELECTED^VSIT to
find all visits. It uses IN5^VADPT to get the current admission. It
will also get historical admission data, but manipulate the hospital
location pointer values to the Visit LOCATION (#9999999.06) file,
that points to the INSTITUTION (#4) file.
|
| RETURN PARAMETER DESCRIPTION |
It returns to the broker, via the global array ^TMP("DSIC",$J,"VSIT",#)
p5 := date/time in internal fileman format
p6 := location file (#44) ien
p4 & p6 may be entries from the INSTITUTION (#4) file. The
SELECTED^VSIT API has different meanings for historical
hospitalizations versus Outpatient Visits. For visits, the
meanings above apply. For Hospitalizations, p6 is a pointer to the
INSTITUTION (#4) file and p4 is null.
1. All visits and current admission
4. If no matching data was found then return
-1^Invalid patient DFN
-1^No visits or appointments found
2. Any scheduled visit for which there is no corresponding visit file
entry for the same date/time and clinic.
3. Format of data returned p1^p2^p3^p4^p5^p6 where
p1 := A (if admission) V (if visit) S (if scheduled appt)
p2 := visit file ien
p3 := date/time in external format
p4 := location name (from file 44)
|