DocMetadataFSE
type: StructureDefinition
node role: treeRoot
id:
  v: DocMetadataFSE
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition DocMetadataFSE Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> DocMetadataFSE 0..* Base Metadata FSE Italy #xD; identifier 0..1 Identifier document ID #xD; mimeType 0..1 code MIME type #xD; size 0..1 unsignedInt size #xD; hash 0..1 base64Binary hash #xD; code 0..1 CodeableConcept document code #xD; classCode 0..1 CodeableConcept Type of document #xD; contentType 0..1 CodeableConcept Content Type #xD; creationDate 0..1 dateTime creation date #xD; confidentiality 0..1 CodeableConcept confidentiality #xD; mask 0..1 CodeableConcept mask (oscuramento) #xD; replace 0..1 Identifier replaced document #xD; formatCode 0..1 CodeableConcept Format of document #xD; repositoryId 0..1 Identifier Repository Id #xD; indexDate 0..1 dateTime Index Date #xD; practiceSettingCode 0..1 CodeableConcept Practice setting code #xD; patientFiscalCode 0..1 Identifier Patient Fiscal Code #xD; author 0..1 BackboneElement Author #xD; fiscalCode 0..1 Identifier Author Fiscal Code #xD; orgCode 0..1 CodeableConcept Author Organization (code) #xD; role 0..1 CodeableConcept Author Role (code) #xD; attesterFiscalCode 0..1 Identifier Attester Fiscal Code #xD; custiodian 0..1 CodeableConcept Custodian #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/DocMetadataFSE
  l: DocMetadataFSE
version:
  v: 1.0.0
name:
  v: DocMetadataFSE
title:
  v: Metadata FSE Italy
status:
  v: active
date:
  v: 2026-01-16T12:01:48+00:00
publisher:
  v: PanCareSurPass Project
contact:
  name:
    v: PanCareSurPass Project
  telecom:
    system:
      v: url
    value:
      v: https://www.pancaresurpass.eu/
contact:
  name:
    v: PanCareSurPass Project
  telecom:
    system:
      v: url
    value:
      v: https://www.pancaresurpass.eu/
description:
  v: Metadata FSE Italy.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 150
    display:
      v: Europe
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: fhir
  uri:
    v: hl7.org/fhir/r4
    l: r4
  name:
    v: DocMetadataFSE model to PCSP HL7 FHIR R4 Profiles
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.eu/fhir/ig/pcsp/StructureDefinition/DocMetadataFSE
  l: DocMetadataFSE
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: DocMetadataFSE
    path:
      v: DocMetadataFSE
    short:
      v: Metadata FSE Italy
    definition:
      v: Metadata FSE Italy.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: fhir
      map:
        v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')
  element:
    id:
      v: DocMetadataFSE.identifier
    path:
      v: DocMetadataFSE.identifier
    short:
      v: document ID
    definition:
      v: 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)
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: DocMetadataFSE.identifier
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Identifier
        l: Identifier
    mapping:
      identity:
        v: fhir
      map:
        v: �DocumentReference.masterIdentifier
  element:
    id:
      v: DocMetadataFSE.mimeType
    path:
      v: DocMetadataFSE.mimeType
    short:
      v: MIME type
    definition:
      v: Tipo mime del documento
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: DocMetadataFSE.mimeType
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: code
        l: code
    mapping:
      identity:
        v: fhir
      map:
        v: DocumentReference.content.attachment.contentType
  element:
    id:
      v: DocMetadataFSE.size
    path:
      v: DocMetadataFSE.size
    short:
      v: size
    definition:
      v: Size del documento
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: DocMetadataFSE.size
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: unsignedInt
        l: unsignedInt
    mapping:
      identity:
        v: fhir
      map:
        v: DocumentReference.content.attachment.size
  element:
    id:
      v: DocMetadataFSE.hash
    path:
      v: DocMetadataFSE.hash
    short:
      v: hash
    definition:
      v: Hash del documento

v: 0

v: 1

path:
  v: DocMetadataFSE.hash
min:
  v: 0
max:
  v: 1

code:
  v: base64Binary
  l: base64Binary

identity:
  v: fhir
map:
  v: DocumentReference.content.attachment.hash

id:
  v: DocMetadataFSE.code
path:
  v: DocMetadataFSE.code
short:
  v: document code
definition:
  v: Codice loinc del documento (parliamone)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.type

id:
  v: DocMetadataFSE.classCode
path:
  v: DocMetadataFSE.classCode
short:
  v: Type of document
definition:
  v: Tipo documento (REF)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.classCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.category

id:
  v: DocMetadataFSE.contentType
path:
  v: DocMetadataFSE.contentType
short:
  v: Content Type
definition:
  v: Content type code (da decidere se consulto o dimissione)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.contentType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.category (TBC)

id:
  v: DocMetadataFSE.creationDate
path:
  v: DocMetadataFSE.creationDate
short:
  v: creation date
definition:
  v: Data creazione del documento
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.creationDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.content.attachment.creation

id:
  v: DocMetadataFSE.confidentiality
path:
  v: DocMetadataFSE.confidentiality
short:
  v: confidentiality
definition:
  v: Confidentiality (propendo per V, sarebbe un default))
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.confidentiality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.securityLabel

id:
  v: DocMetadataFSE.mask
path:
  v: DocMetadataFSE.mask
short:
  v: mask (oscuramento)
definition:
  v: Oscuramento (propendo per l'invio come oscurato, sarebbe un default)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.mask
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.securityLabel

id:
  v: DocMetadataFSE.replace
path:
  v: DocMetadataFSE.replace
short:
  v: replaced document
definition:
  v: Eventuale documento sostituito (oid + extension)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.replace
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.relatesTo.where(code = 'replaces').target

id:
  v: DocMetadataFSE.formatCode
path:
  v: DocMetadataFSE.formatCode
short:
  v: Format of document
definition:
  v: Formato documento (PDF)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.formatCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.content.format

id:
  v: DocMetadataFSE.repositoryId
path:
  v: DocMetadataFSE.repositoryId
short:
  v: Repository Id
definition:
  v: Id repository (Gaslini ne ha uno)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.repositoryId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.content.attachment.url

id:
  v: DocMetadataFSE.indexDate
path:
  v: DocMetadataFSE.indexDate
short:
  v: Index Date
definition:
  v: Data indicizzazione (la aggiunge chi indicizza)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.indexDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.date (TBC)

id:
  v: DocMetadataFSE.practiceSettingCode
path:
  v: DocMetadataFSE.practiceSettingCode
short:
  v: Practice setting code
definition:
  v: Practice setting code (da stabilire con Gaslini)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.practiceSettingCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.context.practiceSetting

id:
  v: DocMetadataFSE.patientFiscalCode
path:
  v: DocMetadataFSE.patientFiscalCode
short:
  v: Patient Fiscal Code
definition:
  v: Codice fiscale paziente soggetto del documento
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.patientFiscalCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.subject.resolve().ofType(Patient).identifier

id:
  v: DocMetadataFSE.author
path:
  v: DocMetadataFSE.author
short:
  v: Author
definition:
  v: Author
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author

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

id:
  v: DocMetadataFSE.author.extension
path:
  v: DocMetadataFSE.author.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocMetadataFSE.author.modifierExtension
path:
  v: DocMetadataFSE.author.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocMetadataFSE.author.fiscalCode
path:
  v: DocMetadataFSE.author.fiscalCode
short:
  v: Author Fiscal Code
definition:
  v: Codice fiscale autore del documento
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.author.fiscalCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().identifier

id:
  v: DocMetadataFSE.author.orgCode
path:
  v: DocMetadataFSE.author.orgCode
short:
  v: Author Organization (code)
definition:
  v: Struttura dell'autore (codifica come sopra)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.author.orgCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).practitioner.resolve().ofType(Practitioner).identifier

id:
  v: DocMetadataFSE.author.role
path:
  v: DocMetadataFSE.author.role
short:
  v: Author Role (code)
definition:
  v: Ruolo autore (codifica come sopra)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.author.role
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().code

id:
  v: DocMetadataFSE.attesterFiscalCode
path:
  v: DocMetadataFSE.attesterFiscalCode
short:
  v: Attester Fiscal Code
definition:
  v: Firmatario del documento (codice fiscale)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.attesterFiscalCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(Practitioner).identifier

id:
  v: DocMetadataFSE.custiodian
path:
  v: DocMetadataFSE.custiodian
short:
  v: Custodian
definition:
  v: Codice azienda custode del documento (070940)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocMetadataFSE.custiodian
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.custodian.resolve().identifier

element:
  id:
    v: DocMetadataFSE
  path:
    v: DocMetadataFSE
  short:
    v: Metadata FSE Italy
  definition:
    v: Metadata FSE Italy.
  mapping:
    identity:
      v: fhir
    map:
      v: MedicationAdministration.conformsTo('http://hl7.eu/fhir/ig/pcsp/StructureDefinition/MedicationAdministration-eu-pcsp')
element:
  id:
    v: DocMetadataFSE.identifier
  path:
    v: DocMetadataFSE.identifier
  short:
    v: document ID
  definition:
    v: 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)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: fhir
    map:
      v: �DocumentReference.masterIdentifier
element:
  id:
    v: DocMetadataFSE.mimeType
  path:
    v: DocMetadataFSE.mimeType
  short:
    v: MIME type
  definition:
    v: Tipo mime del documento
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.content.attachment.contentType
element:
  id:
    v: DocMetadataFSE.size
  path:
    v: DocMetadataFSE.size
  short:
    v: size
  definition:
    v: Size del documento
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: unsignedInt
      l: unsignedInt
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.content.attachment.size
element:
  id:
    v: DocMetadataFSE.hash
  path:
    v: DocMetadataFSE.hash
  short:
    v: hash
  definition:
    v: Hash del documento
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: base64Binary
      l: base64Binary
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.content.attachment.hash
element:
  id:
    v: DocMetadataFSE.code
  path:
    v: DocMetadataFSE.code
  short:
    v: document code
  definition:
    v: Codice loinc del documento (parliamone)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.type
element:
  id:
    v: DocMetadataFSE.classCode
  path:
    v: DocMetadataFSE.classCode
  short:
    v: Type of document
  definition:
    v: Tipo documento (REF)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.category
element:
  id:
    v: DocMetadataFSE.contentType
  path:
    v: DocMetadataFSE.contentType
  short:
    v: Content Type
  definition:
    v: Content type code (da decidere se consulto o dimissione)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.category (TBC)
element:
  id:
    v: DocMetadataFSE.creationDate
  path:
    v: DocMetadataFSE.creationDate
  short:
    v: creation date
  definition:
    v: Data creazione del documento
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
  mapping:
    identity:
      v: fhir
    map:
      v: DocumentReference.content.attachment.creation
element:
  id:
    v: DocMetadataFSE.confidentiality
  path:
    v: DocMetadataFSE.confidentiality
  short:
    v: confidentiality
  definition:
    v: Confidentiality (propendo per V, sarebbe un default))
  min:
    v: 0

v: 1

code:
  v: CodeableConcept
  l: CodeableConcept

identity:
  v: fhir
map:
  v: DocumentReference.securityLabel

id:
  v: DocMetadataFSE.mask
path:
  v: DocMetadataFSE.mask
short:
  v: mask (oscuramento)
definition:
  v: Oscuramento (propendo per l'invio come oscurato, sarebbe un default)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.securityLabel

id:
  v: DocMetadataFSE.replace
path:
  v: DocMetadataFSE.replace
short:
  v: replaced document
definition:
  v: Eventuale documento sostituito (oid + extension)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.relatesTo.where(code = 'replaces').target

id:
  v: DocMetadataFSE.formatCode
path:
  v: DocMetadataFSE.formatCode
short:
  v: Format of document
definition:
  v: Formato documento (PDF)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.content.format

id:
  v: DocMetadataFSE.repositoryId
path:
  v: DocMetadataFSE.repositoryId
short:
  v: Repository Id
definition:
  v: Id repository (Gaslini ne ha uno)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.content.attachment.url

id:
  v: DocMetadataFSE.indexDate
path:
  v: DocMetadataFSE.indexDate
short:
  v: Index Date
definition:
  v: Data indicizzazione (la aggiunge chi indicizza)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.date (TBC)

id:
  v: DocMetadataFSE.practiceSettingCode
path:
  v: DocMetadataFSE.practiceSettingCode
short:
  v: Practice setting code
definition:
  v: Practice setting code (da stabilire con Gaslini)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.context.practiceSetting

id:
  v: DocMetadataFSE.patientFiscalCode
path:
  v: DocMetadataFSE.patientFiscalCode
short:
  v: Patient Fiscal Code
definition:
  v: Codice fiscale paziente soggetto del documento
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.subject.resolve().ofType(Patient).identifier

id:
  v: DocMetadataFSE.author
path:
  v: DocMetadataFSE.author
short:
  v: Author
definition:
  v: Author
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author

id:
  v: DocMetadataFSE.author.fiscalCode
path:
  v: DocMetadataFSE.author.fiscalCode
short:
  v: Author Fiscal Code
definition:
  v: Codice fiscale autore del documento
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().identifier

id:
  v: DocMetadataFSE.author.orgCode
path:
  v: DocMetadataFSE.author.orgCode
short:
  v: Author Organization (code)
definition:
  v: Struttura dell'autore (codifica come sopra)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).practitioner.resolve().ofType(Practitioner).identifier

id:
  v: DocMetadataFSE.author.role
path:
  v: DocMetadataFSE.author.role
short:
  v: Author Role (code)
definition:
  v: Ruolo autore (codifica come sopra)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(PractitionerRole).organization.resolve().code

id:
  v: DocMetadataFSE.attesterFiscalCode
path:
  v: DocMetadataFSE.attesterFiscalCode
short:
  v: Attester Fiscal Code
definition:
  v: Firmatario del documento (codice fiscale)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.author.resolve().ofType(Practitioner).identifier

id:
  v: DocMetadataFSE.custiodian
path:
  v: DocMetadataFSE.custiodian
short:
  v: Custodian
definition:
  v: Codice azienda custode del documento (070940)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: fhir
  map:
    v: DocumentReference.custodian.resolve().identifier