From: Tripp, B. <Bry...@uh...> - 2005-01-17 15:51:23
|
Another comment ... the parser will add the segment itself, but has to = guess where to put it. It puts it at the end of the message branch it's on = when the Z-segment is encountered. For this message, it goes under ADR_A19_PR1ROL. You can see this by displaying the message in = TestPanel.=20 Bryan=20 -----Original Message----- From: hl7...@li... on behalf of Shrock, = Court Sent: Sat 1/15/2005 4:45 PM To: 'Daniel Nebot'; hl7...@li... Subject: RE: [HAPI-devel] Z-segments =20 You will find the start of the trail in the model/v24/message/ADR_A19 = class constructor. Notice how segments and groups are added by calling this.add(MSH.class, b_required, b_repeating)? Either add a line that = adds your custom Z segment to the base message or to whichever group it = belongs. If you want to add to the base message, add something like the following just under the this.add(DSC.class) line: this.add(Z.class, true, false); Hope this helps....I actually just ran into a system (Meditech) that = says it is outputting hl7v2.2, but contains an RDE message type in MSH9 with no event trigger value which isn't in v.2.2 and isn't valid anyway in v2.3 because of the missing event trigger component. I ended up creating my = own AbstractMessage extended class to handle this message type. -----Original Message----- From: Daniel Nebot [mailto:dan...@ya...]=20 Sent: Thursday, January 13, 2005 7:38 AM To: hl7...@li... Subject: [HAPI-devel] Z-segments I am new to HAPI and am trying to parse an incoming pipe-formatted = ADR_A19 response which includes an extra custom Z segment. Unfortunatelly, as = far as I see the PipeParser seems to ignore the Z segment and I cannot find it = on the resulting Message object. I would be very grateful if somebody could post an example of how to = manage Z-messages and additional Z-segments in messages with HAPI. Thanks Dani MSH|^~\&|sendApp|sendingFacility|rcvIngApp|rcvingFacility|200501101922|| MSH|^^ADR_A19|FAKEMSGID|P|2.4 PID|||||GRIJANDER^DANIEL|GARCIA||M|||&Sol i Padris,120^^SABADELL^^08205^^CALLE||||||||||||BARCELONA PD1|||||||||||E|Y PV1||N ZNB|DIA1^DOSIS1|DIA2^DOSIS2|DIA3^DOSIS3 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and = FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |