/// <summary> /// Get the specified patient identifier /// </summary> internal static Models.PatientMatch Get(decimal id) { try { ClientRegistryAdminInterfaceClient client = new ClientRegistryAdminInterfaceClient(); var regEvent = client.GetRegistrationEvent(id); if (regEvent == null) { return(null); } return(ConvertRegistrationEvent(regEvent)); } catch (Exception e) { return(null); } }
/// <summary> /// Get the specified patient identifier /// </summary> internal static Models.PatientMatch Get(decimal id) { try { ClientRegistryAdminInterfaceClient client = new ClientRegistryAdminInterfaceClient(); var regEvent = client.GetRegistrationEvent(id); if (regEvent == null) { throw new Exception("Patient not found"); } return(ConvertRegistrationEvent(regEvent)); } catch (Exception e) { Trace.TraceError("Error getting patient: {0}", e); throw; } }