GMV CLOSEST READING

TITLEVALUE
NAMEGMV CLOSEST READING
DESCRIPTIONThis remote procedure call returns the observation date/time and reading
of the record closest to the date/time specified for the patient and vital
type.
TAGCLOSEST
ROUTINEGMVGETD
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERGMVDFN
DESCRIPTIONA pointer to the Patient (#2) file (i.e., DFN).
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH12

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERGMVDT
DESCRIPTIONThe date/time to search from. The default is NOW.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH14

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERGMVT
DESCRIPTIONThe vital type abbreviation as it appears in FILE 120.51, Field 1 (e.g.,
WT).
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH5

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERGMVFLAG
DESCRIPTIONA flag to indicate if the search should look before or after the date/time
specified in the GMVDT value where 1 indicates before, 2 indicates after
and 0 indicates either direction.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

RETURN VALUE TYPESINGLE VALUE
RETURN PARAMETER DESCRIPTIONReturns a string composed of two pieces. The first piece contains the
observation date/time (FILE 120.5, Field .01) of the record that was
found. The second piece contains the rate (FILE 120.5, Field 1.2) of the
record. If there is an error, the first piece will be -1 and the second
piece will be the error text.

Example:

> S GMVDFN=134,GMVDT=3090225.08,GMVT="WT",GMVFLAG=0
> D CLOSEST(.TEST,GMVDFN,GMVDT,GMVT,GMVFLAG) ZW TEST
> TEST="3081106.142926^135"
AVAILABILITYRESTRICTED
INACTIVEACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED