[HAPI-devel] HAPI 2.1 and overriding validation

2013-09-23 Thread Andrew Bowden
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

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

[HAPI-devel] String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException

2013-09-23 Thread Niederlander Alex
Hello everyone, When I use the following function : String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException The returned result takes into acco

Re: [HAPI-devel] String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException

2013-09-23 Thread Niederlander Alex
Christian, First, thank you for your quick answer. I'm using the version 2.4 but the package of the CommonTS classe is : ca.uhn.hl7v2.model.primitive The version is more explicit in other package i'm using, for exemple : ca.u

Re: [HAPI-devel] String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException

2013-09-23 Thread Christian Ohr
Which version of HAPI are you using? There has been http://sourceforge.net/p/hl7api/bugs/157/ that was fixed in HAPI 2.1 cheers Christian 2013/9/23 Niederlander Alex > Hello everyone, > > When I use the following function : > > [image: Open Declaration] String ca.uhn.hl7v2.model.primitive.Com

Re: [HAPI-devel] String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException

2013-09-23 Thread ldh
Hello,I think Christian was talking about the version of HAPI, not the HL7 version you happen to parse out.