DocMetadataFSE
type: StructureDefinition
node role: treeRoot
resource.id:
  value: DocMetadataFSE
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints DocMetadataFSE 0..* Base Metadata FSE Italy identifier 0..1 Identifier document ID mimeType 0..1 code MIME type size 0..1 unsignedInt size hash 0..1 base64Binary hash code 0..1 CodeableConcept document code classCode 0..1 CodeableConcept Type of document contentType 0..1 CodeableConcept Content Type creationDate 0..1 dateTime creation date confidentiality 0..1 CodeableConcept confidentiality mask 0..1 CodeableConcept mask (oscuramento) replace 0..1 Identifier replaced document formatCode 0..1 CodeableConcept Format of document repositoryId 0..1 Identifier Repository Id indexDate 0..1 dateTime Index Date practiceSettingCode 0..1 CodeableConcept Practice setting code patientFiscalCode 0..1 Identifier Patient Fiscal Code author 0..1 BackboneElement Author fiscalCode 0..1 Identifier Author Fiscal Code orgCode 0..1 CodeableConcept Author Organization (code) role 0..1 CodeableConcept Author Role (code) attesterFiscalCode 0..1 Identifier Attester Fiscal Code custiodian 0..1 CodeableConcept Custodian Documentation for this format
structure definition.url:
  value: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/DocMetadataFSE
structure definition.version:
  value: 0.1.0
structure definition.name:
  value: DocMetadataFSE
structure definition.title:
  value: Metadata FSE Italy
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: Metadata FSE Italy. Maturity Level: 0
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: DocMetadataFSE 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/DocMetadataFSE
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: DocMetadataFSE
    element definition.path:
      value: DocMetadataFSE
    element definition.short:
      value: Metadata FSE Italy
    element definition.definition:
      value: Metadata FSE Italy. Maturity Level: 0
    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: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: DocMetadataFSE.identifier
    element definition.path:
      value: DocMetadataFSE.identifier
    element definition.short:
      value: document ID
    element definition.definition:
      value: Id documento (dovrebbe essere sull'oid root di regione Liguria) oid root + extension che comincia per nostro standard con le ultime tre cifre del codice azienda (940 per Gaslini) pi� punto pi� id univoco all'interno dell'azienda)
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: DocMetadataFSE.identifier
      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: �DocumentReference.masterIdentifier
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: DocMetadataFSE.mimeType
    element definition.path:
      value: DocMetadataFSE.mimeType
    element definition.short:
      value: MIME type
    element definition.definition:
      value: Tipo mime del documento
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: DocMetadataFSE.mimeType
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: code
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir
      element definition.mapping.map:
        value: DocumentReference.content.attachment.contentType
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: DocMetadataFSE.size
    element definition.path:
      value: DocMetadataFSE.size
    element definition.short:
      value: size
    element definition.definition:
      value: Size del documento
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: DocMetadataFSE.size
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: unsignedInt
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: fhir

value: DocumentReference.content.attachment.size

index: 4
element.id:
  value: DocMetadataFSE.hash
element definition.path:
  value: DocMetadataFSE.hash
element definition.short:
  value: hash
element definition.definition:
  value: Hash del documento
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.hash
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: base64Binary
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: fhir
  element definition.mapping.map:
    value: DocumentReference.content.attachment.hash

index: 5
element.id:
  value: DocMetadataFSE.code
element definition.path:
  value: DocMetadataFSE.code
element definition.short:
  value: document code
element definition.definition:
  value: Codice loinc del documento (parliamone)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.code
  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: DocumentReference.type

index: 6
element.id:
  value: DocMetadataFSE.classCode
element definition.path:
  value: DocMetadataFSE.classCode
element definition.short:
  value: Type of document
element definition.definition:
  value: Tipo documento (REF)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.classCode
  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: DocumentReference.category

index: 7
element.id:
  value: DocMetadataFSE.contentType
element definition.path:
  value: DocMetadataFSE.contentType
element definition.short:
  value: Content Type
element definition.definition:
  value: Content type code (da decidere se consulto o dimissione)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.contentType
  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: DocumentReference.category (TBC)

index: 8
element.id:
  value: DocMetadataFSE.creationDate
element definition.path:
  value: DocMetadataFSE.creationDate
element definition.short:
  value: creation date
element definition.definition:
  value: Data creazione del documento
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.creationDate
  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: DocumentReference.content.attachment.creation

index: 9
element.id:
  value: DocMetadataFSE.confidentiality
element definition.path:
  value: DocMetadataFSE.confidentiality
element definition.short:
  value: confidentiality
element definition.definition:
  value: Confidentiality (propendo per V, sarebbe un default))
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.confidentiality
  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: DocumentReference.securityLabel

