Search in sources :

Example 1 with FindSubmissionSetsQueryTransformer

use of org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindSubmissionSetsQueryTransformer in project ipf by oehf.

the class FindSubmissionSetsQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new FindSubmissionSetsQueryTransformer();
    query = new FindSubmissionSetsQuery();
    query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
    query.setContentTypeCodes(Arrays.asList(new Code("code1", null, "system1"), new Code("code2", null, "system2")));
    query.getSubmissionTime().setFrom("20150102030405");
    query.getSubmissionTime().setTo("20150102030406");
    query.setAuthorPerson("per'son1");
    query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
    query.setHomeCommunityId("12.21.41");
    ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) FindSubmissionSetsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindSubmissionSetsQuery) AssigningAuthority(org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority) Code(org.openehealth.ipf.commons.ihe.xds.core.metadata.Code) FindSubmissionSetsQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindSubmissionSetsQueryTransformer) Identifiable(org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable) 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 AssigningAuthority (org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority)1 Code (org.openehealth.ipf.commons.ihe.xds.core.metadata.Code)1 Identifiable (org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable)1 FindSubmissionSetsQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindSubmissionSetsQuery)1 FindSubmissionSetsQueryTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.FindSubmissionSetsQueryTransformer)1