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());
}
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());
}
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());
}
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());
}
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());
}