PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.eu.hdr@0.1.0-ballot
    http://hl7.eu/fhir/hdr/StructureDefinition/bundle-eu-hdr
description: Clinical document used to represent a Hospital Discharge Report for the scope of this guide.
package_name: hl7.fhir.eu.hdr
derivation: constraint
name: BundleEuHdr
type: Bundle
elements:
  identifier: {short: Instance identifier, index: 0}
  type:
    pattern: {type: code, value: document}
    type: code
    index: 1
  timestamp: {short: Instance identifier, index: 2}
  link: {index: 3}
  entry:
    short: Entry resource in the Hospital Discharge Report bundle
    array: true
    min: 3
    index: 4
    elements:
      fullUrl: {index: 5}
      resource: {index: 6}
      search: {index: 7}
      request: {index: 8}
      response: {index: 9}
    required: [fullUrl, resource]
    slicing:
      rules: open
      discriminator:
      - {path: resource, type: type}
      - {path: resource, type: profile}
      min: 3
      slices:
        patient:
          match: {}
          schema:
            _required: true
            index: 12
            elements:
              resource: {type: Patient, index: 13}
        immunization:
          match: {}
          schema:
            array: true
            index: 28
            elements:
              resource: {type: Immunization, index: 29}
        immunizationRecommendation:
          match: {}
          schema:
            array: true
            index: 30
            elements:
              resource: {type: ImmunizationRecommendation, index: 31}
        medicationStatement:
          match: {}
          schema:
            array: true
            index: 38
            elements:
              resource: {type: MedicationStatement, index: 39}
        careplan:
          match: {}
          schema:
            array: true
            index: 64
            elements:
              resource: {type: CarePlan, index: 65}
        encounter:
          match: {}
          schema:
            array: true
            min: 1
            _required: true
            index: 14
            elements:
              resource: {type: Encounter, index: 15}
        practitionerRole:
          match: {}
          schema:
            array: true
            index: 46
            elements:
              resource: {type: PractitionerRole, index: 47}
        specimen:
          match: {}
          schema:
            array: true
            index: 54
            elements:
              resource: {type: Specimen, index: 55}
        flag:
          match: {}
          schema:
            array: true
            index: 60
            elements:
              resource: {type: Flag, index: 61}
        medicationAdministration:
          match: {}
          schema:
            array: true
            index: 42
            elements:
              resource: {type: MedicationAdministration, index: 43}
        medicationRequest:
          match: {}
          schema:
            array: true
            index: 36
            elements:
              resource: {type: MedicationRequest, index: 37}
        documentReference:
          match: {}
          schema:
            array: true
            index: 58
            elements:
              resource: {type: DocumentReference, index: 59}
        observation:
          match: {}
          schema:
            array: true
            index: 52
            elements:
              resource: {type: Observation, index: 53}
        procedure:
          match: {}
          schema:
            array: true
            index: 48
            elements:
              resource: {type: Procedure, index: 49}
        organization:
          match: {}
          schema:
            array: true
            index: 50
            elements:
              resource: {type: Organization, index: 51}
        medicationDispense:
          match: {}
          schema:
            array: true
            index: 40
            elements:
              resource: {type: MedicationDispense, index: 41}
        deviceUseStatement:
          match: {}
          schema:
            array: true
            index: 22
            elements:
              resource: {type: DeviceUseStatement, index: 23}
        diagnosticReport:
          match: {}
          schema:
            array: true
            index: 24
            elements:
              resource: {type: DiagnosticReport, index: 25}
        condition:
          match: {}
          schema:
            array: true
            index: 18
            elements:
              resource: {type: Condition, index: 19}
        practitioner:
          match: {}
          schema:
            array: true
            index: 44
            elements:
              resource: {type: Practitioner, index: 45}
        device:
          match: {}
          schema:
            array: true
            index: 20
            elements:
              resource: {type: Device, index: 21}
        composition:
          match: {}
          schema:
            _required: true
            index: 10
            elements:
              resource: {type: Composition, index: 11}
        location:
          match: {}
          schema:
            array: true
            index: 62
            elements:
              resource: {type: Location, index: 63}
        imagingStudy:
          match: {}
          schema:
            array: true
            index: 26
            elements:
              resource: {type: ImagingStudy, index: 27}
        familyMemberHistory:
          match: {}
          schema:
            array: true
            index: 56
            elements:
              resource: {type: FamilyMemberHistory, index: 57}
        media:
          match: {}
          schema:
            array: true
            index: 32
            elements:
              resource: {type: Media, index: 33}
        medication:
          match: {}
          schema:
            array: true
            index: 34
            elements:
              resource: {type: Medication, index: 35}
        allergyIntolerance:
          match: {}
          schema:
            array: true
            index: 16
            elements:
              resource: {type: AllergyIntolerance, index: 17}
  signature:
    short: Report Digital Signature
    index: 66
    elements:
      type: {short: Digital Signature Purposes, index: 67}
      when: {short: When was signed, index: 68}
      who: {short: Who signed., index: 69}
      data: {short: Signature content, index: 70}
package_version: 0.1.0-ballot
class: profile
kind: resource
url: http://hl7.eu/fhir/hdr/StructureDefinition/bundle-eu-hdr
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 0.1.0-ballot
required: [identifier, timestamp]