EHDSDocument
type: StructureDefinition
node role: treeRoot
id:
  v: EHDSDocument
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition EHDSDocument Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> EHDSDocument 0..* EHDSDataSet EHDS document Elements defined in Ancestors:identifier, subject, country, relatedPerson, authorship, lastUpdate, status, version, language, presentation Instances of this logical model can be the target of a Reference #xD; identifier 1..* Identifier Document ID #xD; documentType 1..1 CodeableConcept Document type Binding Description: (preferred): LOINC #xD; eventType 0..* CodeableConcept Event type Binding Description: (preferred): LOINC, SNOMED CT, dicom-cid-33-Modality #xD; documentTitle 1..1 string Document title #xD; documentStatus 1..1 CodeableConcept Document status Binding Description: (preferred): hl7:CompositionStatus #xD; period 0..1 Period Period #xD; issuedDateTime 1..1 dateTime Report date and time #xD; attestation 0..* Base Attestation #xD; attester 1..1 EHDSHealthProfessional Attester #xD; datetime 1..1 dateTime DateTime #xD; legalAuthentication 0..1 Base Legal authentication #xD; legalAuthenticator 1..1 EHDSHealthProfessional Legal authenticator #xD; datetime 1..1 dateTime DateTime #xD; authorSpecialty 0..* CodeableConcept Specialty Binding Description: (preferred): SNOMED CT #xD; custodian 1..1 EHDSOrganization Document custodian #xD; documentFormat 0..1 CodeableConcept Document format Binding Description: (preferred): HL7 Document Format Codes #xD; knowledgeResources 0..* Base Related documents and information sources #xD; externalReference 0..* Reference() ... #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
    l: structuredefinition-type-characteristics
  value: Code
    v: can-be-target
url:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDocument
  l: EHDSDocument
version:
  v: 0.1.0
name:
  v: EHDSDocument
title:
  v: EHDS document
status:
  v: draft
date:
  v: 2025-11-17T15:56:04+00:00
publisher:
  v: Xt-EHR
contact:
  name:
    v: Xt-EHR
  telecom:
    system:
      v: url
    value:
      v: http://Xt-EHR.eu
description:
  v: Common elements for all EHDS document exchange.
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDocument
  l: EHDSDocument
base definition:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDataSet
  l: EHDSDataSet
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 0.1.0
  element:
    id:
      v: EHDSDocument
    path:
      v: EHDSDocument
    short:
      v: EHDS document
    definition:
      v: Common elements for all EHDS document exchange.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: EHDSDocument.identifier
    path:
      v: EHDSDocument.identifier
    short:
      v: Document ID
    definition:
      v: Unique identifier of the data object
    min:
      v: 1
    max:
      v: *
    base:
      path:
        v: EHDSDataSet.identifier
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Identifier
        l: Identifier
  element:
    id:
      v: EHDSDocument.subject
    path:
      v: EHDSDocument.subject
    short:
      v: Subject
    definition:
      v: Patient/subject information
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: EHDSDataSet.subject
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPerson
        l: EHDSPerson
  element:
    id:
      v: EHDSDocument.country
    path:
      v: EHDSDocument.country
    short:
      v: Country
    definition:
      v: Country of the data exchange initiator.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: EHDSDataSet.country
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
        l: CodeableConcept
    binding:
      strength:
        v: preferred
      description:
        v: ISO 3166
  element:
    id:
      v: EHDSDocument.relatedPerson
    path:
      v: EHDSDocument.relatedPerson
    code:
      code:
        v: A.1.2
    short:
      v: Related person
    definition:
      v: Patient/subject guardian and related person information
    requirements:
      v: Some roles for the related person are essential for data access control. For example, the role of the guardian is essential for the data access control of a minor patient.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: EHDSDataSet.relatedPerson
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: BackboneElement
        l: BackboneElement

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())
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

id:
  v: EHDSDocument.relatedPerson.id
path:
  v: EHDSDocument.relatedPerson.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EHDSDocument.relatedPerson.extension
