Getting a successful PATCH Patient request

45 views
Skip to first unread message

Sam Kim

unread,
Feb 18, 2020, 3:01:52 PM2/18/20
to Cerner FHIR Developers
Hi all,

I am trying to change the first name of a patient I created. 

This is the raw request body I am using:

[ {            "path": "/name/0/id",     "op": "test",     "value": "CI-7320008-0" }, {     "path": "/name/0/given",     "op": "replace",     "value": ["FRNA"] } ]

It is returning with a 412 Precondition Failed status code. What are the preconditions of a name change/PATCH request?
This is my X-Request-Id: 30930a02c0a85fcaa772b6f3c6f45b2f

Thank you for your help.

Eric Sornson (Cerner)

unread,
Feb 18, 2020, 10:01:06 PM2/18/20
to Cerner FHIR Developers
Hey Sam, sorry the error response isn't more helpful in troubleshooting the failure. Looks like the PATCH is failing due to a version mismatch.  Be sure to set the `If-Match` header to the meta.versionId of the Patient resource you are attempting to PATCH.

-Eric (Cerner)
Reply all
Reply to author
Forward
0 new messages