Beispiel #1
0
        public UndoDeletePatientDataResponse UndoDeletePatient(UndoDeletePatientDataRequest request)
        {
            UndoDeletePatientDataResponse response = null;

            try
            {
                response = new UndoDeletePatientDataResponse();
                IPatientRepository patientRepo = Factory.GetRepository(request, RepositoryType.Patient);
                if (request.Id != null)
                {
                    patientRepo.UndoDelete(request);
                }
                response.Success = true;
                return(response);
            }
            catch (Exception ex) { throw ex; }
        }
Beispiel #2
0
        public UndoDeletePatientDataResponse Put(UndoDeletePatientDataRequest request)
        {
            UndoDeletePatientDataResponse response = new UndoDeletePatientDataResponse();

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

                response         = PatientManager.UndoDeletePatient(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);
        }
 public UndoDeletePatientDataResponse UndoDeletePatient(UndoDeletePatientDataRequest request)
 {
     throw new NotImplementedException();
 }
 UndoDeletePatientDataResponse IPatientDataManager.UndoDeletePatient(UndoDeletePatientDataRequest request)
 {
     throw new NotImplementedException();
 }