422 Unprocessable Entity

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

Abhishek Kini

unread,
Dec 16, 2021, 8:54:15 AM12/16/21
to Cerner FHIR Developers
I am getting 422 Unprocessable entity when i am trying to post an observation.
Below is the observation i am trying to post. 
X-Request-Id:94a8d8f0-7d79-4346-8d69-a4d639072c74  

{
  "resourceType": "Observation",
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "code": "vital-signs",
          "display": "Vital Signs"
        }
      ],
      "text": "Vital Signs"
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "8331-1"
      }
    ],
    "text": "Temperature Oral"
  },
  "subject": {
    "reference": "Patient/12724071"
  },
  "effectiveDateTime": "2020-04-03T19:21:00.000Z",
  "issued": "2020-04-03T19:21:40.000Z",
  "performer": [
    {
      "extension": [
        {
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                "code": "LA",
                "display": "legal authenticator"
              }
            ],
            "text": "legal authenticator"
          },
        }
      ],
      "reference": "Practitioner/4122622"
    }
  ],
  "valueQuantity": {
    "value": 50,
    "unit": "degC",
    "system": "http://unitsofmeasure.org",
    "code": "Cel"
  },
  "interpretation": [
    {
      "coding": [
        {
          "code": "N",
          "display": "Normal"
        }
      ]
    }
  ],
  "note": [
    {
      "authorReference": {
        "reference": "Practitioner/4122622"
      },
      "time": "2020-09-03T15:03:10.000Z",
      "text": "great ai"
    }
  ],
  "referenceRange": [
    {
      "low": {
        "value": 35.8,
        "unit": "degC",
        "system": "http://unitsofmeasure.org",
        "code": "Cel"
      },
      "high": {
        "value": 37.3,
        "unit": "degC",
        "system": "http://unitsofmeasure.org",
        "code": "Cel"
      },
      "type": {
        "coding": [
          {
            "code": "normal",
            "display": "Normal Range"
          }
        ],
        "text": "Normal Range"
      }
    }
  ]
}

Error showing:
{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "error",
            "code": "invalid",
            "details": {
                "text": "Unprocessable entity"
            }
        }
    ]
}

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 4:42:03 PM12/16/21
to Cerner FHIR Developers
Hello,

Can you make the valueQuantity between 20-48?

Thanks,
Fenil

Message has been deleted
Message has been deleted

Abhishek Kini

unread,
Dec 20, 2021, 6:58:01 AM12/20/21
to Cerner FHIR Developers
Hi,
Thanks for the fast response . I actually tried the same and failed. I then created another patient and tried to POST observation which was actually an observation of another patient in the Cerner itself still showing the same issue.
X-request-id -  0aad0fa2-617d-4bf8-bcc0-22d23a6a7fa3 

The Body is shown below:
{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "https://fhir.cerner.com/ceuuid",
            "value": "CE87caf4b7-9397-4667-9897-702218017c9e-197573326-2021121613403900"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "vital-signs",
                    "display": "Vital Signs"
                }
            ],
            "text": "Vital Signs"
        }
    ],
    "code": {
        "coding": [
            {
                "code": "703540",
                "display": "Respiratory Rate",
                "userSelected": true
            }
        ],
        "text": "Respiratory Rate"
    },
    "subject": {
        "reference": "Patient/12770316"
    },
    "effectiveDateTime": "2021-12-16T13:40:38.000Z",
    "performer": [
        {
            "extension": [
                {
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                "code": "LA",
                                "display": "legal authenticator"
                            }
                        ],
                        "text": "legal authenticator"
                    },
                    "url": "http://hl7.org/fhir/StructureDefinition/event-performerFunction"
                }
            ],
            "reference": "Practitioner/4122622"
        }
    ],
    "valueQuantity": {
        "value": 12,
        "unit": "br/min",
        "system": "http://unitsofmeasure.org",
        "code": "/min"
    }
}

The error body is :
{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "error",
            "code": "invalid",
            "details": {
                "text": "Unprocessable entity"
            }
        }
    ]
} 

Thanks, hope this time the issue will resolve.
Reply all
Reply to author
Forward
0 new messages