br-core-consent
type: StructureDefinition
node role: treeRoot
id:
  v: br-core-consent
text:
  status:
    v: extensions
  div:
    v: Narrativa gerada: StructureDefinition br-core-consent Nome Bandeiras Card. Tipo Descrição e condicionalismos<img src="[binary]" alt="doco" style="background-color: inherit"/> Consent 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time #xD; id 0..1 id Identificador lógico deste artefato #xD; meta 0..1 Meta Metadados sobre o recurso #xD; implicitRules 0..1 uri Um conjunto de regras sob as quais este conteúdo foi criado #xD; language 0..1 code Idioma do recurso #xD; text 0..1 Narrative Resumo do texto do recurso em linguagem natural #xD; contained 0..* Resource Recursos contidos no recurso #xD; Fatias para extension 1..* Extension Extensões adicionais que não fazem parte do modelo base Fatia: Não ordenado, Aberto por value:url #xD; extension:baseLegalLGPD S 1..1 (Complexo) Base legal LGPD para tratamento de dados (Art. 7º) URL: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-base-legal-lgpd #xD; value[x] 1..1 CodeableConcept Value of extension Vínculo: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD (required) #xD; modifierExtension 0..* Extension Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas #xD; identifier 0..* Identifier Identificadores externos para este consentimento #xD; status 1..1 code Status do consentimento: draft | proposed | active | rejected | inactive | entered-in-error #xD; scope 1..1 CodeableConcept Escopo do consentimento: patient-privacy | research | treatment | adr #xD; category 1..* CodeableConcept Classificação do consentimento e base legal LGPD Vínculo: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD (extensible) #xD; patient 0..1 Reference(BRCorePatient) Titular dos dados pessoais #xD; id 0..1 string Identificador exclusivo para referência entre elementos #xD; extension 0..* Extension Conteúdo adicional definido por implementações #xD; reference 0..1 string Referência literal, URL…
url:
  v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-consent
  l: br-core-consent
version:
  v: 1.0.0
name:
  v: BRCoreConsent
title:
  v: br-core-consent
status:
  v: active
date:
  v: 2026-03-12T09:43:09-03:00
publisher:
  v: Ministério do Saúde do Brasil
contact:
  name:
    v: Ministério do Saúde do Brasil
  telecom:
    system:
      v: url
    value:
      v: https://gov.br/saude
  telecom:
    system:
      v: email
contact:
  name:
    v: Italo Macedo
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: Este perfil define as características mínimas para o recurso [br-core-consent](StructureDefinition-br-core-consent.html) registrar, pesquisar e buscar consentimentos para tratamento de dados pessoais conforme Lei Geral de Proteção de Dados (LGPD) - Lei nº 13.709/2018. O perfil especifica quais elementos principais, extensões, vocabulários e conjuntos de valores **DEVEM** estar presentes e restringe como os elementos são usados. Além disso, fornece a base para o desenvolvimento de padrões para casos de uso específicos promove a interoperabilidade e a adoção.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: BR
    display:
      v: Brazil
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Consent
  l: Consent
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent
derivation:
  v: constraint
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: Consent
    path:
      v: Consent
    short:
      v: A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
    definition:
      v: A record of a healthcare consumer’s choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time.
    comment:
      v: Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Consent
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource

Boolean
v: true

Markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

key:
  v: ppc-1
severity:
  v: error
human:
  v: Either a Policy or PolicyRule
expression:
  v: policy.exists() or policyRule.exists()
xpath:
  v: exists(f:policy) or exists(f:policyRule)
source:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent

key:
  v: ppc-2
severity:
  v: error
human:
  v: IF Scope=privacy, there must be a patient
expression:
  v: patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
xpath:
  v: exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='patient-privacy'])))
source:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent

key:
  v: ppc-3
severity:
  v: error
human:
  v: IF Scope=research, there must be a patient
expression:
  v: patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
xpath:
  v: exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='research'])))
source:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent

key:
  v: ppc-4
severity:
  v: error
human:
  v: IF Scope=adr, there must be a patient
expression:
  v: patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
xpath:
  v: exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='adr'])))
source:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent

key:
  v: ppc-5
severity:
  v: error
human:
  v: IF Scope=treatment, there must be a patient
expression:
  v: patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()
xpath:
  v: exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='treatment'])))
source:
  v: http://hl7.org/fhir/StructureDefinition/Consent
  l: Consent

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Event

identity:
  v: v2
map:
  v: CON

identity:
  v: rim
map:
  v: FinancialConsent

id:
  v: Consent.id
path:
  v: Consent.id
short:
  v: Identificador lógico deste artefato
definition:
  v: Identificador lógico deste artefato
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.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: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.meta
path:
  v: Consent.meta
short:
  v: Metadados sobre o recurso
definition:
  v: Metadados sobre o recurso
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.implicitRules
path:
  v: Consent.implicitRules
short:
  v: Um conjunto de regras sob as quais este conteúdo foi criado
definition:
  v: Um conjunto de regras sob as quais este conteúdo foi criado
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: Consent.language
path:
  v: Consent.language
short:
  v: Idioma do recurso
definition:
  v: Idioma do recurso
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

id:
  v: Consent.text
path:
  v: Consent.text
short:
  v: Resumo do texto do recurso em linguagem natural
definition:
  v: Resumo do texto do recurso em linguagem natural
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
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
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Consent.contained
path:
  v: Consent.contained
short:
  v: Recursos contidos no recurso
definition:
  v: Recursos contidos no recurso
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.extension
path:
  v: Consent.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extensões adicionais que não fazem parte do modelo base
definition:
  v: Extensões adicionais que não fazem parte do modelo base
min:
  v: 1
max:
  v: *
base:
  path:
    v: DomainResource.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

id:
  v: Consent.extension:baseLegalLGPD
path:
  v: Consent.extension
slice name:
  v: baseLegalLGPD
short:
  v: Base legal LGPD para tratamento de dados (Art. 7º)
definition:
  v: Base legal LGPD para tratamento de dados (Art. 7º)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-base-legal-lgpd
    l: br-core-base-legal-lgpd
condition:
  v: ele-1
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.extension:baseLegalLGPD.id
path:
  v: Consent.extension.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: Consent.extension:baseLegalLGPD.extension
path:
  v: Consent.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
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

id:
  v: Consent.extension:baseLegalLGPD.url
path:
  v: Consent.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-base-legal-lgpd
  l: br-core-base-legal-lgpd
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.extension:baseLegalLGPD.value[x]
path:
  v: Consent.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD
    l: BRBaseLegalLGPD
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.modifierExtension
path:
  v: Consent.modifierExtension
short:
  v: Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas
definition:
  v: Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.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 resource that contains them
is summary:
  v: false

id:
  v: Consent.identifier
path:
  v: Consent.identifier
short:
  v: Identificadores externos para este consentimento
definition:
  v: Identificadores externos para este consentimento
comment:
  v: This identifier identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
example:
  label:
    v: General
  value: Identifier
    system:
      v: http://acme.org/identifier/local/eCMS
      l: eCMS
    value:
      v: Local eCMS identifier
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Consent.status
path:
  v: Consent.status
short:
  v: Status do consentimento: draft | proposed | active | rejected | inactive | entered-in-error
definition:
  v: Status do consentimento: draft | proposed | active | rejected | inactive | entered-in-error
comment:
  v: This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid.
requirements:
  v: The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentState
  strength:
    v: required
  description:
    v: Indicates the state of the consent.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-state-codes
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: HL7 Table 0498 - Consent Status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: Consent.scope
path:
  v: Consent.scope
short:
  v: Escopo do consentimento: patient-privacy | research | treatment | adr
definition:
  v: Escopo do consentimento: patient-privacy | research | treatment | adr
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.scope
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
is modifier:
  v: true
is modifier reason:
  v: Allows changes to codes based on scope selection
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentScope
  strength:
    v: extensible
  description:
    v: The four anticipated uses for the Consent Resource.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-scope|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-scope

id:
  v: Consent.category
path:
  v: Consent.category
short:
  v: Classificação do consentimento e base legal LGPD
definition:
  v: Classificação do consentimento e base legal LGPD
min:
  v: 1
max:
  v: *
base:
  path:
    v: Consent.category
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD
    l: BRBaseLegalLGPD
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: v2
  map:
    v: HL7 Table 0497 - Consent Type
mapping:
  identity:
    v: rim
  map:
    v: CNTRCT

id:
  v: Consent.patient
path:
  v: Consent.patient
short:
  v: Titular dos dados pessoais
definition:
  v: Titular dos dados pessoais
comment:
  v: Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.patient
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: rim
  map:
    v: Role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Consent.patient.id
path:
  v: Consent.patient.id
representation:
  v: xmlAttr
short:
  v: Identificador exclusivo para referência entre elementos
definition:
  v: Identificador exclusivo para referência entre elementos
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: Consent.patient.extension
path:
  v: Consent.patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações
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

id:
  v: Consent.patient.reference
path:
  v: Consent.patient.reference
short:
  v: Referência literal, URL relativa, interna ou absoluta
definition:
  v: Referência literal, URL relativa, interna ou absoluta
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.patient.type
path:
  v: Consent.patient.type
short:
  v: Tipo ao qual a referência se refere (por exemplo: Patient)
definition:
  v: Tipo ao qual a referência se refere (por exemplo: Patient)
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types|4.0.1
    l: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.patient.identifier
path:
  v: Consent.patient.identifier
short:
  v: Referência lógica, quando a referência literal não é conhecida
definition:
  v: Referência lógica, quando a referência literal não é conhecida
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Consent.patient.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Consent.patient.display
short:
  v: Texto alternativo para o recurso
definition:
  v: Texto alternativo para o recurso
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Consent.dateTime
path:
  v: Consent.dateTime
short:
  v: Data e hora do consentimento
definition:
  v: Data e hora do consentimento
comment:
  v: This is not the time of the original consent, but the time that this statement was made or derived.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.dateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: Field 13/ Consent Decision Date
mapping:
  identity:
    v: rim
  map:
    v: FinancialConsent effectiveTime

id:
  v: Consent.performer
path:
  v: Consent.performer
short:
  v: Quem concedeu o consentimento
definition:
  v: Quem concedeu o consentimento
comment:
  v: Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian.
alias:
  v: consentor
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.performer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitioner
    l: br-core-practitioner
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitionerrole
    l: br-core-practitionerrole
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.actor
mapping:
  identity:
    v: v2
  map:
    v: Field 24/ ConsenterID

id:
  v: Consent.organization
path:
  v: Consent.organization
short:
  v: Controlador dos dados (organização responsável)
definition:
  v: Controlador dos dados (organização responsável)
alias:
  v: custodian
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.organization
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness

id:
  v: Consent.source[x]
path:
  v: Consent.source[x]
short:
  v: Fonte/evidência do consentimento
definition:
  v: Fonte/evidência do consentimento
