Connecting to Cerner from a custom Hl7.Fhir.R4 test app

141 views
Skip to first unread message

Keith Myers

unread,
May 7, 2020, 10:10:25 AM5/7/20
to Cerner FHIR Developers
I've created a very basic test app using Hl7.Fhir.R4 and have no trouble working with the fire.ly servers. I've been trying to connect to Cerner in order to simply read some patient data to prove the connection is working. I haven't gotten this to work. Is it possible? Or do I need to build my app with the Cerner tools within the Cerner ecosystem?

I appreciate your time.

Michele Mottini

unread,
May 7, 2020, 10:18:55 AM5/7/20
to Cerner FHIR Developers
 
I've created a very basic test app using Hl7.Fhir.R4 and have no trouble working with the fire.ly servers. I've been trying to connect to Cerner in order to simply read some patient data to prove the connection is working. I haven't gotten this to work. Is it possible?

  It is definitely possible - our app uses that same library and connects fine with Cerner

  - Michele
  CareEvolution Inc
 

Keith Myers

unread,
May 7, 2020, 10:40:05 AM5/7/20
to Cerner FHIR Developers
Hi Michele,

If you happen to have a link to a page that talks about how to simply connect and read data from their sandbox I would appreciate it. Here's what I have, which points to Cerner's non-auth read-only sandbox, but it blows up, saying there's no body content.

        public void DoWork()
        {
            var client = new FhirClient("https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/", true)
            {
                PreferredFormat = ResourceFormat.Json
            };

            var results = client.Search<Patient>(new [] { "name=e" });
            Console.WriteLine("Got " + results.Entry.Count + " records!");
        }

Max Philips (Cerner)

unread,
May 7, 2020, 10:41:11 AM5/7/20
to Cerner FHIR Developers
Hi Keith Myers,

If you have received any error responses from Cerner's FHIR server and can pass along X-Request-Id response header values, they will assist us in investigating what might be going wrong.

Otherwise, as Michele mentioned, the library you use should not have any bearing on whether you can connect to Cerner's server.

Thanks,
Max (Cerner)

Michele Mottini

unread,
May 7, 2020, 10:43:58 AM5/7/20
to Cerner FHIR Developers

You are using the DSTU2 end point, not the R4 one

  - Michele
  CareEvolution Inc

Max Philips (Cerner)

unread,
May 7, 2020, 10:44:24 AM5/7/20
to Cerner FHIR Developers
Cerner's documentation is published here: http://fhir.cerner.com/

We do expose the Patient resource and do support the name parameter on it: http://fhir.cerner.com/millennium/dstu2/individuals/patient/#parameters

Thanks,
Max (Cerner)

Max Philips (Cerner)

unread,
May 7, 2020, 10:49:45 AM5/7/20
to Cerner FHIR Developers
Michele makes a good point - if that library requires an R4 FHIR server, take a look through Cerner's R4 documentation here: http://fhir.cerner.com/millennium/r4/

Thanks,
Max (Cerner)

Keith Myers

unread,
May 7, 2020, 11:10:38 AM5/7/20
to Cerner FHIR Developers
I am now using the r4 url (thanks for pointing that out, Michelle) and now get this error: "This client support FHIR version 4.0.1, but the server uses version 4.0.0". Looks like I'll have to find the version of the library that uses version 4.0.0 unless there's some other way to achieve compatibility... Thanks to all for the help so far. I really appreciate it.

Michele Mottini

unread,
May 7, 2020, 11:12:24 AM5/7/20
to Cerner FHIR Developers

I am now using the r4 url (thanks for pointing that out, Michelle) and now get this error: "This client support FHIR version 4.0.1, but the server uses version 4.0.0".

I am pretty sure there is an option to relax or skip that check

  - Michele
  CareEvolution Inc

Keith Myers

unread,
May 7, 2020, 11:21:33 AM5/7/20
to Cerner FHIR Developers
Message =  'Got 10 records!' Thanks again Michelle and Max for the link/info.
Reply all
Reply to author
Forward
0 new messages