use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindFoldersQuery in project ipf by oehf.
the class FindFoldersQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindFoldersQueryTransformer();
query = new FindFoldersQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.getLastUpdateTime().setFrom("20150102030405");
query.getLastUpdateTime().setTo("20150102030406");
var codes = new QueryList<Code>();
codes.getOuterList().add(Arrays.asList(new Code("code7", null, "scheme7"), new Code("code8", null, "scheme8")));
codes.getOuterList().add(Collections.singletonList(new Code("code9", null, "scheme9")));
query.setCodes(codes);
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setHomeCommunityId("12.21.41");
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindFoldersQuery in project ipf by oehf.
the class FindFoldersQueryTransformerTest method testToEbXMLEmpty.
@Test
public void testToEbXMLEmpty() {
transformer.toEbXML(new FindFoldersQuery(), ebXML);
assertEquals(0, ebXML.getSlots().size());
}
use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindFoldersQuery in project ipf by oehf.
the class FindFoldersQueryTransformerTest method testFromEbXMLNull.
@Test
public void testFromEbXMLNull() {
var result = new FindFoldersQuery();
transformer.fromEbXML(result, null);
assertEquals(new FindFoldersQuery(), result);
}
Aggregations