cda datatypes nblock voc common

Element : INT (XML Type: INT )


Package : datatypes

XML Type : INT

Comments : Integer numbers (-1,0,1,2, 100, 3398129, etc.) are precise numbers that are results of counting and enumerating. Integer numbers are discrete, the set of integers is infinite but countable. No arbitrary limit is imposed on the range of integer numbers. Two NULL flavors are defined for the positive and negative infinity.


Parent : QTY


Name Type cardinality Comment
value
Attribute : value
Integer 0...1

constraint_datatypes_INT

  • (not self.value.oclIsUndefined()) or (not self.nullFlavor.oclIsUndefined())
  • value attribute should be not null, or nullFlavor SHALL be defined (from the schema datatypes-base.xsd)

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="INT">
      
<xs:annotation>
         
<xs:documentation>
            Integer numbers (-1,0,1,2, 100, 3398129, etc.) are precise
            numbers that are results of counting and enumerating.
            Integer numbers are discrete, the set of integers is
            infinite but countable.  No arbitrary limit is imposed on
            the range of integer numbers. Two NULL flavors are
            defined for the positive and negative infinity.
         
</xs:documentation>
         
<xs:appinfo>
            
<diff>INT</diff>
            
<sch:pattern xmlns:sch="http://www.ascc.net/xml/schematron" name="validate INT">
               
<sch:rule abstract="true" id="rule-INT">
                  
<sch:report test="(@value or @nullFlavor) and not(@value and @nullFlavor)" />
               
</sch:rule>
            
</sch:pattern>
         
</xs:appinfo>
      
</xs:annotation>
      
<xs:complexContent>
         
<xs:extension base="QTY">
            
<xs:attribute name="value" type="int" use="optional" />
         
</xs:extension>
      
</xs:complexContent>
   
</xs:complexType>