Unable to update appointment status from proposed to booked

102 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Aishwarya Dige

unread,
Dec 10, 2021, 8:51:21 AM12/10/21
to Cerner FHIR Developers
in header use proper if-match version
getting unprocessable entity error
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Unprocessable entity"
}
}
]
}

Fenil Desani (Cerner)

unread,
Dec 10, 2021, 10:50:59 AM12/10/21
to Cerner FHIR Developers
Hello,

Please provide x-Request-id of the failure and the POST body.

Thanks,
Fenil

Aishwarya Dige

unread,
Dec 14, 2021, 12:18:11 AM12/14/21
to Cerner FHIR Developers
used this X-Request-Id = 0697c9df-0837-434f-94ac-9b9bd22000cd but getting same error
headers - If-Match = W/"0"
Content-Type = application/json-patch+json
Authorization = Bearer <token>
X-Request-Id
request body
[
{
"op": "add",
"path": "/slot",
"value": [
{
"reference": "Slot/4047611-32216049-63708791-970"
}
]
},
{
"op": "replace",
"path": "/status",
"value": "booked"
},
{
"op": "add",
"path": "/reasonCode",
"value": [
{
"text": "I have a headache"
}
]
}
]


Fenil Desani (Cerner)

unread,
Dec 14, 2021, 12:54:38 AM12/14/21
to Cerner FHIR Developers
Appointment 4839027 is of type, 'New Patient'
The Slot (4047611-32216049-63708791-970) you want to associate with this Appointment is of type 'Surgery Rapid' and hence the mismatch.

Aishwarya Dige

unread,
Dec 14, 2021, 1:53:38 AM12/14/21
to Cerner FHIR Developers
sir,
How to get slot for new patient

Thanks

Fenil Desani (Cerner)

unread,
Dec 14, 2021, 3:24:36 AM12/14/21
to Cerner FHIR Developers
You can get the code for the 'New Patient' Service Type from the GET call to Appointment 4839027 
And then use that Service Type code to search for Slots -  http://fhir.cerner.com/millennium/r4/base/workflow/slot/#parameters

Aishwarya Dige

unread,
Dec 14, 2021, 3:33:45 AM12/14/21
to Cerner FHIR Developers
Thank you sir . successfully updated status from proposed to booked
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages