FHIR API for MVC application

577 views
Skip to first unread message

Param Dasari

unread,
Aug 31, 2017, 7:45:46 PM8/31/17
to SMART on FHIR
Our appilcation is a MVC web application. We are onboarding a vendor for providing patient medications.
They r expecting us to be SMART on FHIR system. Do you know any API's to call from our MVC application to make it FHIR resource ??


shivnath shelake

unread,
Nov 7, 2017, 4:52:49 AM11/7/17
to SMART on FHIR
Hi have you got reply on your mail if you have anything on below your mail please share with me i am also looking for same

Chris Meeusen

unread,
Nov 7, 2017, 12:55:00 PM11/7/17
to SMART on FHIR
If you mean ASP.Net Mvc there is a .Net FHIR library here that may be useful: https://ewoutkramer.github.io/fhir-net-api/.  

Then you'll just need to make sure you have MVC routes that support the launch and redirect workflows to get a token from the auth server.  You can chose public or confidential OAuth2 client types if you can protect the secret (which you should be able to do from the ASP.Net side).

-Chris

shivnath shelake

unread,
Nov 8, 2017, 2:40:07 AM11/8/17
to SMART on FHIR
Hi
Thanks for your time..

I need to setup FHIR server in my local machine..
Please provide the details for this.

Chris Meeusen

unread,
Nov 8, 2017, 9:37:57 AM11/8/17
to SMART on FHIR
It seems that most people that need to stand up their own internal FHIR server use the HAPI library.  

http://hapifhir.io/doc_rest_server.html

It's a java app, but your client app can still be a .net mvc app.

-Chris

shivnath shelake

unread,
Nov 10, 2017, 12:56:25 AM11/10/17
to SMART on FHIR
Hi,
I working on FHIR with .Net...

Currently I am at the stage where I created Vonk FHIR server on my local machine..

In my .Net application I added Hl7.Fhir.STU3 package using Nuget

Also I created sample patient profile using FhirClient by mentioning end point there as my local FHIR server machine URL(http://localhost:4080/).
Code Ex:-
            var endpoint = new Uri("http://localhost:4080/");
            var client = new FhirClient(endpoint);
            client.PreferredFormat = ResourceFormat.Json;

            var pat = new Hl7.Fhir.Model.Patient();
            pat.Id = "1234567890";
            pat.Name.Add(HumanName.ForFamily("Mackie").WithGiven("Archibald"));
            var patEntry = client.Create(pat);

Now in ClinFHIR in my local machine I added my local vonk FHIR server and there I am able to fetch my patient profile using searching.

My question & quires are :-

1:- Suppose any one else want to create a new sample patient in ClinFHIR how that should be done.
2:- also how can I make the vonk server as public.
3:- I also want to use sql sb.

help is greatly appreciated.

On Friday, 1 September 2017 05:15:46 UTC+5:30, Param Dasari wrote:
Reply all
Reply to author
Forward
0 new messages