Python写経会2-3


# BMIを計算する関数を作成しましょう！


## 課題:

> csvファイル（patient_background.csv）の情報を利用して、
> 各患者のBMIを計算し、その結果を利用し、
> 肥満度チェックを行うプログラミングを作成する。

## 練習ポイント:

   - 関数の使い方
   - ファイルの処理
   - ループの使い方
   - 条件分岐

## Hints:

   1. 順次にプログラムを完成する(ファイルの読み込み、データの取得、BMIを計算する関数の作成、肥満度チェックする関数の作成、合体し出力を考える)
   2. ファイルの処理　open(), readlines()関数を利用する
      
      ```
      f = open("./patient_background.csv", "r", encoding="utf-8")
      list = f.readlines()
      for line in list:
         print(line)
      f.close()
      ```
   3. 身長をm単位に変換する必要がある
   4. 文字列から数値へ変換する必要がある


## step 1: 読み込み


```python
# readfile
f = open("./patient_background.csv", "r", encoding="utf-8")
list = f.readlines()
for line in list:
    print(line)
f.close()
```

    名前,身長,体重,年齢
    
    患者1,168,75,72
    
    患者2,165,43,63
    
    患者3,172,73,84
    
    患者4,181,79,76
    
    患者5,187,44,79
    
    患者6,195,53,77
    
    患者7,185,48,58
    
    患者8,183,41,24
    
    患者9,180,58,60
    
    患者10,190,39,56
    
    患者11,198,44,58
    
    患者12,180,74,27
    
    患者13,174,56,36
    
    患者14,165,48,50
    
    患者15,171,63,81
    
    患者16,183,44,88
    
    患者17,182,50,36
    
    患者18,161,57,28
    
    患者19,198,38,36
    
    患者20,176,52,78
    
    患者21,182,58,88
    
    患者22,190,48,60
    
    患者23,193,79,54
    
    患者24,169,52,76
    
    患者25,166,43,37
    
    患者26,175,74,85
    
    患者27,164,66,44
    
    患者28,183,35,68
    
    患者29,178,70,36
    
    患者30,178,67,47
    
    患者31,172,76,29
    
    患者32,171,43,77
    
    患者33,163,67,52
    
    患者34,184,86,83
    
    患者35,196,83,52
    
    患者36,168,47,59
    
    患者37,189,77,26
    
    患者38,192,61,54
    
    患者39,168,62,26
    
    患者40,189,72,25
    
    患者41,190,88,82
    
    患者42,159,41,54
    
    患者43,182,67,78
    
    患者44,170,82,46
    
    患者45,191,73,73
    
    患者46,164,68,50
    
    患者47,162,47,54
    
    患者48,177,57,31
    
    患者49,188,89,71
    
    患者50,174,68,63
    
    患者51,196,38,70
    
    患者52,192,38,86
    
    患者53,164,74,89
    
    患者54,197,83,46
    
    患者55,180,54,29
    
    患者56,165,39,58
    
    患者57,168,42,84
    
    患者58,183,40,37
    
    患者59,192,45,67
    
    患者60,161,85,36
    
    患者61,180,82,75
    
    患者62,173,56,74
    
    患者63,165,42,90
    
    患者64,171,85,75
    
    患者65,169,77,24
    
    患者66,181,82,66
    
    患者67,187,85,71
    
    患者68,158,75,79
    
    患者69,196,80,60
    
    患者70,177,67,63
    
    患者71,178,70,53
    
    患者72,170,72,33
    
    患者73,176,66,60
    
    患者74,190,82,34
    
    患者75,166,39,57
    
    患者76,190,62,50
    
    患者77,180,88,87
    
    患者78,192,64,69
    
    患者79,175,37,63
    
    患者80,165,81,88
    
    患者81,175,51,34
    
    患者82,159,72,53
    
    患者83,169,65,76
    
    患者84,184,57,58
    
    患者85,188,69,41
    
    患者86,198,35,47
    
    患者87,179,46,51
    
    患者88,178,44,48
    
    患者89,167,66,20
    
    患者90,184,75,78
    
    患者91,190,41,28
    
    患者92,175,86,85
    
    患者93,169,90,85
    
    患者94,194,90,40
    
    患者95,167,65,64
    
    患者96,187,39,72
    
    患者97,170,48,49
    
    患者98,186,85,23
    
    患者99,180,49,70
    
    患者100,183,42,72
    
    患者101,189,64,51
    
    患者102,187,62,41
    
    患者103,182,51,77
    
    患者104,166,74,81
    
    患者105,194,45,79
    
    患者106,184,85,54
    
    患者107,185,65,88
    
    患者108,168,37,86
    
    患者109,168,76,55
    
    患者110,169,78,65
    
    患者111,192,88,82
    
    患者112,168,71,46
    
    患者113,185,43,42
    
    患者114,177,68,20
    
    患者115,170,80,66
    
    患者116,198,67,67
    
    患者117,188,41,45
    
    患者118,196,53,22
    
    患者119,162,52,73
    
    患者120,188,59,45
    
    患者121,174,52,59
    
    患者122,172,60,70
    
    患者123,162,79,66
    
    患者124,190,78,57
    
    患者125,174,86,40
    
    患者126,169,78,49
    
    患者127,186,76,90
    
    患者128,166,77,58
    
    患者129,165,69,37
    
    患者130,160,41,76
    
    患者131,170,35,26
    
    患者132,186,66,45
    
    患者133,163,82,23
    
    患者134,196,51,62
    
    患者135,158,72,33
    
    患者136,179,52,49
    
    患者137,177,64,47
    
    患者138,172,90,69
    
    患者139,191,66,27
    
    患者140,195,51,42
    
    患者141,164,44,82
    
    患者142,175,79,51
    
    患者143,175,88,81
    
    患者144,185,51,58
    
    患者145,191,86,31
    
    患者146,159,90,63
    
    患者147,186,40,72
    
    患者148,186,61,63
    
    患者149,192,50,78
    
    患者150,193,84,40
    
    患者151,171,39,42
    
    患者152,192,55,66
    
    患者153,181,35,56
    
    患者154,170,49,88
    
    患者155,194,52,73
    
    患者156,193,73,55
    
    患者157,169,81,78
    
    患者158,162,35,79
    
    患者159,164,63,88
    
    患者160,160,44,39
    
    患者161,168,62,38
    
    患者162,190,78,27
    
    患者163,182,53,29
    
    患者164,170,62,26
    
    患者165,165,72,26
    
    患者166,170,83,83
    
    患者167,185,73,21
    
    患者168,177,78,79
    
    患者169,190,88,49
    
    患者170,170,90,67
    
    患者171,168,80,36
    
    患者172,178,53,54
    
    患者173,193,35,82
    
    患者174,180,70,82
    
    患者175,198,86,35
    
    患者176,176,64,50
    
    患者177,198,50,74
    
    患者178,186,37,58
    
    患者179,165,60,28
    
    患者180,183,53,27
    
    患者181,182,66,25
    
    患者182,187,55,52
    
    患者183,161,46,77
    
    患者184,192,58,26
    
    患者185,182,55,20
    
    患者186,198,50,60
    
    患者187,184,62,79
    
    患者188,161,37,64
    
    患者189,176,36,36
    
    患者190,163,79,52
    
    患者191,164,38,42
    
    患者192,175,40,90
    
    患者193,161,54,85
    
    患者194,198,87,73
    
    患者195,195,60,58
    
    患者196,182,35,59
    
    患者197,171,88,44
    
    患者198,182,89,58
    
    患者199,176,43,65
    
    患者200,169,72,74
    
    患者201,173,40,39
    
    患者202,158,90,56
    
    患者203,196,54,25
    
    患者204,198,45,80
    
    患者205,175,52,81
    
    患者206,195,50,84
    
    患者207,178,42,64
    
    患者208,194,72,29
    
    患者209,187,37,76
    
    患者210,173,66,90
    
    患者211,167,40,22
    
    患者212,167,42,48
    
    患者213,190,64,53
    
    患者214,193,41,47
    
    患者215,158,65,53
    
    患者216,175,59,33
    
    患者217,185,50,57
    
    患者218,171,86,22
    
    患者219,171,35,39
    
    患者220,162,55,75
    
    患者221,175,37,24
    
    患者222,183,85,90
    
    患者223,179,75,71
    
    患者224,185,61,72
    
    患者225,159,81,67
    
    患者226,172,41,63
    
    患者227,170,57,89
    
    患者228,193,82,23
    
    患者229,185,41,74
    
    患者230,162,50,26
    
    患者231,184,43,51
    
    患者232,186,39,84
    
    患者233,187,82,20
    
    患者234,184,58,83
    
    患者235,179,36,73
    
    患者236,171,57,60
    
    患者237,159,36,51
    
    患者238,190,73,74
    
    患者239,198,57,75
    
    患者240,192,75,63
    
    患者241,197,48,25
    
    患者242,177,58,72
    
    患者243,191,84,52
    
    患者244,160,42,77
    
    患者245,160,88,61
    
    患者246,166,72,50
    
    患者247,161,52,76
    
    患者248,192,64,40
    
    患者249,174,73,68
    
    患者250,182,59,27
    
    患者251,191,82,50
    
    患者252,158,69,88
    
    患者253,183,73,46
    
    患者254,190,86,58
    
    患者255,165,54,35
    
    患者256,186,50,41
    
    患者257,164,82,52
    
    患者258,187,41,58
    
    患者259,187,77,42
    
    患者260,165,65,59
    
    患者261,178,38,21
    
    患者262,187,37,59
    
    患者263,181,61,62
    
    患者264,175,37,25
    
    患者265,166,50,41
    
    患者266,180,45,67
    
    患者267,172,44,33
    
    患者268,177,68,56
    
    患者269,182,89,33
    
    患者270,161,45,27
    
    患者271,170,42,83
    
    患者272,170,77,25
    
    患者273,178,83,32
    
    患者274,194,36,41
    
    患者275,170,82,53
    
    患者276,166,62,37
    
    患者277,162,35,39
    
    患者278,167,88,67
    
    患者279,184,38,81
    
    患者280,177,57,57
    
    患者281,182,37,22
    
    患者282,178,42,84
    
    患者283,190,81,71
    
    患者284,171,57,34
    
    患者285,161,81,21
    
    患者286,188,35,66
    
    患者287,196,87,86
    
    患者288,194,82,40
    
    患者289,169,59,78
    
    患者290,162,35,54
    
    患者291,195,82,40
    
    患者292,190,59,68
    
    患者293,196,55,68
    
    患者294,177,65,62
    
    患者295,158,41,30
    
    患者296,171,73,32
    
    患者297,188,43,50
    
    患者298,161,66,90
    
    患者299,165,81,50
    
    患者300,176,56,84
    
    患者301,171,54,76
    
    患者302,168,42,27
    
    患者303,159,67,28
    
    患者304,178,85,34
    
    患者305,184,53,37
    
    患者306,185,37,86
    
    患者307,173,82,29
    
    患者308,186,84,63
    
    患者309,191,75,32
    
    患者310,190,65,57
    
    患者311,187,48,40
    
    患者312,165,49,41
    
    患者313,164,36,74
    
    患者314,172,59,47
    
    患者315,169,55,64
    
    患者316,182,52,63
    
    患者317,196,36,23
    
    患者318,168,38,60
    
    患者319,165,70,76
    
    患者320,193,61,34
    
    患者321,167,54,54
    
    患者322,182,43,87
    
    患者323,182,85,89
    
    患者324,159,51,39
    
    患者325,158,83,25
    
    患者326,171,52,88
    
    患者327,165,68,79
    
    患者328,173,63,77
    
    患者329,176,46,66
    
    患者330,184,46,28
    
    患者331,161,65,28
    
    患者332,198,35,40
    
    患者333,188,87,66
    
    患者334,179,51,79
    
    患者335,197,46,78
    
    患者336,185,43,86
    
    患者337,183,77,25
    
    患者338,170,46,71
    
    患者339,194,40,76
    
    患者340,193,48,24
    
    患者341,194,56,69
    
    患者342,166,57,30
    
    患者343,172,73,29
    
    患者344,160,35,28
    
    患者345,193,61,74
    
    患者346,181,88,67
    
    患者347,185,37,47
    
    患者348,192,71,33
    
    患者349,193,57,66
    
    患者350,191,35,64
    
    患者351,177,45,90
    
    患者352,174,76,73
    
    患者353,178,51,78
    
    患者354,198,36,53
    
    患者355,193,56,84
    
    患者356,192,88,37
    
    患者357,178,81,61
    
    患者358,198,58,26
    
    患者359,182,82,73
    
    患者360,164,62,75
    
    患者361,175,77,39
    
    患者362,197,75,26
    
    患者363,170,44,69
    
    患者364,160,57,36
    
    患者365,158,71,45
    
    患者366,179,40,31
    
    患者367,165,38,78
    
    患者368,173,41,59
    
    患者369,191,81,59
    
    患者370,184,38,21
    
    患者371,187,69,49
    
    患者372,180,86,42
    
    患者373,180,63,57
    
    患者374,188,75,57
    
    患者375,171,82,30
    
    患者376,173,90,78
    
    患者377,196,58,52
    
    患者378,180,82,70
    
    患者379,173,54,67
    
    患者380,172,35,72
    
    患者381,192,46,63
    
    患者382,171,83,38
    
    患者383,174,69,65
    
    患者384,186,41,31
    
    患者385,175,43,22
    
    患者386,166,70,44
    
    患者387,186,46,36
    
    患者388,164,59,41
    
    患者389,173,77,88
    
    患者390,181,47,41
    
    患者391,197,44,61
    
    患者392,197,63,23
    
    患者393,178,46,30
    
    患者394,190,69,29
    
    患者395,169,45,51
    
    患者396,187,65,67
    
    患者397,192,61,45
    
    患者398,192,48,49
    
    患者399,177,57,26
    
    患者400,186,78,48
    
    患者401,179,65,43
    
    患者402,186,51,50
    
    患者403,190,37,76
    
    患者404,198,89,73
    
    患者405,160,45,78
    
    患者406,158,67,24
    
    患者407,169,76,62
    
    患者408,168,88,89
    
    患者409,165,37,64
    
    患者410,189,35,37
    
    患者411,197,37,73
    
    患者412,187,58,45
    
    患者413,179,80,54
    
    患者414,181,56,85
    
    患者415,197,90,60
    
    患者416,165,61,67
    
    患者417,193,70,28
    
    患者418,186,64,82
    
    患者419,174,48,88
    
    患者420,167,78,47
    
    患者421,172,86,59
    
    患者422,165,35,26
    
    患者423,193,80,79
    
    患者424,191,57,49
    
    患者425,163,40,23
    
    患者426,163,49,33
    
    患者427,193,42,78
    
    患者428,187,77,42
    
    患者429,184,60,44
    
    患者430,197,54,23
    
    患者431,192,49,66
    
    患者432,168,67,48
    
    患者433,183,66,50
    
    患者434,160,61,49
    
    患者435,195,66,55
    
    患者436,186,62,84
    
    患者437,161,59,27
    
    患者438,195,78,44
    
    患者439,179,74,80
    
    患者440,172,88,35
    
    患者441,158,64,62
    
    患者442,192,50,84
    
    患者443,162,70,69
    
    患者444,191,51,84
    
    患者445,189,68,50
    
    患者446,193,43,21
    
    患者447,195,70,61
    
    患者448,175,48,24
    
    患者449,181,74,20
    
    患者450,193,63,40
    
    患者451,190,73,32
    
    患者452,159,82,77
    
    患者453,179,40,65
    
    患者454,175,86,21
    
    患者455,165,69,32
    
    患者456,189,46,46
    
    患者457,196,51,27
    
    患者458,192,56,79
    
    患者459,181,48,66
    
    患者460,184,45,67
    
    患者461,163,84,47
    
    患者462,178,53,40
    
    患者463,165,59,47
    
    患者464,177,35,44
    
    患者465,180,81,48
    
    患者466,188,74,70
    
    患者467,187,53,46
    
    患者468,176,63,37
    
    患者469,194,42,84
    
    患者470,175,87,56
    
    患者471,184,44,57
    
    患者472,197,39,43
    
    患者473,190,42,74
    
    患者474,171,69,38
    
    患者475,176,71,73
    
    患者476,181,71,73
    
    患者477,195,55,60
    
    患者478,178,67,64
    
    患者479,185,78,56
    
    患者480,160,82,57
    
    患者481,178,35,80
    
    患者482,184,71,68
    
    患者483,169,43,79
    
    患者484,182,86,36
    
    患者485,187,87,75
    
    患者486,181,35,59
    
    患者487,173,44,65
    
    患者488,188,48,38
    
    患者489,175,71,34
    
    患者490,189,46,61
    
    患者491,166,44,76
    
    患者492,167,67,77
    
    患者493,166,38,24
    
    患者494,160,39,23
    
    患者495,168,67,69
    
    患者496,179,39,86
    
    患者497,161,87,54
    
    患者498,177,38,48
    
    患者499,174,47,58
    
    患者500,172,74,70
    


