use of org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindMedicationListQueryTransformer in project ipf by oehf.
the class FindMedicationListQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindMedicationListQueryTransformer();
query = new FindMedicationListQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.setHomeCommunityId("12.21.41");
query.getServiceStart().setFrom("1982");
query.getServiceStart().setTo("1983");
query.getServiceEnd().setFrom("1984");
query.getServiceEnd().setTo("1985");
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setFormatCodes(Arrays.asList(new Code("code13", null, "scheme13"), new Code("code14", null, "scheme14")));
query.setDocumentEntryTypes(Collections.singletonList(DocumentEntryType.STABLE));
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Aggregations