<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://example.org/fhir/StructureDefinition/DocumentoFHIR" />
  <name value="DocumentoFHIR" />
  <status value="draft" />
  <fhirVersion value="3.0.2" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <definition value="Sera un bundle de tipo document para los diagnosticos" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier.use">
      <path value="Bundle.identifier.use" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier.system">
      <path value="Bundle.identifier.system" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier.value">
      <path value="Bundle.identifier.value" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier.period">
      <path value="Bundle.identifier.period" />
      <max value="0" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <definition value="FHIR Document" />
      <comment value="Se utliza este bundle para documentos de tipo diagnostico" />
      <fixedCode value="document" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.link">
      <path value="Bundle.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry.link.relation">
      <path value="Bundle.entry.link.relation" />
      <min value="0" />
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
      </type>
      <type>
        <code value="Composition" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Composition" />
      </type>
      <type>
        <code value="Encounter" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
      </type>
      <type>
        <code value="Patient" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Organization" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Practitioner" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Condition" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </type>
    </element>
    <element id="Bundle.entry.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.request">
      <path value="Bundle.entry.request" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>