TreatmentSummary
type: StructureDefinition
node role: treeRoot
id:
  v: TreatmentSummary
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition TreatmentSummary Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> TreatmentSummary 0..* Base Treatment Summary #xD; subject 1..1 Subject Subject #xD; diagnosis 0..5 BackboneElement Diagnosis #xD; details 0..1 Diagnosis Details about this diagnosis #xD; frontLineTreatment 0..1 FrontLineTreatment Front line treatment #xD; chemotherapy 0..1 Chemotherapy Chemotherapy #xD; stemCellTransplantation 0..* StemCellTransplantation Stem Cell transplantation #xD; radiotherapy 0..* Radiotherapy Radiotherapy #xD; majorSurgery 0..* MajorSurgery Major Surgery #xD; otherInfos 0..* OtherInfos Other info and relevant events #xD; medicalSuggestion 0..1 string Medical suggestion #xD; relapseDuringFLT 0..* RelapseDuringFLT Progression-Relapse during FLT #xD; relapseAfterEOT 0..* BackboneElement Progression-relapse after the End of Treatment #xD; details 0..1 RelapseAfterFLT Details about this relapse-progression #xD; frontLineTreatment <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( no-frontLineTreatment )">C 0..1 FrontLineTreatment Salvage treatment Constraints: no-frontLineTreatment #xD; chemotherapy 0..1 Chemotherapy Chemotherapy #xD; stemCellTransplantation 0..* StemCellTransplantation Stem Cell transplantation #xD; radiotherapy 0..* Radiotherapy Radiotherapy #xD; majorSurgery 0..* MajorSurgery Major Surgery #xD; otherInfos 0..* OtherInfos Other info and relevant events #xD; medicalSuggestion 0..1 string Medical suggestion #xD; otherConditions 0..* string Other medical conditions, not cancer associated #xD; <img src="[binary]" alt="doco" style="bac…
url:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/TreatmentSummary
  l: TreatmentSummary
version:
  v: 1.0.0
name:
  v: TreatmentSummary
title:
  v: Treatment Summary
status:
  v: active
date:
  v: 2026-01-16T12:01:48+00:00
publisher:
  v: PanCareSurPass Project
contact:
  name:
    v: PanCareSurPass Project
  telecom:
    system:
      v: url
    value:
      v: https://www.pancaresurpass.eu/
contact:
  name:
    v: PanCareSurPass Project
  telecom:
    system:
      v: url
    value:
      v: https://www.pancaresurpass.eu/
description:
  v: Treatment Summary data model
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 150
    display:
      v: Europe
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: fhir
  uri:
    v: hl7.org/fhir/r4
    l: r4
  name:
    v: TreatmentSummary model to PCSP HL7 FHIR R4 Profiles
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/TreatmentSummary
  l: TreatmentSummary
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: TreatmentSummary
    path:
      v: TreatmentSummary
    short:
      v: Treatment Summary
    definition:
      v: Treatment Summary data model
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: TreatmentSummary.subject
    path:
      v: TreatmentSummary.subject
    short:
      v: Subject
    definition:
      v: Subject
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: TreatmentSummary.subject
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Subject
        l: Subject
    mapping:
      identity:
        v: fhir
      map:
        v: Patient
  element:
    id:
      v: TreatmentSummary.diagnosis
    path:
      v: TreatmentSummary.diagnosis
    short:
      v: Diagnosis
    definition:
      v: Diagnosis
    min:
      v: 0
    max:
      v: 5
    base:
      path:
        v: TreatmentSummary.diagnosis
      min:
        v: 0
      max:
        v: 5
    type:
      code:
        v: BackboneElement
        l: 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
        l: Element
  element:
    id:
      v: TreatmentSummary.diagnosis.id
    path:
      v: TreatmentSummary.diagnosis.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
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim

Url
v: string
l: string

v: n/a

id:
  v: TreatmentSummary.diagnosis.extension
path:
  v: TreatmentSummary.diagnosis.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
    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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  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: TreatmentSummary.diagnosis.modifierExtension
path:
  v: TreatmentSummary.diagnosis.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
    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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  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: TreatmentSummary.diagnosis.details
path:
  v: TreatmentSummary.diagnosis.details
short:
  v: Details about this diagnosis
definition:
  v: Details about this diagnosis
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.details
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Diagnosis
    l: Diagnosis
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.frontLineTreatment
path:
  v: TreatmentSummary.diagnosis.frontLineTreatment
short:
  v: Front line treatment
definition:
  v: Front line treatment
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.frontLineTreatment
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/FrontLineTreatment
    l: FrontLineTreatment
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.chemotherapy
path:
  v: TreatmentSummary.diagnosis.chemotherapy
short:
  v: Chemotherapy
definition:
  v: Chemotherapy
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.chemotherapy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Chemotherapy
    l: Chemotherapy
mapping:
  identity:
    v: fhir
  map:
    v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.stemCellTransplantation
path:
  v: TreatmentSummary.diagnosis.stemCellTransplantation
short:
  v: Stem Cell transplantation
definition:
  v: Stem Cell transplantation
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.stemCellTransplantation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/StemCellTransplantation
    l: StemCellTransplantation
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-sct-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.radiotherapy
path:
  v: TreatmentSummary.diagnosis.radiotherapy
short:
  v: Radiotherapy
definition:
  v: Radiotherapy
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.radiotherapy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Radiotherapy
    l: Radiotherapy
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-radiotheraphy-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.majorSurgery
path:
  v: TreatmentSummary.diagnosis.majorSurgery
short:
  v: Major Surgery
definition:
  v: Major Surgery
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.majorSurgery
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
    l: MajorSurgery
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.otherInfos
path:
  v: TreatmentSummary.diagnosis.otherInfos
short:
  v: Other info and relevant events
definition:
  v: Other info and relevant events
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.otherInfos
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/OtherInfos
    l: OtherInfos
mapping:
  identity:
    v: fhir
  map:
    v: Procedure
mapping:
  identity:
    v: fhir
  map:
    v: Condition

id:
  v: TreatmentSummary.diagnosis.medicalSuggestion
path:
  v: TreatmentSummary.diagnosis.medicalSuggestion
short:
  v: Medical suggestion
definition:
  v: Medical suggestion
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.medicalSuggestion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TreatmentSummary.diagnosis.relapseDuringFLT
path:
  v: TreatmentSummary.diagnosis.relapseDuringFLT
short:
  v: Progression-Relapse during FLT
definition:
  v: Progression-Relapse during Front line treatment
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseDuringFLT
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/RelapseDuringFLT
    l: RelapseDuringFLT
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp').where( (extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/condition-previousStatus').valueCode = #replaspe or #recurrence) and ( onsetDateTime < Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp').performedPeriod.end) )

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT
short:
  v: Progression-relapse after the End of Treatment
definition:
  v: Progression-relapse after the End of Treatment
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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
    l: Element

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.id
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.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: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.extension
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.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
    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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  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: TreatmentSummary.diagnosis.relapseAfterEOT.modifierExtension
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.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
    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())
  xpath:
    v: @value|f:*|h:div
  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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  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: TreatmentSummary.diagnosis.relapseAfterEOT.details
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.details
short:
  v: Details about this relapse-progression
definition:
  v: Details about this relapse-progression
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.details
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/RelapseAfterFLT
    l: RelapseAfterFLT
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp').where( (extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/condition-previousStatus').valueCode = #replaspe or #recurrence) and ( onsetDateTime >= Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp').performedPeriod.end) )

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.frontLineTreatment
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.frontLineTreatment
short:
  v: Salvage treatment
definition:
  v: The salvage treatment has been executed following
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.frontLineTreatment
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/FrontLineTreatment
    l: FrontLineTreatment
constraint:
  key:
    v: no-frontLineTreatment
  severity:
    v: error
  human:
    v: notForRelapse details are not provided for relapses after EOT
  expression:
    v: notForRelapse.exists()
  source:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/TreatmentSummary
    l: TreatmentSummary
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.chemotherapy
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.chemotherapy
short:
  v: Chemotherapy
