MajorSurgery
type: StructureDefinition
node role: treeRoot
resource.id:
  value: MajorSurgery
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints MajorSurgery 0..* Base Major Surgery relatedDiagnosis 0..1 Identifier Progressive number of diagnosis relatedRelapse 0..1 Identifier Progressive number of relapse/progression (after FLT) identifier 0..* Identifier Progressive Surgery number istitutionOfTreatment 0..1 BackboneElement Institution of treatment description 0..1 string Institution description name 0..1 string Institution name address 0..1 BackboneElement Institution address name 0..1 string Institution city country 0..1 string Institution country date 0..1 dateTime Date of surgery description 0..1 string Surgery description affectedOrgan 0..* CodeableConcept Affected Organs <a href="StructureDefinition-MajorSurgery-definitions.html#MajorSurgery.sacrifiedOrgan" title="During surgery it is possible that some organs are 'sacrified' either to allow a radical excision of the tumor or on purpose (spleen) for staging procedures. In case of partial resection of an organ (e.g. thyroid, kidney), the organ is not 'sacrified', this type of surgery should be then reported only in the 'tumor description' For other organs (e.g. hypothalamus) the only surgical procedure on it may determine some 'sacrifcice' of function, thus in this case, the organ should be coded as 'sacrified'. (Spleen, Kidney, Eye, Lung, Ovary, Hypothalamus/hypophysis, Thyroid, Bladder, uterus Other)">sacrifiedOrgan 0..* CodeableConcept Sacrified Organs shuntApplication 0..* BackboneElement Shunt application Ventriculo-peritoneal 2 => Ventriculo atrial 3 => Subdural_peritoneal 4 => Cisternostomy (III ventricule) 5 => Other -9922 => NK">type 0..1 CodeableConcept Type of shunt NK">laterality 0..1 CodeableConcept Laterality of shunt Still in place 2 => Removed -9911 => NA -9922 => NK">isRemoved 0..1 CodeableConcept In place or removed ? Yes 2 => No -9911 => Not applicable -9922 => NK ">amputation 0..1 CodeableConcept Amputation prothesis 0..1 BackboneElement Prothesis status 0..1 CodeableConcept status Int…
structure definition.url:
  value: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
structure definition.version:
  value: 0.1.0
structure definition.name:
  value: MajorSurgery
structure definition.title:
  value: Major Surgery
structure definition.status:
  value: active
structure definition.date:
  value: 2023-01-26T09:50:21+01:00
structure definition.publisher:
  value: PanCareSurPass Project
structure definition.contact:
  index: 0
  contact detail.name:
    value: PanCareSurPass Project
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.pancaresurpass.eu/
structure definition.contact:
  index: 1
  contact detail.name:
    value: PanCareSurPass Project
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.pancaresurpass.eu/
structure definition.description:
  value: Major Surgery. Maturity Level: 2 - Ready for Review
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://unstats.un.org/unsd/methods/m49/m49.htm
    coding.code:
      value: 150
    coding.display:
      value: Europe
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: fhir
  structure definition.mapping.uri:
    value: hl7.org/fhir/r4
  structure definition.mapping.name:
    value: MajorSurgery model to PCSP HL7 FHIR R4 Profiles
structure definition.kind:
  value: logical
structure definition.abstract:
  value: false
structure definition.type:
  value: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MajorSurgery
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
structure definition.derivation:
  value: specialization
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: MajorSurgery
    element definition.path:
      value: MajorSurgery
    element definition.short:
      value: Major Surgery
    element definition.definition:
      value: Major Surgery. Maturity Level: 2 - Ready for Review
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Base
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.is modifier:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir
      element definition.mapping.map:
        value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: MajorSurgery.relatedDiagnosis
    element definition.path:
      value: MajorSurgery.relatedDiagnosis
    element definition.short:
      value: Progressive number of diagnosis
    element definition.definition:
      value: Progressive number of diagnosis (1=first; 2= second; 3 = third; ?). In this field must be reported the ordinal number of the tumor diagnosis for which the surgery was performed
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MajorSurgery.relatedDiagnosis
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: Identifier
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir
      element definition.mapping.map:
        value: .reasonReference
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: MajorSurgery.relatedRelapse
    element definition.path:
      value: MajorSurgery.relatedRelapse
    element definition.short:
      value: Progressive number of relapse/progression (after FLT)
    element definition.definition:
      value: Progressive number of relapse/progression (after FLT)
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MajorSurgery.relatedRelapse
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: Identifier
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir
      element definition.mapping.map:
        value: .reasonReference
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: MajorSurgery.identifier
    element definition.path:
      value: MajorSurgery.identifier
    element definition.short:
      value: Progressive Surgery number
    element definition.definition:
      value: Progressive number of surgeries (1=first; 2= second; 3 = third; ?). In this field must be reported the ordinal number of the surgeries given.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: MajorSurgery.identifier
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.type:
      index: 0
      element definition.type.code:
        value: Identifier
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir

value: .identifier

index: 4
element.id:
  value: MajorSurgery.istitutionOfTreatment
element definition.path:
  value: MajorSurgery.istitutionOfTreatment
element definition.short:
  value: Institution of treatment
element definition.definition:
  value: Please Identify the institution were surgery was performed
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: location.resolve().conformsTo(http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Location-eu-pcsp)

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

index: 6
element.id:
  value: MajorSurgery.istitutionOfTreatment.extension
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 7
element.id:
  value: MajorSurgery.istitutionOfTreatment.modifierExtension
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 8
element.id:
  value: MajorSurgery.istitutionOfTreatment.description
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.description
element definition.short:
  value: Institution description
element definition.definition:
  value: Institution description
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment.description
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Location.description

index: 9
element.id:
  value: MajorSurgery.istitutionOfTreatment.name
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.name
element definition.short:
  value: Institution name
element definition.definition:
  value: Institution name
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment.name
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Location.name

index: 10
element.id:
  value: MajorSurgery.istitutionOfTreatment.address
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address
element definition.short:
  value: Institution address
element definition.definition:
  value: Institution address
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment.address
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Location.address.city

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

index: 12
element.id:
  value: MajorSurgery.istitutionOfTreatment.address.extension
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 13
element.id:
  value: MajorSurgery.istitutionOfTreatment.address.modifierExtension
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 14
element.id:
  value: MajorSurgery.istitutionOfTreatment.address.name
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address.name
element definition.short:
  value: Institution city
element definition.definition:
  value: Institution city
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment.address.name
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 15
element.id:
  value: MajorSurgery.istitutionOfTreatment.address.country
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address.country
element definition.short:
  value: Institution country
element definition.definition:
  value: Institution country
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.istitutionOfTreatment.address.country
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Location.address.country

index: 16
element.id:
  value: MajorSurgery.date
element definition.path:
  value: MajorSurgery.date
element definition.short:
  value: Date of surgery
element definition.definition:
  value: Date of surgery (dd/mm/yyyy). If the date is unkown or partially missed insert the year at the best of your knowledge.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.date
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.performedDateTime

index: 17
element.id:
  value: MajorSurgery.description
element definition.path:
  value: MajorSurgery.description
element definition.short:
  value: Surgery description
element definition.definition:
  value: Please describe the type of surgery (is a free text section, no coding). In case of surgery on pair organs specify which organ (right or left) was operated.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.description
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .text

index: 18
element.id:
  value: MajorSurgery.affectedOrgan
element definition.path:
  value: MajorSurgery.affectedOrgan
element definition.short:
  value: Affected Organs
element definition.definition:
  value: Was one of these organs involved ? (Oesophagus; Abdomen; Brain; Face; Liver; Spine; Spinal Cord; Sympathetic nerves; Chest/thorax; Pelvis)
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MajorSurgery.affectedOrgan
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .bodySite
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 19
element.id:
  value: MajorSurgery.sacrifiedOrgan
element definition.path:
  value: MajorSurgery.sacrifiedOrgan
element definition.short:
  value: Sacrified Organs
element definition.definition:
  value: During surgery it is possible that some organs are 'sacrified' either to allow a radical excision of the tumor or on purpose (spleen) for staging procedures. In case of partial resection of an organ (e.g. thyroid, kidney), the organ is not 'sacrified', this type of surgery should be then reported only in the 'tumor description' For other organs (e.g. hypothalamus) the only surgical procedure on it may determine some 'sacrifcice' of function, thus in this case, the organ should be coded as 'sacrified'. (Spleen, Kidney, Eye, Lung, Ovary, Hypothalamus/hypophysis, Thyroid, Bladder, uterus Other)
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MajorSurgery.sacrifiedOrgan
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/surgery-sacrifiedOrgan').valueCodeableConcept
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 20
element.id:
  value: MajorSurgery.shuntApplication
element definition.path:
  value: MajorSurgery.shuntApplication
element definition.short:
  value: Shunt application
element definition.definition:
  value: Please report if a cerebrovascular shunt was inserted
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MajorSurgery.shuntApplication
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ShuntProcedureTypeVs))

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

index: 22
element.id:
  value: MajorSurgery.shuntApplication.extension
element definition.path:
  value: MajorSurgery.shuntApplication.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 23
element.id:
  value: MajorSurgery.shuntApplication.modifierExtension
element definition.path:
  value: MajorSurgery.shuntApplication.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 24
element.id:
  value: MajorSurgery.shuntApplication.type
element definition.path:
  value: MajorSurgery.shuntApplication.type
element definition.short:
  value: Type of shunt
element definition.definition:
  value: This is a free text section in which it is possible to specify the type (e.g. ventriculo-peritoneal) of shunt used 1 => Ventriculo-peritoneal 2 => Ventriculo atrial 3 => Subdural_peritoneal 4 => Cisternostomy (III ventricule) 5 => Other -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.shuntApplication.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 25
element.id:
  value: MajorSurgery.shuntApplication.laterality
element definition.path:
  value: MajorSurgery.shuntApplication.laterality
element definition.short:
  value: Laterality of shunt
element definition.definition:
  value: Please specify the laterality of the shunt 1 = right 2= left 3 = midline -9911 = not applicable -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.shuntApplication.laterality
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/mcode-laterality-qualifier').valueCodeableConcept

index: 26
element.id:
  value: MajorSurgery.shuntApplication.isRemoved
element definition.path:
  value: MajorSurgery.shuntApplication.isRemoved
element definition.short:
  value: In place or removed ?
element definition.definition:
  value: Define if it is still in place or is already removed 1 => Still in place 2 => Removed -9911 => NA -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.shuntApplication.isRemoved
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .focalDevice.action

index: 27
element.id:
  value: MajorSurgery.amputation
element definition.path:
  value: MajorSurgery.amputation
element definition.short:
  value: Amputation
element definition.definition:
  value: Here it is requested only a yes or no. Details should be reported in the surgery description 1 => Yes 2 => No -9911 => Not applicable -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.amputation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(AmputationProcedureTypeVs)).exists()

index: 28
element.id:
  value: MajorSurgery.prothesis
element definition.path:
  value: MajorSurgery.prothesis
element definition.short:
  value: Prothesis
element definition.definition:
  value: Prothesis
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.prothesis
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ProstheticProcedureTypeVs))

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

index: 30
element.id:
  value: MajorSurgery.prothesis.extension
element definition.path:
  value: MajorSurgery.prothesis.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 31
element.id:
  value: MajorSurgery.prothesis.modifierExtension
element definition.path:
  value: MajorSurgery.prothesis.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 32
element.id:
  value: MajorSurgery.prothesis.status
element definition.path:
  value: MajorSurgery.prothesis.status
element definition.short:
  value: status
element definition.definition:
  value: Please state if the survivor has a prosthesis either internal (e.g. hip replacement) or external (e.g. artificial arm)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.prothesis.status
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .exists()

index: 33
element.id:
  value: MajorSurgery.prothesis.deviceType
element definition.path:
  value: MajorSurgery.prothesis.deviceType
element definition.short:
  value: device type
element definition.definition:
  value: Please define if prosthesis is internal (e.g. titanium bone) or external (e.g. artificial limb). Also in this case, details should be reported in the surgery description. 1 => Internal 2 => External -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.prothesis.deviceType
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: usedCode

index: 34
element.id:
  value: MajorSurgery.colostomy
element definition.path:
  value: MajorSurgery.colostomy
element definition.short:
  value: Colostomy
element definition.definition:
  value: Colostomy
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.colostomy
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ColostomyProcedureTypeVs))

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

index: 36
element.id:
  value: MajorSurgery.colostomy.extension
element definition.path:
  value: MajorSurgery.colostomy.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 37
element.id:
  value: MajorSurgery.colostomy.modifierExtension
element definition.path:
  value: MajorSurgery.colostomy.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 38
element.id:
  value: MajorSurgery.colostomy.status
element definition.path:
  value: MajorSurgery.colostomy.status
element definition.short:
  value: status
element definition.definition:
  value: State if a colostomy was created. Details should be reported in the surgery section.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.colostomy.status
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .exists()

index: 39
element.id:
  value: MajorSurgery.colostomy.isRemoved
element definition.path:
  value: MajorSurgery.colostomy.isRemoved
element definition.short:
  value: In place or removed ?
element definition.definition:
  value: State if a colostomy was created. Details should be reported in the surgery section. 1 => Still in place 2 => Removed -9922 =>NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.colostomy.isRemoved
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .focalDevice.action

index: 40
element.id:
  value: MajorSurgery.gastrostomy
element definition.path:
  value: MajorSurgery.gastrostomy
element definition.short:
  value: Gastrostomy
element definition.definition:
  value: State if a gastrostomy was created. Details should be reported in the surgery section. 1 => Yes 2 => No -9911 => Not applicable -9922 =>NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MajorSurgery.gastrostomy
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(GastrostomyProcedureTypeVs)).exists()

structure definition.differential.element:
  index: 0
  element.id:
    value: MajorSurgery
  element definition.path:
    value: MajorSurgery
  element definition.short:
    value: Major Surgery
  element definition.definition:
    value: Major Surgery. Maturity Level: 2 - Ready for Review
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp')
structure definition.differential.element:
  index: 1
  element.id:
    value: MajorSurgery.relatedDiagnosis
  element definition.path:
    value: MajorSurgery.relatedDiagnosis
  element definition.short:
    value: Progressive number of diagnosis
  element definition.definition:
    value: Progressive number of diagnosis (1=first; 2= second; 3 = third; ?). In this field must be reported the ordinal number of the tumor diagnosis for which the surgery was performed
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: .reasonReference
structure definition.differential.element:
  index: 2
  element.id:
    value: MajorSurgery.relatedRelapse
  element definition.path:
    value: MajorSurgery.relatedRelapse
  element definition.short:
    value: Progressive number of relapse/progression (after FLT)
  element definition.definition:
    value: Progressive number of relapse/progression (after FLT)
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: .reasonReference
structure definition.differential.element:
  index: 3
  element.id:
    value: MajorSurgery.identifier
  element definition.path:
    value: MajorSurgery.identifier
  element definition.short:
    value: Progressive Surgery number
  element definition.definition:
    value: Progressive number of surgeries (1=first; 2= second; 3 = third; ?). In this field must be reported the ordinal number of the surgeries given.
  element definition.min:
    value: 0
  element definition.max:
    value: *
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: .identifier
structure definition.differential.element:
  index: 4
  element.id:
    value: MajorSurgery.istitutionOfTreatment
  element definition.path:
    value: MajorSurgery.istitutionOfTreatment
  element definition.short:
    value: Institution of treatment
  element definition.definition:
    value: Please Identify the institution were surgery was performed
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: BackboneElement
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: location.resolve().conformsTo(http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Location-eu-pcsp)
structure definition.differential.element:
  index: 5
  element.id:
    value: MajorSurgery.istitutionOfTreatment.description
  element definition.path:
    value: MajorSurgery.istitutionOfTreatment.description
  element definition.short:
    value: Institution description
  element definition.definition:
    value: Institution description
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: Location.description
structure definition.differential.element:
  index: 6
  element.id:
    value: MajorSurgery.istitutionOfTreatment.name
  element definition.path:
    value: MajorSurgery.istitutionOfTreatment.name
  element definition.short:
    value: Institution name
  element definition.definition:
    value: Institution name
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: Location.name
structure definition.differential.element:
  index: 7
  element.id:
    value: MajorSurgery.istitutionOfTreatment.address
  element definition.path:
    value: MajorSurgery.istitutionOfTreatment.address
  element definition.short:
    value: Institution address
  element definition.definition:
    value: Institution address
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: BackboneElement
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: Location.address.city
structure definition.differential.element:
  index: 8
  element.id:
    value: MajorSurgery.istitutionOfTreatment.address.name
  element definition.path:
    value: MajorSurgery.istitutionOfTreatment.address.name
  element definition.short:
    value: Institution city
  element definition.definition:
    value: Institution city
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string

