I’m using the Azure FHIR service R4 and trying to find all device and service requests that are based on a particular care plan. I ran the following request:
{{fhirurl}}/?_type=DeviceRequest,ServiceRequest&based-on=CarePlan/91beb13f-340c-40a0-9f76-f4434b5fe6e4
but obtained the following error:
{
"resourceType": "OperationOutcome",
"id": "58d48f8f9f50a2ff551718b007a3aca1",
"meta": {
"lastUpdated": "2024-07-17T12:05:05.3195628+00:00"
},
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "Search parameter 'based-on' is not common for 'DeviceRequest' and 'ServiceRequest'."
}
]
}
As far as I can see, both DeviceRequest and ServiceRequest resources have a “based-on” search parameter. Am I missing something, or is Azure FHIR service not supporting this?
Note that I can’t search for the careplan itself using revinclude because the above is used following a delete event for the care plan.