Hi Janine, The parser uses a default validation context to check the primitives. The PID-2 field type is NM, so the parser checks for a number. In your case, the PID-2 field contains the 'OK' characters, that's why the validation fails. To get around this problem you must create a ValidationContextImpl subclass and set to use it by your parser by calling the parser.setValidationContext() method. Attached to this mail you will find the one I use (which is the original one with phone number checking deactivated). Regards |
CustomValidation.java
Description: Binary data
Le 3 déc. 2009 à 14:19, Janine Graul a écrit :
|
------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

