Hi,

I'm currently upgrading our HL7 programs from HAPI 0.4.1 to 0.5.1. The main change is the new group names, much more readable, great! But is there a reason why the 2.3.1 version still uses the old convention (for example ORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI) ?

Another change I noticed: up to version 2.4, the TS datatype is now composed of two simple ST components. As a consequence, HAPI does not check the format of TS fields anymore, because the rules defined in the default validator only apply to TSComponentOne and DTM (in 2.5) components. Format validation being one of the big advantages of HAPI, I changed the code like shown in ca.uhn.hl7v2.model.v23.datatype.TS, as a temporary workaround:

   public TS(Message message) {
       super(message);
       data = new Type[2];
       // To keep the validation, like in previous versions of HAPI
       // data[0] = new ST(message);
       data[0] = new TSComponentOne(message);
       data[1] = new ST(message);
   }

Thank you for your answers and advices,

Fred*.*

--
Frédéric Dubru
Département informatique
Cliniques universitaires Saint-Luc
B-1200 Bruxelles
http://www.saintluc.be

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to