feature: NEWS2 Composite Scoring Engine
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
public class News2Score
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid EncounterId { get; set; }
|
||||
public Guid PatientId { get; set; }
|
||||
public int TotalScore { get; set; }
|
||||
public string RiskLevel { get; set; } = null!;
|
||||
public int RespRateScore { get; set; }
|
||||
public int Spo2Score { get; set; }
|
||||
public int SystolicBpScore { get; set; }
|
||||
public int HeartRateScore { get; set; }
|
||||
public int ConsciousnessScore { get; set; }
|
||||
public int TemperatureScore { get; set; }
|
||||
public int SupplementalO2Score { get; set; }
|
||||
public bool HasSingleParamThree { get; set; }
|
||||
public DateTimeOffset CalculatedAt { get; set; }
|
||||
|
||||
public Encounter Encounter { get; set; } = null!;
|
||||
}
|
||||
@@ -23,7 +23,10 @@ public enum AlertType
|
||||
WarningSystolicBp,
|
||||
WarningDiastolicBp,
|
||||
WarningLactateMmolL,
|
||||
WarningGlucoseMgDl
|
||||
WarningGlucoseMgDl,
|
||||
|
||||
News2Warning,
|
||||
News2Emergency
|
||||
}
|
||||
|
||||
public static class AlertTypeExtensions
|
||||
@@ -52,6 +55,8 @@ public static class AlertTypeExtensions
|
||||
AlertType.WarningDiastolicBp => "WARNING_DIASTOLIC_BP",
|
||||
AlertType.WarningLactateMmolL => "WARNING_LACTATE_MMOL_L",
|
||||
AlertType.WarningGlucoseMgDl => "WARNING_GLUCOSE_MG_DL",
|
||||
AlertType.News2Warning => "NEWS2_WARNING",
|
||||
AlertType.News2Emergency => "NEWS2_EMERGENCY",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(t))
|
||||
};
|
||||
|
||||
@@ -79,6 +84,8 @@ public static class AlertTypeExtensions
|
||||
"WARNING_DIASTOLIC_BP" => AlertType.WarningDiastolicBp,
|
||||
"WARNING_LACTATE_MMOL_L" => AlertType.WarningLactateMmolL,
|
||||
"WARNING_GLUCOSE_MG_DL" => AlertType.WarningGlucoseMgDl,
|
||||
"NEWS2_WARNING" => AlertType.News2Warning,
|
||||
"NEWS2_EMERGENCY" => AlertType.News2Emergency,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown alert type: '{v}'")
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
public enum News2Outcome
|
||||
{
|
||||
NotNews2Code,
|
||||
IncompleteParameters,
|
||||
ScoreComputed
|
||||
}
|
||||
Reference in New Issue
Block a user