Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-25 Thread Andrew Bowden
t: Re: [HAPI-devel] HAPI 2.1 and overriding validation No, validation rules are additive. Particularly, message rules (e.g. with a terser expression) do not override primitive rules, they further restrict the content of a specific field within the bounds of the rules of its (primitive) type! I wou

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-25 Thread Christian Ohr
[mailto:christian@gmail.com] > *Sent:* Monday, 23 September 2013 5:22 PM > *To:* Andrew Bowden > *Cc:* hl7api-devel@lists.sourceforge.net > *Subject:* Re: [HAPI-devel] HAPI 2.1 and overriding validation > > ** ** > > Hi Andrew, > > note that there is only

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-24 Thread Andrew Bowden
..@gmail.com] Sent: Monday, 23 September 2013 5:22 PM To: Andrew Bowden Cc: hl7api-devel@lists.sourceforge.net Subject: Re: [HAPI-devel] HAPI 2.1 and overriding validation Hi Andrew, note that there is only a (primitive) validation for TN, not for XTN, in DefaultValidationBuilder. And, there

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-23 Thread Christian Ohr
Hi Andrew, note that there is only a (primitive) validation for TN, not for XTN, in DefaultValidationBuilder. And, there is the DefaultValidationWithoutTNBuilder for exactly the reason you mentioned. So subclass this builder instead. Hope this helps Christian 2013/9/23 Andrew Bowden > Hi there