FHIR Chat · SMART on FHIR app sample code in dotnet · dotnet

Stream: dotnet

Topic: SMART on FHIR app sample code in dotnet


view this post on Zulip Sylvester S (Jul 16 2020 at 17:30):

Hi,
I see all SMART on FHIR sample applications in JavaScript. Is there any dotnet core SMART on FHIR sample? Can somebody please help me with a url to code repository? Thank you

view this post on Zulip Ewout Kramer (Jul 20 2020 at 10:01):

I am pretty sure @Marten Smits has been working on that - I'll call his attention to this discussion.

view this post on Zulip Marten Smits (Jul 20 2020 at 10:09):

Hi @Sylvester S , we have a bit of documentation about how to add a bearer token to the client:
http://docs.simplifier.net/fhirnetapi/client/request-response.html#adding-extra-headers
How to get the bearer token itself depends on the specific use case you are working on and is therefor currently not part op the .net client.

Note that we will release a new version of the library soon (version 2.0) where we also move to a new implementation of the client, where this functionality will change a bit. We will update the documentation as soon as we release the newer version.

view this post on Zulip Sylvester S (Jul 20 2020 at 11:15):

Thank you so much @Ewout Kramer and @Marten Smits

view this post on Zulip Sylvester S (Jul 30 2020 at 13:38):

Hi @Ewout Kramer , @Marten Smits ,
Sorry to bother you again. I understood setting bearer token. Launching and redirecting SMART app is getting a little bit trickier. Could you point me to any sample dotnet code for SMART on FHIR app?

view this post on Zulip Ewout Kramer (Jul 30 2020 at 14:07):

I don't know, I have never done that, but there must surely be people in the community here that have.

view this post on Zulip Sylvester S (Jul 30 2020 at 14:34):

Thanks @Ewout Kramer .
Hi,
Could anybody please help me with a sample dotnet SMART on FHIR code?

view this post on Zulip Kenneth Myhra (Jul 30 2020 at 14:54):

I wrote a crude sample to demonstrate the SMART App Launch sequence for a desktop EHR that was SMART-enabled. You can find it here: https://github.com/kennethmyhra/smart-on-fhir

The demo servers have long since been taken down, but most is in the repo to enable you to set this up again.

view this post on Zulip Sylvester S (Jul 30 2020 at 15:07):

Thank you so much @Kenneth Myhra

view this post on Zulip Brian Postlethwaite (Aug 31 2020 at 00:57):

I'm doing an update to this at the moment.
Anyone else done anything like it before I get too excited?

view this post on Zulip Kenneth Myhra (Aug 31 2020 at 12:38):

@Brian Postlethwaite Let me know if you are having any issues getting it up and going. If you are using the Growth chart application you will need to add the relevant data to the FHIR Server, which as far as I remember are not in the repo

view this post on Zulip Brian Postlethwaite (Aug 31 2020 at 21:50):

I have a fork running in my github account.
Updated the NuGet packages and now moving forward the winforms part.
I'm embedding the facade models into it to show how to do it with no actual server running, since that's what is typically happening with these older emr rich clients.
CefSharp is able to provide the data directly to the JavaScript calls.

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 07:39):

https://github.com/brianpos/smart-on-fhir/tree/feature/refactoring

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 07:44):

Have done a large refactoring on the project, but functional as is.
You can change the demo fhir server through the app settings file, and also the user context.
Examples for HAPI, and Oridashi BP/MD in there.
With minor changes can use a facade that implements the fhir-net-web-api models, which I'm putting more work into.

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 07:45):

Next phase will be to make it more complete, and the error messaging to be through Razor pages so you can style your own, and make things more supportable.

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 07:46):

And improve the scope processing/extensibility.

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 07:55):

@Kenneth Myhra you might be interested to take a look at it.

view this post on Zulip Josh Mandel (Nov 12 2020 at 16:12):

@Gino Canessa also has a tutorial + example code at https://github.com/GinoCanessa/FhirDevVideoNotes (FYI @Kenneth Myhra.)

view this post on Zulip Kenneth Myhra (Nov 12 2020 at 16:16):

Thanks, @Brian Postlethwaite, will have a look :+1:

And thanks as well, @Josh Mandel

view this post on Zulip Gino Canessa (Nov 12 2020 at 16:19):

I'll note it's still in progress (e.g., implementers have indicated they don't support dynamic port registration). Next session will cover fixing the port again on the current sample. After that I plan to look at either protocol handler registration or cloud-based redirection.

view this post on Zulip Kenneth Myhra (Nov 12 2020 at 18:03):

@Gino Canessa That's a great set of videos. Are you primarily focusing on the stand-alone use case?

view this post on Zulip Gino Canessa (Nov 12 2020 at 18:18):

Thanks! Not long-term, just needed a place to start from. I'm hoping to expand out across several languages and use-cases. If there are uses/topics/etc that are interesting just let me know and I'll add them to my schedule.

view this post on Zulip Brian Postlethwaite (Nov 12 2020 at 20:22):

My project is directly targeted at providing a fast path for a legacy system (Windows rat/rich client) to add local smart on fhir app launch without needing a real Web server, and help a path to help get a server if they want it.

view this post on Zulip Brian Postlethwaite (Aug 05 2021 at 07:39):

_(cross posted from SMART stream)_
For those that might have Windows apps as your PMS/CIS, the open source C# project I've been working on is now in a great state that you might want to consider looking at to add FHIR SMART App Launch to your rich desktop systems to be able to host SMART Apps.
It's also available in beta as a nuget package.
(It's a fork of the work done by @Kenneth Myhra )
I'll be working to update the documentation on it, and adding support for write back too.
https://www.nuget.org/packages/brianpos.Fhir.R4.SmartAppLaunch.Support/1.9.0-beta3
https://github.com/brianpos/smart-on-fhir


Last updated: Apr 12 2022 at 19:14 UTC