Clinical cases¶
The Cases module walks you through stepwise clinical scenarios: history, workup, diagnosis, and management.
Educational content
Cases are for learning. Do not treat answers as prescriptions without checking local protocols.
Access¶
| Setting | Value |
|---|---|
| URL | http://localhost:8001/cases |
| Flag | MEDICAL_ASSISTANT_ENABLED=true |
| Roles | student, resident, and other LEARNING_ROLES |
Case list¶
On /cases you see the case catalog:
- Pick a language (
en/ru) — seed cases are filtered to that language. - Optionally narrow by specialty and difficulty (via API / UI filters when available).
- Open a case card.
Seed cases EN + RU¶
On first API access the app idempotently inserts built-in educational cases in English and Russian. Custom (generated) cases appear for both languages; seed cases from the other language are hidden by the title filter.
Working a case¶
- Read the description, specialty, and difficulty.
- Complete steps in order: question → options → submit.
- After each step you get correct/incorrect feedback, the expected answer, and an explanation.
- Step scores are written to progress (
module: cases).
Correct answers are hidden when you view a case until you submit a step — that preserves the learning effect.
Generate a new case¶
When generation is available:
| Field | Description |
|---|---|
specialty |
Specialty (required) |
difficulty |
e.g. beginner / intermediate / advanced |
language |
en or ru |
topic |
Optional topic |
persist |
Save to the database (true by default) |
Generated cases appear in the list and are available to other learners in the same tenant (shared learning data).
Practical tips¶
- Complete steps in sequence — step index starts at
0. - Record time per step (
time_spentin seconds) if you want total time on the progress dashboard. - Compare EN and RU wording when preparing for bilingual exams.
Typical walkthrough¶
- Open http://localhost:8001/cases.
- Choose UI language /
languagefilter. - Open a seed case and answer step 0.
- Read the explanation and continue to the next step.
- On
/progress, check thecasesmodule.
Errors and access¶
| Symptom | What to check |
|---|---|
| Empty list | Language filter; seed is created on first GET |
503 |
MEDICAL_ASSISTANT_ENABLED |
403 / role denied |
Role must be in LEARNING_ROLES |
| Bad step | step_index out of range → correct: false |