yury.starav
04/27/2023, 9:52 PMcurl --location 'https://api.medplum.com/fhir/R4/Patient?_id=92ea5729-298e-4610-af0e-97c7dd7a4a2b&_include=Patient%253AmanagingOrganization%253AOrganization' \
--header 'Content-Type: application/fhir+json;charset=utf-8' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token_was_replaced'
fails with
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Invalid include parameter: Patient:managingOrganization:Organization"
}
}
]
}
curl --location 'https://api.medplum.com/fhir/R4/Patient?_id=92ea5729-298e-4610-af0e-97c7dd7a4a2b&_include=MedicationRequest%3Arequester' \
--header 'Content-Type: application/fhir+json;charset=utf-8' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token_was_replaced'
fails with 500 and Internal Server Errorrahul1
04/28/2023, 3:59 PMmanagingOrganization.rahul1
04/28/2023, 4:01 PM_include, you need to use search parameters of the source resource.rahul1
04/28/2023, 4:12 PMPatient docs , the corresponding search parameter for the field Patient.managingOrganzation is called `organization`(https://www.medplum.com/docs/api/fhir/resources/patient#search-parameters)yury.starav
04/28/2023, 4:18 PMrahul1
04/28/2023, 4:20 PM