HospitalDischargeReport
type: StructureDefinition
node role: treeRoot
id:
  v: HospitalDischargeReport
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition HospitalDischargeReport Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> HospitalDischargeReport 0..* Base A - Hospital Discharge Report (eHN) #xD; header 1..1 BackboneElement A.1 - Hospital Discharge Report header data element #xD; subjectIdentification 1..1 BackboneElement A.1.1 - Identification of the patient/subject #xD; given 1..* string A.1.1.1 - Given name #xD; family 1..* string A.1.1.2 - Family name/surname #xD; birthDate 1..1 dateTime A.1.1.3 - Date of birth #xD; identifier 1..* Identifier A.1.1.4 - National healthcare patient ID #xD; nationality 0..* CodeableConcept A.1.1.5 - Nationality #xD; gender 1..1 CodeableConcept A.1.1.6 - Gender #xD; countryOfAffiliation 0..1 CodeableConcept A.1.1.7 - Country of affiliation #xD; subjectContact 0..1 BackboneElement A.1.2 - Patient/subject related contact information #xD; personalContact 0..1 BackboneElement A.1.2.1 - Patient address #xD; <a href="StructureDefinition-HospitalDischargeReport-definitions.html#HospitalDischargeReport.header.subjectContact.personalContact.address" title="Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.">address 0..* Address A.1.2.1.1 - Address #xD; telecom 0..* ContactPoint A.1.2.1.2 - Telecom #xD; <a href="StructureDefinition-HospitalDischargeReport-definitions.html#HospitalDischargeReport.header.subjectContact.preferredHP" title="Preferred health professional (HP) - This section can be repeated and linked to any specific information in the document, for example a link between a rare disease problem and the rare disease specialist responsible for the care of the individual pat…
url:
  v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HospitalDischargeReport
version:
  v: 0.1.0
name:
  v: HospitalDischargeReportEHN
title:
  v: A - Hospital Discharge Report (eHN)
status:
  v: draft
date:
  v: 2025-10-10T16:32:47+00:00
publisher:
  v: XpanDH Project
contact:
  name:
    v: XpanDH Project
  telecom:
    system:
      v: url
    value:
      v: https://xpandh-project.iscte-iul.pt
description:
  v: Hospital Discharge Report Maturity Level: 0 Draft
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 150
    display:
      v: Europe
copyright:
  v: Used by permission of the XpanDH project, all rights reserved Creative Commons License
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: fhir
  uri:
    v: hl7.org/fhir/r4
  name:
    v: Hospital Discharge Report model to FHIR R4 Map
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HospitalDischargeReport
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: HospitalDischargeReport
    path:
      v: HospitalDischargeReport
    short:
      v: A - Hospital Discharge Report (eHN)
    definition:
      v: Hospital Discharge Report Maturity Level: 0 Draft
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: fhir
      map:
        v: TBD
  element:
    id:
      v: HospitalDischargeReport.header
    path:
      v: HospitalDischargeReport.header
    short:
      v: A.1 - Hospital Discharge Report header data element
    definition:
      v: Hospital Discharge Report header data element
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: HospitalDischargeReport.header
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    mapping:
      identity:
        v: fhir
      map:
        v: TBD
  element:
    id:
      v: HospitalDischargeReport.header.id
    path:
      v: HospitalDischargeReport.header.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: HospitalDischargeReport.header.extension
    path:
      v: HospitalDischargeReport.header.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
    comment:
      v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *

url
v: string

v: value

v: url

code:
  v: Extension

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

key:
  v: ext-1
severity:
  v: error
human:
  v: Must have either extensions or value[x], not both
expression:
  v: extension.exists() != value.exists()
xpath:
  v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
source:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  link: http://hl7.org/fhir/StructureDefinition/Extension

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: HospitalDischargeReport.header.modifierExtension
path:
  v: HospitalDischargeReport.header.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectIdentification
path:
  v: HospitalDischargeReport.header.subjectIdentification
short:
  v: A.1.1 - Identification of the patient/subject
definition:
  v: Identification of the patient/subject
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.id
path:
  v: HospitalDischargeReport.header.subjectIdentification.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectIdentification.extension
path:
  v: HospitalDischargeReport.header.subjectIdentification.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectIdentification.modifierExtension
path:
  v: HospitalDischargeReport.header.subjectIdentification.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectIdentification.given
path:
  v: HospitalDischargeReport.header.subjectIdentification.given
short:
  v: A.1.1.1 - Given name
definition:
  v: The given name/first name of the patient (also known as forename or first name). This field can contain more than one element.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.given
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.family
path:
  v: HospitalDischargeReport.header.subjectIdentification.family
short:
  v: A.1.1.2 - Family name/surname
definition:
  v: The family name/surname/last name of the patient. This field can contain more than one element or multiple fields could be present.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.family
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.birthDate
path:
  v: HospitalDischargeReport.header.subjectIdentification.birthDate
short:
  v: A.1.1.3 - Date of birth
definition:
  v: Complete date, following the ISO 8601.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.birthDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.identifier
path:
  v: HospitalDischargeReport.header.subjectIdentification.identifier
short:
  v: A.1.1.4 - National healthcare patient ID
definition:
  v: An identifier of the patient that is unique within a defined scope. Example: National ID (birth number) for a Czech patient. Multiple identifiers could be provided
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.identifier
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.nationality
path:
  v: HospitalDischargeReport.header.subjectIdentification.nationality
short:
  v: A.1.1.5 - Nationality
definition:
  v: Nationality of the patient.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.nationality
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.gender
path:
  v: HospitalDischargeReport.header.subjectIdentification.gender
short:
  v: A.1.1.6 - Gender
definition:
  v: This field must contain a recognised valid value for "administrative gender". If different, "physiological gender" should be communicated elsewhere in the relevant clinical information section.
comment:
  v: HL7 Administrative Gender
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.gender
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectIdentification.countryOfAffiliation
path:
  v: HospitalDischargeReport.header.subjectIdentification.countryOfAffiliation
short:
  v: A.1.1.7 - Country of affiliation
definition:
  v: Name of country of affiliation
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectIdentification.countryOfAffiliation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact
path:
  v: HospitalDischargeReport.header.subjectContact
short:
  v: A.1.2 - Patient/subject related contact information
definition:
  v: Patient/subject related contact information
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.id
path:
  v: HospitalDischargeReport.header.subjectContact.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.extension
path:
  v: HospitalDischargeReport.header.subjectContact.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.modifierExtension
path:
  v: HospitalDischargeReport.header.subjectContact.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact
short:
  v: A.1.2.1 - Patient address
definition:
  v: Patient address
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.personalContact
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.id
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.extension
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.modifierExtension
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.address
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.address
short:
  v: A.1.2.1.1 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.personalContact.address
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.telecom
short:
  v: A.1.2.1.2 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.personalContact.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP
short:
  v: A.1.2.2 - Preferred health professional (HP) - This section can be repeated and linked to any specific information in the document, for example a link between a rare disease problem and the rare disease specialist responsible for the care of the individual patient (this section).
definition:
  v: Preferred health professional (HP) - This section can be repeated and linked to any specific information in the document, for example a link between a rare disease problem and the rare disease specialist responsible for the care of the individual patient (this section).
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.id
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.extension
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.modifierExtension
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.identifier
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.identifier
short:
  v: A.1.2.2.1 - Identifier of the HP
definition:
  v: An identifier of the health professional that is unique within a defined scope. Example: National health professional ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.name
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.name
short:
  v: A.1.2.2.2 - Name of the HP
definition:
  v: Name of the health professional that has been treating or taking responsibility for the patient.[the structure of the name will be the same as for the patient (given name, family name / surname)]
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.role
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.role
short:
  v: A.1.2.2.3 - Role of the HP
definition:
  v: Health professional role. Multiple roles could be provided.
comment:
  v: ISCO
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.role
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.organization
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.organization
short:
  v: A.1.2.2.4 - HP Organisation
definition:
  v: Health professional organisation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.address
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.address
short:
  v: A.1.2.2.5 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.address
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.telecom
short:
  v: A.1.2.2.6 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.preferredHP.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson
short:
  v: A.1.2.3 - Contact person/ legal guardian (multiple contacts could be provided)
definition:
  v: Contact person/ legal guardian (multiple contacts could be provided)
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.id
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.extension
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.modifierExtension
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.role
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.role
short:
  v: A.1.2.3.1 - Role of that person
definition:
  v: Role of the contact person: legal guardian, next of kin, other person to contact.
comment:
  v: HL7 RoleClass
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.role
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.relationship
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.relationship
short:
  v: A.1.2.3.2 - Relationship level
definition:
  v: Relationship type with the patient (e.g. father, wife, daughter)
comment:
  v: HL7 RoleCodeSNOMED CT
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.relationship
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.given
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.given
short:
  v: A.1.2.3.4 - Given name
definition:
  v: Given name of the contact person/guardian . This field can contain more than one element.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.given
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.family
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.family
short:
  v: A.1.2.3.5 - Family name/surname
definition:
  v: Family name of the contact person. This field can contain more than one element [the structure of the name will be the same as for the patient (given name, family name / surname)]..
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.family
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.address
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.address
short:
  v: A.1.2.3.6 - Address
definition:
  v: Mailing, home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.address
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.telecom
short:
  v: A.1.2.3.7 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.organization
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.organization
short:
  v: A.1.2.3.8 - Contact person organisation
definition:
  v: Contact person organisation information.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.subjectContact.contactPerson.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer
path:
  v: HospitalDischargeReport.header.payer
short:
  v: A.1.3 - Health insurance and payment information - Health insurance information is not always required, however, in some jurisdictions, the insurance number is also used as the patient identifier. It is necessary not just for identification but also forms access to funding for care.
definition:
  v: Health insurance and payment information - Health insurance information is not always required, however, in some jurisdictions, the insurance number is also used as the patient identifier. It is necessary not just for identification but also forms access to funding for care.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.payer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.id
path:
  v: HospitalDischargeReport.header.payer.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.payer.extension
