Thanks James..There was an issue in my coding while setting NoValidation.
Now works as expected.

Thanks
-Ratha


On 30 May 2013 17:23, James Agnew <ja...@jamesagnew.ca> wrote:

> Hi Vijayaratha,
>
> The snippet you posted doesn't appear to be valid, possibly you are
> instantiating a new parser and setting its context and the "new" keyword is
> missing?
>
> Either way, you will find an example of what you are trying to accomplish
> here:
>
> http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/MessageValidation.html
>
> Cheers,
> James
>
>
> On Thu, May 30, 2013 at 1:38 AM, vijayaratha vijayasingam <
> vijayara...@gmail.com> wrote:
>
>> Hi all;
>> Im sending an OUL_R22 hl7 message to my acceptor and it works fine and
>> im getting ack message.
>> But when i send another type of OUL_R22 message, im getting following
>> error;[1]
>> Anyway , im asking the system to not to do validation .
>> That is, Im setting NoValidation  in the HLl 7 context; as follows;
>>
>> *PipeParser().setValidationContext(new NoValidation());*
>>
>> SO, my question is, why hapi still validates the message? To overcome
>> this should i use the conformance profile?
>>
>> Can somebody clear the root cause and reason for  why this is happening
>> for me?
>>
>> Thanks
>> -Ratha
>> [1]
>> ca.uhn.hl7v2.model.DataTypeException: Failed validation rule for value
>> "acaspp": Matches the regular expression (\+|\-)?\d*\.?\d*
>>     at
>> ca.uhn.hl7v2.model.AbstractPrimitive.setValue(AbstractPrimitive.java:87)
>>     at ca.uhn.hl7v2.util.DeepCopy.copy(DeepCopy.java:28)
>>     at ca.uhn.hl7v2.model.Varies.setData(Varies.java:139)
>>     at ca.uhn.hl7v2.model.Varies.fixOBX5(Varies.java:252)
>>     at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:377)
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> Hl7api-devel mailing list
>> Hl7api-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to