Search in sources :

Example 1 with AutoEhrStatusWhereQuery

use of org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.auto.AutoEhrStatusWhereQuery in project openEHR_SDK by ehrbase.

the class CanonicalEhrQuery3IT method testEhrAutoWhere.

@Test
public void testEhrAutoWhere() throws IOException {
    EhrStatus referenceEhrStatus = new CanonicalJson().unmarshal(IOUtils.toString(EhrTestDataCanonicalJson.EHR_STATUS_SUBJECT_EXTERNAL_REF_OTHER_DETAILS.getStream(), StandardCharsets.UTF_8), EhrStatus.class);
    String rootPath = "e/ehr_status";
    RMObject referenceNode = referenceEhrStatus;
    String csvTestSet = dirPath + "/testEhrStatusWhere.csv";
    assertThat(new AutoEhrStatusWhereQuery(ehrUUID, openEhrClient).testItemPaths(csvTestSet, rootPath, referenceNode)).isTrue();
}
Also used : CanonicalJson(org.ehrbase.serialisation.jsonencoding.CanonicalJson) EhrTestDataCanonicalJson(org.ehrbase.test_data.ehr.EhrTestDataCanonicalJson) EhrStatus(com.nedap.archie.rm.ehr.EhrStatus) AutoEhrStatusWhereQuery(org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.auto.AutoEhrStatusWhereQuery) RMObject(com.nedap.archie.rm.RMObject)

Aggregations

RMObject (com.nedap.archie.rm.RMObject)1 EhrStatus (com.nedap.archie.rm.ehr.EhrStatus)1 AutoEhrStatusWhereQuery (org.ehrbase.client.openehrclient.defaultrestclient.systematic.compositionquery.queries.auto.AutoEhrStatusWhereQuery)1 CanonicalJson (org.ehrbase.serialisation.jsonencoding.CanonicalJson)1 EhrTestDataCanonicalJson (org.ehrbase.test_data.ehr.EhrTestDataCanonicalJson)1