feature: qSOFA Scoring & Sepsis Bundle Compliance

This commit is contained in:
voltsrage
2026-06-18 22:52:43 +08:00
parent 3c54feb38a
commit 4b46c09f90
34 changed files with 2351 additions and 18 deletions
@@ -0,0 +1,7 @@
public enum QsofaOutcome
{
NotQsofaCode,
InsufficientCriteria,
AlertCreated,
AlertAlreadyOpen
}
@@ -0,0 +1,11 @@
// Discriminated result — allows tests and callers to assert the exact outcome
// without inspecting PostgreSQL or Redis directly.
public record QsofaResult(QsofaOutcome Outcome, int ActiveCriteria = 0)
{
public static readonly QsofaResult NotQsofaCode = new(QsofaOutcome.NotQsofaCode);
public static readonly QsofaResult AlertCreated = new(QsofaOutcome.AlertCreated);
public static readonly QsofaResult AlertAlreadyOpen = new(QsofaOutcome.AlertAlreadyOpen);
public static QsofaResult InsufficientCriteria(int count) =>
new(QsofaOutcome.InsufficientCriteria, count);
}