FHIR Using VB.NET

159 views
Skip to first unread message

jcantr...@gmail.com

unread,
Mar 12, 2018, 1:22:01 PM3/12/18
to Cerner FHIR Developers
I am integrating a FHIR API into a vb.net application. Based on inputs provided by the program I want to be able to pull up specific encounters so that the user can verify data has been entered correctly for the patient, and make changes if required. As we utilize LDAP, I want to use windows authentication for the connection if possible. For testing of functionality I was attempting to connect to the Sandbox, but ran into issues with entering of data for the current patient. This is the code I have so far:

        fhirClient.UseFormatParam = True
        fhirClient.PreferredFormat = ResourceFormat.Json
        Dim currentPatient = fhirClient.Read(Of Patient)("Patient/1")

When I try to set a value such as currentPatient.Name I cannot input a string value, as it says Name is a list(of HumanName).

Also while this may not be the right group, I am wanting to pull up the matching CPDI image of the insurance card so the billing user can see the Cerner data and insurance card image side by side.

Kol Kheang (Cerner)

unread,
Mar 12, 2018, 1:42:01 PM3/12/18
to Cerner FHIR Developers
Hello,

I was able to find the documentation online for the library that you're using.  Can you try these examples in the documentation?  http://docs.simplifier.net/fhirnetapi/client/crud.html#reading-an-existing-resource


Thanks,
Kol

jcantr...@gmail.com

unread,
Mar 13, 2018, 10:40:40 AM3/13/18
to Cerner FHIR Developers
I've been looking through, and it seems to require a Patient ID. I am trying to run at the encounter level, because a patient may have multiple encounters and we're only checking specific ones. Is there a way with FHIR to request only a specific encounter for a patient?

Jenni Syed (Cerner)

unread,
Mar 13, 2018, 11:43:42 AM3/13/18
to Cerner FHIR Developers
Hi,

Very few of our resources currently allow an encounter to be passed in as a filter parameter (the app would have to post-filter right now). You can see what parameters are supported for each read on our documentation: http://fhir.cerner.com/millennium/dstu2/

~ Jenni

jcantr...@gmail.com

unread,
Mar 19, 2018, 12:50:26 PM3/19/18
to Cerner FHIR Developers
I've tried taking a new path by using Mirth to translate my vb messages to FHIR messages. I have successfully connected Mirth to the Cerner Sandbox and can send/receive to it. I also know how to get a serviceroot ID for a SMART app. What I have not been able to figure out it how to get a service ID that I can use for Mirth to send and receive messages.

Kol Kheang (Cerner)

unread,
Mar 19, 2018, 6:03:45 PM3/19/18
to Cerner FHIR Developers
I'm not familiar with this library to help you with this issue.

jcantr...@gmail.com

unread,
Mar 20, 2018, 10:28:51 AM3/20/18
to Cerner FHIR Developers
What I'm looking for is how to get a service root without having a SMART app, regardless of the library. 

Jenni Syed (Cerner)

unread,
Mar 20, 2018, 11:45:55 AM3/20/18
to Cerner FHIR Developers
Hi,

If you are not doing any type of SMART launch, then your application would need to configure the FHIR Server URL. What you configure this based on depends on the type of app you have/what the app's deployment and workflow look like.

In the simplest state, for apps installed per site, it's often a deployment configuration.

~ Jenni

jcantr...@gmail.com

unread,
Mar 20, 2018, 12:29:10 PM3/20/18
to Cerner FHIR Developers
My company is brand new to FHIR, so pardon me if I sound ignorant with this question. How do I configure our FHIR server URL? Since we are remote hosted would this be managed by Cerner, or do we have to actually build a FHIR server?

Kol Kheang (Cerner)

unread,
Mar 22, 2018, 1:29:57 AM3/22/18
to Cerner FHIR Developers
Have you looked at our documentation?  Here is the service root section outlining our Sandbox endpoints:  http://fhir.cerner.com/millennium/dstu2/#service-root-url.

What Jenni said was that your application should be able to flex and use the correct Cerner's implementation of FHIR server endpoint.  Usually, this can be done as a deployment configuration.

Here is an example of a patient access standalone launch:

Note the iss value in the URL.  This endpoint is different from the prod endpoint; the path will be different for each site where app is access from.  You app should just care about the iss param to get started.

jcantr...@gmail.com

unread,
Mar 22, 2018, 12:41:24 PM3/22/18
to Cerner FHIR Developers
I appreciate the help with this issue, but as I stated at the start this is not a SMART app. I have dug through the documentation and cannot find how to register a win32 app to the sandbox.

Jenni Syed (Cerner)

unread,
Mar 22, 2018, 1:50:07 PM3/22/18
to Cerner FHIR Developers
Hi,

I sent you a direct message trying to clarify this question a few days ago, but I haven't received a response. Can you check your inbox (or junk)? I'm trying to understand if you're looking for the root url of a specific FHIR server, our sandbox, or if this is a general question.

First, one clarification, "win32" (or any "native" app) does not mean it's immediately not SMART - you can launch a native app.

Regardless... if it's not SMART, then you won't need to fill out the launch URL when registering the application. Your application won't use any of the "launch" scopes either. All the rest of the specification stays the same. EG: the redirects urls, scopes, OAuth, all are still required. For the redirect, use the schema registration. The topic on our authorization discusses this: http://fhir.cerner.com/authorization/#win32-applications 

I think before digging into the the "how do I get a service root" we probably want to make sure we're all talking about the same issue first :)

~ Jenni
Reply all
Reply to author
Forward
0 new messages