Stream: smart/health-cards
Topic: Cerner secure server user?
Matt Printz (Apr 14 2021 at 20:20):
I'm working on the Patient Access authentication with Cerner (https://fhir-myrecord.stagingcerner.com/beta/ec2458f2-1e24-41c8-b71b-0e701af7583d), and I have my app created and I'm getting to the oauth log in screen, but the only credentials I have are my own personal one, and no records are found. Is there a specific username/password we should be using for testing?
Joe Rattazzi (Apr 14 2021 at 20:28):
We have testing ones for you to use!
- Guide Location: https://github.com/joeratt/connectathon_notes/blob/april_2021-health_cards/health_cards/Cerner%20SMART%20Health%20Cards%20-%20Proof%20of%20Concept%20-%20Integration%20Notes.md#authorize-your-app
- Quick Link to the documentation: https://docs.google.com/document/d/10RnVyF1etl_17pyCyK96tyhUWRbrTyEcqpwzW-Z-Ybs
Matt Printz (Apr 14 2021 at 20:30):
Thanks Joe! I read that document like 3 times but just missed the link to the google doc.
Joe Rattazzi (Apr 14 2021 at 20:31):
No problem! lots of links in there
Matt Printz (Apr 14 2021 at 20:35):
Joe Rattazzi said:
No problem! lots of links in there
Hmm.. not seeing Patient Access Logins for any of the users in the Covid section. Do we not need to use the patient login in the oauth to pull the data for the relevent patients?
Joe Rattazzi (Apr 14 2021 at 20:35):
oh I see
Joe Rattazzi (Apr 14 2021 at 20:35):
so - any of the patient logins will work (I used Wilma Smart earlier)
Joe Rattazzi (Apr 14 2021 at 20:36):
our data payloads are just hard-coded right now
Joe Rattazzi (Apr 14 2021 at 20:36):
so it won't change on which user you're hitting
Matt Printz (Apr 14 2021 at 20:36):
Ok, that works. Thanks again.
Joe Rattazzi (Apr 14 2021 at 20:36):
good deal
Santosh Jami (Apr 14 2021 at 20:39):
Once you create the patient app, before executing the postman script - is there a wait time @Joe Rattazzi ?
Joe Rattazzi (Apr 14 2021 at 20:39):
may be up to 15 minutes
Joe Rattazzi (Apr 14 2021 at 20:39):
if you see an error after that time, I can help troubleshoot
Matt Printz (Apr 14 2021 at 21:11):
I keep getting 403 Permission Denied when calling $health-cards-issue
endpoint after completing the OAuth. Or at least I seem to be completing the OAuth. Is there a way to get some debugging on the error?
@Joe Rattazzi
Josh Mandel (Apr 14 2021 at 21:12):
Or at least I seem to be completing the OAuth.
Forgive me for this non-response to your question, but: this part should be clear at least. Are you getting an access token response, with permitted scopes and a patient ID?
Matt Printz (Apr 14 2021 at 21:15):
@Josh Mandel
{'patient': '12724066', 'scope': 'launch/patient openid profile', 'id_token': 'eyJraWQiOiIyMDIxLTA0LT...', 'token_type': 'Bearer'}
Cibi Siddharth (Apr 14 2021 at 21:16):
@Joe Rattazzi
We tried the authorized endpoint as we discussed during the call in the postman. We are getting the following error(Screenshots attached).
image.png
image.png .
cc: @Santosh Jami @Suprakash Maity @Rohit Bankia
Joe Rattazzi (Apr 14 2021 at 21:16):
can you access the postman console to see what the error message is there?
Josh Mandel (Apr 14 2021 at 21:17):
launch/patient openid profile
Thanks @Matt Printz. I'd expect to see patient/Immunization.read
and patient/Patient.read
in the approved scopes. Are you requesting those?
Cibi Siddharth (Apr 14 2021 at 21:18):
@Joe Rattazzi yes we are getting just " Error: [object Object] "
image.png
Matt Printz (Apr 14 2021 at 21:19):
Oh, I thought it pulled that from the app definition. Let me look at my client definition code.
Josh Mandel (Apr 14 2021 at 21:19):
When you click through the app approval screen (/authorize endpoint), you should see approvalcheckboxes for Immunization and Patient, I think -- if you don't, it suggests you're not asking for those scopes.
Matt Printz (Apr 14 2021 at 21:21):
@Josh Mandel I found it, I wasn't specifying them in the client so the client was defaulting to an internal default rather than using the default from the app definition. I /think/ I have enough to fix this now.
Josh Mandel (Apr 14 2021 at 21:21):
(And @Matt Printz I can see why this is a "gotcha", because Epic's behavior for instance is different; with Epic's SMART on FHIR implementation you can request specific scopes when you launch, but they're ignored in favor of the scopes you requested at client registration time. The recommended best practice is to not rely on defaults.)
Matt Printz (Apr 14 2021 at 21:27):
@Josh Mandel It's working now. Thanks for helping me see that.
Last updated: Apr 12 2022 at 19:14 UTC