Patients Clinical — permissions
Scaffolded stub — replace with proper documentation when this module is next touched.
Returned by PatientsClinicalModule.get_permissions() (relative names; the registry namespaces them as patients_clinical.<name>).
| Permission | Allows | Required by |
|---|---|---|
patients_clinical.medical.read | Describe what this allows. | List the endpoints. |
patients_clinical.medical.write | Describe what this allows. | List the endpoints. |
patients_clinical.emergency.read | Describe what this allows. | List the endpoints. |
patients_clinical.emergency.write | Describe what this allows. | List the endpoints. |
Role assignment
See backend/app/core/auth/permissions.py for the canonical role table.
Adding a new permission
- Add the relative name to
get_permissions()inbackend/app/modules/patients_clinical/__init__.py(ormodule.py). - Add the namespaced form to the relevant role(s) in
backend/app/core/auth/permissions.py. - Add a row to the table above.
- Annotate the endpoint(s) with
Depends(require_permission(...)). - Update
frontend/app/config/permissions.tsif it gates UI.