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);
}
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());
}
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;
}
Aggregations