Thank You all for your support on this group.
I am able to successfully cancel an appointment in Genesis when the /cancelationReason is
{
"op": "add",
"path": "/cancelationReason",
"value": {
"coding": [
{
"code": "pat"
}
]
}
I am unable to cancel an appointment when I use the remaining codes i.e
{
"op": "add",
"path": "/cancelationReason",
"value": {
"coding": [
{
"code": "prov"
}
]
}
or
{
"op": "add",
"path": "/cancelationReason",
"value": {
"coding": [
{
"code": "other"
}
]
}
I get an error
{
"resourceType": "OperationOutcome",
"issue": [ {
"severity": "error",
"code": "invalid",
"details": {"text": "Unprocessable entity"}
}]
}
PATCH /r4/............/Appointment/4851100 HTTP/1.1
X-Request-Id: 9f5b7a56-aa6e-42af-bb8a-5298f4ddc719+2623
Can you please check why the system is allowing only "code":"pat"?
Thank You,
Vivek