Communication endpoint error

73 views
Skip to first unread message

psme...@gmail.com

unread,
Apr 13, 2023, 11:50:00 AM4/13/23
to Oracle Cerner FHIR Developers
I'm getting the following error with corresponding x-request-id trying to POST to the Communication endpoint.  I'm not understanding the error.

X-Request-Id:  404870e7-6f52-40de-b934-b5cdfa961092+cYIB_3c5f

{
    "resourceType""OperationOutcome",
    "issue": [
        {
            "severity""fatal",
            "code""exception",
            "details": {
                "text""Internal service error from resource store"
            }
        }
    ]
}

 
Request Body:
{"preferred":false,"status":"completed","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/communication-category","code":"notification"}]}],"priority":"routine","topic":{"text":"mTuitive OpNote Request"},"subject":{"reference":"Patient/12724069"},"encounter":{"reference":"Encounter/97953492"},"recipient":[{"reference":"Practitioner/12753053"}],"sender":{"reference":"Practitioner/12742069"},"payload":[{"contentAttachment":{"contentType":"application/xhtml+xml","data":"PCFET0NUWVBFIGh0bWwgUHVibGljICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHAvL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtdHJhbnNpdGlvbmFsLmR0ZCI+PGgzPm1UdWl0aXZlIE9wTm90ZSBuZWVkcyByZXZpZXc8L2gzPjxwPlBhdGllbnQvMTI3MjQwNjk8L3A+"}}],"resourceType":"Communication"}
 

Vinuthna Gadde(Oracle Cerner)

unread,
Apr 20, 2023, 7:31:11 AM4/20/23
to Oracle Cerner FHIR Developers
Hi,

Apologies for the delay in response, it looks like problem is with the "data" that we are passing.
As per documentation,
If the contentType is "application/xhtml+xml", then the data (when decoded) should at least contain the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

So updating the data will solve your issue. you can try with the below value, Please post here in case of any further queries.
"PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIKImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPjxodG1sPjxib2R5PjwvYm9keT48L2h0bWw+"

Thank You,
Vinuthna Gadde(Oracle Cerner).

Reply all
Reply to author
Forward
0 new messages