Internal Server Error When Posting Laboratory Observation to R4 Sandbox

118 views
Skip to first unread message

Bryson White

unread,
Jan 31, 2023, 6:08:00 PM1/31/23
to Oracle Cerner FHIR Developers
Hi All,

I am running into a 500 error when I try to post a laboratory observation to the sandbox. Here are some details. 

> Content-Type: application/json+fhir
> Content-Length: 907
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/fhir+json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Date: Tue, 31 Jan 2023 22:58:35 GMT
< Cache-Control: no-cache
< Server-Response-Time: 198.590825
< Vary: Origin
< X-Request-Id: e1f58e8d-ad2b-417f-97a7-dff6bf31b85e+Zlhm_I3JX
< X-Runtime: 0.198492
< X-Cache: Error from cloudfront
< Via: 1.1 84998cd5f1fa5882ba3f758f388fd37a.cloudfront.net (CloudFront)
< X-Amz-Cf-Pop: IAD79-C2
< X-Amz-Cf-Id: 8OFGZFz2k8mXa_eskfDZ_A4U1Nbc3yBGRL6AqQw6oJs8QHqrglrVYw==
<
{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"exception","details":{"text":"Internal service error from resource store"}}]}* Connection #0 to host fhir-ehr-code.cerner.com left intact

URL of request: https://fhir-ehr-code.cerner.com/r4/<myapp-emr-id>/Observation
HTTP Verb POST

Post Body: 
{
  "resourceType": "Observation",
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category",
          "code": "laboratory",
          "display": "Laboratory"
        }
      ],
      "text": "Laboratory"
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "2339-0",
        "display": "Blood Glucose"
      }
    ],
    "text": "Blood Glucose"
  },
  "subject": {
    "reference": "Patient/12457981"
  },
  "encounter": {
    "reference": "Encounter/97845408"
  },
  "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"
          },
          "url": "http://hl7.org/fhir/StructureDefinition/event-performerFunction"
        }
      ],
      "reference": "Practitioner/1"
    }
  ],
  "valueQuantity": {
    "value": 215,
    "unit": "mg/dl",
    "system": "http://unitsofmeasure.org",
    "code": "mg/dl"
  }
}

I am trying to determine whether I have made a mistake in my request somewhere or if this is truly an error on the server side. Thanks for reading.
Message has been deleted

Sukesh Konjeti (Oracle Cerner)

unread,
Mar 3, 2023, 6:44:58 AM3/3/23
to Oracle Cerner FHIR Developers
Hello Jonathan,

Apologies for the late response. The issue is with valueQuantity.code field. please use the below valueQuantity.

"valueQuantity": {
    "value": 215,
    "unit": "mg/dl",
    "system": "http://unitsofmeasure.org",
    "code": "mg/dL"
  }

Thank You,
Sukesh Konjeti (Oracle Cerner)

Bryson White

unread,
Mar 24, 2023, 2:00:34 PM3/24/23
to Oracle Cerner FHIR Developers
No worries at all. Thanks for taking the time to look at this and thanks for pointing out the detail I missed. 
Reply all
Reply to author
Forward
0 new messages