index: 10
element.id:
  value: DocMetadataFSE.mask
element definition.path:
  value: DocMetadataFSE.mask
element definition.short:
  value: mask (oscuramento)
element definition.definition:
  value: Oscuramento (propendo per l'invio come oscurato, sarebbe un default)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.mask
  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: DocumentReference.securityLabel

index: 11
element.id:
  value: DocMetadataFSE.replace
element definition.path:
  value: DocMetadataFSE.replace
element definition.short:
  value: replaced document
element definition.definition:
  value: Eventuale documento sostituito (oid + extension)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.replace
  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: DocumentReference.relatesTo.where(code = 'replaces').target

index: 12
element.id:
  value: DocMetadataFSE.formatCode
element definition.path:
  value: DocMetadataFSE.formatCode
element definition.short:
  value: Format of document
element definition.definition:
  value: Formato documento (PDF)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.formatCode
  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: DocumentReference.content.format

index: 13
element.id:
  value: DocMetadataFSE.repositoryId
element definition.path:
  value: DocMetadataFSE.repositoryId
element definition.short:
  value: Repository Id
element definition.definition:
  value: Id repository (Gaslini ne ha uno)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.repositoryId
  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: DocumentReference.content.attachment.url

index: 14
element.id:
  value: DocMetadataFSE.indexDate
element definition.path:
  value: DocMetadataFSE.indexDate
element definition.short:
  value: Index Date
element definition.definition:
  value: Data indicizzazione (la aggiunge chi indicizza)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.indexDate
  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: DocumentReference.date (TBC)

index: 15
element.id:
  value: DocMetadataFSE.practiceSettingCode
element definition.path:
  value: DocMetadataFSE.practiceSettingCode
element definition.short:
  value: Practice setting code
element definition.definition:
  value: Practice setting code (da stabilire con Gaslini)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.practiceSettingCode
  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: DocumentReference.context.practiceSetting

index: 16
element.id:
  value: DocMetadataFSE.patientFiscalCode
element definition.path:
  value: DocMetadataFSE.patientFiscalCode
element definition.short:
  value: Patient Fiscal Code
element definition.definition:
  value: Codice fiscale paziente soggetto del documento
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.patientFiscalCode
  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: DocumentReference.subject.resolve().ofType(Patient).identifier

index: 17
element.id:
  value: DocMetadataFSE.author
element definition.path:
  value: DocMetadataFSE.author
element definition.short:
  value: Author
element definition.definition:
  value: Author
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.author
  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: DocumentReference.author

index: 18
element.id:
  value: DocMetadataFSE.author.id
element definition.path:
  value: DocMetadataFSE.author.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: 19
element.id:
  value: DocMetadataFSE.author.extension
element definition.path:
  value: DocMetadataFSE.author.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: 20
element.id:
  value: DocMetadataFSE.author.modifierExtension
element definition.path:
  value: DocMetadataFSE.author.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: 21
element.id:
  value: DocMetadataFSE.author.fiscalCode
element definition.path:
  value: DocMetadataFSE.author.fiscalCode
element definition.short:
  value: Author Fiscal Code
element definition.definition:
  value: Codice fiscale autore del documento
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.author.fiscalCode
  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: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().identifier

index: 22
element.id:
  value: DocMetadataFSE.author.orgCode
element definition.path:
  value: DocMetadataFSE.author.orgCode
element definition.short:
  value: Author Organization (code)
element definition.definition:
  value: Struttura dell'autore (codifica come sopra)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.author.orgCode
  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: DocumentReference.author.resolve().ofType(PractitionerRole).practitioner.resolve().ofType(Practitioner).identifier

index: 23
element.id:
  value: DocMetadataFSE.author.role
element definition.path:
  value: DocMetadataFSE.author.role
element definition.short:
  value: Author Role (code)
element definition.definition:
  value: Ruolo autore (codifica come sopra)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.author.role
  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: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().code

index: 24
element.id:
  value: DocMetadataFSE.attesterFiscalCode
element definition.path:
  value: DocMetadataFSE.attesterFiscalCode
element definition.short:
  value: Attester Fiscal Code
element definition.definition:
  value: Firmatario del documento (codice fiscale)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.attesterFiscalCode
  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: DocumentReference.author.resolve().ofType(Practitioner).identifier

index: 25
element.id:
  value: DocMetadataFSE.custiodian
element definition.path:
  value: DocMetadataFSE.custiodian
element definition.short:
  value: Custodian
element definition.definition:
  value: Codice azienda custode del documento (070940)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DocMetadataFSE.custiodian
  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: DocumentReference.custodian.resolve().identifier

structure definition.differential.element:
  index: 0
  element.id:
    value: DocMetadataFSE
  element definition.path:
    value: DocMetadataFSE
  element definition.short:
    value: Metadata FSE Italy
  element definition.definition:
    value: Metadata FSE Italy. Maturity Level: 0
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')
structure definition.differential.element:
  index: 1
  element.id:
    value: DocMetadataFSE.identifier
  element definition.path:
    value: DocMetadataFSE.identifier
  element definition.short:
    value: document ID
  element definition.definition:
    value: Id documento (dovrebbe essere sull'oid root di regione Liguria) oid root + extension che comincia per nostro standard con le ultime tre cifre del codice azienda (940 per Gaslini) pi� punto pi� id univoco all'interno dell'azienda)
  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: �DocumentReference.masterIdentifier
structure definition.differential.element:
  index: 2
  element.id:
    value: DocMetadataFSE.mimeType
  element definition.path:
    value: DocMetadataFSE.mimeType
  element definition.short:
    value: MIME type
  element definition.definition:
    value: Tipo mime del documento
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: code
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: DocumentReference.content.attachment.contentType
structure definition.differential.element:
  index: 3
  element.id:
    value: DocMetadataFSE.size
  element definition.path:
    value: DocMetadataFSE.size
  element definition.short:
    value: size
  element definition.definition:
    value: Size del documento
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: unsignedInt
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: DocumentReference.content.attachment.size
structure definition.differential.element:
  index: 4
  element.id:
    value: DocMetadataFSE.hash
  element definition.path:
    value: DocMetadataFSE.hash
  element definition.short:
    value: hash
  element definition.definition:
    value: Hash del documento
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: base64Binary
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: fhir
    element definition.mapping.map:
      value: DocumentReference.content.attachment.hash
structure definition.differential.element:
  index: 5
  element.id:
    value: DocMetadataFSE.code
  element definition.path:
    value: DocMetadataFSE.code
  element definition.short:
    value: document code
  element definition.definition:
    value: Codice loinc del documento (parliamone)
  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: DocumentReference.type
structure definition.differential.element:
  index: 6
  element.id:
    value: DocMetadataFSE.classCode
  element definition.path:
    value: DocMetadataFSE.classCode
  element definition.short:
    value: Type of document
  element definition.definition:
    value: Tipo documento (REF)
  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: DocumentReference.category
structure definition.differential.element:
  index: 7
  element.id:
    value: DocMetadataFSE.contentType
  element definition.path:
    value: DocMetadataFSE.contentType
  element definition.short:
    value: Content Type
  element definition.definition:
    value: Content type code (da decidere se consulto o dimissione)
  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: DocumentReference.category (TBC)
structure definition.differential.element:
  index: 8
  element.id:
    value: DocMetadataFSE.creationDate
  element definition.path:
    value: DocMetadataFSE.creationDate
  element definition.short:
    value: creation date
  element definition.definition:
    value: Data creazione del documento
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: dateTime

index: 0
element definition.mapping.identity:
  value: fhir
element definition.mapping.map:
  value: DocumentReference.content.attachment.creation

index: 9
element.id:
  value: DocMetadataFSE.confidentiality
element definition.path:
  value: DocMetadataFSE.confidentiality
element definition.short:
  value: confidentiality
element definition.definition:
  value: Confidentiality (propendo per V, sarebbe un default))
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: DocumentReference.securityLabel

index: 10
element.id:
  value: DocMetadataFSE.mask
element definition.path:
  value: DocMetadataFSE.mask
element definition.short:
  value: mask (oscuramento)
element definition.definition:
  value: Oscuramento (propendo per l'invio come oscurato, sarebbe un default)
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: DocumentReference.securityLabel

index: 11
element.id:
  value: DocMetadataFSE.replace
element definition.path:
  value: DocMetadataFSE.replace
element definition.short:
  value: replaced document
element definition.definition:
  value: Eventuale documento sostituito (oid + extension)
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: DocumentReference.relatesTo.where(code = 'replaces').target

index: 12
element.id:
  value: DocMetadataFSE.formatCode
element definition.path:
  value: DocMetadataFSE.formatCode
element definition.short:
  value: Format of document
element definition.definition:
  value: Formato documento (PDF)
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: DocumentReference.content.format

index: 13
element.id:
  value: DocMetadataFSE.repositoryId
element definition.path:
  value: DocMetadataFSE.repositoryId
element definition.short:
  value: Repository Id
element definition.definition:
  value: Id repository (Gaslini ne ha uno)
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: DocumentReference.content.attachment.url

index: 14
element.id:
  value: DocMetadataFSE.indexDate
element definition.path:
  value: DocMetadataFSE.indexDate
element definition.short:
  value: Index Date
element definition.definition:
  value: Data indicizzazione (la aggiunge chi indicizza)
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: DocumentReference.date (TBC)

index: 15
element.id:
  value: DocMetadataFSE.practiceSettingCode
element definition.path:
  value: DocMetadataFSE.practiceSettingCode
element definition.short:
  value: Practice setting code
element definition.definition:
  value: Practice setting code (da stabilire con Gaslini)
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: DocumentReference.context.practiceSetting

index: 16
element.id:
  value: DocMetadataFSE.patientFiscalCode
element definition.path:
  value: DocMetadataFSE.patientFiscalCode
element definition.short:
  value: Patient Fiscal Code
element definition.definition:
  value: Codice fiscale paziente soggetto del documento
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: DocumentReference.subject.resolve().ofType(Patient).identifier

index: 17
element.id:
  value: DocMetadataFSE.author
element definition.path:
  value: DocMetadataFSE.author
element definition.short:
  value: Author
element definition.definition:
  value: Author
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: DocumentReference.author

index: 18
element.id:
  value: DocMetadataFSE.author.fiscalCode
element definition.path:
  value: DocMetadataFSE.author.fiscalCode
element definition.short:
  value: Author Fiscal Code
element definition.definition:
  value: Codice fiscale autore del documento
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: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().identifier

index: 19
element.id:
  value: DocMetadataFSE.author.orgCode
element definition.path:
  value: DocMetadataFSE.author.orgCode
element definition.short:
  value: Author Organization (code)
element definition.definition:
  value: Struttura dell'autore (codifica come sopra)
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: DocumentReference.author.resolve().ofType(PractitionerRole).practitioner.resolve().ofType(Practitioner).identifier

index: 20
element.id:
  value: DocMetadataFSE.author.role
element definition.path:
  value: DocMetadataFSE.author.role
element definition.short:
  value: Author Role (code)
element definition.definition:
  value: Ruolo autore (codifica come sopra)
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: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().code

index: 21
element.id:
  value: DocMetadataFSE.attesterFiscalCode
element definition.path:
  value: DocMetadataFSE.attesterFiscalCode
element definition.short:
  value: Attester Fiscal Code
element definition.definition:
  value: Firmatario del documento (codice fiscale)
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: DocumentReference.author.resolve().ofType(Practitioner).identifier

index: 22
element.id:
  value: DocMetadataFSE.custiodian
element definition.path:
  value: DocMetadataFSE.custiodian
element definition.short:
  value: Custodian
element definition.definition:
  value: Codice azienda custode del documento (070940)
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: DocumentReference.custodian.resolve().identifier