<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="operationoutcome-detectedIssue" />
  <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>
  <url value="http://hl7.org/fhir/StructureDefinition/operationoutcome-detectedIssue" />
  <name value="detectedIssue" />
  <title value="Clinical Issue" />
  <status value="draft" />
  <publisher value="Health Level Seven, Inc. - [WG Name] WG" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/special/committees/FHIR" />
    </telecom>
  </contact>
  <description value="A reference to a stored contraindication that is the basis for this issue. A recipient can expect that the item referenced in this extension is being retained for record keeping purposes." />
  <fhirVersion value="3.0.0" />
  <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="OperationOutcome.issue" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Reference to a contra-indication that is the basis for this error" />
      <definition value="A reference to a stored contraindication that is the basis for this issue. A recipient can expect that the item referenced in this extension is being retained for record keeping purposes." />
      <comment value="Operation Outcome records are transient items that are returned in response to specific interactions or operations. Contraindications are items that can be stored in the patient's records as reasons that things were not done (or done). This extension allows a transient operation outcome to refer to a persistent entry in the patient record as the basis for the outcome." />
      <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/operationoutcome-detectedIssue" />
    </element>
    <element id="Extension.valueReference">
      <path value="Extension.valueReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue" />
      </type>
    </element>
  </differential>
</StructureDefinition>