[TestMethod, Ignore] //Server throws error: Access violation at address 000000000129D56C in module 'FHIRServer.exe'. Read of address 0000000000000000 public void InvokeTestPatientGetEverything() { var client = new FhirClient(testEndpoint); var start = new FhirDateTime(2014,11,1); var end = new FhirDateTime(2015,1,1); var par = new Parameters().Add("start", start).Add("end", end); var bundle = (Bundle)client.InstanceOperation(ResourceIdentity.Build("Patient", "1"), "everything", par); Assert.IsTrue(bundle.Entry.Any()); var bundle2 = client.FetchPatientRecord(ResourceIdentity.Build("Patient","1"), start, end); Assert.IsTrue(bundle2.Entry.Any()); }
public void InvokeTestPatientGetEverything() { var client = new FhirClient(testEndpoint); var start = new FhirDateTime(2014, 11, 1); var end = new FhirDateTime(2015, 1, 1); var par = new Parameters().Add("start", start).Add("end", end); var bundle = (Bundle)client.InstanceOperation(ResourceIdentity.Build("Patient", "example"), "everything", par); Assert.IsTrue(bundle.Entry.Any()); var bundle2 = client.FetchPatientRecord(ResourceIdentity.Build("Patient", "example"), start, end); Assert.IsTrue(bundle2.Entry.Any()); }