Patients-clinical — events
Per-module slice of docs/events-catalog.md (auto-generated). Update both files when adding or removing events.
Published
| Event | When | Consumers |
|---|---|---|
patient.medical_updated | A patient's medical history (allergies, conditions, medications) is created or edited | patient_timeline |
Published from router.py after the update commits. Payload carries clinic_id and patient_id. Note the event name is under the patient.* namespace even though it is emitted by patients_clinical, not patients.
Subscribed
This module does not subscribe to any events.
Adding a new event
- Add the constant to
backend/app/core/events/types.py(EventType). - Publish from a service method, after the DB commit succeeds.
- Add the row to the table above.
- Run
python backend/scripts/generate_catalogs.pyto refresh the global catalog.