Thanks Yves for you answer.
Unfortunately, even if the error is not in the first OBX segment, the exception
tells me "rep 0".
And sometimes, the exception doesn't indicate at all the segment type and the
field : "ca.uhn.hl7v2.model.DataTypeException: Failed validation rule for value
"a": Matches the regular expression (\+|\-)?\d*\.?\d*"
It's difficult for the user to correct its message when the service doesn't
tell him where is the mistake.
Does anyone know if there is something else to do to get this information?
________________________________
De : VIOT Yves [mailto:[email protected]]
Envoyé : mardi 5 avril 2011 18:01
À : [email protected]
Objet : Re: [HAPI-devel] HL7 message validation : location of the error in the
message
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
------------------------------------------------------------------------------
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