<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark328" />
  <meta>
    <versionId value="spark328" />
    <lastUpdated value="2015-10-02T12:23:09.281+00:00" />
  </meta>
  <url value="http://hl7.org/fhir/StructureDefinition/datadictionary" />
  <name value="Associates the structure definition with a collection of Data Elements" />
  <status value="draft" />
  <date value="2014-01-31" />
  <publisher value="Health Level Seven, Inc. - FHIR Core WG" />
  <contact>
    <telecom>
      <system value="other" />
      <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 the defines a query that identifies the collection of relevant data elements  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.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * 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) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo." />
  <fhirVersion value="1.0.1" />
  <kind value="datatype" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="StructureDefinition" />
  <snapshot>
    <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 the defines a query that identifies the collection of relevant data elements  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.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * 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) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
      </type>
      <comments value="The query can select a set of data element resources, or identify a bundle that is a collection of data elements." />
    </element>
  </snapshot>
  <differential>
    <element>
      <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 the defines a query that identifies the collection of relevant data elements  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.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * 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) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
      </type>
      <comments value="The query can select a set of data element resources, or identify a bundle that is a collection of data elements." />
    </element>
    <element>
      <path value="Extension.extension" />
      <max value="0" />
      <name value="extension" />
    </element>
    <element>
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/datadictionary" />
    </element>
    <element>
      <path value="Extension.value[x]" />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
  <display value="Data Dictionary" />
  <constrainedType value="Extension" />
  <base value="http://hl7.org/fhir/StructureDefinition/Extension" />
</StructureDefinition>