RelatedPersonCompartment
The RelatedPersonCompartment validator will redirect every request to the client's corresponding related person compartment. If the client doesn't have the RelatedPerson role, the validator will throw an error.
This validator is intended to validate requests by clients used by persons related to a patient. These are usually mobile apps or web apps with stricter access controls than the patient clients.
Enable access to DiagnosticReport resources that belong to the authenticated client's related person compartment.
{
"client_role": "RelatedPerson",
"entity_name": "DiagnosticReport",
"operation": "read",
"validator": "RelatedPersonCompartment",
}