use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery in project openEHR_SDK by ehrbase.
the class SelectRMIT method setUp.
@Before
public void setUp() throws IOException {
super.setUp(CompositionTestDataCanonicalJson.ALL_TYPES_SYSTEMATIC_TESTS);
simpleSelectQueryEngine = new SimpleSelectQuery(ehrUUID, compositionUUID, openEhrClient);
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery in project openEHR_SDK by ehrbase.
the class ArbitraryQueryOtherContextIT method setUp.
@Before
public void setUp() throws IOException {
// normal test run
ehrUUID = openEhrClient.ehrEndpoint().createEhr();
compositionEndpoint = openEhrClient.compositionEndpoint(ehrUUID);
aComposition = new CanonicalJson().unmarshal(IOUtils.toString(CompositionTestDataCanonicalJson.VIROLOGY_FINDING_WITH_SPECIMEN_NO_UPDATE.getStream(), StandardCharsets.UTF_8), Composition.class);
Flattener flattener = new Flattener(new TestDataTemplateProvider());
VirologischerBefundComposition virologischerBefundComposition = flattener.flatten(aComposition, VirologischerBefundComposition.class);
// create the composition
VirologischerBefundComposition comp = compositionEndpoint.mergeCompositionEntity(virologischerBefundComposition);
compositionUUID = comp.getVersionUid().getUuid();
arbitraryQuery = new ArbitraryQuery(ehrUUID, openEhrClient);
simpleSelectQueryEngine = new SimpleSelectQuery(ehrUUID, compositionUUID, openEhrClient);
}
use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery in project openEHR_SDK by ehrbase.
the class SelectFeederAuditIT method setUp.
@Before
public void setUp() throws IOException {
super.setUp(CompositionTestDataCanonicalJson.FEEDER_AUDIT_DETAILS);
simpleSelectQueryEngine = new SimpleSelectQuery(ehrUUID, compositionUUID, openEhrClient);
}
Aggregations