How to get Encounter Participants if not passed in the Encounter resource?

198 views
Skip to first unread message

Odalys Jordan

unread,
Feb 20, 2018, 8:51:19 AM2/20/18
to Cerner FHIR Developers
Our SMART App receives the Encounter ID from the launch context. 
We need to retrieve the participants for this Encounter, but the Participants list is not always passed in the Encounter resource. In this case, is there any other way of retrieving the Participants related to the Encounter?

Thanks!

Jenni Syed (Cerner)

unread,
Feb 20, 2018, 12:23:57 PM2/20/18
to Cerner FHIR Developers
Hi Odalys,

You could try to query the CarePlan resource by encounter (looking for care team: http://fhir.cerner.com/millennium/dstu2/care-provision/care-plan/#care-teams). The "context" parameter is where you would provide encounter.

Regards,
Jenni 

Odalys Jordan

unread,
Feb 20, 2018, 1:46:01 PM2/20/18
to Cerner FHIR Developers
Thank you! I will try that.

Odalys Jordan

unread,
Feb 23, 2018, 10:04:00 AM2/23/18
to Cerner FHIR Developers

Hi,

I tried querying CarePlan resource. I added parameters patient(ID) and context(encounter ID), and I only got results from category: assess-plan
Then I added the category parameter equals careteam, and I got a 403 Forbidden. "Forbidden resource". Does this mean the data resulted this parameters combination is not accessible?

Thank you,
Odalys

On Tuesday, February 20, 2018 at 12:23:57 PM UTC-5, Jenni Syed (Cerner) wrote:

Odalys Jordan

unread,
Jul 13, 2018, 4:45:08 PM7/13/18
to Cerner FHIR Developers
Any answer on this please?

Madhur Rajendran (Cerner)

unread,
Jul 13, 2018, 5:35:33 PM7/13/18
to Cerner FHIR Developers
Hi Odalys,

Would you be able to provide a correlation id? Also can you double check that your authorization includes the CareTeam.read scope?

Thanks,
Madhur

Joshua Fisk (Cerner)

unread,
Jul 13, 2018, 5:48:22 PM7/13/18
to Cerner FHIR Developers
Hi Jordan,

Sorry for the lack of response! Currently to use the careteam category in sandbox you will have to provide a CareTeam scope in addition to the CarePlan scope that you are already providing. This was a defect in our handling of the scopes and there is a change that will pushed out to sandbox soon that will correct this.

Thank you,
Josh Fisk

On Friday, July 13, 2018 at 3:45:08 PM UTC-5, Odalys Jordan wrote:

Odalys Jordan

unread,
Jul 16, 2018, 8:41:10 AM7/16/18
to Cerner FHIR Developers
Hi!

Yes, the App is authorized for the scope patient/CarePlan.read

What do you call "correlation" ID ?

Odalys Jordan

unread,
Jul 16, 2018, 8:45:40 AM7/16/18
to Cerner FHIR Developers
Hi Josh,

Thank you for your response. To summarize, I need to wait until that change is pushed to test the request for CareTeam, since there's no "CareTeam" available to be selected in the Patient Scopes. Correct?

Thank you!

Madhur Rajendran (Cerner)

unread,
Jul 16, 2018, 2:45:14 PM7/16/18
to Cerner FHIR Developers
Hi Odalys,

Sorry for the confusion there. You will have to wait to test the CareTeam request, unfortunately. I'll check back with the team and give an update tomorrow.

In response to your other question, the correlation Id is the 'X-Request-Id' header that we return with the response.

Thanks,
Madhur

Madhur Rajendran (Cerner)

unread,
Jul 18, 2018, 3:23:58 PM7/18/18
to Cerner FHIR Developers
Hi Odalys,

We did relate this back to a known issue. We have engaged with the team that owns the concept, and will provide further updates early next week.

Thanks,
Madhur

Odalys Jordan

unread,
Nov 19, 2018, 2:29:27 PM11/19/18
to Cerner FHIR Developers

Hi!

Any updates on this issue? 

Thank you.

Joshua Fisk (Cerner)

unread,
Nov 20, 2018, 6:17:48 PM11/20/18
to Cerner FHIR Developers
Hi Odalys,

Due to some delays with the team responsible for the care team concept this was unfortunately side tracked. They are currently close to a fix for this issue and we will make sure to update you once this is ready :)

