<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="datadictionary" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/datadictionary" />
  <name value="datadictionary" />
  <title value="Data Dictionary" />
  <status value="draft" />
  <date value="2014-01-31" />
  <publisher value="Health Level Seven, Inc. - FHIR Core WG" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/special/committees/FHIR" />
    </telecom>
  </contact>
  <description value="This extension associates a structure definition with a data dictionary - a collection of data elements that any instance of data that conforms to the structure definition must also conform to. The value of the extension is a uri that defines a query that identifies the collection of relevant data elements&#xA;&#xA;This extension can be used on any structure definition that is a constraint on the resource types Observation and Questionnaire. THe profile specifies which elements are mandatory etc., but any elements in a resource that conforms to the structure definition must also conform to one of the defined data elements.&#xA;&#xA;For Observation:&#xA;* Observation.code must be associated with a matching Data Element by DataElement.code. &#xA;* The structure definition should bind Observation.code to a value set that has the same codes as the collection of data elements (though it can be narrower)&#xA;* the unit and the quantity value should conform to the rules laid down in the matching Data Element&#xA;&#xA;For Questionnaire:&#xA;* todo." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="StructureDefinition" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Associates the structure definition with a collection of Data Elements" />
      <definition value="This extension associates a structure definition with a data dictionary - a collection of data elements that any instance of data that conforms to the structure definition must also conform to. The value of the extension is a uri that defines a query that identifies the collection of relevant data elements&#xA;&#xA;This extension can be used on any structure definition that is a constraint on the resource types Observation and Questionnaire. THe profile specifies which elements are mandatory etc., but any elements in a resource that conforms to the structure definition must also conform to one of the defined data elements.&#xA;&#xA;For Observation:&#xA;* Observation.code must be associated with a matching Data Element by DataElement.code. &#xA;* The structure definition should bind Observation.code to a value set that has the same codes as the collection of data elements (though it can be narrower)&#xA;* the unit and the quantity value should conform to the rules laid down in the matching Data Element&#xA;&#xA;For Questionnaire:&#xA;* todo." />
      <comment value="The query can select a set of data element resources, or identify a bundle that is a collection of data elements." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/datadictionary" />
    </element>
    <element id="Extension.valueString">
      <path value="Extension.valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>