Example #1
0
        public static async Task <LG.Data.Models.Clinical.ConditionsResults> Conditions(
            LG.Data.Models.Clinical.ConditionsResults entity)
        {
            var client = ClientConnection.GetCDMS_Connection();

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

                client.Close();
                entity.Results = response.ListOfConditionStandardized;
                return(entity);
            }
            catch (Exception ex)
            {
                client.Close();
                entity.IsError = true;
                entity.Message = ex.ToString();
                return(entity);
            }
        }
Example #2
0
 public async Task<LG.Data.Models.Clinical.ConditionsResults> AutoConditions(
 string value)
 {
     var entity = new ConditionsResults()
     {
         SearchText = value,
         ResultSetSize = 100
     };
     return await LG.Data.Clinical.ClinicalServices.Conditions(entity);
 }