Search in sources :

Example 1 with RetrieveDocumentSet

use of org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet in project ipf by oehf.

the class RetrieveDocumentSetRequestTransformerTest method testFromEbXMLEmpty.

@Test
public void testFromEbXMLEmpty() {
    var ebXML = transformer.toEbXML(new RetrieveDocumentSet());
    var result = transformer.fromEbXML(ebXML);
    assertEquals(new RetrieveDocumentSet(), result);
}
Also used : RetrieveDocumentSet(org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet) Test(org.junit.jupiter.api.Test)

Example 2 with RetrieveDocumentSet

use of org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet in project ipf by oehf.

the class RetrieveDocumentSetRequestTransformerTest method testToEbXMLEmpty.

@Test
public void testToEbXMLEmpty() {
    var ebXML = transformer.toEbXML(new RetrieveDocumentSet());
    assertNotNull(ebXML);
    assertEquals(0, ebXML.getDocuments().size());
}
Also used : RetrieveDocumentSet(org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet) Test(org.junit.jupiter.api.Test)

Example 3 with RetrieveDocumentSet

use of org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet in project MobileAccessGateway by i4mi.

the class Iti68RequestConverter method queryParameterToRetrieveDocumentSet.

public static RetrieveDocumentSet queryParameterToRetrieveDocumentSet(@Headers Map<String, Object> parameters) {
    RetrieveDocumentSet retrieveDocumentSet = new RetrieveDocumentSet();
    DocumentEntry documentEntry = new DocumentEntry();
    if (parameters.containsKey("repositoryUniqueId")) {
        documentEntry.setRepositoryUniqueId(parameters.getOrDefault("repositoryUniqueId", "").toString());
    }
    if (parameters.containsKey("uniqueId")) {
        documentEntry.setUniqueId(parameters.getOrDefault("uniqueId", "").toString());
    }
    // documentEntry.setHomeCommunityId("");
    retrieveDocumentSet.addReferenceTo(documentEntry);
    return retrieveDocumentSet;
}
Also used : DocumentEntry(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry) RetrieveDocumentSet(org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet)

Aggregations

RetrieveDocumentSet (org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet)3 Test (org.junit.jupiter.api.Test)2 DocumentEntry (org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry)1