vijay.hambar
09/21/2023, 7:10 AMrahul1
09/21/2023, 6:59 PM"resource": [
{
"resourceType": "Patient",
"readonly": true,
"compartment": {
"reference": "Organization/a23a2966-d58a-4098-b41b-e8f18bcda339",
"display": "Example Customer Organization"
}
}
]
This rule says that only give access Patients in teh compartment for "Example Cusotmer Organization"
How does this "compartment" get written?
By setting the "meta.account" property, as seen in this example:
{
"resourceType": "Patient",
"id": "54aa8595-e3a7-48ae-af91-9c7cb940149b",
"meta": {
"versionId": "02900c57-4da8-498f-85d5-5077077e3e2c",
"lastUpdated": "2022-01-13T16:21:11.870Z",
"account": {
"reference": "Organization/a23a2966-d58a-4098-b41b-e8f18bcda339",
"display": "Example Customer Organization"
}
},
"name": [
{
"given": [
"Homer"
],
"family": "Simpson"
}
]
}vijay.hambar
09/22/2023, 5:40 AM