use of com.b2international.snowowl.fhir.core.model.valueset.ValueSetFilter in project snow-owl by b2ihealthcare.
the class IncludeTest method validate.
private void validate(Include include) {
assertEquals(new Uri("system"), include.getSystem());
assertEquals("version", include.getVersion());
assertEquals("valueSetUri", include.getValueSets().iterator().next().getUriValue());
ValueSetFilter filter = include.getFilters().iterator().next();
assertEquals(new Code("filterProperty"), filter.getProperty());
assertEquals(FilterOperator.EQUALS.getCode(), filter.getOperator());
assertEquals(new Code("1234567"), filter.getValue());
ValueSetConcept concept = include.getConcepts().iterator().next();
assertEquals("code", concept.getCode().getCodeValue());
assertEquals("display", concept.getDisplay());
Designation designation = concept.getDesignations().iterator().next();
assertEquals("gb_en", designation.getLanguage());
assertEquals("designationValue", designation.getValue());
assertEquals("internal", designation.getUse().getCode().getCodeValue());
}
use of com.b2international.snowowl.fhir.core.model.valueset.ValueSetFilter in project snow-owl by b2ihealthcare.
the class ValueSetFilterTest method deserialize.
@Test
public void deserialize() throws Exception {
ValueSetFilter readFilter = objectMapper.readValue(objectMapper.writeValueAsString(filter), ValueSetFilter.class);
validate(readFilter);
}
Aggregations