feature: Sepsis Engine Refactor: Remove SIRS, Rewire qSOFA + Bundle

Frontend: GCS Entry, SOFA Display, Sepsis UI Refactor
This commit is contained in:
voltsrage
2026-06-21 03:56:27 +08:00
parent 93ea473d2b
commit bf46e6554a
48 changed files with 2686 additions and 714 deletions
@@ -80,12 +80,12 @@ public class QsofaDetectorTests : IAsyncLifetime
r2.Outcome.Should().Be(QsofaOutcome.AlertCreated);
var alert = await db.ClinicalAlerts.SingleAsync();
alert.AlertType.Should().Be(AlertType.QsofaWarning);
alert.Severity.Should().Be(AlertSeverity.Critical);
alert.AlertType.Should().Be(AlertType.QsofaScreen);
alert.Severity.Should().Be(AlertSeverity.Warning);
alert.Status.Should().Be(AlertStatus.Open);
alert.EncounterId.Should().Be(_encounterId);
alert.PatientId.Should().Be(_patientId);
alert.Details.Should().Contain("qSOFA score 2/3");
alert.Details.Should().Contain("order SOFA labs");
var outbox = await db.OutboxEvents.SingleAsync(e => e.Topic == "alert.generated");
outbox.PartitionKey.Should().Be(_encounterId.ToString());
@@ -138,7 +138,7 @@ public class QsofaDetectorTests : IAsyncLifetime
r3.Outcome.Should().Be(QsofaOutcome.AlertAlreadyOpen);
var alertCount = await db.ClinicalAlerts.CountAsync();
alertCount.Should().Be(1, "WHERE NOT EXISTS prevents duplicate QSOFA_WARNING while one is open");
alertCount.Should().Be(1, "WHERE NOT EXISTS prevents duplicate QSOFA_SCREEN while one is open");
var outboxCount = await db.OutboxEvents.CountAsync(e => e.Topic == "alert.generated");
outboxCount.Should().Be(1, "outbox event must be written exactly once");