## step 2: データの抽出


```python
#line.replace('\n','').split(",")
```


```python
[name, height, weight, age] = line.split(",")
```


```python
height = float(height); height
```




    172.0




```python
weight = float(weight); weight
```




    74.0



## step 3: BMIを計算する関数の作成


```python
def calc_BMI(height, weight, effect=1):
    height /= 100
    return(round(weight/(height)**2, effect))
```


```python
#test calc_BMI function
calc_BMI(176, 70)
```




    22.6



## step 4: BMIを評価する関数の作成


```python
def calc_judge(BMI):
    if (BMI < 18.5): return("Underweight")
    if (BMI < 25): return("Normal range")
    if (BMI < 30): return("Pre-obese")
    if (BMI < 35): return("Obese class I")
    if (BMI < 40): return("Obese class II")
    return("Obese class III")
```


```python
#test calc_judge function
calc_judge(31)
```




    'Obese class I'



## step 5: 作成した関数を合体する、出力も考える


```python
def calc_BMI_inline(line):
    [name, height, weight, age] = line.split(",");
    height = float(height);
    weight = float(weight);
    BMI = calc_BMI(height, weight);
    judge = calc_judge(BMI);
    return((BMI, judge))
```


```python
# readfile
f = open("./patient_background.csv", "r", encoding="utf-8");
list = f.readlines();
i = 0
for line in list:
    line = line.replace("\n","");
    if i==0: 
        print(line + ",BMI,評価");
    else:
        (BMI, judge) = calc_BMI_inline(line);
        print(line + "," + str(BMI)+ "," + judge);
    i+=1;
f.close()
```

    名前,身長,体重,年齢,BMI,評価
    患者1,168,75,72,26.6,Pre-obese
    患者2,165,43,63,15.8,Underweight
    患者3,172,73,84,24.7,Normal range
    患者4,181,79,76,24.1,Normal range
    患者5,187,44,79,12.6,Underweight
    患者6,195,53,77,13.9,Underweight
    患者7,185,48,58,14.0,Underweight
    患者8,183,41,24,12.2,Underweight
    患者9,180,58,60,17.9,Underweight
    患者10,190,39,56,10.8,Underweight
    患者11,198,44,58,11.2,Underweight
    患者12,180,74,27,22.8,Normal range
    患者13,174,56,36,18.5,Normal range
    患者14,165,48,50,17.6,Underweight
    患者15,171,63,81,21.5,Normal range
    患者16,183,44,88,13.1,Underweight
    患者17,182,50,36,15.1,Underweight
    患者18,161,57,28,22.0,Normal range
    患者19,198,38,36,9.7,Underweight
    患者20,176,52,78,16.8,Underweight
    患者21,182,58,88,17.5,Underweight
    患者22,190,48,60,13.3,Underweight
    患者23,193,79,54,21.2,Normal range
    患者24,169,52,76,18.2,Underweight
    患者25,166,43,37,15.6,Underweight
    患者26,175,74,85,24.2,Normal range
    患者27,164,66,44,24.5,Normal range
    患者28,183,35,68,10.5,Underweight
    患者29,178,70,36,22.1,Normal range
    患者30,178,67,47,21.1,Normal range
    患者31,172,76,29,25.7,Pre-obese
    患者32,171,43,77,14.7,Underweight
    患者33,163,67,52,25.2,Pre-obese
    患者34,184,86,83,25.4,Pre-obese
    患者35,196,83,52,21.6,Normal range
    患者36,168,47,59,16.7,Underweight
    患者37,189,77,26,21.6,Normal range
    患者38,192,61,54,16.5,Underweight
    患者39,168,62,26,22.0,Normal range
    患者40,189,72,25,20.2,Normal range
    患者41,190,88,82,24.4,Normal range
    患者42,159,41,54,16.2,Underweight
    患者43,182,67,78,20.2,Normal range
    患者44,170,82,46,28.4,Pre-obese
    患者45,191,73,73,20.0,Normal range
    患者46,164,68,50,25.3,Pre-obese
    患者47,162,47,54,17.9,Underweight
    患者48,177,57,31,18.2,Underweight
    患者49,188,89,71,25.2,Pre-obese
    患者50,174,68,63,22.5,Normal range
    患者51,196,38,70,9.9,Underweight
    患者52,192,38,86,10.3,Underweight
    患者53,164,74,89,27.5,Pre-obese
    患者54,197,83,46,21.4,Normal range
    患者55,180,54,29,16.7,Underweight
    患者56,165,39,58,14.3,Underweight
    患者57,168,42,84,14.9,Underweight
    患者58,183,40,37,11.9,Underweight
    患者59,192,45,67,12.2,Underweight
    患者60,161,85,36,32.8,Obese class I
    患者61,180,82,75,25.3,Pre-obese
    患者62,173,56,74,18.7,Normal range
    患者63,165,42,90,15.4,Underweight
    患者64,171,85,75,29.1,Pre-obese
    患者65,169,77,24,27.0,Pre-obese
    患者66,181,82,66,25.0,Pre-obese
    患者67,187,85,71,24.3,Normal range
    患者68,158,75,79,30.0,Obese class I
    患者69,196,80,60,20.8,Normal range
    患者70,177,67,63,21.4,Normal range
    患者71,178,70,53,22.1,Normal range
    患者72,170,72,33,24.9,Normal range
    患者73,176,66,60,21.3,Normal range
    患者74,190,82,34,22.7,Normal range
    患者75,166,39,57,14.2,Underweight
    患者76,190,62,50,17.2,Underweight
    患者77,180,88,87,27.2,Pre-obese
    患者78,192,64,69,17.4,Underweight
    患者79,175,37,63,12.1,Underweight
    患者80,165,81,88,29.8,Pre-obese
    患者81,175,51,34,16.7,Underweight
    患者82,159,72,53,28.5,Pre-obese
    患者83,169,65,76,22.8,Normal range
    患者84,184,57,58,16.8,Underweight
    患者85,188,69,41,19.5,Normal range
    患者86,198,35,47,8.9,Underweight
    患者87,179,46,51,14.4,Underweight
    患者88,178,44,48,13.9,Underweight
    患者89,167,66,20,23.7,Normal range
    患者90,184,75,78,22.2,Normal range
    患者91,190,41,28,11.4,Underweight
    患者92,175,86,85,28.1,Pre-obese
    患者93,169,90,85,31.5,Obese class I
    患者94,194,90,40,23.9,Normal range
    患者95,167,65,64,23.3,Normal range
    患者96,187,39,72,11.2,Underweight
    患者97,170,48,49,16.6,Underweight
    患者98,186,85,23,24.6,Normal range
    患者99,180,49,70,15.1,Underweight
    患者100,183,42,72,12.5,Underweight
    患者101,189,64,51,17.9,Underweight
    患者102,187,62,41,17.7,Underweight
    患者103,182,51,77,15.4,Underweight
    患者104,166,74,81,26.9,Pre-obese
    患者105,194,45,79,12.0,Underweight
    患者106,184,85,54,25.1,Pre-obese
    患者107,185,65,88,19.0,Normal range
    患者108,168,37,86,13.1,Underweight
    患者109,168,76,55,26.9,Pre-obese
    患者110,169,78,65,27.3,Pre-obese
    患者111,192,88,82,23.9,Normal range
    患者112,168,71,46,25.2,Pre-obese
    患者113,185,43,42,12.6,Underweight
    患者114,177,68,20,21.7,Normal range
    患者115,170,80,66,27.7,Pre-obese
    患者116,198,67,67,17.1,Underweight
    患者117,188,41,45,11.6,Underweight
    患者118,196,53,22,13.8,Underweight
    患者119,162,52,73,19.8,Normal range
    患者120,188,59,45,16.7,Underweight
    患者121,174,52,59,17.2,Underweight
    患者122,172,60,70,20.3,Normal range
    患者123,162,79,66,30.1,Obese class I
    患者124,190,78,57,21.6,Normal range
    患者125,174,86,40,28.4,Pre-obese
    患者126,169,78,49,27.3,Pre-obese
    患者127,186,76,90,22.0,Normal range
    患者128,166,77,58,27.9,Pre-obese
    患者129,165,69,37,25.3,Pre-obese
    患者130,160,41,76,16.0,Underweight
    患者131,170,35,26,12.1,Underweight
    患者132,186,66,45,19.1,Normal range
    患者133,163,82,23,30.9,Obese class I
    患者134,196,51,62,13.3,Underweight
    患者135,158,72,33,28.8,Pre-obese
    患者136,179,52,49,16.2,Underweight
    患者137,177,64,47,20.4,Normal range
    患者138,172,90,69,30.4,Obese class I
    患者139,191,66,27,18.1,Underweight
    患者140,195,51,42,13.4,Underweight
    患者141,164,44,82,16.4,Underweight
    患者142,175,79,51,25.8,Pre-obese
    患者143,175,88,81,28.7,Pre-obese
    患者144,185,51,58,14.9,Underweight
    患者145,191,86,31,23.6,Normal range
    患者146,159,90,63,35.6,Obese class II
    患者147,186,40,72,11.6,Underweight
    患者148,186,61,63,17.6,Underweight
    患者149,192,50,78,13.6,Underweight
    患者150,193,84,40,22.6,Normal range
    患者151,171,39,42,13.3,Underweight
    患者152,192,55,66,14.9,Underweight
    患者153,181,35,56,10.7,Underweight
    患者154,170,49,88,17.0,Underweight
    患者155,194,52,73,13.8,Underweight
    患者156,193,73,55,19.6,Normal range
    患者157,169,81,78,28.4,Pre-obese
    患者158,162,35,79,13.3,Underweight
    患者159,164,63,88,23.4,Normal range
    患者160,160,44,39,17.2,Underweight
    患者161,168,62,38,22.0,Normal range
    患者162,190,78,27,21.6,Normal range
    患者163,182,53,29,16.0,Underweight
    患者164,170,62,26,21.5,Normal range
    患者165,165,72,26,26.4,Pre-obese
    患者166,170,83,83,28.7,Pre-obese
    患者167,185,73,21,21.3,Normal range
    患者168,177,78,79,24.9,Normal range
    患者169,190,88,49,24.4,Normal range
    患者170,170,90,67,31.1,Obese class I
    患者171,168,80,36,28.3,Pre-obese
    患者172,178,53,54,16.7,Underweight
    患者173,193,35,82,9.4,Underweight
    患者174,180,70,82,21.6,Normal range
    患者175,198,86,35,21.9,Normal range
    患者176,176,64,50,20.7,Normal range
    患者177,198,50,74,12.8,Underweight
    患者178,186,37,58,10.7,Underweight
    患者179,165,60,28,22.0,Normal range
    患者180,183,53,27,15.8,Underweight
    患者181,182,66,25,19.9,Normal range
    患者182,187,55,52,15.7,Underweight
    患者183,161,46,77,17.7,Underweight
    患者184,192,58,26,15.7,Underweight
    患者185,182,55,20,16.6,Underweight
    患者186,198,50,60,12.8,Underweight
    患者187,184,62,79,18.3,Underweight
    患者188,161,37,64,14.3,Underweight
    患者189,176,36,36,11.6,Underweight
    患者190,163,79,52,29.7,Pre-obese
    患者191,164,38,42,14.1,Underweight
    患者192,175,40,90,13.1,Underweight
    患者193,161,54,85,20.8,Normal range
    患者194,198,87,73,22.2,Normal range
    患者195,195,60,58,15.8,Underweight
    患者196,182,35,59,10.6,Underweight
    患者197,171,88,44,30.1,Obese class I
    患者198,182,89,58,26.9,Pre-obese
    患者199,176,43,65,13.9,Underweight
    患者200,169,72,74,25.2,Pre-obese
    患者201,173,40,39,13.4,Underweight
    患者202,158,90,56,36.1,Obese class II
    患者203,196,54,25,14.1,Underweight
    患者204,198,45,80,11.5,Underweight
    患者205,175,52,81,17.0,Underweight
    患者206,195,50,84,13.1,Underweight
    患者207,178,42,64,13.3,Underweight
    患者208,194,72,29,19.1,Normal range
    患者209,187,37,76,10.6,Underweight
    患者210,173,66,90,22.1,Normal range
    患者211,167,40,22,14.3,Underweight
    患者212,167,42,48,15.1,Underweight
    患者213,190,64,53,17.7,Underweight
    患者214,193,41,47,11.0,Underweight
    患者215,158,65,53,26.0,Pre-obese
    患者216,175,59,33,19.3,Normal range
    患者217,185,50,57,14.6,Underweight
    患者218,171,86,22,29.4,Pre-obese
    患者219,171,35,39,12.0,Underweight
    患者220,162,55,75,21.0,Normal range
    患者221,175,37,24,12.1,Underweight
    患者222,183,85,90,25.4,Pre-obese
    患者223,179,75,71,23.4,Normal range
    患者224,185,61,72,17.8,Underweight
    患者225,159,81,67,32.0,Obese class I
    患者226,172,41,63,13.9,Underweight
    患者227,170,57,89,19.7,Normal range
    患者228,193,82,23,22.0,Normal range
    患者229,185,41,74,12.0,Underweight
    患者230,162,50,26,19.1,Normal range
    患者231,184,43,51,12.7,Underweight
    患者232,186,39,84,11.3,Underweight
    患者233,187,82,20,23.4,Normal range
    患者234,184,58,83,17.1,Underweight
    患者235,179,36,73,11.2,Underweight
    患者236,171,57,60,19.5,Normal range
    患者237,159,36,51,14.2,Underweight
    患者238,190,73,74,20.2,Normal range
    患者239,198,57,75,14.5,Underweight
    患者240,192,75,63,20.3,Normal range
    患者241,197,48,25,12.4,Underweight
    患者242,177,58,72,18.5,Normal range
    患者243,191,84,52,23.0,Normal range
    患者244,160,42,77,16.4,Underweight
    患者245,160,88,61,34.4,Obese class I
    患者246,166,72,50,26.1,Pre-obese
    患者247,161,52,76,20.1,Normal range
    患者248,192,64,40,17.4,Underweight
    患者249,174,73,68,24.1,Normal range
    患者250,182,59,27,17.8,Underweight
    患者251,191,82,50,22.5,Normal range
    患者252,158,69,88,27.6,Pre-obese
    患者253,183,73,46,21.8,Normal range
    患者254,190,86,58,23.8,Normal range
    患者255,165,54,35,19.8,Normal range
    患者256,186,50,41,14.5,Underweight
    患者257,164,82,52,30.5,Obese class I
    患者258,187,41,58,11.7,Underweight
    患者259,187,77,42,22.0,Normal range
    患者260,165,65,59,23.9,Normal range
    患者261,178,38,21,12.0,Underweight
    患者262,187,37,59,10.6,Underweight
    患者263,181,61,62,18.6,Normal range
    患者264,175,37,25,12.1,Underweight
    患者265,166,50,41,18.1,Underweight
    患者266,180,45,67,13.9,Underweight
    患者267,172,44,33,14.9,Underweight
    患者268,177,68,56,21.7,Normal range
    患者269,182,89,33,26.9,Pre-obese
    患者270,161,45,27,17.4,Underweight
    患者271,170,42,83,14.5,Underweight
    患者272,170,77,25,26.6,Pre-obese
    患者273,178,83,32,26.2,Pre-obese
    患者274,194,36,41,9.6,Underweight
    患者275,170,82,53,28.4,Pre-obese
    患者276,166,62,37,22.5,Normal range
    患者277,162,35,39,13.3,Underweight
    患者278,167,88,67,31.6,Obese class I
    患者279,184,38,81,11.2,Underweight
    患者280,177,57,57,18.2,Underweight
    患者281,182,37,22,11.2,Underweight
    患者282,178,42,84,13.3,Underweight
    患者283,190,81,71,22.4,Normal range
    患者284,171,57,34,19.5,Normal range
    患者285,161,81,21,31.2,Obese class I
    患者286,188,35,66,9.9,Underweight
    患者287,196,87,86,22.6,Normal range
    患者288,194,82,40,21.8,Normal range
    患者289,169,59,78,20.7,Normal range
    患者290,162,35,54,13.3,Underweight
    患者291,195,82,40,21.6,Normal range
    患者292,190,59,68,16.3,Underweight
    患者293,196,55,68,14.3,Underweight
    患者294,177,65,62,20.7,Normal range
    患者295,158,41,30,16.4,Underweight
    患者296,171,73,32,25.0,Pre-obese
    患者297,188,43,50,12.2,Underweight
    患者298,161,66,90,25.5,Pre-obese
    患者299,165,81,50,29.8,Pre-obese
    患者300,176,56,84,18.1,Underweight
    患者301,171,54,76,18.5,Normal range
    患者302,168,42,27,14.9,Underweight
    患者303,159,67,28,26.5,Pre-obese
    患者304,178,85,34,26.8,Pre-obese
    患者305,184,53,37,15.7,Underweight
    患者306,185,37,86,10.8,Underweight
    患者307,173,82,29,27.4,Pre-obese
    患者308,186,84,63,24.3,Normal range
    患者309,191,75,32,20.6,Normal range
    患者310,190,65,57,18.0,Underweight
    患者311,187,48,40,13.7,Underweight
    患者312,165,49,41,18.0,Underweight
    患者313,164,36,74,13.4,Underweight
    患者314,172,59,47,19.9,Normal range
    患者315,169,55,64,19.3,Normal range
    患者316,182,52,63,15.7,Underweight
    患者317,196,36,23,9.4,Underweight
    患者318,168,38,60,13.5,Underweight
    患者319,165,70,76,25.7,Pre-obese
    患者320,193,61,34,16.4,Underweight
    患者321,167,54,54,19.4,Normal range
    患者322,182,43,87,13.0,Underweight
    患者323,182,85,89,25.7,Pre-obese
    患者324,159,51,39,20.2,Normal range
    患者325,158,83,25,33.2,Obese class I
    患者326,171,52,88,17.8,Underweight
    患者327,165,68,79,25.0,Pre-obese
    患者328,173,63,77,21.0,Normal range
    患者329,176,46,66,14.9,Underweight
    患者330,184,46,28,13.6,Underweight
    患者331,161,65,28,25.1,Pre-obese
    患者332,198,35,40,8.9,Underweight
    患者333,188,87,66,24.6,Normal range
    患者334,179,51,79,15.9,Underweight
    患者335,197,46,78,11.9,Underweight
    患者336,185,43,86,12.6,Underweight
    患者337,183,77,25,23.0,Normal range
    患者338,170,46,71,15.9,Underweight
    患者339,194,40,76,10.6,Underweight
    患者340,193,48,24,12.9,Underweight
    患者341,194,56,69,14.9,Underweight
    患者342,166,57,30,20.7,Normal range
    患者343,172,73,29,24.7,Normal range
    患者344,160,35,28,13.7,Underweight
    患者345,193,61,74,16.4,Underweight
    患者346,181,88,67,26.9,Pre-obese
    患者347,185,37,47,10.8,Underweight
    患者348,192,71,33,19.3,Normal range
    患者349,193,57,66,15.3,Underweight
    患者350,191,35,64,9.6,Underweight
    患者351,177,45,90,14.4,Underweight
    患者352,174,76,73,25.1,Pre-obese
    患者353,178,51,78,16.1,Underweight
    患者354,198,36,53,9.2,Underweight
    患者355,193,56,84,15.0,Underweight
    患者356,192,88,37,23.9,Normal range
    患者357,178,81,61,25.6,Pre-obese
    患者358,198,58,26,14.8,Underweight
    患者359,182,82,73,24.8,Normal range
    患者360,164,62,75,23.1,Normal range
    患者361,175,77,39,25.1,Pre-obese
    患者362,197,75,26,19.3,Normal range
    患者363,170,44,69,15.2,Underweight
    患者364,160,57,36,22.3,Normal range
    患者365,158,71,45,28.4,Pre-obese
    患者366,179,40,31,12.5,Underweight
    患者367,165,38,78,14.0,Underweight
    患者368,173,41,59,13.7,Underweight
    患者369,191,81,59,22.2,Normal range
    患者370,184,38,21,11.2,Underweight
    患者371,187,69,49,19.7,Normal range
    患者372,180,86,42,26.5,Pre-obese
    患者373,180,63,57,19.4,Normal range
    患者374,188,75,57,21.2,Normal range
    患者375,171,82,30,28.0,Pre-obese
    患者376,173,90,78,30.1,Obese class I
    患者377,196,58,52,15.1,Underweight
    患者378,180,82,70,25.3,Pre-obese
    患者379,173,54,67,18.0,Underweight
    患者380,172,35,72,11.8,Underweight
    患者381,192,46,63,12.5,Underweight
    患者382,171,83,38,28.4,Pre-obese
    患者383,174,69,65,22.8,Normal range
    患者384,186,41,31,11.9,Underweight
    患者385,175,43,22,14.0,Underweight
    患者386,166,70,44,25.4,Pre-obese
    患者387,186,46,36,13.3,Underweight
    患者388,164,59,41,21.9,Normal range
    患者389,173,77,88,25.7,Pre-obese
    患者390,181,47,41,14.3,Underweight
    患者391,197,44,61,11.3,Underweight
    患者392,197,63,23,16.2,Underweight
    患者393,178,46,30,14.5,Underweight
    患者394,190,69,29,19.1,Normal range
    患者395,169,45,51,15.8,Underweight
    患者396,187,65,67,18.6,Normal range
    患者397,192,61,45,16.5,Underweight
    患者398,192,48,49,13.0,Underweight
    患者399,177,57,26,18.2,Underweight
    患者400,186,78,48,22.5,Normal range
    患者401,179,65,43,20.3,Normal range
    患者402,186,51,50,14.7,Underweight
    患者403,190,37,76,10.2,Underweight
    患者404,198,89,73,22.7,Normal range
    患者405,160,45,78,17.6,Underweight
    患者406,158,67,24,26.8,Pre-obese
    患者407,169,76,62,26.6,Pre-obese
    患者408,168,88,89,31.2,Obese class I
    患者409,165,37,64,13.6,Underweight
    患者410,189,35,37,9.8,Underweight
    患者411,197,37,73,9.5,Underweight
    患者412,187,58,45,16.6,Underweight
    患者413,179,80,54,25.0,Pre-obese
    患者414,181,56,85,17.1,Underweight
    患者415,197,90,60,23.2,Normal range
    患者416,165,61,67,22.4,Normal range
    患者417,193,70,28,18.8,Normal range
    患者418,186,64,82,18.5,Normal range
    患者419,174,48,88,15.9,Underweight
    患者420,167,78,47,28.0,Pre-obese
    患者421,172,86,59,29.1,Pre-obese
    患者422,165,35,26,12.9,Underweight
    患者423,193,80,79,21.5,Normal range
    患者424,191,57,49,15.6,Underweight
    患者425,163,40,23,15.1,Underweight
    患者426,163,49,33,18.4,Underweight
    患者427,193,42,78,11.3,Underweight
    患者428,187,77,42,22.0,Normal range
    患者429,184,60,44,17.7,Underweight
    患者430,197,54,23,13.9,Underweight
    患者431,192,49,66,13.3,Underweight
    患者432,168,67,48,23.7,Normal range
    患者433,183,66,50,19.7,Normal range
    患者434,160,61,49,23.8,Normal range
    患者435,195,66,55,17.4,Underweight
    患者436,186,62,84,17.9,Underweight
    患者437,161,59,27,22.8,Normal range
    患者438,195,78,44,20.5,Normal range
    患者439,179,74,80,23.1,Normal range
    患者440,172,88,35,29.7,Pre-obese
    患者441,158,64,62,25.6,Pre-obese
    患者442,192,50,84,13.6,Underweight
    患者443,162,70,69,26.7,Pre-obese
    患者444,191,51,84,14.0,Underweight
    患者445,189,68,50,19.0,Normal range
    患者446,193,43,21,11.5,Underweight
    患者447,195,70,61,18.4,Underweight
    患者448,175,48,24,15.7,Underweight
    患者449,181,74,20,22.6,Normal range
    患者450,193,63,40,16.9,Underweight
    患者451,190,73,32,20.2,Normal range
    患者452,159,82,77,32.4,Obese class I
    患者453,179,40,65,12.5,Underweight
    患者454,175,86,21,28.1,Pre-obese
    患者455,165,69,32,25.3,Pre-obese
    患者456,189,46,46,12.9,Underweight
    患者457,196,51,27,13.3,Underweight
    患者458,192,56,79,15.2,Underweight
    患者459,181,48,66,14.7,Underweight
    患者460,184,45,67,13.3,Underweight
    患者461,163,84,47,31.6,Obese class I
    患者462,178,53,40,16.7,Underweight
    患者463,165,59,47,21.7,Normal range
    患者464,177,35,44,11.2,Underweight
    患者465,180,81,48,25.0,Pre-obese
    患者466,188,74,70,20.9,Normal range
    患者467,187,53,46,15.2,Underweight
    患者468,176,63,37,20.3,Normal range
    患者469,194,42,84,11.2,Underweight
    患者470,175,87,56,28.4,Pre-obese
    患者471,184,44,57,13.0,Underweight
    患者472,197,39,43,10.0,Underweight
    患者473,190,42,74,11.6,Underweight
    患者474,171,69,38,23.6,Normal range
    患者475,176,71,73,22.9,Normal range
    患者476,181,71,73,21.7,Normal range
    患者477,195,55,60,14.5,Underweight
    患者478,178,67,64,21.1,Normal range
    患者479,185,78,56,22.8,Normal range
    患者480,160,82,57,32.0,Obese class I
    患者481,178,35,80,11.0,Underweight
    患者482,184,71,68,21.0,Normal range
    患者483,169,43,79,15.1,Underweight
    患者484,182,86,36,26.0,Pre-obese
    患者485,187,87,75,24.9,Normal range
    患者486,181,35,59,10.7,Underweight
    患者487,173,44,65,14.7,Underweight
    患者488,188,48,38,13.6,Underweight
    患者489,175,71,34,23.2,Normal range
    患者490,189,46,61,12.9,Underweight
    患者491,166,44,76,16.0,Underweight
    患者492,167,67,77,24.0,Normal range
    患者493,166,38,24,13.8,Underweight
    患者494,160,39,23,15.2,Underweight
    患者495,168,67,69,23.7,Normal range
    患者496,179,39,86,12.2,Underweight
    患者497,161,87,54,33.6,Obese class I
    患者498,177,38,48,12.1,Underweight
    患者499,174,47,58,15.5,Underweight
    患者500,172,74,70,25.0,Pre-obese