private void DetermineRiskFromKneeValgus(TestMeasurementType type) { double maxHipFlexion = testMeasurementBuffer[type].Max(); InjuryRiskType injuryRisk; injuryRisk = InjuryRiskType.None; AddInjuryRisk(type, injuryRisk); }
private void AddInjuryRisk(TestMeasurementType type, InjuryRiskType injuryRisk) { JointType jointAtRisk = riskJoints[type]; // first check to see if the key "type" exists, if it does then we need to check to see if the new // injury risk level is higher than the current one. If it's not, then we don't need to do anything at all. if (injuryRisks.ContainsKey(jointAtRisk) && injuryRisks[jointAtRisk] >= injuryRisk) { return; } // otherwise we need to update or create the injuryRisk entry in the dictionary injuryRisks[jointAtRisk] = injuryRisk; }
private void DetermineRiskFromHipFlexion(TestMeasurementType type) { double maxHipFlexion = testMeasurementBuffer[type].Max(); InjuryRiskType injuryRisk; if (maxHipFlexion < 55.0 || maxHipFlexion > 120.0) { injuryRisk = InjuryRiskType.High; } else if (maxHipFlexion >= 90.0) { injuryRisk = InjuryRiskType.Low; } else { injuryRisk = InjuryRiskType.Moderate; } AddInjuryRisk(type, injuryRisk); }
private void DetermineInjuryRisk(TestMeasurementType type) { switch (type) { case TestMeasurementType.HipFlexionLeft: case TestMeasurementType.HipFlexionRight: DetermineRiskFromHipFlexion(type); break; case TestMeasurementType.KneeFlexionLeft: case TestMeasurementType.KneeFlexionRight: DetermineRiskFromKneeFlexion(type); break; case TestMeasurementType.KneeValgusLeft: case TestMeasurementType.KneeValgusRight: DetermineRiskFromKneeValgus(type); break; default: break; } }
public TestMeasurement(TestMeasurementType type, double value) { this.type = type; this.value = value; }
private void DetermineRiskFromKneeFlexion(TestMeasurementType type) { double maxKneeFlexion = testMeasurementBuffer[type].Max(); InjuryRiskType injuryRisk; if (maxKneeFlexion < 80.0 || maxKneeFlexion > 99.0) { injuryRisk = InjuryRiskType.High; } else if (maxKneeFlexion <= 95.0) { injuryRisk = InjuryRiskType.Low; } else { injuryRisk = InjuryRiskType.Moderate; } AddInjuryRisk(type, injuryRisk); }