feature: Explainable Alerts

This commit is contained in:
voltsrage
2026-06-25 00:25:31 +08:00
parent 279add1e45
commit 666d683d67
61 changed files with 9553 additions and 125 deletions
+1
View File
@@ -2051,6 +2051,7 @@ All topics use 6 partitions. `KAFKA_AUTO_CREATE_TOPICS_ENABLE=false` — topics
| `details` | Data lake Parquet | Human-readable breach summary; always set on new alerts |
| `department` | ES indexer | Optional; critical ingest alerts include it |
| `news2Score`, `news2RiskLevel` | ES indexer | Optional; set on `NEWS2_WARNING` / `NEWS2_EMERGENCY` alerts for encounter document projection |
| `explanation` | Dashboard, analytics | Optional; structured score contributors, trend, medication context, and narrative summary on explainable alerts (NEWS2, SOFA, GCS, rapid deterioration). Omitted on legacy and threshold-only alerts. Existing consumers that ignore unknown fields remain compatible. |
| `partitionKey` | Outbox relay | Same as `encounterId` |
---