use of com.b2international.snowowl.fhir.core.model.Designation in project snow-owl by b2ihealthcare.
the class ValueSetConceptTest method validate.
private void validate(ValueSetConcept concept) {
assertEquals(new Code("code"), concept.getCode());
assertEquals("display", concept.getDisplay());
Designation designation = concept.getDesignations().iterator().next();
assertEquals("gb_en", designation.getLanguage());
assertEquals("designationValue", designation.getValue());
assertEquals(new Code("internal"), designation.getUse().getCode());
assertEquals(new Uri("http://b2i.sg/test"), designation.getUse().getSystem());
}
use of com.b2international.snowowl.fhir.core.model.Designation in project snow-owl by b2ihealthcare.
the class ContainsTest method validate.
private void validate(Contains contains) {
assertEquals("systemUri", contains.getSystem().getUriValue());
assertEquals(true, contains.getIsAbstract());
assertEquals(false, contains.getInactive());
assertEquals("20140131", contains.getVersion());
assertEquals("Code", contains.getCode().getCodeValue());
assertEquals("displayValue", contains.getDisplay());
Designation designation = contains.getDesignations().iterator().next();
assertEquals("pt", designation.getValue());
assertEquals("en-us", designation.getLanguage());
assertEquals("nestedContains", contains.getContains().iterator().next().getCode().getCodeValue());
}
Aggregations