jay_stark
11/01/2023, 2:48 PMrahul1
11/03/2023, 8:36 PMrahul1
11/03/2023, 8:38 PMMedia.subject property to tie the Media directly to the Patient
2. Define an access Policy where the practioner has access to the patient's compartment
Media?_compartment=Patient/123
https://www.medplum.com/docs/search/advanced-search-parameters#_compartmentravindratc
11/17/2023, 10:41 AMjson
{
"resourceType": "AccessPolicy",
"name": "Provider Policy",
"resource": [
{
"resourceType": "Patient",
"criteria": "Patient?organization=%provider_organization"
},
{
"resourceType": "ServiceRequest",
"criteria": "ServiceRequest?subject:Patient.organization=%provider_organization"
},
{
"resourceType": "QuestionnaireResponse",
"criteria": "QuestionnaireResponse?subject:Patient.organization=%provider_organization",
"readonly": true
}
]
}
While attempting to access resources using this policy, I've encountered the following outcome:
json
{
"outcome": {
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "column reference \"organization\" is ambiguous"
}
}
],
"extension": [
{
"url": "https://medplum.com/fhir/StructureDefinition/tracing",
"extension": [
{
"url": "requestId",
"valueUuid": "785e203f-28e7-4b51-807a-8b17046f5dba"
},
{
"url": "traceId",
"valueUuid": "43372935-7d9e-4d75-9c41-a659814c0b83"
}
]
}
]
}
}
I've also successfully tested a chained search query in Postman, and it's working fine:
- Example URL: https://host.com/fhir/R4/ServiceRequest?subject:Patient.organization=Organization/123rahul1
11/21/2023, 5:42 PMravindratc
11/21/2023, 5:43 PMrahul1
11/21/2023, 5:43 PMrahul1
11/21/2023, 5:43 PMmeta.account field , as demonstrated here: https://www.medplum.com/docs/access/access-policies#healthcare-partnershipsravindratc
11/21/2023, 5:48 PMravindratc
12/19/2023, 5:15 PMrahul1
12/19/2023, 7:49 PMrahul1
12/19/2023, 7:50 PMravindratc
12/19/2023, 7:54 PMravindratc
12/19/2023, 7:57 PM