Search in sources :

Example 6 with SnomedUri

use of com.b2international.snowowl.snomed.fhir.SnomedUri in project snow-owl by b2ihealthcare.

the class SnomedUriParsingTest method testIntEditionWithVersionUri.

@Test
public void testIntEditionWithVersionUri() {
    String uriString = SnomedUri.SNOMED_BASE_URI_STRING + "/" + Concepts.MODULE_SCT_CORE + "/version/20170131";
    SnomedUri snomedUri = SnomedUri.fromUriString(uriString, "uri");
    assertEquals(Concepts.MODULE_SCT_CORE, snomedUri.getExtensionModuleId());
    assertEquals("20170131", snomedUri.getVersionTag());
}
Also used : SnomedUri(com.b2international.snowowl.snomed.fhir.SnomedUri) Test(org.junit.Test)

Example 7 with SnomedUri

use of com.b2international.snowowl.snomed.fhir.SnomedUri in project snow-owl by b2ihealthcare.

the class SnomedUriParsingTest method testToUri.

@Test
public void testToUri() {
    SnomedUri baseUri = SnomedUri.builder().build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING, baseUri.toString());
    SnomedUri uri = SnomedUri.builder().version("20180131").build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING + "/version/20180131", uri.toString());
    uri = SnomedUri.builder().extensionModuleId(Concepts.MODULE_SCT_CORE).version("20180131").build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING + "/" + Concepts.MODULE_SCT_CORE + "/version/20180131", uri.toString());
}
Also used : SnomedUri(com.b2international.snowowl.snomed.fhir.SnomedUri) Test(org.junit.Test)

Example 8 with SnomedUri

use of com.b2international.snowowl.snomed.fhir.SnomedUri in project snow-owl by b2ihealthcare.

the class SnomedUriParsingTest method testToUriWithQuery_fhir_vs_refset_slash.

@Test
public void testToUriWithQuery_fhir_vs_refset_slash() {
    SnomedUri uri = SnomedUri.builder().refsetQuery(Concepts.ROOT_CONCEPT).build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING + "?fhir_vs=refset/" + Concepts.ROOT_CONCEPT, uri.toString());
}
Also used : SnomedUri(com.b2international.snowowl.snomed.fhir.SnomedUri) Test(org.junit.Test)

Example 9 with SnomedUri

use of com.b2international.snowowl.snomed.fhir.SnomedUri in project snow-owl by b2ihealthcare.

the class SnomedUriParsingTest method testToUriWithQuery_fhir_vs_refset.

@Test
public void testToUriWithQuery_fhir_vs_refset() {
    SnomedUri uri = SnomedUri.builder().refsetsQuery().build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING + "?fhir_vs=refset", uri.toString());
}
Also used : SnomedUri(com.b2international.snowowl.snomed.fhir.SnomedUri) Test(org.junit.Test)

Example 10 with SnomedUri

use of com.b2international.snowowl.snomed.fhir.SnomedUri in project snow-owl by b2ihealthcare.

the class SnomedUriParsingTest method testToUriWithQuery_fhir_vs.

@Test
public void testToUriWithQuery_fhir_vs() {
    SnomedUri uri = SnomedUri.builder().valueSetsQuery().build();
    assertEquals(SnomedUri.SNOMED_BASE_URI_STRING + "?fhir_vs", uri.toString());
}
Also used : SnomedUri(com.b2international.snowowl.snomed.fhir.SnomedUri) Test(org.junit.Test)

Aggregations

SnomedUri (com.b2international.snowowl.snomed.fhir.SnomedUri)11 Test (org.junit.Test)11