public IClinicalCodingValue getValue() { if (form.qmbCodingItem().getValue() != null && form.txtDescription().getValue() != null ) { if (form.getLocalContext().getCodingLookupTypeIsNotNull() && form.getLocalContext().getCodingLookupType().equals(CodingItemType.MEDICATION)) { if (Boolean.FALSE.equals(form.getLocalContext().getEnableDescriptionField())) { if( form.getLocalContext().getNoValueFoundIsNotNull() && form.getLocalContext().getNoValueFound()) { return null; } } } ClinicalCodingVo vo = new ClinicalCodingVo(); vo.setIClinicalCodingValue(form.qmbCodingItem().getValue()); vo.setIClinicalCodingValueDescription(form.txtDescription().getValue() == null ? "" : form.txtDescription().getValue()); return vo; } return null; }