示例#1
0
        /// <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);
            }
        }
示例#2
0
        /// <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;
            }
        }