{
  "resourceType": "StructureDefinition",
  "id": "ie-core-bundle-patient-summary",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile",
      "valueCanonical": "http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips"
    }
  ],
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-patient-summary",
  "name": "IECoreBundlePatientSummary",
  "title": "IE Core Bundle (Patient Summary)",
  "status": "draft",
  "description": "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": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.eu/fhir/eps/StructureDefinition/bundle-eu-eps",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "comment": "HIQA PS 19.1.2 Document identifier (Mandatory): stable for the lifetime of the document and never reused.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:composition",
        "path": "Bundle.entry",
        "sliceName": "composition"
      },
      {
        "id": "Bundle.entry:composition.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Composition",
            "profile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-composition-patient-summary"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:patient",
        "path": "Bundle.entry",
        "sliceName": "patient"
      },
      {
        "id": "Bundle.entry:patient.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Patient",
            "profile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient-summary-patient"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:coverage",
        "path": "Bundle.entry",
        "sliceName": "coverage",
        "comment": "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": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:coverage.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Coverage",
            "profile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-coverage"
            ]
          }
        ]
      }
    ]
  }
}