definition:
  v: Chemotherapy
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.chemotherapy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Chemotherapy
    l: Chemotherapy
mapping:
  identity:
    v: fhir
  map:
    v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.stemCellTransplantation
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.stemCellTransplantation
short:
  v: Stem Cell transplantation
definition:
  v: Stem Cell transplantation
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.stemCellTransplantation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/StemCellTransplantation
    l: StemCellTransplantation
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-sct-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.radiotherapy
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.radiotherapy
short:
  v: Radiotherapy
definition:
  v: Radiotherapy
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.radiotherapy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Radiotherapy
    l: Radiotherapy
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-radiotheraphy-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.majorSurgery
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.majorSurgery
short:
  v: Major Surgery
definition:
  v: Major Surgery
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.majorSurgery
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
    l: MajorSurgery
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.otherInfos
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.otherInfos
short:
  v: Other info and relevant events
definition:
  v: Other info and relevant events
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.otherInfos
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/OtherInfos
    l: OtherInfos
mapping:
  identity:
    v: fhir
  map:
    v: Procedure
mapping:
  identity:
    v: fhir
  map:
    v: Condition

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.medicalSuggestion
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.medicalSuggestion
short:
  v: Medical suggestion
definition:
  v: Medical suggestion
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TreatmentSummary.diagnosis.relapseAfterEOT.medicalSuggestion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TreatmentSummary.diagnosis.otherConditions
path:
  v: TreatmentSummary.diagnosis.otherConditions
short:
  v: Other medical conditions, not cancer associated
definition:
  v: Please list here if the patient has or had other medical conditions not reported to be cancer-associated (e.g. diabetes, congenital cardiopathy, amputations, kidney transplant)
min:
  v: 0
max:
  v: *
base:
  path:
    v: TreatmentSummary.diagnosis.otherConditions
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string

element:
  id:
    v: TreatmentSummary
  path:
    v: TreatmentSummary
  short:
    v: Treatment Summary
  definition:
    v: Treatment Summary data model
element:
  id:
    v: TreatmentSummary.subject
  path:
    v: TreatmentSummary.subject
  short:
    v: Subject
  definition:
    v: Subject
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Subject
      l: Subject
  mapping:
    identity:
      v: fhir
    map:
      v: Patient
element:
  id:
    v: TreatmentSummary.diagnosis
  path:
    v: TreatmentSummary.diagnosis
  short:
    v: Diagnosis
  definition:
    v: Diagnosis
  min:
    v: 0
  max:
    v: 5
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: TreatmentSummary.diagnosis.details
  path:
    v: TreatmentSummary.diagnosis.details
  short:
    v: Details about this diagnosis
  definition:
    v: Details about this diagnosis
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Diagnosis
      l: Diagnosis
  mapping:
    identity:
      v: fhir
    map:
      v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.frontLineTreatment
  path:
    v: TreatmentSummary.diagnosis.frontLineTreatment
  short:
    v: Front line treatment
  definition:
    v: Front line treatment
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/FrontLineTreatment
      l: FrontLineTreatment
  mapping:
    identity:
      v: fhir
    map:
      v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.chemotherapy
  path:
    v: TreatmentSummary.diagnosis.chemotherapy
  short:
    v: Chemotherapy
  definition:
    v: Chemotherapy
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Chemotherapy
      l: Chemotherapy
  mapping:
    identity:
      v: fhir
    map:
      v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.stemCellTransplantation
  path:
    v: TreatmentSummary.diagnosis.stemCellTransplantation
  short:
    v: Stem Cell transplantation
  definition:
    v: Stem Cell transplantation
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/StemCellTransplantation
      l: StemCellTransplantation
  mapping:
    identity:
      v: fhir
    map:
      v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-sct-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.radiotherapy
  path:
    v: TreatmentSummary.diagnosis.radiotherapy
  short:
    v: Radiotherapy
  definition:
    v: Radiotherapy
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Radiotherapy
      l: Radiotherapy
  mapping:
    identity:
      v: fhir
    map:
      v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-radiotheraphy-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.majorSurgery
  path:
    v: TreatmentSummary.diagnosis.majorSurgery
  short:
    v: Major Surgery
  definition:
    v: Major Surgery
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
      l: MajorSurgery
  mapping:
    identity:
      v: fhir
    map:
      v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')
