From: Shrock, C. <Sh...@in...> - 2005-01-15 21:46:00
|
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...] 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 |