GENERAL DESCRIPTION |
SELECTED^VSIT(DFN,SDT,EDT,HOSLOC,ENCTYPE,NENCTYPE,SERVCAT,NSERVCAT,LASTN)
Returns selected visits depending on screens passed in.
Parameter Description:
Only the DFN is required.
DFN Pointer to the Patient file (#2)
SDT Start Date
EDT End Date
HOSLOC Pointer to the Hospital Location file (#44)
ENCTYPE Encounter types is a string of all the Encounter Types
(field #15003) wanted.
e.g. "OA" for only Ancillary and Occasion of service
NENCTYPE Not Encounter types is a string of all the Encounter Types
(field #15003) not wanted.
e.g. "T" for do not include Telephone
SERVCAT Service Categories is a string of all the Service Categories
(field #.07) to include. If non is passed all is assumed.
e.g. "H" for just historical.
"T" for just Telephone.
"AIT" for ambulatory (in and out patient) and
Telephone.
NSERVCAT Not Service categories is a string of all the Service
Categories (field #.07) to not include.
LASTN How many to return starting with the End Date an going
backwards
Returned Array: (may be killed before and after use)
^TMP("VSIT",$J,vsit ien,#)
vsit ien Pointer to the Visit file (#9000010)
# Is a sequence number i.e. 1,2,3, ...
Where the values stored in the array are of the form:
Piece 1: Date and Time from the Vsit File Entry
Piece 2: If Service Category '= "H" then
Hospital Location (pointer to file#44) ";" External Value
If Service Category = "H" then
Location of Encounter (Pointer to file #9999999.06) ";"
External Value
Piece 3: Service Category (Value of field .07 set of codes)
Piece 4: Service Connected (Value of field 80001 External Value)
Piece 5: Patient Status in/out (Value of field 15002 set of codes)
Piece 6: Clinic Stop ien (Pointer to file # 40.7 ";" External value)
|