[HAPI-devel] How can I get the message in the server which sent from the client ?

2009-04-27 Thread Yu Gu
Hi,I split the Hapi example "Sending and Receiving A Message" into two parts-the server and the client. The server receives the message from clent and make a response "ACK" message to the client. I want to know how to save the message which sent from the clent ? I want to save the message into a t

Re: [HAPI-devel] "UNKNOWN" element appear when converting ER7 to XML by using Hapi

2009-04-27 Thread Fabio Daprile
Your message is tagged as version 2.2. In that version PID.37 and 38 did not exist. I suppose HAPI interprets those fields as datatype VARIES. For this kind of Datatype hapi cannot know the type of data the sub-fields will contain and so it writes "UNKNOWN". To add those fields to Version 2.2 y

[HAPI-devel] "UNKNOWN" element appear when converting ER7 to XML by using Hapi

2009-04-27 Thread Yu Gu
Hi, I simulated the example in Hapi website to convert ER7 to XML. But something wrong happened in xml format.(UNKNOWN element in xml) I use Hapi-0.5.1. The code is as follows: public String convertHL7ToXML(String hl7encodedtraditionalmsg) throws EncodingNotSupportedException,HL7Exception{