validation error

View: New views
1 Messages — Rating Filter:   Alert me  

validation error

by joe robles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am newbie. I have a wierd issue. I am using HAPI 0.5.1 version.

I have a hl7 message template where in VALUE_TO_REPLACE field is changed each time but rest of the fields are constant (Please see the hl7 message example below).

VALUE_TO_REPLACE is replaced by the same length of chars each time programatically and validated using ca.uhn.hl7v2.parser.PipeParser.parse method.

Issue - The validation of only a particular hl7 message is always failing at ca.uhn.hl7v2.parser.PipeParser.parse method. I am not sure as what is causing the validation error.

Your input/pointers is highly appreciated. Thanks in advance for your valuable time and interest.

The hl7 msg:

MSH^~|\&^XXX^XXX^XY^XYZ^20000220122222.582-0200~D^^QBP~Z99~QRY_Q01^1111188888888^T^2.4
QPD^ZZ^^ZZ^VALUE_TO_REPLACE^20000101^20100101^
RCP^I^100~RD^B

The exception:

ca.uhn.hl7v2.model.DataTypeException: Failed validation rule: Matches the regular expression (\+|\-)?\d*\.?\d*