GENERAL DESCRIPTION |
The Health Summary Package desires to set up an
integration agreement with the PCE Package to access the described API to the
Visit (#900010) file.
VISIT^PXRHS14(DFN,FROM,RECNO,OCCLIM,CATCODE,PSTAT)
INPUT: DFN - Pointer to PATIENT file (#2).
FROM - Index entry from which to begin the list.
Passed by reference.
RECNO - Record number. Passed by reference.
OCCLIM - Maximum number of visits to return.
CATCODE - Pattern Match which controls visit data that is
returned (Can include multiple codes).
A = AMBULATORY
H = HOSPITALIZATION
I = IN HOSPITAL
C = CHART REVIEW
T = TELECOMMUNICATIONS
N = NOT FOUGERY
O = OBSERVATION
E = EVENT (HISTORICAL)
R = NURSING HOME
D = DAILY HOSPITALIZATION DATA
X = ANCILLARY PACKAGE DAILY DATA
PSTAT - Patient Status.
1 = Inpatient
0 or NULL = Outpatient
OUTPUT:
Data fro0) file except for hosp. loc. abbr.
^TMP("PXV",$J,InvExDt,RecNo,0) = VISIT/ADMIT DATE&TIME [I;.01]
^ LOC. OF ENCOUNTER [E;.06] ^ SERVICE CATEGORY [E;.07]
^ CLINIC [E;.08] ^ WALK IN/APPT [E;.16]
^ EVALUATION AND MANAGEMENT CODE [E;.17]
^ HOSPITAL LOCATION [E;.22]
[] = [I(nternal)/E(xternal); Field #]
Subscripts:
InvExDt - Inverted Visit Date from "AA" x-ref
RecNo - Record Number
NOTE: Calling routine is required to delete ^TMP("PXV",$J). It can be deleted
between multiple calls to this entry point or after the calling routine makes
the last call depending on how the data needs to be accumulated.
|