From: Tripp, B. <Bry...@uh...> - 2004-04-26 20:05:51
|
Hi Bill, I was wondering if anyone would ever ask about this. There is no specific support for batch processing in HAPI, but it should be straightforward anyway. I'd suggest creating instances of the batch segments directly (e.g. new ca.uhn.hl7v2.model.v24.segment.FHS(null) ), and using the static method PipeParser.encode(Segment, EncodingCharacters). I.e. encode and write your FHS to the file, then do the same with BHS, then the same with your messages, then the trailers. Will that do it? Bryan -----Original Message----- From: William T Hansley [mailto:han...@mc...] Sent: April 26, 2004 3:40 PM To: hl7...@li... Subject: [HAPI-devel] Batch messages and BHS/BTS segments?? Hi all, I'm a recent HAPI user, and so far I've got the hang of creating single messages (ORU_R01's) with all the segments that I need for my purpose. My question is this: these messages are all to be in a file (that get's picked up via FTP and batch processed) that needs to be in proper HL7 batch structure, that is, with BHS (Batch Header Segment?) and BTS) (Batch Trailer Segment?). I can create single ORU messages all day, but I can't instantiate a BHS segment without it being part of some message, which I don't know. What is the proper way to create a batch of messages with the appropriate headers? Any and all help, hints and guidance is appreciated!!! Bill This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |