Hi Raphaelle,

The data type in OBX-5 is actually determined by the value in OBX-2.
Presumably, you have something like "NM" in OBX-2 in your message, which
tells HAPI to treat OBX-5 as an NM.

Luckily, you can disable validation in the parser fairly easily. Just call
something like (typing from memory, sorry if there are typos):

parser.setValidationContext(new DefaultValidation());

Cheers,
James


On Tue, Oct 12, 2010 at 11:40 AM, <[email protected]> wrote:

>  Hi all !
>
> I'm trying to use Hapi default validation to validate an ORU message
> containing value "0E+0" in a OBX-5 field, and I got the error : "Failed
> validation rule for value "0E+0": Matches the regular expression
> (\+|\-)?\d*\.?". However, the OBX-5 field is supposed to contain the data
> type 'varies'.
> Have I misunderstood something about OBX-5 data type ? Where does the
> regular expression come from ?
>
> Regards,
>
> Raphaƫlle
>
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to