Hi Burke, I'm not sure if you got Torben's answer before your last message, but it was right. There is one HAPI class for each message structure, but multiple events can use the same structure (e.g. event A28 uses structure ADT_A05).
If you are creating a new message, use the structure that corresponds to your event (this is given in the standard) and fill in the structure, type, and event in MSH-9. When you receive a message HAPI uses the structure specified in MSH-9 if it exists, otherwise it uses the event to look up the structure in the ca.uhn.hl7v2.parser.eventmap tables. Regards, Bryan On 8/2/07, Burke Mamlin <[EMAIL PROTECTED]> wrote: > We have written some code using HAPI's v2.5 model, but ran into a problem > when we realized that not all messages are included. > > For example, this class does NOT exist: > ca.uhn.hl7v2.model.v25.message.ADT_A28 > > We've tried using ca.uhn.hl7v2.model.v23.message.ADT_A28 instead, but then > segments retrieved from the message (e.g., PID) are v2.3-based > (ca.uhn.hl7v2.model.v23.message.PID) and do not work with our code that > expects v2.5 objects (e.g., ca.uhn.hl7v2.model.v25.segment.PID). > > Searching the mailing archive seems to indicate that this is a previously > known issue: > http://sourceforge.net/mailarchive/message.php?msg_id=FACBB5D0A731A44083D6F2 > AD5FD0D1AA27F137%40qrmail.quantumroute.com (http://tinyurl.com/2uz28a) > Yet several of the ADT messages (like ADT_A28) remain absent in v2.4, v2.5, > and v2.5.1 of HAPI. Are these ADT messages left out of the HAPI v2.4 & v2.5 > models on purpose? > > Thanks for any assistance, > > -Burke > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Burke > Mamlin > Sent: Thursday, August 02, 2007 1:22 AM > To: [email protected] > Subject: [HAPI-devel] Missing messages > > This may be a silly or old question, but why are some messages missing from > HAPI's packages (e.g., ADT_A28 is missing from 2.4 and 2.5)? Is this > because the message(s) have not changed since v2.3? Are we simply supposed > to import the ADT_A28 from v2.3 when working with v2.5 messages? > > Thanks. > > -Burke > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Hl7api-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Hl7api-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

