Trying to get all appointments for a day.

109 views
Skip to first unread message
Assigned to sansch...@gmail.com by aaron....@oracle.com

jonathan pedoeem

unread,
Dec 29, 2020, 11:35:19 AM12/29/20
to Cerner FHIR Developers

Hi I am trying to get all the appointments for a specific time range.


I am using a provider app (not sure if I need to be using a system app, if someone can explain the difference that would be great).

When I send in the following request: /Appointment?date=gt2020-12-01
I get the following response: at least one of patient, practitioner, or location must be provided


How can I make this request successfully?

x-request-id 2ebecd54-51f9-43b8-baae-b833b09caf46

jonathan pedoeem

unread,
Dec 29, 2020, 11:49:38 AM12/29/20
to Cerner FHIR Developers
Update: you can just tack on a location to the query and it will go through, i also needed an upper limit for the date.

Here is what I ended up requesting successfully: /Appointment?date=gt2018-12-01&location=1&date=lt2020-12-20


It returned 0 results that makes sense, I guess I need to create an appointment first.

jonathan pedoeem

unread,
Dec 29, 2020, 12:37:02 PM12/29/20
to Cerner FHIR Developers
I am now having trouble creating an appointment, when I use the example here https://fhir.cerner.com/millennium/r4/scheduling/appointment/#example---booked-appointment

I get the following error:  serviceType,reasonCode,requestedPeriod cannot be populated

x-request-id 914aedff-f4fa-4046-8474-19d3a5035489

Sydne Anschutz (Cerner)

unread,
Jan 4, 2021, 9:54:40 AM1/4/21
to Cerner FHIR Developers
Hello,

Based on the XID you provided it looks like you are using dstu2, but the link you provided is for the r4 documentation. Please ensure you are using the dstu2 documentation located here: https://fhir.cerner.com/millennium/dstu2/scheduling/appointment/#create

Sydne (Cerner)

jonathan pedoeem

unread,
Jan 11, 2021, 10:52:03 AM1/11/21
to Cerner FHIR Developers
Hi
I am now using the DTSU2 documentation and trying to find a slot I can use for the appointment.
Even though I have the permission for "User/slot.read" I keep on getting "insufficient_scope" would you be able to help me out for that?

x-request-id 03cb6280-5027-480f-8c48-f19257257404

Aaron McGinn (Cerner)

unread,
Jan 12, 2021, 12:36:18 PM1/12/21
to Cerner FHIR Developers
The resource path is case sensitive, so you will need to use "Slot" instead of "slot".

-Aaron (Cerner)

jonathan pedoeem

unread,
Jan 12, 2021, 12:42:22 PM1/12/21
to Cerner FHIR Developers
I am using user/Slot.read

Aaron McGinn (Cerner)

unread,
Jan 12, 2021, 12:44:09 PM1/12/21
to Cerner FHIR Developers
Apologies, I mean for the URL you are requesting:
"/ec2458f2-1e24-41c8-b71b-0e701af7583d/slot" should be "/ec2458f2-1e24-41c8-b71b-0e701af7583d/Slot"

-Aaron (Cerner)

jonathan pedoeem

unread,
Jan 12, 2021, 12:48:13 PM1/12/21
to Cerner FHIR Developers
That works.
Thank you.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages