cda datatypes nblock voc common

Element : REAL (XML Type: REAL )


Package : datatypes

XML Type : REAL

Comments : Fractional numbers. Typically used whenever quantities are measured, estimated, or computed from other real numbers. The typical representation is decimal, where the number of significant decimal digits is known as the precision. Real numbers are needed beyond integers whenever quantities of the real world are measured, estimated, or computed from other real numbers. The term "Real number" in this specification is used to mean that fractional values are covered without necessarily implying the full set of the mathematical real numbers.


Parent : QTY


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

constraint_datatypes_nullFlavor

  • (not self.value.oclIsUndefined()) or (not self.nullFlavor.oclIsUndefined())
  • nullFlavor must be defined, or value must be not null (from the schema of datatypes)

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="REAL">
      
<xs:annotation>
         
<xs:documentation>
            Fractional numbers. Typically used whenever quantities
            are measured, estimated, or computed from other real
            numbers.  The typical representation is decimal, where
            the number of significant decimal digits is known as the
            precision. Real numbers are needed beyond integers
            whenever quantities of the real world are measured,
            estimated, or computed from other real numbers. The term
            "Real number" in this specification is used to mean
            that fractional values are covered without necessarily
            implying the full set of the mathematical real numbers.
         
</xs:documentation>
         
<xs:appinfo>
            
<diff>REAL</diff>
            
<sch:pattern xmlns:sch="http://www.ascc.net/xml/schematron" name="validate REAL">
               
<sch:rule abstract="true" id="rule-REAL">
                  
<sch:report test="(@nullFlavor or @value) and not(@nullFlavor and @value)" />
               
</sch:rule>
            
</sch:pattern>
         
</xs:appinfo>
      
</xs:annotation>
      
<xs:complexContent>
         
<xs:extension base="QTY">
            
<xs:attribute name="value" type="real" use="optional" />
         
</xs:extension>
      
</xs:complexContent>
   
</xs:complexType>