feature: Sepsis Engine Refactor: Remove SIRS, Rewire qSOFA + Bundle
Frontend: GCS Entry, SOFA Display, Sepsis UI Refactor
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user