Search in sources :

Example 1 with SimpleSelectQuery

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);
}
Also used : SimpleSelectQuery(org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery) Before(org.junit.Before)

Example 2 with SimpleSelectQuery

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);
}
Also used : ArbitraryQuery(org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery) CanonicalJson(org.ehrbase.serialisation.jsonencoding.CanonicalJson) CompositionTestDataCanonicalJson(org.ehrbase.test_data.composition.CompositionTestDataCanonicalJson) Composition(com.nedap.archie.rm.composition.Composition) VirologischerBefundComposition(org.ehrbase.client.classgenerator.examples.virologischerbefundcomposition.VirologischerBefundComposition) Flattener(org.ehrbase.client.flattener.Flattener) VirologischerBefundComposition(org.ehrbase.client.classgenerator.examples.virologischerbefundcomposition.VirologischerBefundComposition) SimpleSelectQuery(org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery) TestDataTemplateProvider(org.ehrbase.client.templateprovider.TestDataTemplateProvider) Before(org.junit.Before)

Example 3 with SimpleSelectQuery

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);
}
Also used : SimpleSelectQuery(org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery) Before(org.junit.Before)

Aggregations

SimpleSelectQuery (org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.simple.SimpleSelectQuery)3 Before (org.junit.Before)3 Composition (com.nedap.archie.rm.composition.Composition)1 VirologischerBefundComposition (org.ehrbase.client.classgenerator.examples.virologischerbefundcomposition.VirologischerBefundComposition)1 Flattener (org.ehrbase.client.flattener.Flattener)1 ArbitraryQuery (org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.arbitrary.ArbitraryQuery)1 TestDataTemplateProvider (org.ehrbase.client.templateprovider.TestDataTemplateProvider)1 CanonicalJson (org.ehrbase.serialisation.jsonencoding.CanonicalJson)1 CompositionTestDataCanonicalJson (org.ehrbase.test_data.composition.CompositionTestDataCanonicalJson)1