@Test public void testSendHl7Document() throws IOException { String message = getFileFromClasspath("PORX_IN010380UV_soodustuse_kysimine.xml"); List<VeadType> veadOut = new ArrayList<VeadType>(); String response = retsXTeeServiceImpl.sendHl7Document(message, "10101010101", veadOut); Assert.assertNotNull(response); Assert.assertFalse(veadOut.isEmpty()); }
public String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut) throws XRoadServiceConsumptionException { Hl7DocumentRequestType keha = Hl7DocumentRequestType.Factory.newInstance(); keha.setHL7Encoding(Hl7EncodingType.XML); keha.setHL7Document(hl7Xml); XRoadMessage<Hl7DocumentResponseType> response = send(new XmlBeansXRoadMessage<Hl7DocumentRequestType>(keha), HL7DOCUMENT, "v1", idCode); if (response.getContent().getVead() != null && response.getContent().getVead().getItemList() != null) { veadOut.addAll(response.getContent().getVead().getItemList()); } return response.getContent().getHL7Document(); }
RetsXTeeServiceImpl extends XRoadDatabaseService implements RetsXTeeService { public String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut) throws XRoadServiceConsumptionException { Hl7DocumentRequestType keha = Hl7DocumentRequestType.Factory.newInstance(); keha.setHL7Encoding(Hl7EncodingType.XML); keha.setHL7Document(hl7Xml); XRoadMessage<Hl7DocumentResponseType> response = send(new XmlBeansXRoadMessage<Hl7DocumentRequestType>(keha), HL7DOCUMENT, "v1", idCode); if (response.getContent().getVead() != null && response.getContent().getVead().getItemList() != null) { veadOut.addAll(response.getContent().getVead().getItemList()); } return response.getContent().getHL7Document(); } }
RetsXTeeServiceImpl extends XRoadDatabaseService implements RetsXTeeService { public String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut) throws XRoadServiceConsumptionException { Hl7DocumentRequestType keha = Hl7DocumentRequestType.Factory.newInstance(); keha.setHL7Encoding(Hl7EncodingType.XML); keha.setHL7Document(hl7Xml); XRoadMessage<Hl7DocumentResponseType> response = send(new XmlBeansXRoadMessage<Hl7DocumentRequestType>(keha), HL7DOCUMENT, "v1", idCode); if (response.getContent().getVead() != null && response.getContent().getVead().getItemList() != null) { veadOut.addAll(response.getContent().getVead().getItemList()); } return response.getContent().getHL7Document(); }  }
RetsXTeeServiceImpl extends XRoadDatabaseService implements RetsXTeeService { public String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut) throws XRoadServiceConsumptionException { Hl7DocumentRequestType keha = Hl7DocumentRequestType.Factory.newInstance(); keha.setHL7Encoding(Hl7EncodingType.XML); keha.setHL7Document(hl7Xml); XRoadMessage<Hl7DocumentResponseType> response = send(new XmlBeansXRoadMessage<Hl7DocumentRequestType>(keha), HL7DOCUMENT, "v1", idCode); if (response.getContent().getVead() != null && response.getContent().getVead().getItemList() != null) { veadOut.addAll(response.getContent().getVead().getItemList()); } return response.getContent().getHL7Document(); }  String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut); }
RetsXTeeServiceImpl extends XRoadDatabaseService implements RetsXTeeService { public String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut) throws XRoadServiceConsumptionException { Hl7DocumentRequestType keha = Hl7DocumentRequestType.Factory.newInstance(); keha.setHL7Encoding(Hl7EncodingType.XML); keha.setHL7Document(hl7Xml); XRoadMessage<Hl7DocumentResponseType> response = send(new XmlBeansXRoadMessage<Hl7DocumentRequestType>(keha), HL7DOCUMENT, "v1", idCode); if (response.getContent().getVead() != null && response.getContent().getVead().getItemList() != null) { veadOut.addAll(response.getContent().getVead().getItemList()); } return response.getContent().getHL7Document(); }  String sendHl7Document(String hl7Xml, String idCode, List<VeadType> veadOut);  }