Re: [HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-12 Thread Jens Villadsen
Or - you could use the NoValidation ( http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/validation/impl/NoValidation.html) - which you probably shouldn't. -- Med venlig hilsen / Kind regards *Jens Kristian Villadsen* cand.polyt Kantorvænget nr. 161 8240 Risskov Denmark Mobile +45233738

Re: [HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-12 Thread rahul somasunderam
Raphaelle, Hapi looks at the OBX-2 and tries to fit the OBX-5 data into the datatype chosen by OBX-2. I believe you have NM in the OBX-2. I don’t think the HL7 spec / Hapi support Scientific numerals. R, rahul From: [email protected] [mailto:[email protected]

Re: [HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-12 Thread James Agnew
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 me

Re: [HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-12 Thread Cameron Freiner
Hi, This is one that got me as well. OBX.5 "varies" based on the value of OBX.2 I'd guess that it says "NM" in your message? If that is the case, HAPI considers the value in OBX.5 to be of the DataType of "NM" If you take a look in the DefaultValidation class you will see. ca.uhn.hl7v2.validati

[HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-12 Thread rmeyer.ext
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