path:
  v: EHDSDocument.relatedPerson.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 managable, 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
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EHDSDocument.relatedPerson.modifierExtension
path:
  v: EHDSDocument.relatedPerson.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 managable, 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/R5/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
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: EHDSDocument.relatedPerson.person
path:
  v: EHDSDocument.relatedPerson.person
short:
  v: Identification and description of the person
definition:
  v: Identification and description of the contact person for that patient. This includes relatives, guardians, caring persons etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.relatedPerson.person
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPerson
    l: EHDSPerson

id:
  v: EHDSDocument.relatedPerson.relationship
path:
  v: EHDSDocument.relatedPerson.relationship
code:
  code:
    v: C.13.3
short:
  v: Relationship
definition:
  v: The nature of the relationship between the patient and the related person.
requirements:
  v: Some roles for the related person are essential for data access control. For example, the role of the guardian is essential for the data access control of a minor patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.relatedPerson.relationship
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: HL7 RoleCode

id:
  v: EHDSDocument.authorship
path:
  v: EHDSDocument.authorship
short:
  v: Authorship
definition:
  v: Document/resource authoring details
min:
  v: 1
max:
  v: *
base:
  path:
    v: EHDSDataSet.authorship
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.authorship.author
path:
  v: EHDSDocument.authorship.author
code:
  code:
    v: A.1.6.1
short:
  v: Author
definition:
  v: Author by whom the resource was/were authored. Multiple authors could be provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.authorship.author
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
    l: EHDSHealthProfessional

id:
  v: EHDSDocument.authorship.datetime
path:
  v: EHDSDocument.authorship.datetime
code:
  code:
    v: A.1.6.2
short:
  v: Date and time of authoring/issuing
definition:
  v: Date and time of the issuing the document/resource by its author.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.authorship.datetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.lastUpdate
path:
  v: EHDSDocument.lastUpdate
short:
  v: Date and time of the last update to the data object
definition:
  v: Date and time of the last update to the document/information
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.lastUpdate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.status
path:
  v: EHDSDocument.status
short:
  v: Status of the information
definition:
  v: Status of the information
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: EHDSDocument.version
path:
  v: EHDSDocument.version
short:
  v: Version
definition:
  v: Business version of the data object.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: EHDSDocument.language
path:
  v: EHDSDocument.language
code:
  code:
    v: A.1.9.12
short:
  v: Language
definition:
  v: Language in which the information is written. Language is expressed by the IETF language tag.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: BCP 47

id:
  v: EHDSDocument.presentation
path:
  v: EHDSDocument.presentation
short:
  v: Presentation form
definition:
  v: The presentation of the data, e.g. a PDF document, a video, a text file, etc. In case of unstructured data, this is the actual content.
min:
  v: 1
max:
  v: *
base:
  path:
    v: EHDSDataSet.presentation
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.presentation.author
path:
  v: EHDSDocument.presentation.author
code:
  code:
    v: A.1.6.1
short:
  v: Author
definition:
  v: Author by whom the resource was/were authored. Multiple authors could be provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.presentation.author
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
    l: EHDSHealthProfessional

id:
  v: EHDSDocument.presentation.datetime
path:
  v: EHDSDocument.presentation.datetime
code:
  code:
    v: A.1.6.2
short:
  v: Date and time of authoring/issuing
definition:
  v: Date and time of the issuing the document/resource by its author.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.presentation.datetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.documentType
path:
  v: EHDSDocument.documentType
short:
  v: Document type
definition:
  v: Identifies the type of document at hand, e.g. Hospital discharge report.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.documentType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: LOINC

id:
  v: EHDSDocument.eventType
path:
  v: EHDSDocument.eventType
short:
  v: Event type
definition:
  v: Categorization of the event covered by the document (e.g. laboratory study types, imaging study types including modality, etc.). Selection of such tags or labels depends on the use case and agreement betwen data sharing parties. This meta-data element serves primarily for searching and filtering purpuses.
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDocument.eventType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: LOINC, SNOMED CT, dicom-cid-33-Modality

