Actually,there is "
" after "901149" in element, but it can not
been manifested on the net. I don not know why.
Best Regards
Yu
-
Just Do It !
--
View this message in context:
http://www.nabble.com/It-would-be-nice-if-XMLParser-could-translate-HL7-escape-sequences-to-correponding-XML-seq
Hi James,
I copy Fabio's message and use XMLParser to translate it into XML
representation . It seems as follows:
901149
Y
11
L
I guess Fabio think that it would be better that HAPI treat "\X
Hi,Niranjan. I modify the code and build it.
Before I modify the code ,when closing the socket, the exception information
occurs every minute(for there is sentence:Thread.sleep(1000);). Now the
exception information occurs just once. It is acceptable I think.
Maybe the exception is inevitable i
Hi,Niranjan,thank you for your rapid reply! You help me a lot!
But how can I modify it? It is "Read only to protect against modification"
when I import HAPI-0.5.1 jar into my project. Is there any other way to
stop hl7server?
Thanks a lot!
Best regards
Yu
-
Just Do It !
--
View this mess
Hi , I find when I close the socket in order to stop the HL7Server,it catch
the exception as follows:
(0 ms) [Thread-6] ERROR:
ca.uhn.hl7v2.protocol.impl.ServerSocketStreamSource$Acc
eptor#error : Error accepting remote connection
java.net.SocketException: socket closed
at java.net.Plain
Hi all .
Does HL7Server in Hapi provide the method to break the current connection
from the client ?
When I try to stop the HL7Server, I call the hl7server.stop() method. It can
stop running after the next connection is made, but it still response the
client through the current connection.
Ho
Hi all, I add the operation of closing the socket, so method is changed like
this:
public void stopService(){
try{
if (isRunning()) {
hl7server.stop();
}
if(ss != null){
ss.close();
}
}
catch (IOException ioex) {
ioex.printStackTrace
Hi all,
I start HL7Server in a new thread, but I don't know how to stop it.
I write the code like this:
class ServerSubThread
extends Thread {
public void run() {
startProvidingService();
}
}
ServerSubThread sst = new ServerSubThread();
public void startService()
Hi James,
I am sorry to trouble you so frequently, but I find that the difference of
the control ID of the two message is 2 ! I try it for many times.
I know the value of the control ID is decided by the value of the id_file in
my computer.
For example, the value of the id_file is 205 ,when I g
Now I know that.
Thanks, James.
=)
-
Just Do It !
--
View this message in context:
http://www.nabble.com/the-response-message-sent-by-HL7Server-is-different-from-the-message-received-by-client.-Is-it-right--tp24287004p24299231.html
Sent from the hl7api-devel mailing list archive at Nabble.c
Hi all,
I use ca.uhn.hl7v2.protocol.impl.HL7Server,I find that the message is
different from the message received by client through calling sendAndReceive
method. Is it right? or does i do right ? Thanks.
I call sendAndReceive at client,and I get the response message:
MSH|^~\&|20090701165737
Hi James,
Thank you for your reply! :-D
By the way, what method should I call to get the response message in
HL7Server class? In other words, how can I get the response message which
send to client ?
I have gone over the Hapi source code,but I can't find such method. Should I
use myContext(Proces
Hi,Caleb
You can download the Hapi 0.5.1 source code at SourceForge:
http://sourceforge.net/project/showfiles.php?group_id=38899&package_id=31129
Also, you can know more about Hapi at
http://hl7api.sourceforge.net/index.html
Best regards,
Yu
-
Just Do It !
--
View this message in context:
Hi, everyone. Does HAPI provide any method to know the connection status of
ca.uhn.hl7v2.protocol.impl.HL7Server ?
I mean, if the client has been connected to HL7Server,the status of the
HL7Server become "Connected".
I use Message Workbeach these days,it can provide the status of the server.
So I
Hi, i use HL7Server ,it can receive a message from client and send a response
message to client. How can i get the response message which has been sent
to client from HL7Server ? or what has been sent at server ? i can get the
response message from client by using method "sendAndReceive",but i w
Hi,I know How Hapi parse HL7 message as a message tree in a JTree
involuntarily. The code is in "ca\uhn\hl7v2\viewTreePanel.java". The method
"public void setMessage(Message message)" which updates the panel with a new
Message parses HL7 message and displays the message in a JTree.
Best regards
Hi, does everyone know how does Hapi parse HL7 message as a message tree ?
I use the example "Getting Started With the Test Panel " in Hapi
website,(http://hl7api.sourceforge.net/testpanel.html) when I click the
button "Parse" in Message Tester ,a JTree control was emerged,and the
message was dis
Hi,everyone.I know how to do that now. I use HL7Server class instead of
SimpleServer and override the method: store() in Interface SafeStorage. So,I
can save the HL7 Message in store() method by overriding it.
Best regards.
-
Just Do It !
--
View this message in context:
http://www.nabble.
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
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{
20 matches
Mail list logo