if (obs.getValueBoolean() != null) { errors.rejectValue("valueBoolean", "error.not.null"); else if (obs.getValueBoolean() == null && obs.getValueCoded() == null && obs.getValueCodedName() == null && obs.getValueComplex() == null && obs.getValueDatetime() == null && obs.getValueDrug() == null && obs.getValueModifier() == null && obs.getValueNumeric() == null && obs.getValueText() == null ConceptDatatype dt = c.getDatatype(); if (dt != null) { if (dt.isBoolean() && obs.getValueBoolean() == null) { if (atRootNode) { errors.rejectValue("valueBoolean", "error.null");
Assert.assertEquals(false, newObservation.getValueBoolean());
field5.setQuestion(concept5); Obs obs5 = mock(Obs.class); when(obs5.getValueBoolean()).thenReturn(false); field5.setExistingObs(obs5); section1.addField(field5);
field.getExistingObs().getValueNumeric().toString() : ""; } else if (datatype.isBoolean()) { value = field.getExistingObs().getValueBoolean() != null ? field.getExistingObs().getValueBoolean().toString() : ""; } else if (datatype.isText()) {