{
  "resourceType": "StructureDefinition",
  "id": "Bundle-uv-ips",
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips",
  "name": "BundleUvIps",
  "title": "Bundle - IPS",
  "status": "active",
  "description": "This profile represents the constraints applied to the Bundle resource by the International Patient Summary (IPS) FHIR Implementation Guide.",
  "purpose": "An International Patient Summary (IPS) bundle is an electronic health record extract containing essential healthcare information about a subject of care, comprising at least the required elements of the IPS dataset. The IPS dataset is minimal and non-exhaustive; specialty-agnostic and condition-independent; but still clinically relevant. As specified in EN 17269 and ISO 27269, it is designed for supporting the use case scenario for ‘unplanned, cross border care’, but it is not limited to it. It is intended to be international, i.e., to provide generic solutions for global application beyond a particular region or country.",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "short": "International Patient Summary Bundle",
        "definition": "International Patient Summary Bundle. \r\nA container for a collection of resources in the patient summary document.",
        "constraint": [
          {
            "key": "bdl-ips-1",
            "severity": "error",
            "human": "An IPS document must have no additional Composition (including Composition subclass) resources besides the first.",
            "expression": "entry.tail().where(resource is Composition).empty()",
            "source": "http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips"
          }
        ]
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "document"
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            },
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "short": "Entry resource in the patient summary bundle",
        "definition": "An entry resource included in the patient summary document bundle resource.",
        "comment": "Must contain the IPS Composition as the first entry (only a single Composition resource instance may be included).  Additional constraints are specified in the IPS Composition profile.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:composition",
        "path": "Bundle.entry",
        "sliceName": "composition",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:composition.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Composition",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:patient",
        "path": "Bundle.entry",
        "sliceName": "patient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Patient",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:allergyintolerance",
        "path": "Bundle.entry",
        "sliceName": "allergyintolerance"
      },
      {
        "id": "Bundle.entry:allergyintolerance.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "AllergyIntolerance",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:condition",
        "path": "Bundle.entry",
        "sliceName": "condition"
      },
      {
        "id": "Bundle.entry:condition.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Condition",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Condition-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:device",
        "path": "Bundle.entry",
        "sliceName": "device"
      },
      {
        "id": "Bundle.entry:device.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Device",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:deviceusestatement",
        "path": "Bundle.entry",
        "sliceName": "deviceusestatement"
      },
      {
        "id": "Bundle.entry:deviceusestatement.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DeviceUseStatement",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:diagnosticreport",
        "path": "Bundle.entry",
        "sliceName": "diagnosticreport"
      },
      {
        "id": "Bundle.entry:diagnosticreport.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DiagnosticReport",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:imagingstudy",
        "path": "Bundle.entry",
        "sliceName": "imagingstudy"
      },
      {
        "id": "Bundle.entry:imagingstudy.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "ImagingStudy",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/ImagingStudy-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:immunization",
        "path": "Bundle.entry",
        "sliceName": "immunization"
      },
      {
        "id": "Bundle.entry:immunization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Immunization",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Immunization-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:media",
        "path": "Bundle.entry",
        "sliceName": "media"
      },
      {
        "id": "Bundle.entry:media.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Media",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Media-observation-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:medication",
        "path": "Bundle.entry",
        "sliceName": "medication"
      },
      {
        "id": "Bundle.entry:medication.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Medication",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Medication-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:medicationrequest",
        "path": "Bundle.entry",
        "sliceName": "medicationrequest"
      },
      {
        "id": "Bundle.entry:medicationrequest.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MedicationRequest",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:medicationstatement",
        "path": "Bundle.entry",
        "sliceName": "medicationstatement"
      },
      {
        "id": "Bundle.entry:medicationstatement.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MedicationStatement",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationStatement-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:practitioner",
        "path": "Bundle.entry",
        "sliceName": "practitioner"
      },
      {
        "id": "Bundle.entry:practitioner.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Practitioner",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Practitioner-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:practitionerrole",
        "path": "Bundle.entry",
        "sliceName": "practitionerrole"
      },
      {
        "id": "Bundle.entry:practitionerrole.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "PractitionerRole",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/PractitionerRole-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:procedure",
        "path": "Bundle.entry",
        "sliceName": "procedure"
      },
      {
        "id": "Bundle.entry:procedure.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Procedure",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Procedure-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:organization",
        "path": "Bundle.entry",
        "sliceName": "organization"
      },
      {
        "id": "Bundle.entry:organization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Organization-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-pregnancy-edd",
        "path": "Bundle.entry",
        "sliceName": "observation-pregnancy-edd"
      },
      {
        "id": "Bundle.entry:observation-pregnancy-edd.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-edd-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-pregnancy-outcome",
        "path": "Bundle.entry",
        "sliceName": "observation-pregnancy-outcome"
      },
      {
        "id": "Bundle.entry:observation-pregnancy-outcome.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-pregnancy-status",
        "path": "Bundle.entry",
        "sliceName": "observation-pregnancy-status"
      },
      {
        "id": "Bundle.entry:observation-pregnancy-status.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-alcohol-use",
        "path": "Bundle.entry",
        "sliceName": "observation-alcohol-use"
      },
      {
        "id": "Bundle.entry:observation-alcohol-use.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-tobacco-use",
        "path": "Bundle.entry",
        "sliceName": "observation-tobacco-use"
      },
      {
        "id": "Bundle.entry:observation-tobacco-use.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-tobaccouse-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:observation-results",
        "path": "Bundle.entry",
        "sliceName": "observation-results"
      },
      {
        "id": "Bundle.entry:observation-results.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:specimen",
        "path": "Bundle.entry",
        "sliceName": "specimen"
      },
      {
        "id": "Bundle.entry:specimen.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Specimen",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Specimen-uv-ips"
            ]
          }
        ]
      }
    ]
  }
}