Stream: javascript
Topic: fhir-kit client in browser
Josh Mandel (Jun 15 2021 at 16:49):
@Brian Kaney, I just remembered a follow-up question I wanted to ask from your typescript presentation at DevDays (thanks again BTW -- great presentation!).
I was wondering whether there's interest in supporting browser-side SMART App Launch, and you pointed me to https://github.com/Vermonster/fhir-kit-client/blob/master/examples/public-smart-ehr/public-smart-ehr-launch.js . This example is great, but it's a server-side example. Is there interest (or: explicit non-interest) in supporting browser-based clients?
Brian Kaney (Jun 15 2021 at 18:03):
Hi @Josh Mandel -- I see. Yea, the library is tested and known to work in the browser. We don't build minified target versions because for most projects we assume there is already a build system (typescript, babel, webpack, part of the UI framework, etc).
We have used it in React, Angular, Vue3, React Native, and Iconic. Here are some projects you could use to get started. The upshot is it works the same way (node or browser):
- https://github.com/Vermonster/fhir-kit-create-react
- https://github.com/Vermonster/fhir-kit-client-examples
Josh Mandel (Jun 15 2021 at 18:32):
Thanks! These examples don't show an in-browser smart launch but it sounds like this is either supported or at least would be considered for future scope in the library.
Last updated: Apr 12 2022 at 19:14 UTC