Skip to content

Patients — events

Per-module slice of docs/events-catalog.md (auto-generated). Update both files when adding or removing events.

Published

EventSourceWhenPayload
patient.createdservice.py:PatientService.createAfter insert + extended row commit.patient_id (UUID), clinic_id (UUID)
patient.updatedservice.py:PatientService.updateAfter partial update commit.patient_id (UUID), changes (dict of changed fields)
patient.archivedservice.py:PatientService.archiveAfter soft-delete (status → archived).patient_id (UUID)

Subscribers are listed in the auto-generated events catalog.

Subscribed

This module does not subscribe to any events.

Adding a new event

  1. Add the constant to backend/app/core/events/types.py (EventType).
  2. Publish from a service method, after the DB commit succeeds.
  3. Add a row to the table above.
  4. Run python backend/scripts/generate_catalogs.py to refresh the global catalog.