public WaistToHeightRatioClassification(
     BodyCompositionClassificationParameters bodyCompositionClassificationParameters)
 {
     if (bodyCompositionClassificationParameters.BodyComposition == null)
     {
         throw new ArgumentNullException(nameof(bodyCompositionClassificationParameters.BodyComposition));
     }
     _waistToHeighRatio = Calculate(bodyCompositionClassificationParameters.BodyComposition);
     _patient           = bodyCompositionClassificationParameters.Patient ??
                          throw new ArgumentNullException(nameof(bodyCompositionClassificationParameters.Patient));
 }
Beispiel #2
0
 public BodyMassIndexClassification(BodyCompositionClassificationParameters parameters)
 {
     _patient         = parameters.Patient ?? throw new ArgumentNullException(nameof(parameters.Patient));
     _bodyComposition = parameters.BodyComposition ??
                        throw new ArgumentNullException(nameof(parameters.BodyComposition));
 }