FHASM2C ; HISC/REL - Target Weight - Pediatric ;6/2/89 15:15
;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28
;;Normalized NCHS/CDC Anthropometric Reference
S X1=+$J(AGE*12,0,0) I X1'>0!(X1>119) S IBW="" Q
P1 S X=$P($T(WT+X1),";;",2) S:SEX="F" X=$P(X," ",4,6) S X3=$P(X," ",1),A1=$P(X," ",2),A2=$P(X," ",3)
S X1=+$J(-.524*A1+X3,0,1),X2=+$J(.524*A2+X3,0,1)
S W1=+$J(X1*2.2,0,0),W2=+$J(X2*2.2,0,0),W3=+$J(X3*2.2,0,0)
I FHU'="M" S X1=W1,X2=W2,X3=W3
P3 W !!,"Select Target Weight (",X1,"-",X2,") ",X3,$S(FHU'="M":" lb",1:" kg"),"// " R X:DTIME I '$T!(X["^") S IBW="^" Q
I X="" S IBW=W3 Q
D WGT^FHASM1 I Y<1 D WGP^FHASM1 G P3
S IBW=+Y I IBW<W1!(IBW>W2) S METH="E"
Q
WT ;;3.3 .4 .5 3.2 .5 .4
;;4.3 .7 .7 4 .6 .5
;;5.2 .9 .8 4.7 .7 .7
;;6 1 .9 5.4 .7 .8
;;6.7 1 .9 6 .8 .8
;;7.3 1 .9 6.7 .8 .9
;;7.8 1 1 7.2 .9 .9
;;8.3 1 1 7.7 .9 .9
;;8.8 1 1 8.2 .9 1
;;9.2 1 1 8.6 1 1
;;9.5 1 1.1 8.9 1 1
;;9.9 1 1.1 9.2 1 1
;;10.2 1 1.1 9.5 1 1
;;10.4 1 1.1 9.8 1.1 1.1
;;10.7 1.1 1.2 10 1.1 1.1
;;10.9 1.1 1.2 10.2 1.1 1.1
;;11.1 1.1 1.2 10.4 1.1 1.1
;;11.3 1.1 1.2 10.6 1.2 1.1
;;11.5 1.2 1.2 10.8 1.2 1.1
;;11.7 1.2 1.2 11 1.2 1.2
;;11.8 1.2 1.3 11.2 1.2 1.2
;;12 1.3 1.3 11.4 1.2 1.2
;;12.2 1.3 1.3 11.5 1.2 1.2
;;12.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27.6 3.7 5.7 27.8 4.2 6.6
;;27.9 3.7 5.8 28.1 4.3 6.7
;;28.1 3.8 5.9 28.5 4.4 6.8
;;28.4 3.9 6 28.8 4.4 6.9
;;28.6 3.9 6.1 29.1 4.5 7.1
;;28.9 4 6.2 29.4 4.6 7.2
;;29.2 4.1 6.3 29.8 4.7 7.3
;;29.5 4.1 6.5 30.1 4.8 7.4
;;29.7 4.2 6.6 30.5 4.8 7.6
;;30 4.3 6.7 30.8 4.9 7.7
;;30.3 4.4 6.8 31.1 5 7.8
;;30.6 4.4 6.9 31.5 5.1 7.9
;;30.9 4.5 7.1 31.8 5.2 8.1
;;31.1 4.6 7.2 32.2 5.2 8.2
FHASM2C ; HISC/REL - Target Weight - Pediatric ;6/2/89 15:15
+1 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28
+2 ;;Normalized NCHS/CDC Anthropometric Reference
+3 SET X1=+$JUSTIFY(AGE*12,0,0)
IF X1'>0!(X1>119)
SET IBW=""
QUIT
P1 SET X=$PIECE($TEXT(WT+X1),";;",2)
IF SEX="F"
SET X=$PIECE(X," ",4,6)
SET X3=$PIECE(X," ",1)
SET A1=$PIECE(X," ",2)
SET A2=$PIECE(X," ",3)
+1 SET X1=+$JUSTIFY(-.524*A1+X3,0,1)
SET X2=+$JUSTIFY(.524*A2+X3,0,1)
+2 SET W1=+$JUSTIFY(X1*2.2,0,0)
SET W2=+$JUSTIFY(X2*2.2,0,0)
SET W3=+$JUSTIFY(X3*2.2,0,0)
+3 IF FHU'="M"
SET X1=W1
SET X2=W2
SET X3=W3
P3 WRITE !!,"Select Target Weight (",X1,"-",X2,") ",X3,$SELECT(FHU'="M":" lb",1:" kg"),"// "
READ X:DTIME
IF '$TEST!(X["^")
SET IBW="^"
QUIT
+1 IF X=""
SET IBW=W3
QUIT
+2 DO WGT^FHASM1
IF Y<1
DO WGP^FHASM1
GOTO P3
+3 SET IBW=+Y
IF IBW<W1!(IBW>W2)
SET METH="E"
+4 QUIT
WT ;;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