question

MuruganRamakrishnan-8776 avatar image
0 Votes"
MuruganRamakrishnan-8776 asked OuryBa-MSFT edited

FHIR bundle condition request failed with "Element with min. cardinality 1 cannot be null"

In Bundle, we don't have patient id to reference condition resource. but we are getting "Condition.Subject" mandatory error.

Request

{
"resourceType": "Bundle",
"type": "batch",
"entry": [
{
"resource": {
"resourceType": "Condition",
"identifier": [
{
"use": "official",
"type": {
"coding": [
{
"system": "http://abbott.com/fhirmapping/Identifier#conditionIdentifier",
"code": "MRN",
"display": "3740269927200_E78.534"
}
]
},
"system": "http://abbott.com/fhirmapping/Identifier#conditionIdentifier",
"value": "3740269927200_E78.534"
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "E78.5",
"display": "Disorders of lipoprotein metabolism and other lipidemias"
}
]
}
},
"request": {
"method": "PUT",
"url": "Condition?identifier=3740269927200_E78.534"
}
}
]
}

Response:

{
"resourceType": "Bundle",
"type": "batch-response",
"entry": [
{
"response": {
"status": "400",
"outcome": {
"resourceType": "OperationOutcome",
"id": "f50176ce6a331743af39f054ab665382",
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "Element with min. cardinality 1 cannot be null",
"location": [
"Condition.Subject"
]
},
{
"severity": "error",
"code": "invalid",
"diagnostics": "Element with min. cardinality 1 cannot be null",
"location": [
"Condition.Subject"
]
}
]
}
}
}
]
}

azure-api-fhir
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MuruganRamakrishnan-8776 Thank you posting your question.
My understanding is that you are getting a "condition subject" error with FHIR bundle.
Looks like there was a support ticket already created for this issue and our product group has mentioned that the Condition resource type requires a Subject to be valid, Condition - FHIR v4.0.1 (hl7.org). Our service validates resources to make sure they have fields that are required by the FHIR specification, and when they are missing you get the errors like what you see in the response bundle.

Regards,
Oury

0 Votes 0 ·

0 Answers