Writing data to Observations in Cerner Sandbox environment using FHIR API gives 409 Client Error

22 views
Skip to first unread message

Muhammad Talha Asif

unread,
Oct 25, 2024, 11:29:32 AM10/25/24
to SMART on FHIR
Hi everyone,
I’m currently working on integrating my application with Cerner’s sandbox environment using the SMART on FHIR approach. Here’s a summary of my progress and the issue I’m encountering:
What I've Accomplished:
  • Authorization: Successfully completed the authorization process using Cerner’s SMART on FHIR.
  • Data Retrieval: Able to read patient data and encounter data from the SMART Launch environment provided by Cerner.
Issue Encountered: When attempting to write data to a patient's observations, I receive a 409 Conflict error. Below are the details:

Error Response:
{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "conflict",
      "details": {
        "text": "Current state of resource in conflict"
      }
    }
  ]
}

Technical Details:

  • Endpoint: Observation create endpoint using a POST request.
  • Documentation Reference: Observation POST Endpoint
  • Payload: Using the example payload provided in the documentation for testing.
  • Authorization Scopes:
    launch openid fhirUser
    user/Patient.read
    user/Patient.write
    user/Encounter.read
    user/Encounter.write
    user/Observation.read
    user/Observation.write

Questions:

  • Configuration Steps: Am I missing any steps or configurations in the setup?
  • Common Pitfalls: Is there a common mistake that could lead to a 409 Conflict when writing observations?
  • Best Practices: Any recommendations for ensuring successful data write operations in Cerner’s sandbox environment?

Any assistance or insights on resolving this issue would be greatly appreciated.

Thank you!

Reply all
Reply to author
Forward
0 new messages