cda datatypes nblock voc common

Element : URL (XML Type: URL )


Package : datatypes

XML Type : URL

Comments : A telecommunications address specified according to Internet standard RFC 1738 [http://www.ietf.org/rfc/rfc1738.txt]. The URL specifies the protocol and the contact point defined by that protocol for the resource. Notable uses of the telecommunication address data type are for telephone and telefax numbers, e-mail addresses, Hypertext references, FTP references, etc.


Parent : ANY


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

constraint_datatypes_nullFlavor

  • (not self.nullFlavor.oclIsUndefined()) or (not self.value.oclIsUndefined())
  • URL must be nullFlavor, or it must have value attribute (from the schema datatypes-base.xsd, rule rule-URL)

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" abstract="true" name="URL">
      
<xs:annotation>
         
<xs:documentation>
            A telecommunications address  specified according to
            Internet standard RFC 1738
            [http://www.ietf.org/rfc/rfc1738.txt]. The
            URL specifies the protocol and the contact point defined
            by that protocol for the resource.  Notable uses of the
            telecommunication address data type are for telephone and
            telefax numbers, e-mail addresses, Hypertext references,
            FTP references, etc.
         
</xs:documentation>
         
<xs:appinfo>
            
<sch:pattern xmlns:sch="http://www.ascc.net/xml/schematron" name="validate URL">
               
<sch:rule abstract="true" id="rule-URL">
                  
<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="url" use="optional" />
         
</xs:extension>
      
</xs:complexContent>
   
</xs:complexType>