Hi Dan, One simple way to do it would be to override Parser.parse(String) to change "2.3.0" to "2.3". Another option would be to get Parser to treat 2.3.0 as a valid version that is equivalent to 2.3, but this would really amount to doing the same thing as above, but in multiple places.
Bryan On 5/23/07, Dan Wright <[EMAIL PROTECTED]> wrote: > I understand that the problem is the version. Unfortunately this is the > format the messages are coming in and I have to parse them as is. I > think I may try writing a custom parser or something to deal with this. > Has anybody had any experience doing this that could give me a couple > pointers. > > - Dan > > [EMAIL PROTECTED] wrote: > > Hi Dan, > > > > I think the problem is the version number 2.3.0 in the MSH segment. > > > > HL7 version 2.3.0 doesn't exist, it should be 2.3 > > > > Regards > > > > Nico > > > > > > > > ------------------------------------------------------------------------ > > > > I'm trying to parse a message with the following header: > > MSH|^~\\&|MDS||||20050126080823||ORU|3840-CK0242245-9|P^|2.3.0|||NE|ERIt > > has problems with the version and the message type 'ORU' however this > > is the format the messages are coming in. I believe its because it is > > 'MDS'. Has anybody had experience parsing these > > messages?-------------------------------------------------------------------------This > > SF.net email is sponsored by DB2 ExpressDownload DB2 Express C - the > > FREE version of DB2 express and takecontrol of your XML. No limits. > > Just data. Click to get it > > now.http://sourceforge.net/powerbar/db2/_______________________________________________Hl7api-devel > > mailing > > [EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Hl7api-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

