private WaistHip Waist(ClientsData.NewClientData client) { WaistHip x = new WaistHip(); x.value = client.waist; // ***** male ***** if (client.gender.value == 0) { x.increasedRisk = 94; x.highRisk = 102; } // ***** female ***** if (client.gender.value == 1) { x.increasedRisk = 80; x.highRisk = 88; } if (x.value >= x.increasedRisk && x.value < x.highRisk) { x.title = "increased risk of various diseases"; x.description = string.Format("the waist circumference between {0} and {1} cm represents an increased risk of various diseases (eg diabetes and heart disease)", x.increasedRisk, x.highRisk); } if (x.value >= x.highRisk) { x.title = "very high risk of various diseases"; x.description = string.Format("the waist circumference above {0} cm represents a very high risk of various diseases (eg diabetes and heart disease)", x.highRisk); } return(x); }
private WaistHip Whr(ClientsData.NewClientData client) { WaistHip x = new WaistHip(); if (Convert.ToDouble(client.waist) > 0 && Convert.ToDouble(client.hip) > 0) { x.value = Convert.ToDouble(client.waist) / Convert.ToDouble(client.hip); // ***** male ***** if (client.gender.value == 0) { x.increasedRisk = 0.95; x.highRisk = 1; x.optimal = 0.9; } // ***** female ***** if (client.gender.value == 1) { x.increasedRisk = 0.80; x.highRisk = 0.85; x.optimal = 0.7; } if (x.value < 1) { x.title = "gynoid fat distribution"; x.description = "in the case of fatty tissue accumulation, it accumulates in the area of the hips"; } if (x.value >= 1) { x.title = "android fat distribution"; x.description = "in the case of fatty tissue accumulation, it accumulates in the area of the waist"; } } return(x); }