--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/a2365ba8-1ddd-4ce5-b8d3-5fd5428a9845n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/94873f81-0733-40f4-b104-c1778b379352n%40googlegroups.com.
String iti18ServiceUrl ="http://localhost:8081/registry/services/xds-iti18";
FindDocumentsQuery findDocumentsQuery = new FindDocumentsQuery();
findDocumentsQuery.setPatientId(getPatientID());
findDocumentsQuery.setStatus(getAvailabilityStatus());
QueryRegistry queryRegistry = new QueryRegistry(findDocumentsQuery);
queryRegistry.setReturnType(QueryReturnType.LEAF_CLASS);
QueryResponse responseType = XDSClient.sendITI18(iti18ServiceUrl, queryRegistry);
You received this message because you are subscribed to a topic in the Google Groups "ipf-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ipf-user/LmvEvh2tiOg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/CAHh9K-kDR6L0L4bKv%3DEm1qVf%2BiGasn6Lt%3Dkm__9eks4L_yr7GQ%40mail.gmail.com.
public String fromIpf2(QueryResponse responseType) {
QueryResponseTransformer transformer = new QueryResponseTransformer();
EbXMLQueryResponse30 ebXml = (EbXMLQueryResponse30) transformer.toEbXML(responseType);
AdhocQueryResponse internal = ebXml.getInternal();
JAXBContext jaxbContext = JAXBContext.newInstance(AdhocQueryResponse.class);
Marshaller marshaller = jaxbContext.createMarshaller();
StringWriter writer = new StringWriter();
marshaller.marshal(ebXml, writer);
return writer.toString();
}
public QueryResponse toIpf3(String s) {
InputStream inputStream = new ByteArrayInputStream(s.getBytes(StandardCharsets.UTF_8));
JAXBContext jaxbContext = JAXBContext.newInstance(AdhocQueryResponse.class);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
AdhocQueryResponse internal = (AdhocQueryResponse) unmarshaller.unmarshal(inputStream);
EbXMLQueryResponse30 ebXml = new EbXMLQueryResponse30(internal);
QueryResponseTransformer transformer = new QueryResponseTransformer();
return transformer.fromEbXML(ebXml);
}
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/aa2d4208-3098-4fea-a96c-7c8dffa0c2b8n%40googlegroups.com.