path:
  v: HospitalDischargeReport.header.payer.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.payer.modifierExtension
path:
  v: HospitalDischargeReport.header.payer.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.payer.insuranceCode
path:
  v: HospitalDischargeReport.header.payer.insuranceCode
short:
  v: A.1.3.1 - Health insurance code
definition:
  v: Unique health insurance company identification code.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.payer.insuranceCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.insuranceName
path:
  v: HospitalDischargeReport.header.payer.insuranceName
short:
  v: A.1.3.2 - Health insurance name
definition:
  v: Full, official name of the healthcare insurance provider.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.payer.insuranceName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.insuranceNumber
path:
  v: HospitalDischargeReport.header.payer.insuranceNumber
short:
  v: A.1.3.3 - Health insurance number
definition:
  v: Number or code under which the insured person is registered at the insurance provider.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.payer.insuranceNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient
path:
  v: HospitalDischargeReport.header.informationRecipient
short:
  v: A.1.4 - Information recipient - (intended recipient or recipients of the report), if applicable
definition:
  v: Information recipient - (intended recipient or recipients of the report), if applicable
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.id
path:
  v: HospitalDischargeReport.header.informationRecipient.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.informationRecipient.extension
path:
  v: HospitalDischargeReport.header.informationRecipient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.informationRecipient.modifierExtension
path:
  v: HospitalDischargeReport.header.informationRecipient.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.informationRecipient.identifier
path:
  v: HospitalDischargeReport.header.informationRecipient.identifier
short:
  v: A.1.4.1 - Recipient identifier
definition:
  v: The health professional or patient identifier. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number. In case when the recipient is not a health professional, e.g. patient, appropriate personal identifier could be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.name
path:
  v: HospitalDischargeReport.header.informationRecipient.name
short:
  v: A.1.4.2 - Recipient name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.organizationID
path:
  v: HospitalDischargeReport.header.informationRecipient.organizationID
short:
  v: A.1.4.3 - Recipient organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.organizationID
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.organization
path:
  v: HospitalDischargeReport.header.informationRecipient.organization
short:
  v: A.1.4.4 - Recipient organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.address
path:
  v: HospitalDischargeReport.header.informationRecipient.address
short:
  v: A.1.4.5 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.address
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.country
path:
  v: HospitalDischargeReport.header.informationRecipient.country
short:
  v: A.1.4.6 - Country
definition:
  v: Country of the intended recipient as part of the address.
comment:
  v: ISO 3166
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.country
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.telecom
path:
  v: HospitalDischargeReport.header.informationRecipient.telecom
short:
  v: A.1.4.7 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated to a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.informationRecipient.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author
path:
  v: HospitalDischargeReport.header.author
short:
  v: A.1.5 - Author (by whom the Hospital discharge report was/were authored). Multiple authors could be provided.
definition:
  v: Author (by whom the Hospital discharge report was/were authored). Multiple authors could be provided.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.author
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.id
path:
  v: HospitalDischargeReport.header.author.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.author.extension
path:
  v: HospitalDischargeReport.header.author.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.author.modifierExtension
path:
  v: HospitalDischargeReport.header.author.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.author.identifier
path:
  v: HospitalDischargeReport.header.author.identifier
short:
  v: A.1.5.1 - Author identifier
definition:
  v: The health professional identifier that will allow addressing recipients within a national or international data exchange infrastructure, such as the licence or registration number. In case when the recipient is not a health professional, e.g. patient, appropriate personal identifier should be used.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.author.identifier
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.name
path:
  v: HospitalDischargeReport.header.author.name
short:
  v: A.1.5.2 - Author name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.author.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.organizationID
path:
  v: HospitalDischargeReport.header.author.organizationID
short:
  v: A.1.5.3 - Author organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.author.organizationID
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.organization
path:
  v: HospitalDischargeReport.header.author.organization
short:
  v: A.1.5.4 - Author organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.author.organization
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.dateTime
path:
  v: HospitalDischargeReport.header.author.dateTime
short:
  v: A.1.5.5 - Date Time
definition:
  v: Date and time of the last modification of the document by its Author.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.author.dateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester
path:
  v: HospitalDischargeReport.header.attester
short:
  v: A.1.6 - Attester (multiple attesters could be provided)
definition:
  v: Attester (multiple attesters could be provided)
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.attester
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.id
path:
  v: HospitalDischargeReport.header.attester.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.attester.extension
path:
  v: HospitalDischargeReport.header.attester.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.attester.modifierExtension
path:
  v: HospitalDischargeReport.header.attester.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.attester.identifier
path:
  v: HospitalDischargeReport.header.attester.identifier
short:
  v: A.1.6.1 - Attester identifier
definition:
  v: The health professional identification number. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.attester.identifier
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.name
path:
  v: HospitalDischargeReport.header.attester.name
short:
  v: A.1.6.2 - Attester name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.attester.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.organizationID
path:
  v: HospitalDischargeReport.header.attester.organizationID
short:
  v: A.1.6.3 - Attester organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.attester.organizationID
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.organization
path:
  v: HospitalDischargeReport.header.attester.organization
short:
  v: A.1.6.4 - Attester organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.attester.organization
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.dateTime
path:
  v: HospitalDischargeReport.header.attester.dateTime
short:
  v: A.1.6.5 - Approval date and time
definition:
  v: Date and time of the approval of the document by Attester.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.attester.dateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator
path:
  v: HospitalDischargeReport.header.legalAuthenticator
short:
  v: A.1.7 - Legal authenticator (The person taking responsibility for the medical content of the document)
definition:
  v: Legal authenticator (The person taking responsibility for the medical content of the document)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.id
path:
  v: HospitalDischargeReport.header.legalAuthenticator.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.legalAuthenticator.extension
path:
  v: HospitalDischargeReport.header.legalAuthenticator.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.legalAuthenticator.modifierExtension
path:
  v: HospitalDischargeReport.header.legalAuthenticator.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.legalAuthenticator.identifier
path:
  v: HospitalDischargeReport.header.legalAuthenticator.identifier
short:
  v: A.1.7.1 - Legal authenticator identifier
definition:
  v: The health professional identification number. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number. Multiple identifiers could be provided.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator.identifier
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.name
path:
  v: HospitalDischargeReport.header.legalAuthenticator.name
short:
  v: A.1.7.2 - Legal authenticator name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.organizationID
path:
  v: HospitalDischargeReport.header.legalAuthenticator.organizationID
short:
  v: A.1.7.3 - Legal authenticator organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator.organizationID
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.organization
path:
  v: HospitalDischargeReport.header.legalAuthenticator.organization
short:
  v: A.1.7.4 - Legal authenticator organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator.organization
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.dateTime
path:
  v: HospitalDischargeReport.header.legalAuthenticator.dateTime
short:
  v: A.1.7.5 - Authentication date and time
definition:
  v: Date and time when the document was authorised.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.legalAuthenticator.dateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata
path:
  v: HospitalDischargeReport.header.documentMetadata
short:
  v: A.1.8 - Document metadata
definition:
  v: Document metadata
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.id
path:
  v: HospitalDischargeReport.header.documentMetadata.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.documentMetadata.extension
path:
  v: HospitalDischargeReport.header.documentMetadata.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.header.documentMetadata.modifierExtension
path:
  v: HospitalDischargeReport.header.documentMetadata.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.header.documentMetadata.identifier
path:
  v: HospitalDischargeReport.header.documentMetadata.identifier
short:
  v: A.1.8.1 - Document ID
definition:
  v: Unique identifier of the document
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.identifier
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.type
path:
  v: HospitalDischargeReport.header.documentMetadata.type
short:
  v: A.1.8.2 - Document type
definition:
  v: Identifies the type of document at hand, e.g. Hospital discharge report.
comment:
  v: LOINC
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.status
path:
  v: HospitalDischargeReport.header.documentMetadata.status
short:
  v: A.1.8.3 - Document status
definition:
  v: The status of the Hospital discharge report. E.g., preliminary, final.
comment:
  v: hl7:CompositionStatus
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.dateTime
path:
  v: HospitalDischargeReport.header.documentMetadata.dateTime
short:
  v: A.1.8.4 - Report date and time
definition:
  v: Date and time of the Hospital discharge report creation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.dateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.title
path:
  v: HospitalDischargeReport.header.documentMetadata.title
short:
  v: A.1.8.5 - Document title
definition:
  v: Document title, fix value "Hospital discharge report".
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.title
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.custodian
path:
  v: HospitalDischargeReport.header.documentMetadata.custodian
short:
  v: A.1.8.6 - Report custodian
definition:
  v: Organisation that is in charge of maintaining the report [this element will include organisation ID, name, address etc., as other elements describing organisations].
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.custodian
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.confidentiality
path:
  v: HospitalDischargeReport.header.documentMetadata.confidentiality
short:
  v: A.1.8.7 - Confidentiality
definition:
  v: Level of confidentiality of the document. Implicit value is normal.
comment:
  v: hl7:Confidentiality
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.confidentiality
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.language
path:
  v: HospitalDischargeReport.header.documentMetadata.language
short:
  v: A.1.8.8 - Language
definition:
  v: Language in which the document is written. Language is expressed by the ISO language code.
comment:
  v: ISO 639
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.language
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.version
path:
  v: HospitalDischargeReport.header.documentMetadata.version
short:
  v: A.1.8.9 - Version
definition:
  v: Version of the document
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.header.documentMetadata.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.body
path:
  v: HospitalDischargeReport.body
short:
  v: A.2 - Hospital Discharge Report body data element
definition:
  v: Hospital Discharge Report body data element
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: HospitalDischargeReport.body.id
path:
  v: HospitalDischargeReport.body.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.body.extension
path:
  v: HospitalDischargeReport.body.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HospitalDischargeReport.body.modifierExtension
path:
  v: HospitalDischargeReport.body.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: HospitalDischargeReport.body.presentedForm
path:
  v: HospitalDischargeReport.body.presentedForm
short:
  v: A.2.0 - Hospital Discharge Report in its narrative form
definition:
  v: Hospital Discharge Report in its narrative form
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.presentedForm
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement

id:
  v: HospitalDischargeReport.body.advanceDirectives
path:
  v: HospitalDischargeReport.body.advanceDirectives
short:
  v: A.2.1 - Advance directives
definition:
  v: Advance directives
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.advanceDirectives
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAdvanceDirectives

id:
  v: HospitalDischargeReport.body.alerts
path:
  v: HospitalDischargeReport.body.alerts
short:
  v: A.2.2 - Alerts
definition:
  v: Alerts
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.alerts
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAlerts

id:
  v: HospitalDischargeReport.body.encounter
path:
  v: HospitalDischargeReport.body.encounter
short:
  v: A.2.3 - Encounter [Mandatory]
definition:
  v: A.2.3-Encounter [Mandatory]
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.encounter
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDREncounter

id:
  v: HospitalDischargeReport.body.admissionEvaluation
path:
  v: HospitalDischargeReport.body.admissionEvaluation
short:
  v: A.2.4 - Admission evaluation - Admission status should be reported exceptionally only if it is relevant to ensure continuity of care.
definition:
  v: Admission evaluation - Admission status should be reported exceptionally only if it is relevant to ensure continuity of care.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.admissionEvaluation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAdmissionEvaluation

id:
  v: HospitalDischargeReport.body.patientHistory
path:
  v: HospitalDischargeReport.body.patientHistory
short:
  v: A.2.6 - Patient history
definition:
  v: Patient history (might include information about provenance of the information)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.patientHistory
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRPatientHistory

id:
  v: HospitalDischargeReport.body.hospitalStay
path:
  v: HospitalDischargeReport.body.hospitalStay
short:
  v: A.2.7 - Course of hospitalisation (Hospital stay)
definition:
  v: Course of hospitalisation (Hospital stay)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.hospitalStay
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRHospitalStay

id:
  v: HospitalDischargeReport.body.dischargeDetails
path:
  v: HospitalDischargeReport.body.dischargeDetails
short:
  v: A.2.8 - Discharge details
definition:
  v: Discharge details (structured information should be provided, however if not available, at least a summary note should be present).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.dischargeDetails
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRDischargeDetails

id:
  v: HospitalDischargeReport.body.recommendations
path:
  v: HospitalDischargeReport.body.recommendations
short:
  v: A.2.9 - Care plan and other recommendations after discharge.
definition:
  v: Care plan and other recommendations after discharge.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HospitalDischargeReport.body.recommendations
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRRecommendations

element:
  id:
    v: HospitalDischargeReport
  path:
    v: HospitalDischargeReport
  short:
    v: A - Hospital Discharge Report (eHN)
  definition:
    v: Hospital Discharge Report Maturity Level: 0 Draft
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header
  path:
    v: HospitalDischargeReport.header
  short:
    v: A.1 - Hospital Discharge Report header data element
  definition:
    v: Hospital Discharge Report header data element
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification
  path:
    v: HospitalDischargeReport.header.subjectIdentification
  short:
    v: A.1.1 - Identification of the patient/subject
  definition:
    v: Identification of the patient/subject
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.given
  path:
    v: HospitalDischargeReport.header.subjectIdentification.given
  short:
    v: A.1.1.1 - Given name
  definition:
    v: The given name/first name of the patient (also known as forename or first name). This field can contain more than one element.
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: string
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.family
  path:
    v: HospitalDischargeReport.header.subjectIdentification.family
  short:
    v: A.1.1.2 - Family name/surname
  definition:
    v: The family name/surname/last name of the patient. This field can contain more than one element or multiple fields could be present.
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: string
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.birthDate
  path:
    v: HospitalDischargeReport.header.subjectIdentification.birthDate
  short:
    v: A.1.1.3 - Date of birth
  definition:
    v: Complete date, following the ISO 8601.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.identifier
  path:
    v: HospitalDischargeReport.header.subjectIdentification.identifier
  short:
    v: A.1.1.4 - National healthcare patient ID
  definition:
    v: An identifier of the patient that is unique within a defined scope. Example: National ID (birth number) for a Czech patient. Multiple identifiers could be provided
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Identifier
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.nationality
  path:
    v: HospitalDischargeReport.header.subjectIdentification.nationality
  short:
    v: A.1.1.5 - Nationality
  definition:
    v: Nationality of the patient.
  comment:
    v: ISO 3166
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CodeableConcept
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.gender
  path:
    v: HospitalDischargeReport.header.subjectIdentification.gender
  short:
    v: A.1.1.6 - Gender
  definition:
    v: This field must contain a recognised valid value for "administrative gender". If different, "physiological gender" should be communicated elsewhere in the relevant clinical information section.
  comment:
    v: HL7 Administrative Gender
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
  mapping:
    identity:
      v: fhir
    map:
      v: TBD
element:
  id:
    v: HospitalDischargeReport.header.subjectIdentification.countryOfAffiliation
  path:
    v: HospitalDischargeReport.header.subjectIdentification.countryOfAffiliation
  short:
    v: A.1.1.7 - Country of affiliation
  definition:
    v: Name of country of affiliation
  comment:
    v: ISO 3166
  min:
    v: 0
  max:
    v: 1

code:
  v: CodeableConcept

identity:
  v: fhir
map:
  v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact
path:
  v: HospitalDischargeReport.header.subjectContact
short:
  v: A.1.2 - Patient/subject related contact information
definition:
  v: Patient/subject related contact information
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact
short:
  v: A.1.2.1 - Patient address
definition:
  v: Patient address
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.address
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.address
short:
  v: A.1.2.1.1 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: *
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.personalContact.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.personalContact.telecom
short:
  v: A.1.2.1.2 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP
short:
  v: A.1.2.2 - Preferred health professional (HP) - This section can be repeated and linked to any specific information in the document, for example a link between a rare disease problem and the rare disease specialist responsible for the care of the individual patient (this section).
definition:
  v: Preferred health professional (HP) - This section can be repeated and linked to any specific information in the document, for example a link between a rare disease problem and the rare disease specialist responsible for the care of the individual patient (this section).
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.identifier
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.identifier
short:
  v: A.1.2.2.1 - Identifier of the HP
definition:
  v: An identifier of the health professional that is unique within a defined scope. Example: National health professional ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.name
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.name
short:
  v: A.1.2.2.2 - Name of the HP
definition:
  v: Name of the health professional that has been treating or taking responsibility for the patient.[the structure of the name will be the same as for the patient (given name, family name / surname)]
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.role
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.role
short:
  v: A.1.2.2.3 - Role of the HP
definition:
  v: Health professional role. Multiple roles could be provided.
comment:
  v: ISCO
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.organization
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.organization
short:
  v: A.1.2.2.4 - HP Organisation
definition:
  v: Health professional organisation
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.address
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.address
short:
  v: A.1.2.2.5 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.preferredHP.telecom
short:
  v: A.1.2.2.6 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson
short:
  v: A.1.2.3 - Contact person/ legal guardian (multiple contacts could be provided)
definition:
  v: Contact person/ legal guardian (multiple contacts could be provided)
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.role
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.role
short:
  v: A.1.2.3.1 - Role of that person
definition:
  v: Role of the contact person: legal guardian, next of kin, other person to contact.
comment:
  v: HL7 RoleClass
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.relationship
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.relationship
short:
  v: A.1.2.3.2 - Relationship level
definition:
  v: Relationship type with the patient (e.g. father, wife, daughter)
comment:
  v: HL7 RoleCodeSNOMED CT
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.given
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.given
short:
  v: A.1.2.3.4 - Given name
definition:
  v: Given name of the contact person/guardian . This field can contain more than one element.
min:
  v: 1
max:
  v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.family
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.family
short:
  v: A.1.2.3.5 - Family name/surname
definition:
  v: Family name of the contact person. This field can contain more than one element [the structure of the name will be the same as for the patient (given name, family name / surname)]..
min:
  v: 1
max:
  v: *
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.address
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.address
short:
  v: A.1.2.3.6 - Address
definition:
  v: Mailing, home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
comment:
  v: ISO 3166
min:
  v: 0
max:
  v: *
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.telecom
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.telecom
short:
  v: A.1.2.3.7 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated with a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.organization
path:
  v: HospitalDischargeReport.header.subjectContact.contactPerson.organization
short:
  v: A.1.2.3.8 - Contact person organisation
definition:
  v: Contact person organisation information.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer
path:
  v: HospitalDischargeReport.header.payer
short:
  v: A.1.3 - Health insurance and payment information - Health insurance information is not always required, however, in some jurisdictions, the insurance number is also used as the patient identifier. It is necessary not just for identification but also forms access to funding for care.
definition:
  v: Health insurance and payment information - Health insurance information is not always required, however, in some jurisdictions, the insurance number is also used as the patient identifier. It is necessary not just for identification but also forms access to funding for care.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.insuranceCode
path:
  v: HospitalDischargeReport.header.payer.insuranceCode
short:
  v: A.1.3.1 - Health insurance code
definition:
  v: Unique health insurance company identification code.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.insuranceName
path:
  v: HospitalDischargeReport.header.payer.insuranceName
short:
  v: A.1.3.2 - Health insurance name
definition:
  v: Full, official name of the healthcare insurance provider.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.payer.insuranceNumber
path:
  v: HospitalDischargeReport.header.payer.insuranceNumber
short:
  v: A.1.3.3 - Health insurance number
definition:
  v: Number or code under which the insured person is registered at the insurance provider.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient
path:
  v: HospitalDischargeReport.header.informationRecipient
short:
  v: A.1.4 - Information recipient - (intended recipient or recipients of the report), if applicable
definition:
  v: Information recipient - (intended recipient or recipients of the report), if applicable
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.identifier
path:
  v: HospitalDischargeReport.header.informationRecipient.identifier
short:
  v: A.1.4.1 - Recipient identifier
definition:
  v: The health professional or patient identifier. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number. In case when the recipient is not a health professional, e.g. patient, appropriate personal identifier could be used.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.name
