The decimal number is not correct. It must be 0.33 rather than 0,33 to pass the validation of the NM data type.
regards Christian 2013/3/21 Juan Carlos RodrÃguez <j.rodrig...@necsia.es>: > Hi guys, > > I have an error when I parse a HL7 message. In the following line > > OBX|1|NM|BFatKT^Total Body Fat Mass Ratio > Trunk/Total|1|0,33|""|||||C|||20121106173222 > > I have the next error: > > ca.uhn.hl7v2.model.DataTypeException: > ca.uhn.hl7v2.validation.ValidationException: Validation failed: Primitive > value '0,33' requires to be empty or matching with (\+|\-)?\d*\.?\d* > > This message is the densito machine returns to me. I have the following > libraries in my pom.xml: > > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-base</artifactId> > <version>2.1-alpha1</version> > </dependency> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures-v231</artifactId> > <version>2.0</version> > </dependency> > > And my code is: > > ... > CanonicalModelClassFactory mcf = new > CanonicalModelClassFactory("2.3.1"); > PipeParser parser = new PipeParser(mcf); > ORU_R01 hl7Msg = (ORU_R01) parser.parse(msg); > ... > > Where is the error? > > Thanks a lot, > > Juan Carlos > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel