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();
}
Aggregations