cda datatypes nblock voc common

Element : BL (XML Type: BL )


Package : datatypes

XML Type : BL

Comments : The Boolean type stands for the values of two-valued logic. A Boolean value can be either true or false, or, as any other value may be NULL.


Parent : ANY


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

constraint_datatypes_nullflavor

  • (not self.value.oclIsUndefined()) or (not self.nullFlavor.oclIsUndefined())
  • BL SHALL be nullFlavor or value attribute must be not null (from the schema of datatypes)

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BL">
      
<xs:annotation>
         
<xs:documentation>
            The Boolean type stands for the values of two-valued logic.
            A Boolean value can be either true or
            false, or, as any other value may be NULL.
         
</xs:documentation>
         
<xs:appinfo>
            
<sch:pattern xmlns:sch="http://www.ascc.net/xml/schematron" name="validate BL">
               
<sch:rule abstract="true" id="rule-BL">
                  
<sch:report test="(@nullFlavor or @value) and not(@nullFlavor and @value)" />
               
</sch:rule>
            
</sch:pattern>
         
</xs:appinfo>
      
</xs:annotation>
      
<xs:complexContent>
         
<xs:extension base="ANY">
            
<xs:attribute name="value" type="bl" use="optional" />
         
</xs:extension>
      
</xs:complexContent>
   
</xs:complexType>