Hi all,

When the validation of an HL7 message (with Hapi DefaultValidation) fails, how 
can I know where (in what segment of the message) is the error?

Here is an example of the exception that is thrown by Hapi:
"ca.uhn.hl7v2.model.DataTypeException: Failed validation rule for value "R": 
Matches the regular expression 
(\d{4}([01]\d(\d{2}([012]\d([0-5]\d([0-5]\d(\.\d(\d(\d(\d)?)?)?)?)?)?)?)?)?)?([\+\-]\d{4})?:
 Segment: OBX (rep 0) Field #12"

I see that the error is in an OBX-12 field, but it doesn't tell me which OBX 
segment is concerned.

Does anyone know how I can get this information?

Regards,

Raphaƫlle



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to