path:
  v: HospitalDischargeReport.header.informationRecipient.name
short:
  v: A.1.4.2 - Recipient name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 0
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.organizationID
path:
  v: HospitalDischargeReport.header.informationRecipient.organizationID
short:
  v: A.1.4.3 - Recipient organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.organization
path:
  v: HospitalDischargeReport.header.informationRecipient.organization
short:
  v: A.1.4.4 - Recipient organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.address
path:
  v: HospitalDischargeReport.header.informationRecipient.address
short:
  v: A.1.4.5 - Address
definition:
  v: Mailing and home or office addresses. The addresses are always sequences of address parts (e.g. street address line, country, postcode, city) even if postal address formats may vary depending on the country. An address may or may not include a specific use code; if this attribute is not present it is assumed to be the default address useful for any purpose.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Address
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.country
path:
  v: HospitalDischargeReport.header.informationRecipient.country
short:
  v: A.1.4.6 - Country
definition:
  v: Country of the intended recipient as part of the address.
comment:
  v: ISO 3166
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.informationRecipient.telecom
path:
  v: HospitalDischargeReport.header.informationRecipient.telecom
short:
  v: A.1.4.7 - Telecom
definition:
  v: Telecommunication contact information (addresses) associated to a person, such as phone number, email, or messaging service. Multiple telecommunication addresses might be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author
path:
  v: HospitalDischargeReport.header.author
short:
  v: A.1.5 - Author (by whom the Hospital discharge report was/were authored). Multiple authors could be provided.
definition:
  v: Author (by whom the Hospital discharge report was/were authored). Multiple authors could be provided.
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.identifier
path:
  v: HospitalDischargeReport.header.author.identifier
short:
  v: A.1.5.1 - Author identifier
definition:
  v: The health professional identifier that will allow addressing recipients within a national or international data exchange infrastructure, such as the licence or registration number. In case when the recipient is not a health professional, e.g. patient, appropriate personal identifier should be used.
min:
  v: 1
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.name
path:
  v: HospitalDischargeReport.header.author.name
short:
  v: A.1.5.2 - Author name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.organizationID
path:
  v: HospitalDischargeReport.header.author.organizationID
short:
  v: A.1.5.3 - Author organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.organization
path:
  v: HospitalDischargeReport.header.author.organization
short:
  v: A.1.5.4 - Author organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.author.dateTime
path:
  v: HospitalDischargeReport.header.author.dateTime
short:
  v: A.1.5.5 - Date Time
definition:
  v: Date and time of the last modification of the document by its Author.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester
path:
  v: HospitalDischargeReport.header.attester
short:
  v: A.1.6 - Attester (multiple attesters could be provided)
definition:
  v: Attester (multiple attesters could be provided)
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.identifier
path:
  v: HospitalDischargeReport.header.attester.identifier
short:
  v: A.1.6.1 - Attester identifier
definition:
  v: The health professional identification number. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number.
min:
  v: 1
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.name
path:
  v: HospitalDischargeReport.header.attester.name
short:
  v: A.1.6.2 - Attester name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.organizationID
path:
  v: HospitalDischargeReport.header.attester.organizationID
short:
  v: A.1.6.3 - Attester organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.organization
path:
  v: HospitalDischargeReport.header.attester.organization
short:
  v: A.1.6.4 - Attester organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.attester.dateTime
path:
  v: HospitalDischargeReport.header.attester.dateTime
short:
  v: A.1.6.5 - Approval date and time
definition:
  v: Date and time of the approval of the document by Attester.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator
path:
  v: HospitalDischargeReport.header.legalAuthenticator
short:
  v: A.1.7 - Legal authenticator (The person taking responsibility for the medical content of the document)
definition:
  v: Legal authenticator (The person taking responsibility for the medical content of the document)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.identifier
path:
  v: HospitalDischargeReport.header.legalAuthenticator.identifier
short:
  v: A.1.7.1 - Legal authenticator identifier
definition:
  v: The health professional identification number. Either an internal identifier assigned by a healthcare provider institution or (preferably) a national health professional ID such as the licence or registration number. Multiple identifiers could be provided.
min:
  v: 1
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.name
path:
  v: HospitalDischargeReport.header.legalAuthenticator.name
short:
  v: A.1.7.2 - Legal authenticator name
definition:
  v: Person name [the structure of the name will be the same as for the patient (given name, family name / surname)].
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.organizationID
path:
  v: HospitalDischargeReport.header.legalAuthenticator.organizationID
short:
  v: A.1.7.3 - Legal authenticator organisation ID
definition:
  v: The healthcare provider organisation identifier. Identifier that is unique within a defined scope. Example: National healthcare provider ID. Multiple identifiers could be provided.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.organization
path:
  v: HospitalDischargeReport.header.legalAuthenticator.organization
short:
  v: A.1.7.4 - Legal authenticator organisation
definition:
  v: The healthcare provider organisation information.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.legalAuthenticator.dateTime
path:
  v: HospitalDischargeReport.header.legalAuthenticator.dateTime
short:
  v: A.1.7.5 - Authentication date and time
