From: Andrew B. <And...@rc...> - 2013-09-23 07:03:14
|
Hi there, I have recently started using HAPI and am impressed by the amount of function in the toolkit. I have been struggling for about a week with the correct way to override the validation and am hoping that someone on this list can help me. I have a segment that fails validation for an XTN type (as I am out of the US), I would like to keep validation on but change the validation for this segment. I realize that I can turn off validation for the message but am curious as to the best way to approach this problem. I have tried the HAPI by example method of extending the DefaultValidationBuilder and overriding the configure method, however the first call to super overrides the rule that I have provided to the method. I have also seen an example of extending the ValidationContextImpl (http://osdir.com/ml/medical.hl7/2008-07/msg00003.html), but this appears to be an older approach to the problem. I would appreciate any help that can be provided to point me in the right direction. Andrew |