From: Christian O. <chr...@gm...> - 2013-08-02 15:49:16
|
In HAPI 2.1, it is preferred to set the ValidationContext over the HapiContext (context.setValidationContext(...)) and obtain the Parser from there (context.getPipeParser()) If you need a proper Validation elsewhere from the same HapiContext , you can disable validation during parsing with context.getParserConfiguration().setValidating(false); cheers Christian 2013/8/2 Senthil Muthiah <vbs...@gm...> > Hi > > I am parsion ORU Message. I do not want to do the validation while > parsing. > So i use the following > > PipeParser pipeParser = new PipeParser(); > pipeParser.setValidationContext(new NoValidation()); > Message message = pipeParser.parse(HL7Message); > Terser terser = new Terser(message); > LOG.debug("/PID-2" + terser.get("/.PID-2")); > > But setValidationContext is deprecated, so what is the alternate one ? > > Regards > Senthil M > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |