From: Nico V. <ni...@us...> - 2006-02-18 13:59:50
|
Hi Bryan, Scott, I thought that the message structure of an ADT A31 event was ADT_A05 ... Could be version related of course ... I can't verify since I don't have a copy of the 2.3 standard. Regards Nico At 15/02/2006, Bryan Tripp wrote: >Hi Scott, > >You found a bug, but it's easy to fix yourself. Mappings like this are >only supposed to be done with event types that don't have their own >structures (like A04), but A31 does. Go to the package >ca.uhn.hl7v2.parser.eventmap ... there are text files there with the >mappings (one for each HL7 version) ... just change the line "ADT_A31 >ADT_A01" to "ADT_A31 ADT_A31". If you aren't comfortable with this, >another option is to make sure the structure is specified in MSH-9-3. > >Bryan > >On 2/13/06, Scott Arnold <sa...@bj...> wrote: > > Is there any reasonbly simple way to convert an A01 into, for example, > > an A31 if that's what it is? HAPI parses messages like A31's into > > A01's, which is fine, but it can confuse the heck out of other > > developers if I send them an A01 when they are expecting an A31. Would > > be nice if I could convert it easily and just send them an ADT_A31. > > I've looked at using DeepCopy along with the getNames() and get(String > > name, int rep) methods of Message, and could use them, but it gets ugly > > because it can only copy segments, forcing me to write extra code to > > deal with groups and repetitions. Anyway, I was hoping there might be an > > easier way I'm overlooking. > > > > Thanks, > > > > Scott Arnold > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Hl7api-devel mailing list > > Hl7...@li... > > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmdk&kid3432&bid#0486&dat1642 >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel |