Creation of allergy returns 409 - Conflict

74 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Pedro Simon

unread,
Jun 2, 2021, 3:32:40 PM6/2/21
to Cerner FHIR Developers
Hi! Hope you can throw me some light on this:

Example
Cerner Correlation ID: 9a1aecb7-553c-4329-96dd-d55074e0e039

The documentations for AllergyIntollerance says:

If the consumer is sending in what is deemed to be a duplicate (codified or free text), the service will update the existing allergy or reaction rather than adding a duplicate allergy or reaction.

But, if the patient has the following allergy

{
"id" => "12766873",
"meta" => { "versionId" => "12766873", "lastUpdated" => "2020-10-08T23:57:25Z" },
"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" => "low",
"code" => { "text" => "shellfish" },
"patient" => { "reference" => "Patient/12744859", "display" => "REVSPRING, TWO" },
"encounter" => { "reference" => "Encounter/97955344" },
"recordedDate" => "2020-10-06T20:15:05Z",
"recorder" => { "reference" => "Practitioner/1025924", "display" => "Cerner Test, Physician - Gastroenterology Cerner" },
"resourceType" => "AllergyIntolerance",
}

and I attempt to create (POST /AllergyIntolerance) an allergy by sending:

{
"clinicalStatus" => {
"coding" => [
{ "system" =>
"code" => "active" },
],
},
"code" => {
"coding" => [
{
"system" => "http://snomed.info/sct",
"code" => "735029006",
},
],
"text" => "Shellfish",
},
"patient" => { "reference" => "Patient/12744859" },
"resourceType" => "AllergyIntolerance",
}

it returns a "409 - Conflict" response.

Is it the responsibility of the consumer (me in this case) to do code and text based comparisons to prevent sending what seems to be duplicated allergies (even if they don't match in code)? How should I handle this issue?

Thanks!

Fenil Desani (Cerner)

unread,
Jun 3, 2021, 12:13:51 AM6/3/21
to Cerner FHIR Developers
Hello,

Can you please provide X-request-id of the failure?

Pedro Simon

unread,
Jun 3, 2021, 2:17:21 PM6/3/21
to Cerner FHIR Developers
Here it is: f0699508-e75d-457c-acd4-c717903a0b17
Today I tried again and it returned 500

Pedro Simon

unread,
Jun 7, 2021, 2:47:40 PM6/7/21
to Cerner FHIR Developers
Hi Fenil, any thoughts on this one?
Reply all
Reply to author
Forward
0 new messages