HL7 cannot deny its U.S roots...
Fortunately, there's DefaultValidationWithoutTN in the same package that
omits the validation rules for U.S. phone number schemes.
You can also inherit from DefaultValidationWithoutTNBuilder and add your
own/UK-specific rules. See e.g.
http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CustomMessageValidation.htmlfor
how to do this
Christian
2014-05-07 18:01 GMT+02:00 Oliver Wilkie <oliverwil...@gmail.com>:
>
> The DefaultValidation ca.uhn.hl7v2.validation.impl.DefaultValidation
> seems to be US-centric. For instance, it complains about non-US telephone
> numbers.
>
> I’m writing code for the NHS in the UK. Is there an existing Validator out
> there that is more UK/NHS-friendly?
>
> I very much doubt I am the first person to use Hapi in the UK for the NHS!
>
> Best,
> Oli
>
>
>
> *Oliver Wilkie*
> ( 07854601573 | 2 uk.linkedin.com/in/owilkie 8
> o<robert.kla...@imperial.nhs.uk>
> liverwil...@gmail.com
>
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel