Example #1
0
        public void GetPatientSSN()
        {
            GetPatientSSNDataRequest request = new GetPatientSSNDataRequest {
                PatientId = "531f2dce072ef727c4d2a065", UserId = "531f2df6072ef727c4d2a3c0"
            };

            IPatientDataManager       pm       = new PatientDataManager();
            GetPatientSSNDataResponse response = pm.GetPatientSSN(request);

            Assert.IsNotNull(response.SSN);
        }
Example #2
0
        public GetPatientSSNDataResponse GetPatientSSN(GetPatientSSNDataRequest request)
        {
            try
            {
                GetPatientSSNDataResponse result = new GetPatientSSNDataResponse();

                IPatientRepository repo = Factory.GetRepository(request, RepositoryType.Patient);

                result.SSN = repo.GetSSN(request.PatientId) as string;

                return(result);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #3
0
        public GetPatientSSNDataResponse Get(GetPatientSSNDataRequest request)
        {
            GetPatientSSNDataResponse response = new GetPatientSSNDataResponse();

            try
            {
                if (string.IsNullOrEmpty(request.UserId))
                {
                    throw new UnauthorizedAccessException("PatientDD:Get()::Unauthorized Access");
                }

                response         = PatientManager.GetPatientSSN(request);
                response.Version = request.Version;
            }
            catch (Exception ex)
            {
                CommonFormatterUtil.FormatExceptionResponse(response, base.Response, ex);

                string aseProcessID = ConfigurationManager.AppSettings.Get("ASEProcessID") ?? "0";
                Helpers.LogException(int.Parse(aseProcessID), ex);
            }
            return(response);
        }
 GetPatientSSNDataResponse IPatientDataManager.GetPatientSSN(GetPatientSSNDataRequest request)
 {
     throw new NotImplementedException();
 }