id:
  v: EHDSDocument.documentTitle
path:
  v: EHDSDocument.documentTitle
short:
  v: Document title
definition:
  v: Document title, such as Hospital Discharge Report, Laboratory Result Report, etc.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.documentTitle
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: EHDSDocument.documentStatus
path:
  v: EHDSDocument.documentStatus
short:
  v: Document status
definition:
  v: The status of the Hospital discharge report. E.g., preliminary, final.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.documentStatus
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: hl7:CompositionStatus

id:
  v: EHDSDocument.period
path:
  v: EHDSDocument.period
short:
  v: Period
definition:
  v: Time of service that is being documented
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDocument.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period

id:
  v: EHDSDocument.issuedDateTime
path:
  v: EHDSDocument.issuedDateTime
short:
  v: Report date and time
definition:
  v: Date and time of the report creation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.issuedDateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.attestation
path:
  v: EHDSDocument.attestation
short:
  v: Attestation
definition:
  v: Document attestation details
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDocument.attestation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.attestation.attester
path:
  v: EHDSDocument.attestation.attester
short:
  v: Attester
definition:
  v: Attester who validated the document. Mulitple attesters could be provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.attestation.attester
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
    l: EHDSHealthProfessional

id:
  v: EHDSDocument.attestation.datetime
path:
  v: EHDSDocument.attestation.datetime
short:
  v: DateTime
definition:
  v: Date and time of the approval of the document by Attester.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.attestation.datetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.legalAuthentication
path:
  v: EHDSDocument.legalAuthentication
short:
  v: Legal authentication
definition:
  v: Document legal authentication
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDocument.legalAuthentication
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.legalAuthentication.legalAuthenticator
path:
  v: EHDSDocument.legalAuthentication.legalAuthenticator
short:
  v: Legal authenticator
definition:
  v: The person taking responsibility for the medical content of the document
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.legalAuthentication.legalAuthenticator
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
    l: EHDSHealthProfessional

id:
  v: EHDSDocument.legalAuthentication.datetime
path:
  v: EHDSDocument.legalAuthentication.datetime
short:
  v: DateTime
definition:
  v: Date and time when the document was authorized.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.legalAuthentication.datetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.authorSpecialty
path:
  v: EHDSDocument.authorSpecialty
short:
  v: Specialty
definition:
  v: Additional details about where the content was created (e.g. clinical specialty)
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDocument.authorSpecialty
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: SNOMED CT

id:
  v: EHDSDocument.custodian
path:
  v: EHDSDocument.custodian
short:
  v: Document custodian
definition:
  v: Organisation that is in charge of maintaining the document/report.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDocument.custodian
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSOrganization
    l: EHDSOrganization

id:
  v: EHDSDocument.documentFormat
path:
  v: EHDSDocument.documentFormat
short:
  v: Document format
definition:
  v: An identifier of the document constraints, encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDocument.documentFormat
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: HL7 Document Format Codes

id:
  v: EHDSDocument.knowledgeResources
path:
  v: EHDSDocument.knowledgeResources
short:
  v: Related documents and information sources
definition:
  v: Related documents and information sources
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDocument.knowledgeResources
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.knowledgeResources.externalReference
path:
  v: EHDSDocument.knowledgeResources.externalReference
short:
  v: ...
definition:
  v: ...
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDocument.knowledgeResources.externalReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference

element:
  id:
    v: EHDSDocument
  path:
    v: EHDSDocument
  short:
    v: EHDS document
  definition:
    v: Common elements for all EHDS document exchange.
element:
  id:
    v: EHDSDocument.identifier
  path:
    v: EHDSDocument.identifier
  min:
    v: 1
element:
  id:
    v: EHDSDocument.documentType
  path:
    v: EHDSDocument.documentType
  short:
    v: Document type
  definition:
    v: Identifies the type of document at hand, e.g. Hospital discharge report.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  binding:
    strength:
      v: preferred
    description:
      v: LOINC
