use of org.hl7.fhir.dstu3.model.ValueSet in project bunsen by cerner.
the class ValueSetsTest method checkValueSet.
private static void checkValueSet(ValueSet valueSet, String url, String version) {
Assert.assertNotNull(MessageFormat.format("Could not find value set for url {0} and version {1}", url, version), valueSet);
Assert.assertEquals(url, valueSet.getUrl());
Assert.assertEquals(version, valueSet.getVersion());
ConceptSetComponent inclusion = valueSet.getCompose().getIncludeFirstRep();
Assert.assertEquals("urn:cerner:system", inclusion.getSystem());
Assert.assertEquals("1", inclusion.getVersion());
Assert.assertEquals("a", inclusion.getConceptFirstRep().getCode());
Assert.assertEquals(1, valueSet.getCompose().getInclude().size());
}
Aggregations