use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery in project openEHR_SDK by ehrbase.
the class CanonicalMinimalInstructionTypeQueryIT method setUp.
@Before
public void setUp() throws IOException {
ehrUUID = openEhrClient.ehrEndpoint().createEhr();
compositionEndpoint = openEhrClient.compositionEndpoint(ehrUUID);
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
flattener = new Flattener(new TestDataTemplateProvider());
aComposition = new CanonicalJson().unmarshal(IOUtils.toString(CompositionTestDataCanonicalJson.MINIMAL_INSTRUCTION.getStream(), StandardCharsets.UTF_8), Composition.class);
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery in project openEHR_SDK by ehrbase.
the class CartesianProductQueryIT method setUp.
@Before
public void setUp() throws IOException {
ehrUUID = openEhrClient.ehrEndpoint().createEhr();
compositionEndpoint = openEhrClient.compositionEndpoint(ehrUUID);
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
flattener = new Flattener(new TestDataTemplateProvider());
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery in project openEHR_SDK by ehrbase.
the class ArbitraryQueryIT method setUp.
@Before
public void setUp() throws IOException {
super.setUp(CompositionTestDataCanonicalJson.ALL_TYPES_SYSTEMATIC_TESTS);
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery in project openEHR_SDK by ehrbase.
the class ArbitraryQueryDateTimeIT method setUp.
@Before
public void setUp() throws IOException {
super.setUp(CompositionTestDataCanonicalJson.DATE_TIME_TESTS);
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery in project openEHR_SDK by ehrbase.
the class ArbitraryQueryFeederAuditIT method setUp.
@Before
public void setUp() throws IOException {
ehrUUID = openEhrClient.ehrEndpoint().createEhr();
compositionEndpoint = openEhrClient.compositionEndpoint(ehrUUID);
aComposition = new CanonicalJson().unmarshal(IOUtils.toString(CompositionTestDataCanonicalJson.FEEDER_AUDIT_DETAILS.getStream(), StandardCharsets.UTF_8), Composition.class);
Flattener flattener = new Flattener(new TestDataTemplateProvider());
TestAllTypesEnV1Composition testAllTypesEnV1Composition = flattener.flatten(aComposition, TestAllTypesEnV1Composition.class);
// create the composition
TestAllTypesEnV1Composition comp = compositionEndpoint.mergeCompositionEntity(testAllTypesEnV1Composition);
compositionUUID = comp.getVersionUid().getUuid();
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
}
Aggregations