Thanks,
Josh

Odalys Jordan

unread,
Nov 21, 2018, 8:27:41 AM11/21/18
to Cerner FHIR Developers
Hi Josh,

Thank you for the update. I will appreciate that you let me know once the fix is published. 

Thanks again!
Odalys

Denis Mulder

unread,
Dec 6, 2018, 10:26:05 AM12/6/18
to Cerner FHIR Developers
Same issue with not being able to read CareTeam (Participants) from CarePlan with "Forbidden" error. Any updates?

Joshua Fisk (Cerner)

unread,
Dec 6, 2018, 9:16:36 PM12/6/18
to Cerner FHIR Developers
I was able to get in touch with the team responsible for care team today. They are looking to release their update to the care team service soon. I can't comment on our specific roadmap but once that is available we will be able to adjust our server and will post an update here for you.

Joshua Fisk (Cerner)

unread,
Jan 17, 2019, 5:39:01 PM1/17/19
to Cerner FHIR Developers
Good news! The fix for this issue is now live in our sandbox. If you experience any further errors attempting to call CareTeam (CarePlan with Participants) please let us know :)

Thank you for being patient while we worked through this.

- Josh

Odalys Jordan

unread,
Jan 18, 2019, 8:25:46 AM1/18/19
to Cerner FHIR Developers
Thanks for the update. I'll give it a try and let you know the results.

Thank you!

Odalys Jordan

unread,
Jan 18, 2019, 11:07:37 AM1/18/19
to Cerner FHIR Developers
I tried the API call but no luck so far. I'm still getting error 403, but now with the message "insufficient_scope". See the details below:

REQUEST HEADERS: 
GET /dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/CarePlan?patient=4342012&context=4027930&category=careteam HTTP/1.1
User-Agent: GuzzleHttp/6.3.3 curl/7.38.0 PHP/7.2.4
Authorization: Bearer SENSITIVE-DATA-REMOVED
Accept: application/json+fhir 

REQUEST BODY: 
 

RESPONSE CODE: 403 

RESPONSE HEADERS: 
HTTP/1.1 403 Forbidden
Date: Fri, 18 Jan 2019 15:59:16 GMT
Cache-Control: no-cache
Vary: Origin,User-Agent,Accept-Encoding
Server-Response-Time: 22.453745
WWW-Authenticate: Bearer realm="fhir-ehr.sandboxcerner.com", error="insufficient_scope"
X-Request-Id: 7472c67f8970f4d6dde08fce7a53b01f
Status: 403 Forbidden
Content-Length: 0
Content-Type: text/html 

RESPONSE BODY:
 

Let me know if I'm missing something.

Thanks!

Joshua Fisk (Cerner)

unread,
Jan 18, 2019, 11:59:45 AM1/18/19
to Cerner FHIR Developers
Thanks for providing the request id. I took a look at the token you used and there is no CarePlan scope included in it so that is why you are seeing the errors now. You will have to add back the CarePlan scope that you were originally using.

Odalys Jordan

unread,
Jan 18, 2019, 12:53:05 PM1/18/19
to Cerner FHIR Developers
Yep, I was missing the fact that I have removed the patient/CarePlan.read scope from the App weeks ago. I'll update that and try again. 

Thanks

Odalys Jordan

unread,
Jan 18, 2019, 4:31:11 PM1/18/19
to Cerner FHIR Developers

I was able to get results for the request specified. Question, is this working in the Cerner Production environment? 

Joshua Fisk (Cerner)

unread,
Jan 18, 2019, 4:35:52 PM1/18/19
to Cerner FHIR Developers
Great! This should be deployed to our Production environments this next Tuesday, the 22nd.

Odalys Jordan

unread,
Jan 18, 2019, 4:58:37 PM1/18/19
to Cerner FHIR Developers

Awesome! 

Thank you all for all your hard work and support!


Reply all
Reply to author
Forward
0 new messages