Skip to Main Content

R4 APIs (Millennium)

Announcement

For information related to the Oracle Partner Network (OPN) Industry Healthcare Track please visit our OPN Industry Healthcare Program page.

For specific questions related to Oracle Partner Network (OPN), please contact Partner Assistance.

Millennium FHIR and non-FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com
Soarian FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com.

Trouble with DocumentReference.write

Micheal SpeckMar 6 2026

Workflow or API calls:

POST /DocumentReference

Background Information:

I am trying to POST a DocumentReference resource from a TOC launch, but I keep getting errors claiming that the entity is unprocessable. The app is registered with DocumentReference.write, so I don't believe that is the case. The note contains base 64 encoded text and the author and subject match the patient and practitioner respectively.

Please let me know what is wrong with the message.

Here is the message:
{

"resourceType": "DocumentReference",

"status": "current",

"docStatus": "final",

"description": "CancerNAV Navigation Note",

"type": {

"coding": \[

  {

    "system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",

    "code": "2820687",

    "display": "Progress Note",

    "userSelected": true

  }

\]

},

"subject": {

"reference": "Patient/12863666"

},

"author": [

{

  "reference": "Practitioner/29628557"

}

],

"content": [

{

  "attachment": {

    "contentType": "text/plain;charset=utf-8",

    "data": "Q2FuY2VyIE5hdmlnYXRpb24gTm90ZSAgKGdlbmVyYXRlZCBieSBDYW5jZXJOQVYpDQoNClBhdGllbnQ6IFRXTyBDQU5DRVJOQVYNCkVuY291bnRlciBEYXRlOiAwMy8wNi8yMDI2DQpFbmNvdW50ZXIgVHlwZTogRS1tYWlsIENvcnJlc3BvbmRlbmNlDQpUb3VjaHBvaW50OiA1IC0gRW5kIG9mIFRyZWF0bWVudA0KVG90YWwgVGltZSBpbiBNaW51dGVzOiAxMA0KRGVzY3JpcHRpb246IG5vdGUgaW4gMTAgbWludXRlcw0KDQpCYXJyaWVyOiBDQy1FbmQgb2YgTGlmZSBDYXJlIE5lZWRzDQo=",

    "title": "5 - End of Treatment"

  }

}

],

"context": {

"period": {

  "start": "2026-03-06T02:06:24Z",

  "end": "2026-03-06T02:16:24Z"

}

}

}

Expected Result:

200

Actual Result:

422

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

X-Request-Id: /8F9D9E01F36BBD4EAD63336CD8B55D31+ZmcG_5bsp

Cerner-Correlation-Id ???

opc-request-id: /8F9D9E01F36BBD4EAD63336CD8B55D31/5629D47D1D6F208F890B527CA24E55A3
Date/time of the example: 2026-03-06 02:35:03.2613789 +00:00

Comments
Post Details
Added on Mar 6 2026
0 comments
8 views