public string CalculateScore() { int total = GetTotalOfMeasurementTool(); int sum = ScoreItems.OrderBy(y => y.Key).Select(y => y.Value).Sum(); return $"{sum} / {total}"; }
public double CalculateBurdenOfCare() { if (MeasurementTool.Name == "Beta") { double sum = ScoreItems.OrderBy(y => y.Key).Select(y => (double)y.Value).Sum(); double value = (GetTotalOfMeasurementTool() - sum) * 3.38 / 60; return Math.Floor(value * 10) / 10; } else { return 0; } }