source: FOIAVistA/trunk/r/DIETETICS-FH/FHASM2D.m@ 1730

Last change on this file since 1730 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1FHASM2D ; HISC/REL - Target Weight - Anthropometric/Hamwi ;4/10/90 08:16
2 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28
3A ; Anthropometric Weight Calculation (Chumlea, 1988)
4 S EXT="Y" D ANT^FHASM3
5 S Y="" I ACIR=""!(CCIR="") W *7,!!,"Need Arm & Calf Circumference, at a minimum, to compute weight." Q
6 G A1:SCA="",A2:KNEE="",A3
7A1 I SEX="M" S Y=2.31*ACIR+(1.5*CCIR)-50.1 G A4
8 S Y=1.63*ACIR+(1.43*CCIR)-37.46 G A4
9A2 I SEX="M" S Y=1.92*ACIR+(1.44*CCIR)+(.26*SCA)-39.97 G A4
10 S Y=.92*ACIR+(1.5*CCIR)+(.42*SCA)-26.19 G A4
11A3 I SEX="M" S Y=1.73*ACIR+(.98*CCIR)+(.37*SCA)+(1.16*KNEE)-81.69 G A4
12 S Y=.98*ACIR+(1.27*CCIR)+(.4*SCA)+(.87*KNEE)-62.35 G A4
13A4 S Y0=+$J(Y*2.2,0,0),Y=+$J(Y*2.2,0,1)
14 W !!,"Calculated Weight: ",$S(FHU="M":+$J(Y/2.2,0,0)_"kg",1:Y0_"#") Q
15K ;Estimating Stature from Knee Height for Persons 60 to 90
16 ;Years of Age by William Cameron Chumlea, PhD
17 S KNEE=+$J(Y*2.54,0,1)
18 I AGE<60 W !,*7,"Can only calculate knee height for persons aged 60 or older" S Y=-1 Q
19 S A1=Y*2.54
20 I SEX="M" S A1=60.65+(2.04*A1)
21 I SEX="F" S A1=84.88+(1.83*A1)-(.24*AGE)
22 S Y=$J(A1/2.54,0,0)
23 S X1=$S(Y\12:Y\12_"'",1:"")_$S(Y#12:" "_(Y#12)_"""",1:""),X2=+$J(Y*2.54,0,0)_" cm"
24 W " (",$S(FHU'="M":X1,1:X2),")" Q
25H ; Hamwi tARGET Weight
26 ; Hamwi,George J. Therapy: Changing Dietary Concepts in Diabetes Mellitus:
27 ; Diagnosis and Treatment, Vol. 1, Edited by T.S. Danowski.
28 ; Amer. Diabetes Assn., 500 5th Ave, NYC, NY 10020, 1964, 73-78.
29 S A1=$S(FRM="S":0.9,FRM="L":1.1,1:1)
30 I SEX="M" S IBW=HGT-60*6+106*A1
31 I SEX="F" S IBW=HGT-60*5+100*A1
32 G ED
33ED S X1=$S(FHU'="M":+$J(IBW,0,0)_" lb",1:+$J(IBW/2.2,0,1)_" kg")
34E1 W !!,"Select Target Body Weight: ",X1,"// " R X:DTIME I '$T!(X["^") S IBW="",FHQUIT=1 Q
35 Q:X="" D WGT^FHASM1 I Y<1 D WGP^FHASM1 G E1
36 S:IBW'=+Y IBW=+Y,METH="E" Q
Note: See TracBrowser for help on using the repository browser.