Oncology Symptom-to-Triage Digital Assistant: OncoTriage AI
Executive Summary
OncoTriage AI is a secure, HIPAA-compliant digital assistant designed for oncology patients to self-report symptoms and receive immediate triage recommendations: Infusion Clinic (outpatient treatment), Emergency Department (ED) (urgent care), or Palliative Care (symptom management). It uses a rule-based decision engine grounded in NCCN/ESMO guidelines, with ML enhancements for personalization. Every interaction generates immutable audit trails for clinical review and compliance.
Audit Trail: Immutable logs in PostgreSQL with blockchain-like hashing for tamper-proofing.
Triage Logic
Hybrid rule-based + ML:
Symptom Categories (predefined + free-text):
Category
Examples
Urgency Signals
Fever/Infection
Fever >101°F, chills, cough
Neutropenia? Duration >24h? → ED
Pain
New/severe pain (>7/10)
Uncontrolled, neuro → ED/Palliative
GI
Nausea, diarrhea, bleeding
Dehydration/shock → ED
Neuro
Headache, confusion, seizures
Always ED
Resp
SOB, chest pain
O2 sat <92% → ED
Other
Fatigue, rash, edema
Mild → Infusion; Chronic → Palliative
Decision Tree (Pseudocode):
python
def triage_symptoms(symptoms: dict, patient_data: dict) -> dict:
score = 0
recommendation = "Infusion"
# Rule-based scoring (NCCN-inspired)
if any(severity >= 8 for severity in symptoms.get('pain', [])):
score += 30
if 'fever' in symptoms and symptoms['fever'] > 38.3:
if patient_data.get('neutropenia', False): score += 50 # ED
else: score += 20
if 'bleeding' in symptoms and symptoms['bleeding'] == 'heavy':
score += 40
if 'confusion' in symptoms: score += 60 # ED
# Modifiers
if patient_data['stage'] == 'IV': score += 10 # Lean Palliative
duration = symptoms.get('duration_hours', 0)
if duration > 48: score += 15
# Final routing
if score >= 40: recommendation = "ED"
elif score >= 20 or patient_data['palliative_enrolled']: recommendation = "Palliative Care"
else: recommendation = "Infusion Clinic"
# ML Boost (optional): Predict risk score
risk_prob = ml_model.predict(symptoms_features)
if risk_prob > 0.7: recommendation = "ED"
return {"route": recommendation, "risk_score": score, "advice": generate_advice(recommendation)}
Personalization: Integrates EHR data (e.g., ANC count, chemo cycle) via FHIR API.
User Interface (Chatbot Flow)
Natural language chat with buttons for quick input.
Example Interaction:
code
Patient: "I have a fever of 102°F, chills, and I'm on chemo day 7."
OncoTriage: 🤔 Sorry to hear that. Confirming details:
- Fever: 102°F ✓ High risk!
- Recent chemo: Neutropenia likely.
[Buttons: Yes, ANC low | No | Add symptoms]
Recommendation: 🚨 **GO TO ED IMMEDIATELY** (Febrile neutropenia risk).
Call 911 if worsening. Clinic contacted.
[Log: View Audit]
Voice Support: "Hey OncoTriage, severe headache."
Escalation: If unclear, route to nurse line.
Multilingual: Google Translate integration.
Audit Trails
Every session logged immutably:
Field
Example Value
session_id
uuid-1234
patient_id
P123456
timestamp
2023-10-01T14:30:00Z
symptoms_json
{"fever":102,"pain":5}
risk_score
45
recommendation
"ED"
clinician_review
null/Reviewed by Dr. Smith
hash
SHA256(previous_hash + data)
Query Endpoint: /audits?patient_id=P123&date=2023 for clinicians.