Search in sources :

Example 1 with FindMedicationListQueryTransformer

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();
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) FindMedicationListQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindMedicationListQueryTransformer) FindMedicationListQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindMedicationListQuery) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 EbXMLFactory30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30)1 FindMedicationListQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindMedicationListQuery)1 FindMedicationListQueryTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindMedicationListQueryTransformer)1