Diagnosis
type: StructureDefinition
node role: treeRoot
id:
  v: Diagnosis
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition Diagnosis Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Diagnosis 0..* Base Diagnosis #xD; identifier 1..* Identifier ID #xD; <a href="StructureDefinition-Diagnosis-definitions.html#Diagnosis.dateOfDiagnosis" title="Official date of diagnosis. Please report the date as documented in the clinical record. Differences across institutions may occur in defining this date (either the date of the final test (laboratory, imaging, surgery or pathology report) based on which therapeutic decision was taken. In other cases the date of the pathology report is used to define the date of diagnosis. The system will send an 'error' message if the date of diagnosis is more recent hat the date of start of treatment. If the date is unkown or partially missed insert the year at the best of your knowledge.">dateOfDiagnosis 0..* BackboneElement Date of diagnosis #xD; centerOfDiagnosis 0..* BackboneElement Center of diagnosis #xD; identifier 0..1 Identifier Center code #xD; name 0..1 string Center name #xD; city 0..1 string Center city #xD; country 1..1 string Center country #xD; primaryTreatmentCenter 0..1 BackboneElement Primary treatment center #xD; name 0..1 string Primary treatment center name #xD; city 0..1 string Primary treatment center city #xD; country 0..1 string Primary treatment center country #xD; dateOfArrivalAtCenter 1..* dateTime Date of arrival to our institution #xD; diagnosticGroup 0..* CodeableConcept Diagnostic Group #xD; <a href="StructureDefinition-Diagnosis-definitions.html#Diagnosis.morphologyCode" title="Report the diagnosis using the ICD-O-3 Morphology coding system (an help tool is built into the system). If also the site of the tumor will be reported (see 'site') using the ICD-O-3 Topography codes, the system will automatically define the tumor according to ICCC-3 classic pediatric classification (see: Cancer category). This field is automatically gener…
url:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Diagnosis
  l: Diagnosis
version:
  v: 1.0.0
name:
  v: Diagnosis
