<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../publish/fhir-single.xsd">
  <id value="questionnaire-referenceFilter" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="deprecated" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter" />
  <version value="4.6.0" />
  <name value="referenceFilter" />
  <status value="retired" />
  <date value="2013-07-04" />
  <publisher value="HL7" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org" />
    </telecom>
  </contact>
  <description value="Identifies a filter to apply when looking up candidate answers for the question.  **This extension has been replaced by the Structured Data Capture candidateExpression extension.**" />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Questionnaire.item" />
  </context>
  <contextInvariant value="type='reference'" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Filter to apply when looking up references" />
      <definition value="Identifies a filter to apply when looking up candidate answers for the question." />
      <comment value="The filter may include $subj and/or $encounter which should be substituted by the implementer with the subject and/or encounter id relevant in the context in which the questionnaire is being populated.     **This extension has been replaced by the Structured Data Capture candidateExpression extension.**" />
      <min value="0" />
      <max value="1" />
      <mapping>
        <identity value="rim" />
        <map value="N/A - MIF rather than RIM level" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>