Hi Raphaëlle,
Maybe i'm wrong, but i'd say: the first (rep 0)
Regards
Yves


Le 05/04/2011 17:46, [email protected] a écrit :

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

<<attachment: yves_viot.vcf>>

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to