title:
  v: Diagnosis
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: Diagnosis
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: Diagnosis model to PCSP HL7 FHIR R4 Profiles
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Diagnosis
  l: Diagnosis
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: Diagnosis
    path:
      v: Diagnosis
    short:
      v: Diagnosis
    definition:
      v: Diagnosis
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: fhir
      map:
        v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp')
  element:
    id:
      v: Diagnosis.identifier
    path:
      v: Diagnosis.identifier
    short:
      v: ID
    definition:
      v: diagnosis identifier
    min:
      v: 1
    max:
      v: *
    base:
      path:
        v: Diagnosis.identifier
      min:
        v: 1
      max:
        v: *
    type:
      code:
        v: Identifier
        l: Identifier
    mapping:
      identity:
        v: fhir
      map:
        v: .identifier
  element:
    id:
      v: Diagnosis.dateOfDiagnosis
    path:
      v: Diagnosis.dateOfDiagnosis
    short:
      v: Date of diagnosis
    definition:
      v: Official date of diagnosis. Please report the date as documented in the clinical record. Differences across institutions may occur in defining this date (either the date of the final test (laboratory, imaging, surgery or pathology report) based on which therapeutic decision was taken. In other cases the date of the pathology report is used to define the date of diagnosis. The system will send an 'error' message if the date of diagnosis is more recent hat the date of start of treatment. If the date is unkown or partially missed insert the year at the best of your knowledge.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Diagnosis.dateOfDiagnosis
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: BackboneElement
        l: BackboneElement
    mapping:
      identity:
        v: fhir
      map:
        v: .extension('condition-assertedDate').valueDateTime
  element:
    id:
      v: Diagnosis.centerOfDiagnosis
    path:
      v: Diagnosis.centerOfDiagnosis
    short:
      v: Center of diagnosis
    definition:
      v: Institution in which the diagnosis was made.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Diagnosis.centerOfDiagnosis
      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

identity:
  v: fhir
map:
  v: Observation.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Observation-diagnosis-eu-pcsp').performer

id:
  v: Diagnosis.centerOfDiagnosis.id
path:
  v: Diagnosis.centerOfDiagnosis.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: Diagnosis.centerOfDiagnosis.extension
path:
  v: Diagnosis.centerOfDiagnosis.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: Diagnosis.centerOfDiagnosis.modifierExtension
path:
  v: Diagnosis.centerOfDiagnosis.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: Diagnosis.centerOfDiagnosis.identifier
path:
  v: Diagnosis.centerOfDiagnosis.identifier
short:
  v: Center code
definition:
  v: Code of the institution in which the diagnosis was made. IN AIEOP thus information is retrievable from the Mod.1.01 database
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.centerOfDiagnosis.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.resolve().identifier
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.identifier

id:
  v: Diagnosis.centerOfDiagnosis.name
path:
  v: Diagnosis.centerOfDiagnosis.name
short:
  v: Center name
definition:
  v: Center name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.centerOfDiagnosis.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.resolve().name
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.display

id:
  v: Diagnosis.centerOfDiagnosis.city
path:
  v: Diagnosis.centerOfDiagnosis.city
short:
  v: Center city
definition:
  v: Center city
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.centerOfDiagnosis.city
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.resolve().address.city

id:
  v: Diagnosis.centerOfDiagnosis.country
path:
  v: Diagnosis.centerOfDiagnosis.country
short:
  v: Center country
definition:
  v: Center country
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Diagnosis.centerOfDiagnosis.country
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Observation.performer.resolve().address.country

id:
  v: Diagnosis.primaryTreatmentCenter
path:
  v: Diagnosis.primaryTreatmentCenter
short:
  v: Primary treatment center
definition:
  v: Report here the institution in which most of the treatment was given
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.primaryTreatmentCenter
  min:
    v: 0
  max:
    v: 1
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
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider

id:
  v: Diagnosis.primaryTreatmentCenter.id
path:
  v: Diagnosis.primaryTreatmentCenter.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: Diagnosis.primaryTreatmentCenter.extension
path:
  v: Diagnosis.primaryTreatmentCenter.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: Diagnosis.primaryTreatmentCenter.modifierExtension
path:
  v: Diagnosis.primaryTreatmentCenter.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: Diagnosis.primaryTreatmentCenter.name
path:
  v: Diagnosis.primaryTreatmentCenter.name
short:
  v: Primary treatment center name
definition:
  v: Primary treatment center name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.primaryTreatmentCenter.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.display
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().name
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.display
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().name

id:
  v: Diagnosis.primaryTreatmentCenter.city
path:
  v: Diagnosis.primaryTreatmentCenter.city
short:
  v: Primary treatment center city
definition:
  v: Primary treatment center city
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.primaryTreatmentCenter.city
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().address.city
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().address.city

id:
  v: Diagnosis.primaryTreatmentCenter.country
path:
  v: Diagnosis.primaryTreatmentCenter.country
short:
  v: Primary treatment center country
definition:
  v: Primary treatment center country
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.primaryTreatmentCenter.country
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().address.country
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().address.country

id:
  v: Diagnosis.dateOfArrivalAtCenter
path:
  v: Diagnosis.dateOfArrivalAtCenter
short:
  v: Date of arrival to our institution
definition:
  v: Date of arrival to our institution
min:
  v: 1
max:
  v: *
base:
  path:
    v: Diagnosis.dateOfArrivalAtCenter
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.period.start

id:
  v: Diagnosis.diagnosticGroup
path:
  v: Diagnosis.diagnosticGroup
short:
  v: Diagnostic Group
definition:
  v: Diagnostic Group. ICCC-3 Classification (Main and Extended classification tables)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.diagnosticGroup
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.code.coding

id:
  v: Diagnosis.morphologyCode
path:
  v: Diagnosis.morphologyCode
short:
  v: Diagnosis
definition:
  v: Report the diagnosis using the ICD-O-3 Morphology coding system (an help tool is built into the system). If also the site of the tumor will be reported (see 'site') using the ICD-O-3 Topography codes, the system will automatically define the tumor according to ICCC-3 classic pediatric classification (see: Cancer category). This field is automatically generated if both ICD-O-3 Morphology and Topography data have been reported
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.morphologyCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.extension('mcode-histology-morphology-behavior').valueCodeableConcept

id:
  v: Diagnosis.tumorBehaviour
path:
  v: Diagnosis.tumorBehaviour
short:
  v: Tumour behaviour (ICD-O-3 type)
definition:
  v: Tumour behaviour. Automatically generated by the system for benign tumors
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.tumorBehaviour
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.extension('mcode-histology-morphology-behavior').valueCodeableConcept

id:
  v: Diagnosis.description
path:
  v: Diagnosis.description
short:
  v: Diagnosis description
definition:
  v: Diagnosis description
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.text
mapping:
  identity:
    v: fhir
  map:
    v: Condition.code.text

id:
  v: Diagnosis.site
path:
  v: Diagnosis.site
short:
  v: Site
definition:
  v: Site of the tumor
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.site
  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
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite

id:
  v: Diagnosis.site.id
path:
  v: Diagnosis.site.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: Diagnosis.site.extension
path:
  v: Diagnosis.site.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: Diagnosis.site.modifierExtension
path:
  v: Diagnosis.site.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: Diagnosis.site.code
path:
  v: Diagnosis.site.code
short:
  v: Site(ICD-O-3 topography)
definition:
  v: Site . Report the site of the tumor using the ICD-O-3 Topography (an help tool is built into the system). If also ICD-O-3 Morphology data have been reported, the system will automatically define the tumor also according to ICCC-3 classic pediatric classification (see: Cancer category)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.site.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.coding

id:
  v: Diagnosis.site.description
path:
  v: Diagnosis.site.description
short:
  v: Site description
definition:
  v: Site description . Free text to report the site of the tumor
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.site.description
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.text

id:
  v: Diagnosis.laterality
path:
  v: Diagnosis.laterality
short:
  v: Laterality
definition:
  v: Laterality
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.laterality
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.extension('mcode-laterality-qualifier').valueCodeableConcept

id:
  v: Diagnosis.metastasis
path:
  v: Diagnosis.metastasis
short:
  v: Metastatic
definition:
  v: Some tumors may be either localized (e.g. stage III neuroblastoma) or metastatic. Please specify.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.metastasis
  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
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-secondaryCancer-eu-pcsp')

id:
  v: Diagnosis.metastasis.id
path:
  v: Diagnosis.metastasis.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: Diagnosis.metastasis.extension
path:
  v: Diagnosis.metastasis.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: Diagnosis.metastasis.modifierExtension
path:
  v: Diagnosis.metastasis.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: Diagnosis.metastasis.identifier
path:
  v: Diagnosis.metastasis.identifier
short:
  v: Metastasis id
definition:
  v: Number of metastases
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.metastasis.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: fhir
  map:
    v: .identifier

id:
  v: Diagnosis.metastasis.site
path:
  v: Diagnosis.metastasis.site
short:
  v: Metastasis site
definition:
  v: Please report here the site(s) of metastases detected at diagnosis.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.metastasis.site
  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
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite

id:
  v: Diagnosis.metastasis.site.id
path:
  v: Diagnosis.metastasis.site.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: Diagnosis.metastasis.site.extension
path:
  v: Diagnosis.metastasis.site.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: Diagnosis.metastasis.site.modifierExtension
path:
  v: Diagnosis.metastasis.site.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: Diagnosis.metastasis.site.code
path:
  v: Diagnosis.metastasis.site.code
short:
  v: Metastasis site code
definition:
  v: Metastases detected at diagnosis (using ICD-O-3 Topography). If site(s) is unknown, code C80.9
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.metastasis.site.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite.coding

id:
  v: Diagnosis.metastasis.site.description
path:
  v: Diagnosis.metastasis.site.description
short:
  v: Additional description of sites of metastatis
definition:
  v: Additional description of sites of metastatis
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.metastasis.site.description
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite.text

id:
  v: Diagnosis.geneticMarkers
path:
  v: Diagnosis.geneticMarkers
short:
  v: Genetic markers(text)
definition:
  v: Please report here any genetic marker: chromosomal alterations (e.g. translocation, deletions, duplications); or other types of genetic alterations (amplification, deletion, mutation)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.geneticMarkers
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#106221001 'Genetic finding')

id:
  v: Diagnosis.stage
path:
  v: Diagnosis.stage
short:
  v: Stage/Risk
definition:
  v: Stage/Risk. Free trext to specify the stage, if applicable, of the tumor at diagnosis. Staging codes may be different across tumor types and eras of treatment. Please report the one used to define the survivors' tumor at the moment of diagnosis. In case of leukemia the 'risk' (e.g. high, standard) could be reported. If the stage is unknown, specifie 'NK'
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Diagnosis.stage
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.stage

id:
  v: Diagnosis.immunology
path:
  v: Diagnosis.immunology
short:
  v: Immunology
definition:
  v: Immunology . This is a free text field. Report here, if applicable (e.g. leukemias) the immunophenotype of the disease (sometimes already reported in the ICD-O-3 Morphology coding). If immunology is unknown, specify 'NK'
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.immunology
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#365861007 'Finding of immune status')

id:
  v: Diagnosis.hereditaryPredisposition
path:
  v: Diagnosis.hereditaryPredisposition
short:
  v: Hereditary Cancer Predisposition
definition:
  v: Hereditary Cancer Predisposition Syndromeor medical condition cancer associated. Report here if the survivor has some Hereditary Cancer Predisposition Syndrome or a medical conditions, cancer associated. The SurPass system provides a list of the most common Hereditary Cancer Predisposition Syndromes or other medical conditions reported to be cancer associated (an help tool is build into the system: when you start writing the computer proposes the syndromes/conditions with similar spelling). If the syndrome is not listed, please mark other and then 'Specify'
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.hereditaryPredisposition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#32895009 'Hereditary disease')

id:
  v: Diagnosis.notes
path:
  v: Diagnosis.notes
short:
  v: Notes
definition:
  v: Notes
min:
  v: 0
max:
  v: *
base:
  path:
    v: Diagnosis.notes
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.note

element:
  id:
    v: Diagnosis
  path:
    v: Diagnosis
  short:
    v: Diagnosis
  definition:
    v: Diagnosis
  mapping:
    identity:
      v: fhir
    map:
      v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-primaryCancer-eu-pcsp')
element:
  id:
    v: Diagnosis.identifier
  path:
    v: Diagnosis.identifier
  short:
    v: ID
  definition:
    v: diagnosis identifier
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: fhir
    map:
      v: .identifier
element:
  id:
    v: Diagnosis.dateOfDiagnosis
  path:
    v: Diagnosis.dateOfDiagnosis
  short:
    v: Date of diagnosis
  definition:
    v: Official date of diagnosis. Please report the date as documented in the clinical record. Differences across institutions may occur in defining this date (either the date of the final test (laboratory, imaging, surgery or pathology report) based on which therapeutic decision was taken. In other cases the date of the pathology report is used to define the date of diagnosis. The system will send an 'error' message if the date of diagnosis is more recent hat the date of start of treatment. If the date is unkown or partially missed insert the year at the best of your knowledge.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: fhir
    map:
      v: .extension('condition-assertedDate').valueDateTime
element:
  id:
    v: Diagnosis.centerOfDiagnosis
  path:
    v: Diagnosis.centerOfDiagnosis
  short:
    v: Center of diagnosis
  definition:
    v: Institution in which the diagnosis was made.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Observation-diagnosis-eu-pcsp').performer
element:
  id:
    v: Diagnosis.centerOfDiagnosis.identifier
  path:
    v: Diagnosis.centerOfDiagnosis.identifier
  short:
    v: Center code
  definition:
    v: Code of the institution in which the diagnosis was made. IN AIEOP thus information is retrievable from the Mod.1.01 database
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.resolve().identifier
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.identifier
element:
  id:
    v: Diagnosis.centerOfDiagnosis.name
  path:
    v: Diagnosis.centerOfDiagnosis.name
  short:
    v: Center name
  definition:
    v: Center name
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.resolve().name
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.display
element:
  id:
    v: Diagnosis.centerOfDiagnosis.city
  path:
    v: Diagnosis.centerOfDiagnosis.city
  short:
    v: Center city
  definition:
    v: Center city
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.resolve().address.city
element:
  id:
    v: Diagnosis.centerOfDiagnosis.country
  path:
    v: Diagnosis.centerOfDiagnosis.country
  short:
    v: Center country
  definition:
    v: Center country
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: fhir
    map:
      v: Observation.performer.resolve().address.country
element:
  id:
    v: Diagnosis.primaryTreatmentCenter
  path:
    v: Diagnosis.primaryTreatmentCenter
  short:
    v: Primary treatment center
  definition:
    v: Report here the institution in which most of the treatment was given
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: fhir
    map:
      v: Patient.generalPractitioner
  mapping:
    identity:
      v: fhir

v: Encounter.serviceProvider

id:
  v: Diagnosis.primaryTreatmentCenter.name
path:
  v: Diagnosis.primaryTreatmentCenter.name
short:
  v: Primary treatment center name
definition:
  v: Primary treatment center name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.display
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().name
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.display
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().name

id:
  v: Diagnosis.primaryTreatmentCenter.city
path:
  v: Diagnosis.primaryTreatmentCenter.city
short:
  v: Primary treatment center city
definition:
  v: Primary treatment center city
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().address.city
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().address.city

id:
  v: Diagnosis.primaryTreatmentCenter.country
path:
  v: Diagnosis.primaryTreatmentCenter.country
short:
  v: Primary treatment center country
definition:
  v: Primary treatment center country
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Patient.generalPractitioner.resolve().address.country
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.serviceProvider.resolve().address.country

id:
  v: Diagnosis.dateOfArrivalAtCenter
path:
  v: Diagnosis.dateOfArrivalAtCenter
short:
  v: Date of arrival to our institution
definition:
  v: Date of arrival to our institution
min:
  v: 1
max:
  v: *
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: Encounter.period.start

id:
  v: Diagnosis.diagnosticGroup
path:
  v: Diagnosis.diagnosticGroup
short:
  v: Diagnostic Group
definition:
  v: Diagnostic Group. ICCC-3 Classification (Main and Extended classification tables)
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.code.coding

id:
  v: Diagnosis.morphologyCode
path:
  v: Diagnosis.morphologyCode
short:
  v: Diagnosis
definition:
  v: Report the diagnosis using the ICD-O-3 Morphology coding system (an help tool is built into the system). If also the site of the tumor will be reported (see 'site') using the ICD-O-3 Topography codes, the system will automatically define the tumor according to ICCC-3 classic pediatric classification (see: Cancer category). This field is automatically generated if both ICD-O-3 Morphology and Topography data have been reported
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.extension('mcode-histology-morphology-behavior').valueCodeableConcept

id:
  v: Diagnosis.tumorBehaviour
path:
  v: Diagnosis.tumorBehaviour
short:
  v: Tumour behaviour (ICD-O-3 type)
definition:
  v: Tumour behaviour. Automatically generated by the system for benign tumors
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.extension('mcode-histology-morphology-behavior').valueCodeableConcept

id:
  v: Diagnosis.description
path:
  v: Diagnosis.description
short:
  v: Diagnosis description
definition:
  v: Diagnosis description
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.text
mapping:
  identity:
    v: fhir
  map:
    v: Condition.code.text

id:
  v: Diagnosis.site
path:
  v: Diagnosis.site
short:
  v: Site
definition:
  v: Site of the tumor
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite

id:
  v: Diagnosis.site.code
path:
  v: Diagnosis.site.code
short:
  v: Site(ICD-O-3 topography)
definition:
  v: Site . Report the site of the tumor using the ICD-O-3 Topography (an help tool is built into the system). If also ICD-O-3 Morphology data have been reported, the system will automatically define the tumor also according to ICCC-3 classic pediatric classification (see: Cancer category)
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.coding

id:
  v: Diagnosis.site.description
path:
  v: Diagnosis.site.description
short:
  v: Site description
definition:
  v: Site description . Free text to report the site of the tumor
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.text

id:
  v: Diagnosis.laterality
path:
  v: Diagnosis.laterality
short:
  v: Laterality
definition:
  v: Laterality
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.bodySite.extension('mcode-laterality-qualifier').valueCodeableConcept

id:
  v: Diagnosis.metastasis
path:
  v: Diagnosis.metastasis
short:
  v: Metastatic
definition:
  v: Some tumors may be either localized (e.g. stage III neuroblastoma) or metastatic. Please specify.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: Condition.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-secondaryCancer-eu-pcsp')

id:
  v: Diagnosis.metastasis.identifier
path:
  v: Diagnosis.metastasis.identifier
short:
  v: Metastasis id
definition:
  v: Number of metastases
min:
  v: 0
max:
  v: *
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: fhir
  map:
    v: .identifier

id:
  v: Diagnosis.metastasis.site
path:
  v: Diagnosis.metastasis.site
short:
  v: Metastasis site
definition:
  v: Please report here the site(s) of metastases detected at diagnosis.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite

id:
  v: Diagnosis.metastasis.site.code
path:
  v: Diagnosis.metastasis.site.code
short:
  v: Metastasis site code
definition:
  v: Metastases detected at diagnosis (using ICD-O-3 Topography). If site(s) is unknown, code C80.9
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite.coding

id:
  v: Diagnosis.metastasis.site.description
path:
  v: Diagnosis.metastasis.site.description
short:
  v: Additional description of sites of metastatis
definition:
  v: Additional description of sites of metastatis
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: .bodySite.text

id:
  v: Diagnosis.geneticMarkers
path:
  v: Diagnosis.geneticMarkers
short:
  v: Genetic markers(text)
definition:
  v: Please report here any genetic marker: chromosomal alterations (e.g. translocation, deletions, duplications); or other types of genetic alterations (amplification, deletion, mutation)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#106221001 'Genetic finding')

id:
  v: Diagnosis.stage
path:
  v: Diagnosis.stage
short:
  v: Stage/Risk
definition:
  v: Stage/Risk. Free trext to specify the stage, if applicable, of the tumor at diagnosis. Staging codes may be different across tumor types and eras of treatment. Please report the one used to define the survivors' tumor at the moment of diagnosis. In case of leukemia the 'risk' (e.g. high, standard) could be reported. If the stage is unknown, specifie 'NK'
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.stage

id:
  v: Diagnosis.immunology
path:
  v: Diagnosis.immunology
short:
  v: Immunology
definition:
  v: Immunology . This is a free text field. Report here, if applicable (e.g. leukemias) the immunophenotype of the disease (sometimes already reported in the ICD-O-3 Morphology coding). If immunology is unknown, specify 'NK'
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#365861007 'Finding of immune status')

id:
  v: Diagnosis.hereditaryPredisposition
path:
  v: Diagnosis.hereditaryPredisposition
short:
  v: Hereditary Cancer Predisposition
definition:
  v: Hereditary Cancer Predisposition Syndromeor medical condition cancer associated. Report here if the survivor has some Hereditary Cancer Predisposition Syndrome or a medical conditions, cancer associated. The SurPass system provides a list of the most common Hereditary Cancer Predisposition Syndromes or other medical conditions reported to be cancer associated (an help tool is build into the system: when you start writing the computer proposes the syndromes/conditions with similar spelling). If the syndrome is not listed, please mark other and then 'Specify'
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: Condition.evidence.where(code = http://snomed.info/sct#32895009 'Hereditary disease')

id:
  v: Diagnosis.notes
path:
  v: Diagnosis.notes
short:
  v: Notes
definition:
  v: Notes
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: fhir
  map:
    v: Condition.note