index: 9
element.id:
  value: MajorSurgery.istitutionOfTreatment.address.country
element definition.path:
  value: MajorSurgery.istitutionOfTreatment.address.country
element definition.short:
  value: Institution country
element definition.definition:
  value: Institution country
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Location.address.country

index: 10
element.id:
  value: MajorSurgery.date
element definition.path:
  value: MajorSurgery.date
element definition.short:
  value: Date of surgery
element definition.definition:
  value: Date of surgery (dd/mm/yyyy). If the date is unkown or partially missed insert the year at the best of your knowledge.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.performedDateTime

index: 11
element.id:
  value: MajorSurgery.description
element definition.path:
  value: MajorSurgery.description
element definition.short:
  value: Surgery description
element definition.definition:
  value: Please describe the type of surgery (is a free text section, no coding). In case of surgery on pair organs specify which organ (right or left) was operated.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .text

index: 12
element.id:
  value: MajorSurgery.affectedOrgan
element definition.path:
  value: MajorSurgery.affectedOrgan
element definition.short:
  value: Affected Organs
element definition.definition:
  value: Was one of these organs involved ? (Oesophagus; Abdomen; Brain; Face; Liver; Spine; Spinal Cord; Sympathetic nerves; Chest/thorax; Pelvis)
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .bodySite
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 13
element.id:
  value: MajorSurgery.sacrifiedOrgan
element definition.path:
  value: MajorSurgery.sacrifiedOrgan
element definition.short:
  value: Sacrified Organs
element definition.definition:
  value: During surgery it is possible that some organs are 'sacrified' either to allow a radical excision of the tumor or on purpose (spleen) for staging procedures. In case of partial resection of an organ (e.g. thyroid, kidney), the organ is not 'sacrified', this type of surgery should be then reported only in the 'tumor description' For other organs (e.g. hypothalamus) the only surgical procedure on it may determine some 'sacrifcice' of function, thus in this case, the organ should be coded as 'sacrified'. (Spleen, Kidney, Eye, Lung, Ovary, Hypothalamus/hypophysis, Thyroid, Bladder, uterus Other)
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/surgery-sacrifiedOrgan').valueCodeableConcept
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 14
element.id:
  value: MajorSurgery.shuntApplication
element definition.path:
  value: MajorSurgery.shuntApplication
element definition.short:
  value: Shunt application
element definition.definition:
  value: Please report if a cerebrovascular shunt was inserted
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ShuntProcedureTypeVs))

index: 15
element.id:
  value: MajorSurgery.shuntApplication.type
element definition.path:
  value: MajorSurgery.shuntApplication.type
element definition.short:
  value: Type of shunt
element definition.definition:
  value: This is a free text section in which it is possible to specify the type (e.g. ventriculo-peritoneal) of shunt used 1 => Ventriculo-peritoneal 2 => Ventriculo atrial 3 => Subdural_peritoneal 4 => Cisternostomy (III ventricule) 5 => Other -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .code

index: 16
element.id:
  value: MajorSurgery.shuntApplication.laterality
element definition.path:
  value: MajorSurgery.shuntApplication.laterality
element definition.short:
  value: Laterality of shunt
element definition.definition:
  value: Please specify the laterality of the shunt 1 = right 2= left 3 = midline -9911 = not applicable -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .extension('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/mcode-laterality-qualifier').valueCodeableConcept

index: 17
element.id:
  value: MajorSurgery.shuntApplication.isRemoved
element definition.path:
  value: MajorSurgery.shuntApplication.isRemoved
element definition.short:
  value: In place or removed ?
element definition.definition:
  value: Define if it is still in place or is already removed 1 => Still in place 2 => Removed -9911 => NA -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .focalDevice.action

index: 18
element.id:
  value: MajorSurgery.amputation
element definition.path:
  value: MajorSurgery.amputation
element definition.short:
  value: Amputation
element definition.definition:
  value: Here it is requested only a yes or no. Details should be reported in the surgery description 1 => Yes 2 => No -9911 => Not applicable -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(AmputationProcedureTypeVs)).exists()

index: 19
element.id:
  value: MajorSurgery.prothesis
element definition.path:
  value: MajorSurgery.prothesis
element definition.short:
  value: Prothesis
element definition.definition:
  value: Prothesis
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ProstheticProcedureTypeVs))

index: 20
element.id:
  value: MajorSurgery.prothesis.status
element definition.path:
  value: MajorSurgery.prothesis.status
element definition.short:
  value: status
element definition.definition:
  value: Please state if the survivor has a prosthesis either internal (e.g. hip replacement) or external (e.g. artificial arm)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .exists()

index: 21
element.id:
  value: MajorSurgery.prothesis.deviceType
element definition.path:
  value: MajorSurgery.prothesis.deviceType
element definition.short:
  value: device type
element definition.definition:
  value: Please define if prosthesis is internal (e.g. titanium bone) or external (e.g. artificial limb). Also in this case, details should be reported in the surgery description. 1 => Internal 2 => External -9922 => NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: usedCode

index: 22
element.id:
  value: MajorSurgery.colostomy
element definition.path:
  value: MajorSurgery.colostomy
element definition.short:
  value: Colostomy
element definition.definition:
  value: Colostomy
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(ColostomyProcedureTypeVs))

index: 23
element.id:
  value: MajorSurgery.colostomy.status
element definition.path:
  value: MajorSurgery.colostomy.status
element definition.short:
  value: status
element definition.definition:
  value: State if a colostomy was created. Details should be reported in the surgery section.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .exists()

index: 24
element.id:
  value: MajorSurgery.colostomy.isRemoved
element definition.path:
  value: MajorSurgery.colostomy.isRemoved
element definition.short:
  value: In place or removed ?
element definition.definition:
  value: State if a colostomy was created. Details should be reported in the surgery section. 1 => Still in place 2 => Removed -9922 =>NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: .focalDevice.action

index: 25
element.id:
  value: MajorSurgery.gastrostomy
element definition.path:
  value: MajorSurgery.gastrostomy
element definition.short:
  value: Gastrostomy
element definition.definition:
  value: State if a gastrostomy was created. Details should be reported in the surgery section. 1 => Yes 2 => No -9911 => Not applicable -9922 =>NK
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: Procedure.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Procedure-surgery-eu-pcsp').where(code.memberOf(GastrostomyProcedureTypeVs)).exists()