kevinjyee
10/21/2022, 2:17 PMrahul1
10/21/2022, 6:00 PMmeta.account field on every resource.
"compartment": {
"reference": "Organization/a23a2966-d58a-4098-b41b-e8f18bcda339",
"display": "Example Customer Organization"
},
This compartment property in the access policy says that every resource created by this user has their meta.account set to include "Example Customer Organization"
"resource": [
{
"resourceType": "Patient",
"readonly": true,
"compartment": {
"reference": "Organization/a23a2966-d58a-4098-b41b-e8f18bcda339",
"display": "Example Customer Organization"
}
}
]
This line says that the user can only access Patients whose meta.account field (aka the "compartment") includes "Example Customer Organization"rahul1
10/21/2022, 6:03 PMmeta.acount field of the Patient, and set the compartment of the Practitioner's access policy to
"compartment": {
"reference": "%patient",
},
(%patient will be renamed %profile in the future. In practice, it means "the current user")rahul1
10/21/2022, 6:04 PMmeta.account that includes a reference to themrahul1
10/21/2022, 6:04 PMkevinjyee
10/21/2022, 6:30 PM