Create Appointment in Proposed status using r4

121 views
Skip to first unread message

Udit Das

unread,
Aug 17, 2020, 10:23:33 AM8/17/20
to Cerner FHIR Developers
Hi
I am continuously receiving 422- Unprocessable Entity response when am creating appointment using r4
X-Requested-Id: cb7415fc-5940-4787-8c9c-b465563d7d99

and calling https://fhir-ehr.sandboxcerner.com/r4/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Appointment API to create an appointment but it is giving 422- Unprocessable Entity error every time.

I have been trying to make it work for a week, but still am facing the same issue, any help is much appreciated.

My request body 
-------------------------
{
"resourceType": "Appointment",
"status": "proposed",
"serviceType": [
{
"coding": [
{
"code": "394586005",
}
]
}
],
"reasonCode": [
{
"text": "I have a cramp"
}
],
"comment": "Appointment request comment",
"participant": [
{
"actor": {
"reference": "Patient/773933",
"display": "TAYLOR, MARCUS CERNER"
},
"status": "needs-action"
},
{
"actor": {
"reference": "Location/4062906",
"display": "Operation Room"
},
"status": "needs-action"
}
],
"requestedPeriod": [
{
"start": "2020-12-12T13:28:17-05:00",
"end": "2021-12-12T13:28:17-05:00"
}
]
}


Thanks
Udit

Aaron McGinn (Cerner)

unread,
Aug 20, 2020, 6:09:59 PM8/20/20
to Cerner FHIR Developers
This also seems to be missing mappings. The serviceType SNOMED code provided is not mapped in the domain. I recommend trying one of the proprietary values provided in that post.

-Aaron (Cerner)

udud...@gmail.com

unread,
Aug 21, 2020, 3:29:57 AM8/21/20
to Cerner FHIR Developers
Thanks, Aaron for replying

I have tried all the below codes with the system  https://fhir.cerner.com/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/codeSet/14249, but it didn't work for me.  

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

Aaron McGinn (Cerner)

unread,
Aug 21, 2020, 5:43:48 PM8/21/20
to Cerner FHIR Developers
Do you have an X-Request-Id after updating to the new system/codes?

-Aaron (Cerner)

udud...@gmail.com

unread,
Aug 22, 2020, 8:46:09 AM8/22/20
to Cerner FHIR Developers
yes, I have
X-Request-Id: 55cbf61e-d4d2-447c-b47d-034af4a5323a

Thanks

Aaron McGinn (Cerner)

unread,
Aug 22, 2020, 11:31:57 AM8/22/20
to Cerner FHIR Developers
Could you provide an example of the POST you are making in the public sandbox domain? I am still seeing mapping errors.

-Aaron (Cerner)

udud...@gmail.com

unread,
Aug 23, 2020, 10:07:07 AM8/23/20
to Cerner FHIR Developers
--header 'Content-Type: application/json+fhir' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
  "resourceType": "Appointment",
  "status": "proposed",
  "serviceType": [
    {
      "coding": [
        {
          "code": "667105"
        }
      ]
    }
  ],
  "reasonCode": [
    {
      "text": "I have a cramp"
    }
  ],
  "comment": "Appointment request comment",
  "participant": [
    {
      "actor": {
        "reference": "Patient/8482007",
        "display": "TAYLOR, MARCUS CERNER"
      },
      "status": "needs-action"
    },
    {
      "actor": {
        "reference": "Location/633867",
        "display": "Baseline West"
      },
      "status": "needs-action"
    }
  ],
  "requestedPeriod": [
    {
      "start": "2020-10-10T13:28:17-05:00",
      "end": "2021-11-11T13:28:17-05:00"
    }
  ]
}'

Aaron McGinn (Cerner)

unread,
Sep 5, 2020, 5:54:54 PM9/5/20
to Cerner FHIR Developers
Hey Udit,
Have you been able to get this working in the new public sandbox domain?

-Aaron (Cerner)

udud...@gmail.com

unread,
Sep 14, 2020, 5:22:38 AM9/14/20
to Cerner FHIR Developers
no, it is not working
Reply all
Reply to author
Forward
0 new messages