/// <summary> /// Sends the specified patient. /// </summary> /// <param name="patient">The patient.</param> public void Send(Patient patient) { var message = NHapiUtility.GenerateCandidateRegistry(patient, new Metadata { AssigningAuthority = "1.3.6.1.4.1.33349.3.1.5.9.2.10000", ReceivingApplication = "OpenIZ", ReceivingFacility = "OpenIZ", SendingApplication = "Test", SendingFacility = "Test" }); NHapiUtility.Sendv2Messages(message); }
/// <summary> /// Sends the specified patients. /// </summary> /// <param name="patients">The patients.</param> public void Send(IEnumerable <Patient> patients) { var messages = patients.Select(patient => NHapiUtility.GenerateCandidateRegistry(patient, new Metadata { AssigningAuthority = "1.3.6.1.4.1.33349.3.1.5.9.2.10000", ReceivingApplication = "OpenIZ", ReceivingFacility = "OpenIZ", SendingApplication = "Test", SendingFacility = "Test" })) .ToList(); messages.Select(NHapiUtility.Sendv2Messages); }
/// <summary> /// Sends the specified options. /// </summary> /// <param name="options">The options.</param> public void Send(Demographic options) { var message = NHapiUtility.GenerateCandidateRegistry(options); NHapiUtility.Sendv2Messages(message); }