tinho_14
03/01/2024, 5:10 PMrahul1
03/12/2024, 6:23 PMvalueReference.reference needs to contain the resource type to be a valid reference.
[
{
"name": "user_id",
"valueReference": {
"reference": "Patient/3e58c06e-c2da-447c-a6b7-f42014b339f3"
}
}
]
- Rather than using _id, it might be more scalable to use the _compartment search parameter. That way you can access other resources scoped to the patient, like Encounters and Observations>
This example is illustrative:
https://www.medplum.com/docs/access/access-policies#patient-accesstinho_14
03/12/2024, 7:36 PM