Create Allergy with asserter returning 422 error

42 views
Skip to first unread message

Shankar Ganesh Jayaraman

unread,
Jan 16, 2020, 9:55:07 AM1/16/20
to Cerner FHIR Developers
x-request-id →9c4e88431aea3a79dcc10155121159fb

When adding asserter to the create allergy payload I am getting the following error.

Requested payload

{
  "resourceType": "AllergyIntolerance",
  "contained": [
    {
      "resourceType": "PracitionerRole",
      "id": "6090007",
      "code": [
        {
          "coding": [
            {
              "code": "doctor"
            }
          ]
        }
      ]
    }
  ],
  "clinicalStatus": {
    "coding": [
      {
        "code": "active"
      }
    ]
  },
  "verificationStatus": {
    "coding": [
      {
        "code": "confirmed"
      }
    ]
  },
  "type": "allergy",
  "category": [
    "medication"
  ],
  "criticality": "high",
  "code": {
    "coding": [
      {
        "code": "723"
      }
    ],
    "text": "amoxicillin"
  },
  "patient": {
    "reference": "Patient/7238008"
  },
  "encounter": {
    "reference": "Encounter/4749909"
  },
  "onsetDateTime": "2019-09-11T05:00:00.000Z",
  "asserter": {
    "reference": "#6090007"
  },
  "note": [
    {
      "authorReference": {
        "reference": "Practitioner/2578010"
      },
      "text": "Updated with additional details provided by patient."
    }
  ],
  "reaction": [
    {
      "manifestation": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "271757001"
            }
          ],
          "text": "Papular eruption"
        }
      ],
      "severity": "severe"
    }
  ]
}




{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "error",
            "code": "business-rule",
            "details": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/operation-outcome",
                        "code": "MSG_PARAM_INVALID",
                        "display": "Parameter 'AllergyIntolerance.contained' content is invalid"
                    }
                ],
                "text": "The value for AllergyIntolerance.contained is not supported."
            },
            "diagnostics": "AllergyIntolerance.contained: expected contained resource of type 'PracitionerRole', or 'RelatedPerson' with id matching asserter reference id",
            "expression": [
                "AllergyIntolerance.contained"
            ]
        }
    ]
}


Benjamin Eichhorn (Cerner)

unread,
Jan 16, 2020, 10:07:01 AM1/16/20
to Cerner FHIR Developers
Hi Shankar,

It look likes we have a mis-spelling in our OperationOutcome. It should be PractitionerRole not PracitionerRole. We'll get this fixed. Update the contained resource in your request and it should work.

Thanks,
Ben (Cerner) 

Shankar Ganesh Jayaraman

unread,
Jan 16, 2020, 10:14:25 AM1/16/20
to cerner-fhir...@googlegroups.com
Yes, that worked and passed the error now I am getting 403 error. 
Since I have a ticket already opened,  Marking this ticket as completed.

Thanks!

Reply all
Reply to author
Forward
0 new messages