Skip to main content

PatientCompartment

The PatientCompartment validator will redirect every request to the client's corresponding patient compartment. If the client doesn't have the Patient role, the validator will throw an error.

This validator is intended to validate requests by patient clients, such as mobile apps or web apps.

Enable access to DiagnosticReport resources that belong to the authenticated client's patient compartment.
{
"client_role": "Patient",
"entity_name": "DiagnosticReport",
"operation": "read",
"validator": "PatientCompartment",
}