comment:
  v: The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.source[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Attachment
    l: Attachment
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Consent|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Consent
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/DocumentReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Contract|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Contract
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Field 19 Informational Material Supplied Indicator

id:
  v: Consent.policy
path:
  v: Consent.policy
short:
  v: Políticas que regem o consentimento
definition:
  v: Políticas que regem o consentimento
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.policy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.policy.id
path:
  v: Consent.policy.id
representation:
  v: xmlAttr
short:
  v: Identificador exclusivo para referência entre elementos
definition:
  v: Identificador exclusivo para referência entre elementos
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: Consent.policy.extension
path:
  v: Consent.policy.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações
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

id:
  v: Consent.policy.modifierExtension
path:
  v: Consent.policy.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
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

id:
  v: Consent.policy.authority
path:
  v: Consent.policy.authority
short:
  v: Autoridade responsável pela política (ex: ANPD)
definition:
  v: Autoridade responsável pela política (ex: ANPD)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.policy.authority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ppc-1
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.policy.uri
path:
  v: Consent.policy.uri
short:
  v: URI da política ou legislação
definition:
  v: URI da política ou legislação
comment:
  v: This element is for discoverability / documentation and does not modify or qualify the policy rules.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.policy.uri
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ppc-1
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.policyRule
path:
  v: Consent.policyRule
short:
  v: Regra de política de consentimento
definition:
  v: Regra de política de consentimento
comment:
  v: If the policyRule is absent, computable consent would need to be constructed from the elements of the Consent resource.
requirements:
  v: Might be a unique identifier of a policy set in XACML, or other rules engine.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.policyRule
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ppc-1
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentPolicyRule
  strength:
    v: extensible
  description:
    v: Regulatory policy examples.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-policy|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-policy

id:
  v: Consent.verification
path:
  v: Consent.verification
short:
  v: Verificação do consentimento
definition:
  v: Verificação do consentimento
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.verification
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.verification.id
path:
  v: Consent.verification.id
representation:
  v: xmlAttr
short:
  v: Identificador exclusivo para referência entre elementos
definition:
  v: Identificador exclusivo para referência entre elementos
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: Consent.verification.extension
path:
  v: Consent.verification.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações
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

id:
  v: Consent.verification.modifierExtension
path:
  v: Consent.verification.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
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

id:
  v: Consent.verification.verified
path:
  v: Consent.verification.verified
short:
  v: Consentimento foi verificado
definition:
  v: Consentimento foi verificado
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.verification.verified
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.verification.verifiedWith
path:
  v: Consent.verification.verifiedWith
short:
  v: Pessoa que verificou
definition:
  v: Pessoa que verificou
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.verification.verifiedWith
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.verification.verificationDate
path:
  v: Consent.verification.verificationDate
short:
  v: Quando foi verificado
definition:
  v: Quando foi verificado
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.verification.verificationDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.provision
path:
  v: Consent.provision
short:
  v: Regras de acesso e tratamento de dados
definition:
  v: Regras de acesso e tratamento de dados
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.provision
  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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.provision.id
path:
  v: Consent.provision.id
representation:
  v: xmlAttr
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos
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: Consent.provision.extension
path:
  v: Consent.provision.extension
short:
  v: Extensões adicionais que não fazem parte do modelo base
definition:
  v: Extensões adicionais que não fazem parte do modelo base
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

id:
  v: Consent.provision.modifierExtension
path:
  v: Consent.provision.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
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

id:
  v: Consent.provision.type
path:
  v: Consent.provision.type
short:
  v: Tipo de ação: permit | deny
definition:
  v: Tipo de ação: permit | deny
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.provision.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentProvisionType
  strength:
    v: required
  description:
    v: How a rule statement is applied, such as adding additional consent or removing consent.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-provision-type

id:
  v: Consent.provision.period
path:
  v: Consent.provision.period
short:
  v: Período de validade do consentimento
definition:
  v: Período de validade do consentimento
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.provision.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.provision.actor
path:
  v: Consent.provision.actor
short:
  v: Agentes autorizados
definition:
  v: Agentes autorizados
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.actor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
meaning when missing:
  v: There is no specific actor associated with the exception
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.provision.actor.id
path:
  v: Consent.provision.actor.id
representation:
  v: xmlAttr
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos
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: Consent.provision.actor.extension
path:
  v: Consent.provision.actor.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações
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

id:
  v: Consent.provision.actor.modifierExtension
path:
  v: Consent.provision.actor.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
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

id:
  v: Consent.provision.actor.role
path:
  v: Consent.provision.actor.role
short:
  v: Como o agente está envolvido
definition:
  v: Como o agente está envolvido
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.provision.actor.role
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentActorRole
  strength:
    v: extensible
  description:
    v: How an actor is involved in the consent considerations.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-role-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/security-role-type

id:
  v: Consent.provision.actor.reference
path:
  v: Consent.provision.actor.reference
short:
  v: Recurso para o ator
definition:
  v: Recurso para o ator
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.provision.actor.reference
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitioner
    l: br-core-practitioner
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitionerrole
    l: br-core-practitionerrole
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson
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
is modifier:
  v: false
is summary:
  v: false

id:
  v: Consent.provision.action
path:
  v: Consent.provision.action
short:
  v: Ações permitidas ou negadas
definition:
  v: Ações permitidas ou negadas
comment:
  v: Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.action
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
meaning when missing:
  v: all actions
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
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRDireitoTitularDados
    l: BRDireitoTitularDados

id:
  v: Consent.provision.securityLabel
path:
  v: Consent.provision.securityLabel
short:
  v: Rótulos de segurança que definem os dados afetados
definition:
  v: Rótulos de segurança que definem os dados afetados
comment:
  v: If the consent specifies a security label of "R" then it applies to all resources that are labeled "R" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. When the purpose of use tag is on the data, access request purpose of use shall not conflict.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.securityLabel
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SecurityLabels
  strength:
    v: extensible
  description:
    v: Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-labels|4.0.1
    l: http://hl7.org/fhir/ValueSet/security-labels

id:
  v: Consent.provision.purpose
path:
  v: Consent.provision.purpose
short:
  v: Finalidade do tratamento de dados
definition:
  v: Finalidade do tratamento de dados
comment:
  v: When the purpose of use tag is on the data, access request purpose of use shall not conflict.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.purpose
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRFinalidadeTratamentoDados
    l: BRFinalidadeTratamentoDados

id:
  v: Consent.provision.class
path:
  v: Consent.provision.class
short:
  v: Tipo ou classe de dados pessoais
definition:
  v: Tipo ou classe de dados pessoais
comment:
  v: Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.class
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRTipoDadoPessoalLGPD
    l: BRTipoDadoPessoalLGPD

id:
  v: Consent.provision.code
path:
  v: Consent.provision.code
short:
  v: Instâncias de dados específicas
definition:
  v: Instâncias de dados específicas
comment:
  v: Typical use of this is a Document code with class = CDA.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentContentCode
  strength:
    v: example
  description:
    v: If this code is found in an instance, then the exception applies.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-content-code|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-content-code

id:
  v: Consent.provision.dataPeriod
path:
  v: Consent.provision.dataPeriod
short:
  v: Período temporal dos dados cobertos
definition:
  v: Período temporal dos dados cobertos
comment:
  v: This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Consent.provision.dataPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.provision.data
path:
  v: Consent.provision.data
short:
  v: Dados específicos cobertos
definition:
  v: Dados específicos cobertos
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.data
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
meaning when missing:
  v: all data
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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: Role

id:
  v: Consent.provision.data.id
path:
  v: Consent.provision.data.id
representation:
  v: xmlAttr
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos
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: Consent.provision.data.extension
path:
  v: Consent.provision.data.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações
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

id:
  v: Consent.provision.data.modifierExtension
path:
  v: Consent.provision.data.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
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

id:
  v: Consent.provision.data.meaning
path:
  v: Consent.provision.data.meaning
short:
  v: Instância | relacionado | dependente | autorizado
definition:
  v: Instância | relacionado | dependente | autorizado
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.provision.data.meaning
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ConsentDataMeaning
  strength:
    v: required
  description:
    v: How a resource reference is interpreted when testing consent restrictions.
  value set:
    v: http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1
    l: http://hl7.org/fhir/ValueSet/consent-data-meaning

id:
  v: Consent.provision.data.reference
path:
  v: Consent.provision.data.reference
short:
  v: O recurso real ao qual a regra de consentimento se aplica
definition:
  v: O recurso real ao qual a regra de consentimento se aplica
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Consent.provision.data.reference
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
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
is modifier:
  v: false
is summary:
  v: true

id:
  v: Consent.provision.provision
path:
  v: Consent.provision.provision
short:
  v: Provisões aninhadas (sub-regras/exceções)
definition:
  v: Provisões aninhadas (sub-regras/exceções)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Consent.provision.provision
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Consent#Consent.provision
  l: Consent.provision
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
is modifier:
  v: false
is summary:
  v: false

element:
  id:
    v: Consent
  path:
    v: Consent
element:
  id:
    v: Consent.id
  path:
    v: Consent.id
  short:
    v: Identificador lógico deste artefato
  definition:
    v: Identificador lógico deste artefato
element:
  id:
    v: Consent.meta
  path:
    v: Consent.meta
  short:
    v: Metadados sobre o recurso
  definition:
    v: Metadados sobre o recurso
element:
  id:
    v: Consent.implicitRules
  path:
    v: Consent.implicitRules
  short:
    v: Um conjunto de regras sob as quais este conteúdo foi criado
  definition:
    v: Um conjunto de regras sob as quais este conteúdo foi criado
element:
  id:
    v: Consent.language
  path:
    v: Consent.language
  short:
    v: Idioma do recurso
  definition:
    v: Idioma do recurso
element:
  id:
    v: Consent.text
  path:
    v: Consent.text
  short:
    v: Resumo do texto do recurso em linguagem natural
  definition:
    v: Resumo do texto do recurso em linguagem natural
element:
  id:
    v: Consent.contained
  path:
    v: Consent.contained
  short:
    v: Recursos contidos no recurso
  definition:
    v: Recursos contidos no recurso
element:
  id:
    v: Consent.extension
  path:
    v: Consent.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  short:
    v: Extensões adicionais que não fazem parte do modelo base
  definition:
    v: Extensões adicionais que não fazem parte do modelo base
  min:
    v: 1
element:
  id:
    v: Consent.extension:baseLegalLGPD
  path:
    v: Consent.extension
  slice name:
    v: baseLegalLGPD
  short:
    v: Base legal LGPD para tratamento de dados (Art. 7º)
  definition:
    v: Base legal LGPD para tratamento de dados (Art. 7º)
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-base-legal-lgpd
      l: br-core-base-legal-lgpd
  must support:
    v: true
element:
  id:
    v: Consent.extension:baseLegalLGPD.value[x]
  path:
    v: Consent.extension.value[x]
  binding:
    strength:
      v: required
    value set:
      v: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD
      l: BRBaseLegalLGPD
element:
  id:
    v: Consent.modifierExtension
  path:
    v: Consent.modifierExtension
  short:
    v: Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas
  definition:
    v: Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas
element:
  id:
    v: Consent.identifier
  path:
    v: Consent.identifier
  short:
    v: Identificadores externos para este consentimento
  definition:
    v: Identificadores externos para este consentimento
element:
  id:
    v: Consent.status
  path:
    v: Consent.status
  short:
    v: Status do consentimento: draft | proposed | active | rejected | inactive | entered-in-error
  definition:
    v: Status do consentimento: draft | proposed | active | rejected | inactive | entered-in-error
element:
  id:
    v: Consent.scope
  path:
    v: Consent.scope
  short:
    v: Escopo do consentimento: patient-privacy | research | treatment | adr
  definition:
    v: Escopo do consentimento: patient-privacy | research | treatment | adr
element:
  id:
    v: Consent.category
  path:
    v: Consent.category
  short:
    v: Classificação do consentimento e base legal LGPD
  definition:
    v: Classificação do consentimento e base legal LGPD
  binding:
    strength:
      v: extensible
    value set:
      v: https://terminologia.saude.gov.br/fhir/ValueSet/BRBaseLegalLGPD
      l: BRBaseLegalLGPD
element:
  id:
    v: Consent.patient
  path:
    v: Consent.patient
  short:
    v: Titular dos dados pessoais
  definition:
    v: Titular dos dados pessoais
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
      l: br-core-patient
element:
  id:
    v: Consent.patient.id
  path:
    v: Consent.patient.id
  short:
    v: Identificador exclusivo para referência entre elementos
  definition:
    v: Identificador exclusivo para referência entre elementos
element:
  id:
    v: Consent.patient.extension
  path:
    v: Consent.patient.extension
  short:
    v: Conteúdo adicional definido por implementações
  definition:
    v: Conteúdo adicional definido por implementações

id:
  v: Consent.patient.reference
path:
  v: Consent.patient.reference
short:
  v: Referência literal, URL relativa, interna ou absoluta
definition:
  v: Referência literal, URL relativa, interna ou absoluta

id:
  v: Consent.patient.type
path:
  v: Consent.patient.type
short:
  v: Tipo ao qual a referência se refere (por exemplo: Patient)
definition:
  v: Tipo ao qual a referência se refere (por exemplo: Patient)

id:
  v: Consent.patient.identifier
path:
  v: Consent.patient.identifier
short:
  v: Referência lógica, quando a referência literal não é conhecida
definition:
  v: Referência lógica, quando a referência literal não é conhecida

id:
  v: Consent.patient.display
path:
  v: Consent.patient.display
short:
  v: Texto alternativo para o recurso
definition:
  v: Texto alternativo para o recurso

id:
  v: Consent.dateTime
path:
  v: Consent.dateTime
short:
  v: Data e hora do consentimento
definition:
  v: Data e hora do consentimento

id:
  v: Consent.performer
path:
  v: Consent.performer
short:
  v: Quem concedeu o consentimento
definition:
  v: Quem concedeu o consentimento
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitioner
    l: br-core-practitioner
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitionerrole
    l: br-core-practitionerrole
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization

id:
  v: Consent.organization
path:
  v: Consent.organization
short:
  v: Controlador dos dados (organização responsável)
definition:
  v: Controlador dos dados (organização responsável)
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization

id:
  v: Consent.source[x]
path:
  v: Consent.source[x]
short:
  v: Fonte/evidência do consentimento
definition:
  v: Fonte/evidência do consentimento

id:
  v: Consent.policy
path:
  v: Consent.policy
short:
  v: Políticas que regem o consentimento
definition:
  v: Políticas que regem o consentimento

id:
  v: Consent.policy.id
path:
  v: Consent.policy.id
short:
  v: Identificador exclusivo para referência entre elementos
definition:
  v: Identificador exclusivo para referência entre elementos

id:
  v: Consent.policy.extension
path:
  v: Consent.policy.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações

id:
  v: Consent.policy.modifierExtension
path:
  v: Consent.policy.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas

id:
  v: Consent.policy.authority
path:
  v: Consent.policy.authority
short:
  v: Autoridade responsável pela política (ex: ANPD)
definition:
  v: Autoridade responsável pela política (ex: ANPD)

id:
  v: Consent.policy.uri
path:
  v: Consent.policy.uri
short:
  v: URI da política ou legislação
definition:
  v: URI da política ou legislação

id:
  v: Consent.policyRule
path:
  v: Consent.policyRule
short:
  v: Regra de política de consentimento
definition:
  v: Regra de política de consentimento

id:
  v: Consent.verification
path:
  v: Consent.verification
short:
  v: Verificação do consentimento
definition:
  v: Verificação do consentimento

id:
  v: Consent.verification.id
path:
  v: Consent.verification.id
short:
  v: Identificador exclusivo para referência entre elementos
definition:
  v: Identificador exclusivo para referência entre elementos

id:
  v: Consent.verification.extension
path:
  v: Consent.verification.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações

id:
  v: Consent.verification.modifierExtension
path:
  v: Consent.verification.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas

id:
  v: Consent.verification.verified
path:
  v: Consent.verification.verified
short:
  v: Consentimento foi verificado
definition:
  v: Consentimento foi verificado

id:
  v: Consent.verification.verifiedWith
path:
  v: Consent.verification.verifiedWith
short:
  v: Pessoa que verificou
definition:
  v: Pessoa que verificou
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson

id:
  v: Consent.verification.verificationDate
path:
  v: Consent.verification.verificationDate
short:
  v: Quando foi verificado
definition:
  v: Quando foi verificado

id:
  v: Consent.provision
path:
  v: Consent.provision
short:
  v: Regras de acesso e tratamento de dados
definition:
  v: Regras de acesso e tratamento de dados

id:
  v: Consent.provision.id
path:
  v: Consent.provision.id
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos

id:
  v: Consent.provision.extension
path:
  v: Consent.provision.extension
short:
  v: Extensões adicionais que não fazem parte do modelo base
definition:
  v: Extensões adicionais que não fazem parte do modelo base

id:
  v: Consent.provision.modifierExtension
path:
  v: Consent.provision.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas

id:
  v: Consent.provision.type
path:
  v: Consent.provision.type
short:
  v: Tipo de ação: permit | deny
definition:
  v: Tipo de ação: permit | deny

id:
  v: Consent.provision.period
path:
  v: Consent.provision.period
short:
  v: Período de validade do consentimento
definition:
  v: Período de validade do consentimento

id:
  v: Consent.provision.actor
path:
  v: Consent.provision.actor
short:
  v: Agentes autorizados
definition:
  v: Agentes autorizados

id:
  v: Consent.provision.actor.id
path:
  v: Consent.provision.actor.id
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos

id:
  v: Consent.provision.actor.extension
path:
  v: Consent.provision.actor.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações

id:
  v: Consent.provision.actor.modifierExtension
path:
  v: Consent.provision.actor.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas

id:
  v: Consent.provision.actor.role
path:
  v: Consent.provision.actor.role
short:
  v: Como o agente está envolvido
definition:
  v: Como o agente está envolvido

id:
  v: Consent.provision.actor.reference
path:
  v: Consent.provision.actor.reference
short:
  v: Recurso para o ator
definition:
  v: Recurso para o ator
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-organization
    l: br-core-organization
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-patient
    l: br-core-patient
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitioner
    l: br-core-practitioner
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-practitionerrole
    l: br-core-practitionerrole
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-relatedperson
    l: br-core-relatedperson

id:
  v: Consent.provision.action
path:
  v: Consent.provision.action
short:
  v: Ações permitidas ou negadas
definition:
  v: Ações permitidas ou negadas
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRDireitoTitularDados
    l: BRDireitoTitularDados

id:
  v: Consent.provision.securityLabel
path:
  v: Consent.provision.securityLabel
short:
  v: Rótulos de segurança que definem os dados afetados
definition:
  v: Rótulos de segurança que definem os dados afetados

id:
  v: Consent.provision.purpose
path:
  v: Consent.provision.purpose
short:
  v: Finalidade do tratamento de dados
definition:
  v: Finalidade do tratamento de dados
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRFinalidadeTratamentoDados
    l: BRFinalidadeTratamentoDados

id:
  v: Consent.provision.class
path:
  v: Consent.provision.class
short:
  v: Tipo ou classe de dados pessoais
definition:
  v: Tipo ou classe de dados pessoais
binding:
  strength:
    v: extensible
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRTipoDadoPessoalLGPD
    l: BRTipoDadoPessoalLGPD

id:
  v: Consent.provision.code
path:
  v: Consent.provision.code
short:
  v: Instâncias de dados específicas
definition:
  v: Instâncias de dados específicas

id:
  v: Consent.provision.dataPeriod
path:
  v: Consent.provision.dataPeriod
short:
  v: Período temporal dos dados cobertos
definition:
  v: Período temporal dos dados cobertos

id:
  v: Consent.provision.data
path:
  v: Consent.provision.data
short:
  v: Dados específicos cobertos
definition:
  v: Dados específicos cobertos

id:
  v: Consent.provision.data.id
path:
  v: Consent.provision.data.id
short:
  v: ID exclusivo para referência entre elementos
definition:
  v: ID exclusivo para referência entre elementos

id:
  v: Consent.provision.data.extension
path:
  v: Consent.provision.data.extension
short:
  v: Conteúdo adicional definido por implementações
definition:
  v: Conteúdo adicional definido por implementações

id:
  v: Consent.provision.data.modifierExtension
path:
  v: Consent.provision.data.modifierExtension
short:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas
definition:
  v: Extensões que não podem ser ignoradas mesmo que não sejam reconhecidas

id:
  v: Consent.provision.data.meaning
path:
  v: Consent.provision.data.meaning
short:
  v: Instância | relacionado | dependente | autorizado
definition:
  v: Instância | relacionado | dependente | autorizado

id:
  v: Consent.provision.data.reference
path:
  v: Consent.provision.data.reference
short:
  v: O recurso real ao qual a regra de consentimento se aplica
definition:
  v: O recurso real ao qual a regra de consentimento se aplica

id:
  v: Consent.provision.provision
path:
  v: Consent.provision.provision
short:
  v: Provisões aninhadas (sub-regras/exceções)
definition:
  v: Provisões aninhadas (sub-regras/exceções)