Create Appointment in Proposed status using r4 throws 422 - Unprocessable Entity

89 views
Skip to first unread message

Malhar Desai

unread,
Aug 6, 2020, 2:43:13 PM8/6/20
to Cerner FHIR Developers
Hello 
Good Morning

I am trying to create new appointment in proposed status as per r4. documentation. It gives us below error :
Error : {"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Unprocessable entity"}}]}
Status : 422

Below is the url on which we POST request:

I have implemented payload as per documentation provided on : 


X-Request-ID : c947f8e4-6eab-4f09-b08e-565667e9d112


Actual JSON Payload : 
--------------------------------
{
  "resourceType": "Appointment",
  "status": "proposed",
  "participant": [
    {
      "actor": {
        "reference": "Patient/1316024",
        "display": "PETERS, Timothy"
      },
      "status": "needs-action"
    },
    {
      "actor": {
        "reference": "Location/633867",
        "display": "Baseline West"
      },
      "status": "needs-action"
    }
  ],
  "requestedPeriod": [
    {
      "start": "2020-08-06T08:00:00-07:00",
      "end": "2020-08-06T09:00:00-07:00"
    }
  ],
  "serviceType": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "394586005"
        }
      ]
    }
  ],
  "reasonCode": [
    {
      "text": "Same Day"
    }
  ]
}
------------------------------------------------------

Any help is appreciated.

Thank you
Have a Nice Time
Malhar...

Max Philips (Cerner)

unread,
Aug 6, 2020, 3:00:47 PM8/6/20
to Cerner FHIR Developers
Hi Malhar,

As noted on fhir.cerner.com, "The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site." Unfortunately it looks like you have run into a scenario where the results do differ.

In this case the serviceType code, SNOMED 394586005, is unavailable for use in Cerner's sandbox. If you would like to use standard codes for serviceType, please search through other posts on this group and example data linked in our stickied thread on the group home page to potentially identify valid options.

Additionally, serviceType has a terminology binding to Millennium code set 14249, so you could use proprietary codes to test as well. https://fhir.cerner.com/millennium/r4/scheduling/appointment/#terminology-bindings

Here are some you can use, the system for these codes is https://fhir.cerner.com/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/codeSet/14249

Surgery 667105
CT Abdomen 4062740
CT Pelvis 4062744
WH New Annual 4062784
WH Existing Annual 4062786
PT Treatment 4062813
Office Visit 5038359
Sleep Study 6887172
Same Day 21265426
Pulmonary 39086565

Thanks,
Max (Cerner)

Malhar Desai

unread,
Aug 6, 2020, 3:39:50 PM8/6/20
to Cerner FHIR Developers
Hello Max
Good Afternoon

Receiving same error.
X-Request-ID : 2bfef16b-4a4d-479c-b1e8-a2d63717ebf8

Data Payload : 
---------------------------------------------------------------
{
  "resourceType": "Appointment",
  "status": "proposed",
  "participant": [
    {
      "actor": {
        "reference": "Patient/1316024",
        "display": "PETERS, Timothy"
      },
      "status": "needs-action"
    },
    {
      "actor": {
        "reference": "Location/633867",
        "display": "Baseline West"
      },
      "status": "needs-action"
    }
  ],
  "requestedPeriod": [
    {
      "start": "2020-08-06T08:00:00-07:00",
      "end": "2020-08-06T09:00:00-07:00"
    }
  ],
  "serviceType": [
    {
      "coding": [
        {
          "code": "5038369"
        }
      ]
    }
  ],
  "reasonCode": [
    {
      "text": "Same Day"
    }
  ]
}
-----------------------------------------------------------------

Max Philips (Cerner)

unread,
Aug 6, 2020, 4:19:33 PM8/6/20
to Cerner FHIR Developers
Thanks for the update Malhar, we'll continue to investigate.

Thanks,
Max (Cerner)

Malhar Desai

unread,
Aug 6, 2020, 4:54:22 PM8/6/20
to Cerner FHIR Developers
Hello Max
Good Afternoon to you...

Can we get Location List?
Reason I am asking because, when request successfully process, I can't put another request for same patient for another day...
Seems like I have to use another location to do so.

I have use Location/4062906 & Location/633867. 
Do have any other Location that I can use? or can you please help me how to make another request with same patient?

Thank you
have a Nice Time
malhar...

Fahad Mohd Shahid

unread,
Aug 18, 2020, 5:41:05 AM8/18/20
to Cerner FHIR Developers
Any update here? I am also facing same issue

Thanks
Fahad
Reply all
Reply to author
Forward
0 new messages