; This function returns one if TYPE is a valid selection.
; from the PCE Device Interface Specification.
VALIDATE(GMRVDAT)
; Given the array GMRVDAT passed in by PCE Device
; Interface (by reference, i.e., D VALIDATE^GMRVPCE0(.ARRAY)), whose
; format is described in the PCE Device Interface documentation, this
; procedure will validate the Vitals data. If the data is invalid,
; the procedure will return GMRVDAT("ERROR") as described in the PCE
; Device Interface documentation.
RATECHK(GMRVTYP,GMRVRATE,GMRVUNIT)
; Extrinsic function to validate the
; rate for a particular measurement
; Input
; Variables: GMRVTYP=Type of measurement (abbreviation
; (req.) from PCE Device Interface Specification).
; GMRVRATE=Measurement rate to be validated.
; (req.)
; GMRVUNIT=Unit of measurement for rate, if specified.
; (opt.)
; Function value: 1 if rate is valid.
; 0 if rate is invalid.
HELP(GMRVTYP,GMRVARRY)
; This procedure will return help for a particular
; measurement type in an array.
; Input
; Variables: GMRVTYP=Type of measurement (abbreviation
; (req.) from PCE Device Interface Specification).
; GMRVARR=Closed array reference of array to return
; (opt.) help in. If this variable is not specified,
; help is returned in ^TMP($J,"GMRVHELP").
STORE(GMRVDAT)
; Given vitals data passed in the GMRVDAT array, this
; procedure will store that data in the GMRV Patient Measurements
; (120.5) file.