feature: Sepsis Engine Refactor: Remove SIRS, Rewire qSOFA + Bundle
Frontend: GCS Entry, SOFA Display, Sepsis UI Refactor
This commit is contained in:
@@ -17,6 +17,10 @@ public class SepsisBundleService : ISepsisBundleService
|
||||
public async Task<SepsisBundle?> TryCreateBundleAsync(
|
||||
Guid encounterId, Guid triggeringAlertId, AlertType alertType, CancellationToken ct = default)
|
||||
{
|
||||
if (alertType != AlertType.SofaSepsis)
|
||||
throw new InvalidOperationException(
|
||||
$"Sepsis bundle can only be triggered by SOFA_SEPSIS, not {alertType.ToDbString()}.");
|
||||
|
||||
var exists = await _db.SepsisBundles
|
||||
.AnyAsync(b => b.EncounterId == encounterId
|
||||
&& b.ComplianceStatus == SepsisBundleComplianceStatus.InProgress, ct);
|
||||
|
||||
Reference in New Issue
Block a user