GMVUT3 ;HIOFO/YH,FT-VITAL MEASUREMENT SITE/QUALIFIER SELECTION ;2/5/02 15:04
;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
;
; This routine uses the following IAs:
; #10104 - ^XLFSTR calls (supported)
;
GIRTH ;INPUT TRANSFORM FOR CIRCUMFERENCE/GIRTH
Q:"UNAVAILABLEPASSREFUSED"[$$UP^XLFSTR(X)
N UNIT S UNIT=$$UP^XLFSTR($P(X,+X,2)),X=+X I UNIT="" S UNIT="I" Q
I UNIT="C" S X=$J(.3937*X,0,2),UNIT="I"
I UNIT'="I" K X Q
K:+X'=X!(X>200)!(X<0) X
Q
CVP ;INPUT TRANSFORM FOR CVP
Q:"UNAVAILABLEPASSREFUSED"[$$UP^XLFSTR(X)
N UNIT S UNIT=$$UP^XLFSTR($P(X,+X,2)) I $L(UNIT)>1!($L(UNIT)=1&($E(UNIT)'="G")) K X Q
I UNIT'="" S X=X*1.36
K:X<-13.6!(X>136) X
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HGMVUT3 686 printed Oct 16, 2024@18:00:43 Page 2
GMVUT3 ;HIOFO/YH,FT-VITAL MEASUREMENT SITE/QUALIFIER SELECTION ;2/5/02 15:04
+1 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
+2 ;
+3 ; This routine uses the following IAs:
+4 ; #10104 - ^XLFSTR calls (supported)
+5 ;
GIRTH ;INPUT TRANSFORM FOR CIRCUMFERENCE/GIRTH
+1 if "UNAVAILABLEPASSREFUSED"[$$UP^XLFSTR(X)
QUIT
+2 NEW UNIT
SET UNIT=$$UP^XLFSTR($PIECE(X,+X,2))
SET X=+X
IF UNIT=""
SET UNIT="I"
QUIT
+3 IF UNIT="C"
SET X=$JUSTIFY(.3937*X,0,2)
SET UNIT="I"
+4 IF UNIT'="I"
KILL X
QUIT
+5 if +X'=X!(X>200)!(X<0)
KILL X
+6 QUIT
CVP ;INPUT TRANSFORM FOR CVP
+1 if "UNAVAILABLEPASSREFUSED"[$$UP^XLFSTR(X)
QUIT
+2 NEW UNIT
SET UNIT=$$UP^XLFSTR($PIECE(X,+X,2))
IF $LENGTH(UNIT)>1!($LENGTH(UNIT)=1&($EXTRACT(UNIT)'="G"))
KILL X
QUIT
+3 IF UNIT'=""
SET X=X*1.36
+4 if X<-13.6!(X>136)
KILL X
+5 QUIT