TITLE | VALUE | |
---|---|---|
NAME | GMV CLOSEST READING | |
DESCRIPTION | This 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. | |
TAG | CLOSEST | |
ROUTINE | GMVGETD | |
INPUT PARAMETERS | SEQUENCE NUMBER | 1 |
INPUT PARAMETER | GMVDFN | |
DESCRIPTION | A pointer to the Patient (#2) file (i.e., DFN). | |
PARAMETER TYPE | LITERAL | |
REQUIRED | YES | |
MAXIMUM DATA LENGTH | 12 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 2 |
INPUT PARAMETER | GMVDT | |
DESCRIPTION | The date/time to search from. The default is NOW. | |
PARAMETER TYPE | LITERAL | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 14 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 3 |
INPUT PARAMETER | GMVT | |
DESCRIPTION | The vital type abbreviation as it appears in FILE 120.51, Field 1 (e.g., WT). | |
PARAMETER TYPE | LITERAL | |
REQUIRED | YES | |
MAXIMUM DATA LENGTH | 5 | |
INPUT PARAMETERS | SEQUENCE NUMBER | 4 |
INPUT PARAMETER | GMVFLAG | |
DESCRIPTION | A 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 TYPE | LITERAL | |
REQUIRED | NO | |
MAXIMUM DATA LENGTH | 1 | |
RETURN VALUE TYPE | SINGLE VALUE | |
RETURN PARAMETER DESCRIPTION | Returns 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" | |
AVAILABILITY | RESTRICTED | |
INACTIVE | ACTIVE | |
CLIENT MANAGER | ||
WORD WRAP ON | ||
VERSION | ||
SUPPRESS RDV USER SETUP | ||
APP PROXY ALLOWED |