Exemple #1
0
        public List <PatientMedFrequency> GetPatientMedFrequencies(GetPatientMedFrequenciesRequest request)
        {
            List <PatientMedFrequency> patientMedFreqs = null;

            try
            {
                List <PatientMedFrequencyData> data = EndpointUtil.GetPatientMedFrequencies(request);
                if (data != null && data.Count > 0)
                {
                    patientMedFreqs = new List <PatientMedFrequency>();
                    data.ForEach(a =>
                                 patientMedFreqs.Add(new PatientMedFrequency {
                        Id = a.Id, Name = a.Name
                    }));
                }
                return(patientMedFreqs);
            }
            catch (Exception ex) { throw ex; }
        }