Hi Venu,
Yup, Patrick pretty much sums this up. HL7's batch protocol is kind of a
strange beast, and isn't currently supported out of the box by HAPI.
That said, it probably woudn't be terribly difficult to add support to the
MinLLP implementation, as it is (as Patrick points out) basically just an
enhancement to the message wrapper that happens to look like the message
payload it carries. If you were interested in trying to implement it, Id be
happy to point you in the direction of the classes that need modifying.
Cheers,
James
On Sat, Feb 19, 2011 at 12:10 PM, Patrick Kobly <patr...@kobly.com> wrote:
> Well, the batch protocol was an attempt to standardize the control
> information that comes along with batching up multiple messages into a
> single file. It would appropriately be at the same level of the processing
> stack as mllp for live processing. But hl7 decided to implement the
> protocol at the wrong level. And so tool support for the protocol sucks and
> everybody pretty much implements their own (potentially hackish) way of
> doing things. On top of that, there's limited call for batch solutions now
> as more and more message sources can just be hooked live into reliable mllp
> infrastructure.
>
> PK
>
> On 2011-02-19, at 10:02 AM, "venu gopal" <rven...@yahoo.com> wrote:
>
> Thanks, Yes it worked out for me. I just wildly guessed by stripping off
> the BHS segment. But what is the use of BHS then?
> As o fnow, I don't have any control over sending and receiving system. I
> will keep you posted if there are any questions coming up for me. Thanks for
> your help...
>
> ------------------------------
> *From:* Patrick Kobly <patr...@kobly.com>
>
> *To:* venu gopal <rven...@yahoo.com>
> *Cc:* Jonathan Bartels <jonath...@mirthcorp.com>; "
> hl7api-devel@lists.sourceforge.net" <hl7api-devel@lists.sourceforge.net>
> *Sent:* Fri, February 18, 2011 8:49:39 PM
>
> *Subject:* Re: [HAPI-devel] Hapi newbie
>
> 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.
> Alternatively, if you've got control over the sending and receiving systems,
> just envelope the messages in mllp and you're good to go...
>
>
> PK
>
> On 2011-02-18, at 5:33 PM, "venu gopal" < <rven...@yahoo.com>
> rven...@yahoo.com> wrote:
>
> 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||MA0000|199505221605||VAXBAX9505
> at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:156)
> at <http://com.org.hl7.v231.sendandreceiveamessage.ma/><http://com.org>
> com.org
> .hl7.v231.SendAndReceiveAMessage.main(SendAndReceiveAMessage.java:86)
>
> Hey Patrick,
> So if I don't want to start with BHS, how will I parse 2 messages or more?
> Any sugegstions??
>
> ------------------------------
> *From:* Jonathan Bartels < <jonath...@mirthcorp.com>
> jonath...@mirthcorp.com>
> *Cc:* <hl7api-devel@lists.sourceforge.net><hl7api-devel@lists.sourceforge.net>
> hl7api-devel@lists.sourceforge.net
> *Sent:* Fri, February 18, 2011 11:20:56 AM
> *Subject:* Re: [HAPI-devel] Hapi newbie
>
> Typo, you want to concatenate strings on line 5., msg+=msgBHS+msgBTS.
>
>
>
>
>
>
>
> *From:* venu gopal [mailto: <rven...@yahoo.com> <rven...@yahoo.com>
> rven...@yahoo.com]
> *Sent:* Friday, February 18, 2011 1:34 PM
> *To:* rahul somasunderam
> *Cc:* <hl7api-devel@lists.sourceforge.net><hl7api-devel@lists.sourceforge.net>
> hl7api-devel@lists.sourceforge.net
> *Subject:* Re: [HAPI-devel] Hapi newbie
>
>
>
> 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 msgBHS =
> "BHS|^~\\&||IHS0032||MA0000|199505221605||VAXBAX950522G||11254||\r";
> String msgBTS = "BTS|||\r";
> msg = msgBHS+msgBTS;
> Parser p = new GenericParser();
> Message adt = p.parse(msg);
>
>
> I am getting the below stack trace...
> Exception in thread "main"
> ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message
> beginning BHS|^~\&||IHS0032||MA0000|199505221605||VAXBAX9505
> at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:156)
> at <http://com.org.hl7.v231.SendAndReceiveAMessage.ma><http://com.org>
> com.org
> .hl7.v231.SendAndReceiveAMessage.main(SendAndReceiveAMessage.java:86)
>
> Any suggestions from you guys.. Please advice.
> ------------------------------
>
> *From:* rahul somasunderam <
> <r...@certifydatasystems.com><r...@certifydatasystems.com>
> r...@certifydatasystems.com>
> *To:* venu gopal < <rven...@yahoo.com> <rven...@yahoo.com>
> rven...@yahoo.com>
> *Cc:* <hl7api-devel@lists.sourceforge.net><hl7api-devel@lists.sourceforge.net>
> hl7api-devel@lists.sourceforge.net
> *Sent:* Mon, February 7, 2011 10:55:26 AM
> *Subject:* Re: [HAPI-devel] Hapi newbie
>
> Venu,
>
> The ADT_A08 message uses the structure of the ADT_A01.
>
> If you have the html version of the spec, look
> at /v26/hl7v26eventA08.htm.
>
> So if you're creating a message, then use the ADT_A01 structure and then
> set the MSH-9 to ADT^A08.
>
> If you're parsing one, then be prepared to receive an ADT_A01. And check
> for the value in MSH-9.
>
> R,
> rahul
> On Mon, 2011-02-07 at 10:42 -0800, venu gopal wrote:
> > nt versions of HAPI, but I found it only in version 2.3.1. Can we have
> > the same message in version 2.6? Please let me know your sugegstions..
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel