"type" attribute of DvProportion: ProportionKind or Integer??
Hi all, I'd like to report a particular problem which is creating trouble... In class DvProportion: "type" attribute is defined as ProportionKind, while in http://www.openehr.org/releases/1.0.2/architecture/rm/data_types_im.pdf is defined as Integer. Also in archetype model, "type" attribute of a C_COMPLEX_OBJECT of rm-type DV_PROPORTION is defined as CInteger (http://www.openehr.org/wsvn/ref_impl_java/TRUNK/openehr-aom/src/main/java/org/openehr/am/archetype/constraintmodel/primitive/CInteger.java) I look at archetype node id at0006 of openEHR-EHR-OBSERVATION.indirect_oximetry.v1 in http://openehr.org/knowledge/ to have an example. Using the enumeration instead of an Integer can cause some problems, for example if I try to validate an instance of DvProportion (validValue method of CInteger class returns false..)! Morevor I noted that Integer is mapped in XML-Schemas as xs:integer (http://www.openehr.org/releases/1.0.2/its/XML-schema/documentation/BaseTypes.xsd.html#h1328923170). If we'll use Integer in Java class, it is more correct to use xs:int in XML-Schemas, because they have the same definiton and range of values. Otherwise if we use xs.integer in XML-Schemas, we should use java.math.BigInteger in Java class! Regards leo _______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java