Search in sources :

Example 6 with Designation

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());
}
Also used : Designation(com.b2international.snowowl.fhir.core.model.Designation) Code(com.b2international.snowowl.fhir.core.model.dt.Code) Uri(com.b2international.snowowl.fhir.core.model.dt.Uri)

Example 7 with Designation

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());
}
Also used : Designation(com.b2international.snowowl.fhir.core.model.Designation)

Aggregations

Designation (com.b2international.snowowl.fhir.core.model.Designation)7 Coding (com.b2international.snowowl.fhir.core.model.dt.Coding)3 Test (org.junit.Test)3 LookupResult (com.b2international.snowowl.fhir.core.model.codesystem.LookupResult)2 Property (com.b2international.snowowl.fhir.core.model.codesystem.Property)2 Code (com.b2international.snowowl.fhir.core.model.dt.Code)2 Fhir (com.b2international.snowowl.fhir.core.model.dt.Parameters.Fhir)2 Uri (com.b2international.snowowl.fhir.core.model.dt.Uri)2 FhirRestTest (com.b2international.snowowl.fhir.tests.FhirRestTest)2 LookupRequest (com.b2international.snowowl.fhir.core.model.codesystem.LookupRequest)1 Parameters (com.b2international.snowowl.fhir.core.model.dt.Parameters)1 ValueSetConcept (com.b2international.snowowl.fhir.core.model.valueset.ValueSetConcept)1 ValueSetFilter (com.b2international.snowowl.fhir.core.model.valueset.ValueSetFilter)1 FhirTest (com.b2international.snowowl.fhir.tests.FhirTest)1 Concepts (com.b2international.snowowl.snomed.common.SnomedConstants.Concepts)1 SnomedConcept (com.b2international.snowowl.snomed.core.domain.SnomedConcept)1 SnomedDescription (com.b2international.snowowl.snomed.core.domain.SnomedDescription)1 RestExtensions.givenAuthenticatedRequest (com.b2international.snowowl.test.commons.rest.RestExtensions.givenAuthenticatedRequest)1 JsonPath (io.restassured.path.json.JsonPath)1 ArrayList (java.util.ArrayList)1