Example #1
0
 public List <PatientData> GetAllPatients(GetAllPatientsDataRequest request)
 {
     try
     {
         IPatientRepository repo   = Factory.GetRepository(request, RepositoryType.Patient);
         List <PatientData> result = repo.SelectAll() as List <PatientData>;
         return(result);
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
        public GetAllPatientsDataResponse Get(GetAllPatientsDataRequest request)
        {
            GetAllPatientsDataResponse response = new GetAllPatientsDataResponse();

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

                response.PatientsData = PatientManager.GetAllPatients(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 List <PatientData> GetAllPatients(GetAllPatientsDataRequest request)
 {
     throw new NotImplementedException();
 }