VistA Analysis » VistA Reference » RPCs » ORQQVI VITALS

ORQQVI VITALS

Array of patient most recent vitals within start and stop date/times. Ifno start and stop dates are indicated, the most recent are returned. If no start date is passed then the start date is 1 (i.e. before anydates). If no stop date is passed then the start date is also the stop date and ifthere is not start date then 9999999 is used as the stop date.

Properties

Property Value
Label FASTVIT
MUMPS Implementation ORQQVI
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
PATIENT ID LITERAL 16 true Patient id (DFN) from Patient File (#2).
START DATE/TIME LITERAL 16   Start date/time for vital retrieval in Fileman format.If none is passed then the start date is 1 (i.e. before any dates).
STOP DATE/TIME LITERAL 16   Stop date/time for vital retrieval in Fileman format.If none is passed then the Start date is also the stop date and if thereis not start date then 9999999 is used as the stop date

MUMPS Method Description

Property Value
Method FASTVIT^ORQQVI
Method Comment return patient's most recent vital measurements
Input Parameters DFN, F1, F2
First Comment
 in date range
ORY: return variable, results are returned in the format:
vital measurement ien^vital type^rate^date/time taken
DFN: patient identifier from Patient File [#2]
F1: starting date/time range
F2: ending date/time range
Code
 N CNT,DT1,DT2
S CNT=0
I $G(F1)>0 D
. I $G(F2)="",F1["." S DT1=$P(F1,".",1)_"."_$E($P(F1,".",2),1,4)
. E S DT1=F1
E S DT1=1
S DT2=$S($G(F2)>0:F2,DT1>1:DT1,1:9999998)
D VITAL("TEMPERATURE","T",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("PULSE","P",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("RESPIRATION","R",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("BLOOD PRESSURE","BP",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("HEIGHT","HT",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("WEIGHT","WT",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("PAIN","PN",DFN,.ORY,.CNT,DT1,DT2) ;dee 2/11/99
D VITAL("PULSE OXIMETRY","PO2",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("CENTRAL VENOUS PRESSURE","CVP",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("CIRCUMFERENCE/GIRTH","CG",DFN,.ORY,.CNT,DT1,DT2)
D VITAL("BODY MASS INDEX","BMI",DFN,.ORY,.CNT,DT1,DT2)

CPRS

File Type Description
Pascal File rCover.pas
Pascal File Vitals/rVitals.pas


Document generated on August 31st 2022, 2:55:43 pm