[HAPI-devel] validation while encoding vs. primitive type validation rules (primitiveRules)

2015-03-31 Thread Martin Swiech
Hi, I have a question about validating HL7 message with invalid value in primitive type. Example: I am creating HL7 message with invalid telephone number (TN): private Message createInvalidMessageObj() throws IOException, HL7Exception { final ADT_A01 adt = new ADT_A01();

Re: [HAPI-devel] validation while encoding vs. primitive type validation rules (primitiveRules)

2015-03-31 Thread Martin Swiech
Hi, sorry for bothering you. I have found it now in the specification: http://www.openehealth.org/display/ipf2/Primitive+Type+Constraints There is this note: --When primitive type rules are checked-- Note that primitive type rules can only be applied by configuring the parser. Validation then i