Sorry for my flippant response... I forgot that bhs's were batch headers. So
far as i'm aware, HAPI doesn't directly support the batch mechanism... The
parser always expects a message to start with an MSH... Personally, I'd just
strip the bhs/bts off and split the messages out one-by-one. Alter
My company is currently looking to hire a java developer. I am posting to
this list because we produce medical software that uses HL7 w/ HAPI and that
is an area of our software we need to expand greatly on.
The full stack is Postgresql, Hibernate, Tomcat, Spring, and Java Swing. If
there is any
Hi Jonathan,
Yes, It was a typo. I figured out later.
But even though, I corrected it, I was getting the same exception.
Exception in thread "main" ca.uhn.hl7v2.parser.EncodingNotSupportedException:
Can't parse message beginning
BHS|^~\&||IHS0032||MA|199505221605||VAXBAX9505
at ca.uhn.h
Typo, you want to concatenate strings on line 5., msg+=msgBHS+msgBTS.
*From:* venu gopal [mailto:[email protected]]
*Sent:* Friday, February 18, 2011 1:34 PM
*To:* rahul somasunderam
*Cc:* [email protected]
*Subject:* Re: [HAPI-devel] Hapi newbie
Hi,
I am trying to use BH
Might want to look at the exception message. It really does tell you
exactly what's wrong.
String msg =
"MSH|^~\\&|HIS|RIH|EKG|EKG|199904140038||ADT^A01|12345|P|2.2\r";
String msgBHS =
"BHS|^~\\&||IHS0032||MA|199505221605||VAXBAX950522G||11254||\r";
String msgBTS = "
Hi,
I am trying to use BHS segment to parse 2 or more messages of type (ADTA01 or
any other message type). But I tried to parse just one message first as shown
in
below..
String msg = "MSH|^~\\&|HIS|RIH|EKG|EKG|199904140038||ADT^A01|12345|P|2.2\r";
String msgB
6 matches
Mail list logo