private LookupValueDto GetMedicationStatus(StatusCodedConceptDataTransferObject status) { LookupValueDto result = null; MedicationStatus lookup = null; if (status != null) { if (!string.IsNullOrEmpty(status.Status)) { lookup = _mappingHelper.MapLookupFieldByName <MedicationStatus> (status.Status); } else if (!string.IsNullOrEmpty(status.DisplayName)) { lookup = _mappingHelper.MapLookupFieldByName <MedicationStatus> (status.DisplayName); } } if (lookup != null) { result = AutoMapper.Mapper.Map <LookupBase, LookupValueDto> (lookup); } return(result); }