use of com.b2international.snowowl.fhir.core.model.valueset.expansion.UriParameter in project snow-owl by b2ihealthcare.
the class ValueSetTest method setup.
@Before
public void setup() throws Exception {
UriParameter stringParameter = UriParameter.builder().name("paramName").value(new Uri("paramValue")).build();
UriParameter uriParameter = UriParameter.builder().name("uriParamName").value(new Uri("uriParamValue")).build();
Contains contains = Contains.builder().system("systemUri").isAbstract(true).inactive(false).version("20140131").code("Code").display("displayValue").addDesignation(Designation.builder().language("en-us").value("pt").build()).addContains(Contains.builder().build()).build();
Expansion expansion = Expansion.builder().identifier("identifier").timestamp(TEST_DATE_STRING).total(200).addParameter(stringParameter).addParameter(uriParameter).addContains(contains).build();
Coding coding = Coding.builder().code("codingCode").display("codingDisplay").build();
CodeableConcept jurisdiction = CodeableConcept.builder().addCoding(coding).text("codingText").build();
valueSet = ValueSet.builder("-1").url("http://who.org").addIdentifier(Identifier.builder().system("system").use(IdentifierUse.OFFICIAL).type(CodeableConcept.builder().addCoding(coding).text("codingText").build()).build()).version("20130131").name("refsetName").title("refsetTitle").copyright("copyright").status(PublicationStatus.ACTIVE).date(TEST_DATE_STRING).publisher("b2i").addContact(ContactDetail.builder().addTelecom(ContactPoint.builder().id("contactPointId").build()).build()).description("descriptionString").addJurisdiction(jurisdiction).addUseContext(QuantityUsageContext.builder().code(Coding.builder().code("coding").display("codingDisplay").build()).value(Quantity.builder().code("valueCode").unit("ms").value(Double.valueOf(1)).comparator(QuantityComparator.GREATER_THAN).build()).id("usageContextId").build()).expansion(expansion).compose(Compose.builder().addInclude(Include.builder().system("uriValue").build()).build()).build();
applyFilter(valueSet);
}
Aggregations