element:
  id:
    v: EHDSDocument.eventType
  path:
    v: EHDSDocument.eventType
  short:
    v: Event type
  definition:
    v: Categorization of the event covered by the document (e.g. laboratory study types, imaging study types including modality, etc.). Selection of such tags or labels depends on the use case and agreement betwen data sharing parties. This meta-data element serves primarily for searching and filtering purpuses.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  binding:
    strength:
      v: preferred
    description:
      v: LOINC, SNOMED CT, dicom-cid-33-Modality
element:
  id:
    v: EHDSDocument.documentTitle
  path:
    v: EHDSDocument.documentTitle
  short:
    v: Document title
  definition:
    v: Document title, such as Hospital Discharge Report, Laboratory Result Report, etc.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: EHDSDocument.documentStatus
  path:
    v: EHDSDocument.documentStatus
  short:
    v: Document status
  definition:
    v: The status of the Hospital discharge report. E.g., preliminary, final.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  binding:
    strength:
      v: preferred
    description:
      v: hl7:CompositionStatus
element:
  id:
    v: EHDSDocument.period
  path:
    v: EHDSDocument.period
  short:
    v: Period
  definition:
    v: Time of service that is being documented
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Period
      l: Period
element:
  id:
    v: EHDSDocument.issuedDateTime
  path:
    v: EHDSDocument.issuedDateTime
  short:
    v: Report date and time
  definition:
    v: Date and time of the report creation.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
element:
  id:
    v: EHDSDocument.attestation
  path:
    v: EHDSDocument.attestation
  short:
    v: Attestation
  definition:
    v: Document attestation details
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Base
      l: Base
element:
  id:
    v: EHDSDocument.attestation.attester
  path:
    v: EHDSDocument.attestation.attester
  short:
    v: Attester
  definition:
    v: Attester who validated the document. Mulitple attesters could be provided.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
      l: EHDSHealthProfessional
element:
  id:
    v: EHDSDocument.attestation.datetime
  path:
    v: EHDSDocument.attestation.datetime
  short:
    v: DateTime
  definition:
    v: Date and time of the approval of the document by Attester.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
element:
  id:
    v: EHDSDocument.legalAuthentication
  path:
    v: EHDSDocument.legalAuthentication
  short:
    v: Legal authentication
  definition:
    v: Document legal authentication
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Base
      l: Base

id:
  v: EHDSDocument.legalAuthentication.legalAuthenticator
path:
  v: EHDSDocument.legalAuthentication.legalAuthenticator
short:
  v: Legal authenticator
definition:
  v: The person taking responsibility for the medical content of the document
min:
  v: 1
max:
  v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
    l: EHDSHealthProfessional

id:
  v: EHDSDocument.legalAuthentication.datetime
path:
  v: EHDSDocument.legalAuthentication.datetime
short:
  v: DateTime
definition:
  v: Date and time when the document was authorized.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: EHDSDocument.authorSpecialty
path:
  v: EHDSDocument.authorSpecialty
short:
  v: Specialty
definition:
  v: Additional details about where the content was created (e.g. clinical specialty)
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: SNOMED CT

id:
  v: EHDSDocument.custodian
path:
  v: EHDSDocument.custodian
short:
  v: Document custodian
definition:
  v: Organisation that is in charge of maintaining the document/report.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSOrganization
    l: EHDSOrganization

id:
  v: EHDSDocument.documentFormat
path:
  v: EHDSDocument.documentFormat
short:
  v: Document format
definition:
  v: An identifier of the document constraints, encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: HL7 Document Format Codes

id:
  v: EHDSDocument.knowledgeResources
path:
  v: EHDSDocument.knowledgeResources
short:
  v: Related documents and information sources
definition:
  v: Related documents and information sources
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: EHDSDocument.knowledgeResources.externalReference
path:
  v: EHDSDocument.knowledgeResources.externalReference
short:
  v: ...
definition:
  v: ...
min:
  v: 0
max:
  v: *
type:
  code:
    v: Reference
    l: Reference