Create Appointment Failure

92 views
Skip to first unread message

Rich Carr

unread,
Mar 16, 2023, 8:52:30 AM3/16/23
to Oracle Cerner FHIR Developers
Trying to create an appointment in the sandbox, using known resources, and it is failing with a bizarre error.

This is my post:

{

    "resourceType""Appointment",

    "status""booked",

    "slot": [

        {

            "reference""Slot/4047611-32216049-64339033-970"

        }

    ],

    "serviceType": [

        {

            "coding": [

                {

                    "system"https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/14249,

                    "code""4047611",

                    "display""Surgery Rapid",

                    "userSelected"true

                },

                {

                    "system"http://snomed.info/sct,

                    "code""394576009",

                    "display""Accident & emergency (qualifier value)",

                    "userSelected"false

                }

            ],

            "text""Surgery Rapid"

        }

    ],

    "reasonCode": [

        {

            "text""I have a cramp"

        }

    ],

    "comment""Appointment request comment",

    "participant": [

        {

            "actor": {

                "reference""Patient/12724066",

                "display""SMART III, NANCYU NHA EEEEEE"

            },

            "required""required",

            "status""accepted"

        },

        {

            "actor": {

                "reference""Location/32216049",

                "display""MX Clinic 1"

            },

            "status""accepted"

        }

    ]

}

This is the response:

{

    "resourceType""OperationOutcome",

    "issue": [

        {

            "severity""error",

            "code""business-rule",

            "details": {

                "coding": [

                    {

                        "system"http://terminology.hl7.org/CodeSystem/operation-outcome,

                        "code""MSG_PARAM_INVALID",

                        "display""Parameter 'Appointment.participant[1].actor.reference' content is invalid"

                    }

                ],

                "text""The value for Appointment.participant[1].actor.reference is not supported."

            },

            "diagnostics""Appointment.participant[1].actor.reference: expected resource type 'Patient'",

            "expression": [

                "Appointment.participant[1].actor.reference"

            ]

        }

    ]

}


Sukesh Konjeti (Oracle Cerner)

unread,
Mar 17, 2023, 4:11:33 AM3/17/23
to Oracle Cerner FHIR Developers
Hello,

Can you please provide the domain details/tenant key to lookup for the location id in the database.

Thank You,
Sukesh Konjeti (Oracle Cerner)

Richard Braman

unread,
Mar 17, 2023, 11:40:17 AM3/17/23
to cerner-fhir...@googlegroups.com
If you read the doc, you dont put the Location in as a participant:


  • Appointment.participant.actor must be a reference to a Patient.
Appointment/slot is where you put Location Information.

Kindly ,

Richard Braman


--
You received this message because you are subscribed to the Google Groups "Oracle Cerner FHIR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cerner-fhir-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/9ee2925c-33ff-49f6-bf86-dfd5e5b54c05n%40googlegroups.com.


--

Rich Carr

unread,
Mar 23, 2023, 1:18:48 PM3/23/23
to Oracle Cerner FHIR Developers

Rich Carr

unread,
Mar 23, 2023, 3:35:46 PM3/23/23
to Oracle Cerner FHIR Developers
And I have tried everything - the examples, then reduce it to only the required fields, and every time I get an error.  Does anyone have an example that will work in the sandbox?

Thanks in advance!

Sukesh Konjeti (Oracle Cerner)

unread,
Mar 24, 2023, 1:16:53 AM3/24/23
to Oracle Cerner FHIR Developers
Hello,

Can you please try with the closed end point url : https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Appointment
by providing an authorization token.

Thank You,
Sukesh Konjeti(Oracle Cerner)

Rich Carr

unread,
Mar 27, 2023, 2:10:29 PM3/27/23
to Oracle Cerner FHIR Developers
Just like patient, this also worked, so I am being very vigilant on this now.  When I copy the examples they are all for open, and I didn''t realize it.  Was able to create a booked and proposed appointment.

Thanks!
Rich

Reply all
Reply to author
Forward
0 new messages