Search in sources :

Example 21 with EbXMLFactory30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30 in project ipf by oehf.

the class GetFolderAndContentsQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new GetFolderAndContentsQueryTransformer();
    query = new GetFolderAndContentsQuery();
    query.setUuid("uuid1");
    query.setUniqueId("uniqueId1");
    query.setHomeCommunityId("home");
    var confidentialityCodes = new QueryList<Code>();
    confidentialityCodes.getOuterList().add(Arrays.asList(new Code("code10", null, "scheme10"), new Code("code11", null, "scheme11")));
    confidentialityCodes.getOuterList().add(Collections.singletonList(new Code("code12", null, "scheme12")));
    query.setConfidentialityCodes(confidentialityCodes);
    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) GetFolderAndContentsQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetFolderAndContentsQueryTransformer) QueryList(org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryList) Code(org.openehealth.ipf.commons.ihe.xds.core.metadata.Code) GetFolderAndContentsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetFolderAndContentsQuery) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 22 with EbXMLFactory30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30 in project ipf by oehf.

the class GetFoldersForDocumentQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new GetFoldersForDocumentQueryTransformer();
    query = new GetFoldersForDocumentQuery();
    query.setUuid("uuid1");
    query.setUniqueId("uniqueId1");
    query.setHomeCommunityId("home");
    ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Also used : GetFoldersForDocumentQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetFoldersForDocumentQueryTransformer) EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) GetFoldersForDocumentQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetFoldersForDocumentQuery) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 23 with EbXMLFactory30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30 in project ipf by oehf.

the class GetFoldersQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new GetFoldersQueryTransformer();
    query = new GetFoldersQuery();
    query.setUuids(Arrays.asList("uuid1", "uuid2"));
    query.setUniqueIds(Arrays.asList("uniqueId1", "uniqueId2"));
    query.setHomeCommunityId("home");
    ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) GetFoldersQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetFoldersQueryTransformer) GetFoldersQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetFoldersQuery) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 24 with EbXMLFactory30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30 in project ipf by oehf.

the class GetAllQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new GetAllQueryTransformer();
    query = new GetAllQuery();
    query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
    var confidentialityCodes = new QueryList<Code>();
    confidentialityCodes.getOuterList().add(Arrays.asList(new Code("code10", null, "scheme10"), new Code("code11", null, "scheme11")));
    confidentialityCodes.getOuterList().add(Collections.singletonList(new Code("code12", null, "scheme12")));
    query.setConfidentialityCodes(confidentialityCodes);
    query.setFormatCodes(Arrays.asList(new Code("code13", null, "scheme13"), new Code("code14", null, "scheme14")));
    query.setStatusDocuments(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
    query.setStatusFolders(Collections.singletonList(AvailabilityStatus.DEPRECATED));
    query.setStatusSubmissionSets(Collections.singletonList(AvailabilityStatus.SUBMITTED));
    query.setHomeCommunityId("12.21.41");
    query.setDocumentEntryTypes(Collections.singletonList(DocumentEntryType.STABLE));
    ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) GetAllQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetAllQuery) GetAllQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetAllQueryTransformer) QueryList(org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryList) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 25 with EbXMLFactory30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30 in project ipf by oehf.

the class GetAssociationsQueryTransformerTest method setUp.

@BeforeEach
public void setUp() {
    transformer = new GetAssociationsQueryTransformer();
    query = new GetAssociationsQuery();
    query.setUuids(Arrays.asList("uuid1", "uuid2"));
    query.setHomeCommunityId("home");
    ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) GetAssociationsQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetAssociationsQueryTransformer) GetAssociationsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetAssociationsQuery) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

EbXMLFactory30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30)36 BeforeEach (org.junit.jupiter.api.BeforeEach)34 Code (org.openehealth.ipf.commons.ihe.xds.core.metadata.Code)11 EbXMLFactory (org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLFactory)10 AssigningAuthority (org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority)9 Identifiable (org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable)9 QueryList (org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryList)6 ProvideAndRegisterDocumentSetTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.ProvideAndRegisterDocumentSetTransformer)4 RetrieveDocumentSetRequestTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.RetrieveDocumentSetRequestTransformer)2 RetrieveImagingDocumentSetRequestTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.RetrieveImagingDocumentSetRequestTransformer)2 RetrieveDocumentSetResponseTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.responses.RetrieveDocumentSetResponseTransformer)2 Test (org.junit.jupiter.api.Test)1 EbXMLExtrinsicObject30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLExtrinsicObject30)1 FindDispensesQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindDispensesQuery)1 FindFoldersForMultiplePatientsQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindFoldersForMultiplePatientsQuery)1 FindFoldersQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindFoldersQuery)1 FindMedicationAdministrationsQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindMedicationAdministrationsQuery)1 FindMedicationListQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindMedicationListQuery)1 FindMedicationTreatmentPlansQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindMedicationTreatmentPlansQuery)1 FindPrescriptionsForDispenseQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.FindPrescriptionsForDispenseQuery)1