definition:
  v: Date and time when the document was authorised.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata
path:
  v: HospitalDischargeReport.header.documentMetadata
short:
  v: A.1.8 - Document metadata
definition:
  v: Document metadata
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.identifier
path:
  v: HospitalDischargeReport.header.documentMetadata.identifier
short:
  v: A.1.8.1 - Document ID
definition:
  v: Unique identifier of the document
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.type
path:
  v: HospitalDischargeReport.header.documentMetadata.type
short:
  v: A.1.8.2 - Document type
definition:
  v: Identifies the type of document at hand, e.g. Hospital discharge report.
comment:
  v: LOINC
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.status
path:
  v: HospitalDischargeReport.header.documentMetadata.status
short:
  v: A.1.8.3 - Document status
definition:
  v: The status of the Hospital discharge report. E.g., preliminary, final.
comment:
  v: hl7:CompositionStatus
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.dateTime
path:
  v: HospitalDischargeReport.header.documentMetadata.dateTime
short:
  v: A.1.8.4 - Report date and time
definition:
  v: Date and time of the Hospital discharge report creation.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.title
path:
  v: HospitalDischargeReport.header.documentMetadata.title
short:
  v: A.1.8.5 - Document title
definition:
  v: Document title, fix value "Hospital discharge report".
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.custodian
path:
  v: HospitalDischargeReport.header.documentMetadata.custodian
short:
  v: A.1.8.6 - Report custodian
definition:
  v: Organisation that is in charge of maintaining the report [this element will include organisation ID, name, address etc., as other elements describing organisations].
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.confidentiality
path:
  v: HospitalDischargeReport.header.documentMetadata.confidentiality
short:
  v: A.1.8.7 - Confidentiality
definition:
  v: Level of confidentiality of the document. Implicit value is normal.
comment:
  v: hl7:Confidentiality
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.language
path:
  v: HospitalDischargeReport.header.documentMetadata.language
short:
  v: A.1.8.8 - Language
definition:
  v: Language in which the document is written. Language is expressed by the ISO language code.
comment:
  v: ISO 639
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.header.documentMetadata.version
path:
  v: HospitalDischargeReport.header.documentMetadata.version
short:
  v: A.1.8.9 - Version
definition:
  v: Version of the document
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: fhir
  map:
    v: TBD

id:
  v: HospitalDischargeReport.body
path:
  v: HospitalDischargeReport.body
short:
  v: A.2 - Hospital Discharge Report body data element
definition:
  v: Hospital Discharge Report body data element
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: HospitalDischargeReport.body.presentedForm
path:
  v: HospitalDischargeReport.body.presentedForm
short:
  v: A.2.0 - Hospital Discharge Report in its narrative form
definition:
  v: Hospital Discharge Report in its narrative form
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: HospitalDischargeReport.body.advanceDirectives
path:
  v: HospitalDischargeReport.body.advanceDirectives
short:
  v: A.2.1 - Advance directives
definition:
  v: Advance directives
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAdvanceDirectives

id:
  v: HospitalDischargeReport.body.alerts
path:
  v: HospitalDischargeReport.body.alerts
short:
  v: A.2.2 - Alerts
definition:
  v: Alerts
min:
  v: 1
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAlerts

id:
  v: HospitalDischargeReport.body.encounter
path:
  v: HospitalDischargeReport.body.encounter
short:
  v: A.2.3 - Encounter [Mandatory]
definition:
  v: A.2.3-Encounter [Mandatory]
min:
  v: 1
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDREncounter

id:
  v: HospitalDischargeReport.body.admissionEvaluation
path:
  v: HospitalDischargeReport.body.admissionEvaluation
short:
  v: A.2.4 - Admission evaluation - Admission status should be reported exceptionally only if it is relevant to ensure continuity of care.
definition:
  v: Admission evaluation - Admission status should be reported exceptionally only if it is relevant to ensure continuity of care.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRAdmissionEvaluation

id:
  v: HospitalDischargeReport.body.patientHistory
path:
  v: HospitalDischargeReport.body.patientHistory
short:
  v: A.2.6 - Patient history
definition:
  v: Patient history (might include information about provenance of the information)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRPatientHistory

id:
  v: HospitalDischargeReport.body.hospitalStay
path:
  v: HospitalDischargeReport.body.hospitalStay
short:
  v: A.2.7 - Course of hospitalisation (Hospital stay)
definition:
  v: Course of hospitalisation (Hospital stay)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRHospitalStay

id:
  v: HospitalDischargeReport.body.dischargeDetails
path:
  v: HospitalDischargeReport.body.dischargeDetails
short:
  v: A.2.8 - Discharge details
definition:
  v: Discharge details (structured information should be provided, however if not available, at least a summary note should be present).
min:
  v: 1
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRDischargeDetails

id:
  v: HospitalDischargeReport.body.recommendations
path:
  v: HospitalDischargeReport.body.recommendations
short:
  v: A.2.9 - Care plan and other recommendations after discharge.
definition:
  v: Care plan and other recommendations after discharge.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh/hdr/StructureDefinition/HDRRecommendations