Exemplo n.º 1
0
        public static async Task <LG.Data.Models.Clinical.MedicationResults> Medications(
            LG.Data.Models.Clinical.MedicationResults entity)
        {
            var client = ClientConnection.GetCDMS_Connection();

            try
            {
                client.Open();
                var response = await client.FindMedicationStandardizedAsync(new FindMedicationStandardizedRequest()
                {
                    MessageGuid   = new Guid(),
                    SearchString  = entity.SearchText,
                    ResultSetSize = entity.ResultSetSize
                });

                client.Close();
                entity.Results = response.ListOfMedicationsStandardized;
                return(entity);
            }
            catch (Exception ex)
            {
                client.Close();
                entity.IsError = true;
                entity.Message = ex.ToString();
                return(entity);
            }
        }
Exemplo n.º 2
0
 public async Task<LG.Data.Models.Clinical.MedicationResults> AutoMedications(string value)
 {
     var entity = new MedicationResults()
     {
         SearchText = value,
         ResultSetSize = 100
     };
     return await LG.Data.Clinical.ClinicalServices.Medications(entity);
 }