POST DocumentReference - 422 Unprocessable Entity

86 views
Skip to first unread message

Cameron Hurst

unread,
Oct 3, 2022, 4:55:42 PM10/3/22
to Oracle Cerner FHIR Developers
Hello - I'm trying to post a new DocumentReference and getting a 422 error back. 

X-Request-Id is [ecc50be2-c6c0-41a4-a2ab-4ce73f465eb9+8459_Abai]

Payload I'm sending: 

{
    "resourceType": "DocumentReference",
    "status": "current",
    "docStatus": "final",
    "type": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "18746-8",
                "display": "Endoscopy Procedure Note",
                "userSelected": true
            }
        ]
    },
    "subject": {
        "reference": "Patient/26349592"
    },
    "content": [
        {
            "attachment": {
                "contentType": "text/html;charset=utf-8",
                "data": "UEdoMGJXdytDangwYVhSc1pUNGdWR1Z6ZENCRWIyTjFiV1Z1ZENBOEwzUnBkR3hsUGdvS1JHOWpkVzFsYm5RZ1kyOXVkR1Z1ZENFS0Nqd3ZhSFJ0YkQ0PQ==",
                "title": "Endoscopy Procedure Note",
                "creation": "2022-09-28T18:01:01.000Z"
            }
        }
    ],
    "context": {
        "encounter": [
            {
                "reference": "Encounter/124177062"
            }
        ],
        "period": {
            "start": "2021-07-05T18:32:00.000Z",
            "end": "2022-01-27T17:52:36.000Z"
        }
    }
}

Any ideas? 

Thanks in advance!

-Cameron

Aaron McGinn (Oracle Cerner)

unread,
Oct 5, 2022, 12:51:31 PM10/5/22
to Oracle Cerner FHIR Developers
I am not seeing the Patient nor the Encounter you included here. Which patient are you attempting to add this note on?

-Aaron (Oracle Cerner)

Cameron Hurst

unread,
Oct 5, 2022, 12:57:16 PM10/5/22
to Oracle Cerner FHIR Developers
My POST has the Subject set to:     "subject": {"reference": "Patient/26349592"}. The documents say Encounter is not required so I did not supply. 

(From the Cerner FHIR docs)

Name                         
Required  Type
context.encounter    No             Reference

Cameron Hurst

unread,
Oct 11, 2022, 10:14:33 AM10/11/22
to Oracle Cerner FHIR Developers
Hello Aaron, 

Just following up - can you advise why I am receiving an Unprocessable Entity? It's been a week since my original post so am following up with a new x-request-Id:  446ed1a2-6acf-41be-a37f-35e7467a7cb3+6684_vYXd

Aaron McGinn (Oracle Cerner)

unread,
Oct 12, 2022, 11:40:51 AM10/12/22
to Oracle Cerner FHIR Developers
Thanks for the bump.

In looking into your most recent request (looks like the same workflow/error), I am seeing some odd processing. I have engaged investigation from the service owners for more information!

-Aaron (Oracle Cerner)

Cameron Hurst

unread,
Oct 20, 2022, 10:23:08 AM10/20/22
to Oracle Cerner FHIR Developers
Thanks Aaron - any news on this one?

-Cameron

Reply all
Reply to author
Forward
0 new messages