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?
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!"); }
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".