Connect graphical CCS interviews to cases

This commit is contained in:
hz
2026-08-05 20:14:27 -05:00
parent 31093ab80d
commit af2bbb673d
16 changed files with 547 additions and 28 deletions
+55
View File
@@ -47,6 +47,61 @@
"simulatedStartUtc": "2026-07-15T08:00:00Z",
"initialOrderCodes": []
},
"initialInterview": {
"startNodeId": "greeting",
"nodes": [
{
"id": "greeting",
"patientText": "Doctor, I feel awful. I can barely keep my eyes open.",
"isTerminal": false,
"choices": [
{ "id": "ask_chief_concern", "text": "Tell me what brought you in today.", "nextNodeId": "chief_concern" },
{ "id": "ask_current_problem", "text": "What has been happening recently?", "nextNodeId": "chief_concern" }
]
},
{
"id": "chief_concern",
"patientText": "I have been vomiting for two days, my stomach hurts, and I have become more and more tired.",
"isTerminal": false,
"choices": [
{ "id": "ask_insulin_use", "text": "Have you been taking your insulin?", "nextNodeId": "insulin_history" },
{ "id": "ask_diabetes_treatment", "text": "How have you managed your diabetes during this illness?", "nextNodeId": "insulin_history" }
]
},
{
"id": "insulin_history",
"patientText": "I stopped all of my insulin about a day and a half ago because I was not eating.",
"isTerminal": false,
"choices": [
{ "id": "ask_associated_symptoms", "text": "Have you noticed any other symptoms?", "nextNodeId": "associated_symptoms" },
{ "id": "ask_infection_symptoms", "text": "Any fever, cough, urinary symptoms, or diarrhea?", "nextNodeId": "associated_symptoms" }
]
},
{
"id": "associated_symptoms",
"patientText": "No cough, burning with urination, or diarrhea. I do not think I have had a fever.",
"isTerminal": false,
"choices": [
{ "id": "ask_medical_history", "text": "Tell me about your medical history and medications.", "nextNodeId": "background" },
{ "id": "ask_allergies", "text": "Do you have kidney problems, take other medicines, or have medication allergies?", "nextNodeId": "background" }
]
},
{
"id": "background",
"patientText": "I have type 1 diabetes and normally use long-acting and mealtime insulin. I have no kidney disease and no known drug allergies.",
"isTerminal": false,
"choices": [
{ "id": "finish_interview", "text": "Thank you. I am going to examine you and begin your evaluation.", "nextNodeId": "interview_complete" }
]
},
{
"id": "interview_complete",
"patientText": "Okay, doctor.",
"isTerminal": true,
"choices": []
}
]
},
"allowedLocations": ["emergency_department", "icu", "ward"],
"exams": [
{ "code": "general_exam", "name": "General and hydration examination", "durationMinutes": 1, "finding": "Lethargic but arousable; dry mucous membranes, delayed capillary refill, and poor skin turgor." },