element:
  id:
    v: TreatmentSummary.diagnosis.otherInfos
  path:
    v: TreatmentSummary.diagnosis.otherInfos
  short:
    v: Other info and relevant events
  definition:
    v: Other info and relevant events
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/OtherInfos
      l: OtherInfos
  mapping:
    identity:
      v: fhir
    map:
      v: Procedure

identity:
  v: fhir
map:
  v: Condition

id:
  v: TreatmentSummary.diagnosis.medicalSuggestion
path:
  v: TreatmentSummary.diagnosis.medicalSuggestion
short:
  v: Medical suggestion
definition:
  v: Medical suggestion
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TreatmentSummary.diagnosis.relapseDuringFLT
path:
  v: TreatmentSummary.diagnosis.relapseDuringFLT
short:
  v: Progression-Relapse during FLT
definition:
  v: Progression-Relapse during Front line treatment
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/RelapseDuringFLT
    l: RelapseDuringFLT
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp').where( (extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/condition-previousStatus').valueCode = #replaspe or #recurrence) and ( onsetDateTime < Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp').performedPeriod.end) )

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT
short:
  v: Progression-relapse after the End of Treatment
definition:
  v: Progression-relapse after the End of Treatment
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.details
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.details
short:
  v: Details about this relapse-progression
definition:
  v: Details about this relapse-progression
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/RelapseAfterFLT
    l: RelapseAfterFLT
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp').where( (extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/condition-previousStatus').valueCode = #replaspe or #recurrence) and ( onsetDateTime >= Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp').performedPeriod.end) )

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.frontLineTreatment
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.frontLineTreatment
short:
  v: Salvage treatment
definition:
  v: The salvage treatment has been executed following
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/FrontLineTreatment
    l: FrontLineTreatment
constraint:
  key:
    v: no-frontLineTreatment
  severity:
    v: error
  human:
    v: notForRelapse details are not provided for relapses after EOT
  expression:
    v: notForRelapse.exists()
  source:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/TreatmentSummary
    l: TreatmentSummary
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-flt-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.chemotherapy
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.chemotherapy
short:
  v: Chemotherapy
definition:
  v: Chemotherapy
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Chemotherapy
    l: Chemotherapy
mapping:
  identity:
    v: fhir
  map:
    v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.stemCellTransplantation
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.stemCellTransplantation
short:
  v: Stem Cell transplantation
definition:
  v: Stem Cell transplantation
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/StemCellTransplantation
    l: StemCellTransplantation
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-sct-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.radiotherapy
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.radiotherapy
short:
  v: Radiotherapy
definition:
  v: Radiotherapy
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Radiotherapy
    l: Radiotherapy
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-radiotheraphy-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.majorSurgery
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.majorSurgery
short:
  v: Major Surgery
definition:
  v: Major Surgery
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
    l: MajorSurgery
mapping:
  identity:
    v: fhir
  map:
    v: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.otherInfos
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.otherInfos
short:
  v: Other info and relevant events
definition:
  v: Other info and relevant events
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/OtherInfos
    l: OtherInfos
mapping:
  identity:
    v: fhir
  map:
    v: Procedure
mapping:
  identity:
    v: fhir
  map:
    v: Condition

id:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.medicalSuggestion
path:
  v: TreatmentSummary.diagnosis.relapseAfterEOT.medicalSuggestion
short:
  v: Medical suggestion
definition:
  v: Medical suggestion
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TreatmentSummary.diagnosis.otherConditions
path:
  v: TreatmentSummary.diagnosis.otherConditions
short:
  v: Other medical conditions, not cancer associated
definition:
  v: Please list here if the patient has or had other medical conditions not reported to be cancer-associated (e.g. diabetes, congenital cardiopathy, amputations, kidney transplant)
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string