<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ie-core-bundle-patient-summary" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile">
    <valueCanonical value="http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips" />
  </extension>
  <url value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-patient-summary" />
  <name value="IECoreBundlePatientSummary" />
  <title value="IE Core Bundle (Patient Summary)" />
  <status value="draft" />
  <description value="The Irish Patient Summary document Bundle, derived from the HL7 Europe Patient Summary Bundle (which imposes the IPS Bundle). The first entry is IECoreCompositionPatientSummary; the patient is IECorePatientSummaryPatient. Health insurance (HIQA PS 1.3.4) travels as IECoreCoverage entries." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.eu/fhir/eps/StructureDefinition/bundle-eu-eps" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <comment value="HIQA PS 19.1.2 Document identifier (Mandatory): stable for the lifetime of the document and never reused." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:composition">
      <path value="Bundle.entry" />
      <sliceName value="composition" />
    </element>
    <element id="Bundle.entry:composition.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Composition" />
        <profile value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-composition-patient-summary" />
      </type>
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
    </element>
    <element id="Bundle.entry:patient.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Patient" />
        <profile value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient-summary-patient" />
      </type>
    </element>
    <element id="Bundle.entry:coverage">
      <path value="Bundle.entry" />
      <sliceName value="coverage" />
      <comment value="HIQA PS 1.3.4 Health insurance information (Required 0..*): type (1.3.4.1), policy or card number (1.3.4.2), insurer (1.3.4.3)." />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:coverage.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Coverage" />
        <profile value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-coverage" />
      </type>
    </element>
  </differential>
</StructureDefinition>