Hi <@963922231224844359> , hope you had a great we...
# general
y
Hi @rahul1 , hope you had a great weekend. I have one question about patient-facing app. Can I achieve a fhir authorize workflow with FooMedical/MedPlum? fhir patient facing app link: https://fhir.epic.com/Documentation?docId=oauth2&section=EmbeddedOauth2Launch. Thank you so much for your help.
r
@Yaxuan.Zhang I wanted to understand your use case to be able to answer properly. Which app would you like to launch using a patient facing app link? The Foo Medical patient portal, or another app built by Codex?
y
Thank you for following this question up. I am interested in launching the Foo Medical patient portal. So, the user can authenticate us and we can get authentication code.
Hi @rahul1 , a minor correction. We want to use the Foo Medical patient-facing OAuth2 login flow for our patient-facing application. This way we can use the OAuth2 flow to get patient consent and access patient records on their behalf. The original link above was incorrect (we're not trying to launch our application nor use SMART on FHIR). We want to use Foo Medical as the identity provider in the OAuth2 login flow. We basically need some endpoint that we can use in the format of https://foo-medical.mydomain.com/oauth2?client_id=f9aa6ca3-419a-9d7b-831e1ea38362&redirect_uri=https%3A%2F%2Fpatient-ehr.codexhealth.com&response_type=code&state=2022-08-22T11%3A42%3A25-07%3A00
r
Thanks for the clarification @Yaxuan.Zhang . This is possible, and we should talk through the details. The Foo Medical app is really just a front-end, and all the user auth is happening on the Medplum server. If the patient is only interacting with *your * patient-facing app, it probably makes sense to use Medplum directly as an identity provider, rather than proxying through Foo Medical. You can see some of the utility methods we have around OAuth in our typescript SDK https://docs.medplum.com/sdk/classes/MedplumClient#signinwithredirect
Do you have a timeline for when you'd like to roll this out? Some of our team is on vacation this week, but we could set up a quick chat some time next week to walk through the details of your use case and figure out the best implementation
y
Thanks for getting back to us, @rahul1 . We'd like to have this roll out as soon as possible. Do you think it is possible that we can set up a quick chat this afternoon? Or some time as early as possible?
r
Sure, I can talk now for ~30 min if that's ok. Hopefully I should be able to get you started, but for some of the deeper technical details, I might need to consult with some of our engineers who return next week
y
Is it okay that we can meet at 3:30? My manager does want to join the meeting as well.
r
Unfortunately, I will be onsite with another customer at 3:30, and won't be back until ~5pm. Would you be willing meet then?
y
I probably can not. Sorry for the short notice. How about tomorrow? I list some time here that my manager will be available. 9:30, 11:30, 1:30, or after 3:00
Does any of these time works for you?
r
I think 11:30 would be best
y
Sounds good! I will create a google meeting link for us to meet tomorrow at 11:30.
Thank you so much for the quick response.
r
you're welcome! Please include cody@medplum.com on the invite as well
y
Scheduled! We will see you tomorrow.
It is very nice to meet both of you, @rahul1 and @cody . Please feel free to let us know if you need something from our side.
r
Pleasure meeting you as well. We need to confirm a few pieces of functionality on our end, and then we can get back to you with more information
c
Yes, thank you! Looking forward to working with you!
y
Good morning, @rahul1 and @cody , is there any updates on OAuth2? Thank you both so much for helping us on this.
r
Yep! We're putting together a little sample application and some documentation to get you started. We'll release those later today
y
Thanks, @rahul1 !
182 Views