I am finding that I cannot remove existing reactions from an existing AllergyIntolerance resource. Adding new and updating existing is working just fine.
Workflow or API calls:
Using PUT with the proper ID for the If-Match
{
"resourceType": "AllergyIntolerance",
"id": "xxxxx",
"clinicalStatus": {
"coding": [
{
"system": "
http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
,
"code": "active",
"display": "Active"
}
],
"text": "Active"
},
"verificationStatus": {
"coding": [
{
"system": "
http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
,
"code": "confirmed",
"display": "Confirmed"
}
],
"text": "Active"
},
"type": "allergy",
"category": [
"food"
],
"criticality": "high",
"code": {
"coding": [
{
"system": "
http://snomed.info/sct"
,
"code": "762952008",
"display": "Peanut (substance)"
}
],
"text": "Peanuts"
},
"patient": {
"reference": "Patient/12746485",
"display": "SMART, ELIZABETH"
},
"encounter": {
"reference": "Encounter/97958198"
},
"onsetDateTime": "2021",
"_onsetDateTime": {
"extension": [
{
"valueCodeableConcept": {
"coding": [
{
"system": "
https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/25320"
,
"code": "639010",
"display": "About",
"userSelected": true
}
],
"text": "About"
},
"url": "
https://fhir-ehr.cerner.com/r4/StructureDefinition/precision"
}
]
},
"recordedDate": "2024-01-22T19:49:51Z",
"recorder": {
"reference": "Practitioner/xxxxx",
"display": "xxxx"
}
}
Expected Result:
In this case, there was a pre-existing reaction, but since there is none in the put, I would expect there to be no reactions left.
Actual Result:
I get a 200 response, but the reaction has not been removed. I am also seeing something similar for notes for AllergyIntolerance also.
X-Request-Id / Cerner-Correlation-Id / opc-request-id: