Predictive Risk

Risk scores, longitudinal timelines, readmission predictions, and deterioration alerts.

API endpoints

MethodPathRBACPurpose
GET/v1/predictive/risk-scoresclinicianList scores
POST/v1/predictive/risk-scores/calculateclinicianRecompute a score
GET/v1/predictive/risk-timelineclinicianTimeline series
GET/v1/predictive/readmission-predictionsclinicianReadmission risk
GET/v1/predictive/deterioration-alertsclinicianActive alerts
POST/v1/predictive/deterioration-alerts/:id/acknowledgeclinicianAck an alert

Database tables

  • risk_scoresLatest score per model, with risk-factor JSONB
  • risk_timelineDaily snapshot for trend rendering
  • readmission_predictionsModel prediction + confidence + factors
  • deterioration_alertsEWS-style escalation alerts with severity

Notes

  • Scores are bounded 0–100 with CHECK constraints. Risk levels: LOW, MODERATE, HIGH, VERY_HIGH.