The Allergy Tracking System V3.0 uses a call to
XTRCT^GMTSLRSE to extract lab results. A call to ^%ZOSF("TEST") is used to
check for the existence of this routine on the system before it is called.
The input variables are:
LRDFN = IFN of patient in Lab Data (63) file.
SEX = Sex of patient.
GMTS1 = Inverse end date of search for lab results.
GMTS2 = Inverse start date of search for lab results.
MAX = Maximum number of lab results to be extracted
TEST = IFN of lab test which results are sought in
Laboratory Test (60) file. The data is returned in the following
array: @REF@("LRS",$J,NUM,IDT)=DDT^SPC^TST^RSL^FLG^UNT^LO^HI where:
REF = "^UTILITY" if Health Summary V1.2, or
"^TMP" if Health Summary V2.5+.
NUM = Order (1 to MAX).
IDT = Inverse draw date/time of result.
DDT = Draw date/time of result.
SPC = Specimen for lab order. This variable has
format A;B where A is the internal pointer
and B is external printable form. TST = Lab test ordered. This
variable has format
A;B where A is the internal pointer and B
is external printable form. RSL = Numeric result of test. FLG =
Reference flag (H,*H,L,*L). UNT = Unit of measure (external format). LO =
Reference/Therapeutic Lower bound. HI = Reference/Therapeutic Upper bound.