amandamcgivern
12/08/2023, 8:26 PMAllergyIntolerance.category set to [null] and a dataAbsentReason specified on `_category`:
"category": [
null
],
"_category": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "unsupported"
}
]
When calling POST /fhir/R4, we get the error:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Cannot convert undefined or null to object"
}
}
],
"extension": [
{
"url": "https://medplum.com/fhir/StructureDefinition/tracing",
"extension": [
{
"url": "requestId",
"valueUuid": "67ab9aea-2d81-4130-9007-7214ff0e0bc9"
},
{
"url": "traceId",
"valueUuid": "0da18d9f-8160-43a8-9240-62cefcff64bc"
}
]
}
]
}
This error seems to be coming from `rewriteIdsInObject`https://github.com/medplum/medplum/blob/3447ea303994e4584333f7a50b2f8fc57579d21c/packages/fhir-router/src/batch.ts#L201
However, when calling POST /fhir/R4/Bundle/$validate for the same Bundle, we get the All OK response with no errors.
Could you help me understand why this would occur? Is it expected for Medplum to be able to load a resource that's formatted like this?amandamcgivern
12/18/2023, 2:24 PMrahul1
12/19/2023, 4:01 AMrahul1
12/19/2023, 6:54 PMamandamcgivern
12/19/2023, 11:29 PM