br-core-careteam
type: StructureDefinition
node role: treeRoot
id:
  v: br-core-careteam
text:
  status:
    v: extensions
  div:
    v: Narrativa gerada: StructureDefinition br-core-careteam Nome Bandeiras Card. Tipo Descrição e condicionalismos<img src="[binary]" alt="doco" style="background-color: inherit"/> CareTeam 0..* CareTeam Planned participants in the coordination and delivery of care for a patient or group #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; extension 0..* Extension Extensões adicionais que não fazem parte do modelo base #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 recurso #xD; status 0..1 code proposed | active | suspended | inactive | entered-in-error #xD; category 0..* CodeableConcept Tipo da equipe assistêncial Vínculo: BR Modalidade Assistencial (required) #xD; name 0..1 string Nome da equipe assistêncial #xD; subject 0..1 Reference(BRCorePatient) Paciente referenciado pela equipe assistêncial #xD; encounter 0..1 Reference(br-core-encounter) Referência ao atendimento #xD; period 0..1 Period Período de atendimento pela a equipe assistêncial #xD; participant 0..* BackboneElement Lista de participantes envolvidos no atendimento #xD; id 0..1 string Identificador único para referência cruzada #xD; extension 0..* Extension Extension #xD; modifierExtension 0..* Extension Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas #xD; role 0..* CodeableConcept Função do participante na equipe assistêncial Vínculo: BR Ocupacao (example) #xD; member 0..1 Reference(BRCorePractitioner | BRCorePractitionerRole | BRCoreRelatedPerson | BRCorePatient | BRCoreOrganization | br-core-careteam) Referência ao partipante #xD; onBeha…
url:
  v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-careteam
  l: br-core-careteam
version:
  v: 1.0.0
name:
  v: BRCoreCareTeam
title:
  v: br-core-careteam
status:
  v: active
date:
  v: 2026-07-25T10:22:45-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 restringe o recurso [CareTeam](https://hl7.org/fhir/R4/careteam.html) que inclui todas as pessoas e organizações que planejam participar da coordenação e prestação de cuidados a um paciente
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: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
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
kind:
  v: resource
abstract:
  v: false
type:
  v: CareTeam
  l: CareTeam
base definition:
  v: http://hl7.org/fhir/StructureDefinition/CareTeam
  l: CareTeam
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: CareTeam
    path:
      v: CareTeam
    short:
      v: Planned participants in the coordination and delivery of care for a patient or group
    definition:
      v: The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care for a patient.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: CareTeam
      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
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act

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.

id:
  v: CareTeam.id
path:
  v: CareTeam.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: CareTeam.meta
path:
  v: CareTeam.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: CareTeam.implicitRules
path:
  v: CareTeam.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: CareTeam.language
path:
  v: CareTeam.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: CareTeam.text
path:
  v: CareTeam.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: CareTeam.contained
path:
  v: CareTeam.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: CareTeam.extension
path:
  v: CareTeam.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: 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: CareTeam.modifierExtension
path:
  v: CareTeam.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: CareTeam.identifier
path:
  v: CareTeam.identifier
short:
  v: Identificadores externos para este recurso
definition:
  v: Identificadores externos para este recurso
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the care team as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.identifier
  min:
    v: 0
  max:
    v: *
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: w5
  map:
    v: FiveWs.identifier

id:
  v: CareTeam.status
path:
  v: CareTeam.status
short:
  v: proposed | active | suspended | inactive | entered-in-error
definition:
  v: proposed | active | suspended | inactive | entered-in-error
comment:
  v: This element is labeled as a modifier because the status contains the code entered-in-error that marks the care team as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.status
  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: 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: CareTeamStatus
  strength:
    v: required
  description:
    v: Indicates the status of the care team.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-team-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-team-status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: CareTeam.category
path:
  v: CareTeam.category
short:
  v: Tipo da equipe assistêncial
definition:
  v: Tipo da equipe assistêncial
comment:
  v: There may be multiple axis of categorization and one team may serve multiple purposes.
requirements:
  v: Used for filtering what teams(s) are retrieved and displayed to different types of users.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.category
  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:
  strength:
    v: required
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRModalidadeAssistencial
    l: BRModalidadeAssistencial
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: CareTeam.name
path:
  v: CareTeam.name
short:
  v: Nome da equipe assistêncial
definition:
  v: Nome da equipe assistêncial
comment:
  v: The meaning/purpose of the team is conveyed in CareTeam.category. This element may also convey semantics of the team (e.g. "Red trauma team"), but its primary purpose is to distinguish between identical teams in a human-friendly way. ("Team 18735" isn't as friendly.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.name
  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

id:
  v: CareTeam.subject
path:
  v: CareTeam.subject
short:
  v: Paciente referenciado pela equipe assistêncial
definition:
  v: Paciente referenciado pela equipe assistêncial
requirements:
  v: Allows the team to care for a group (e.g. marriage) therapy. Allows for an organization to designate a team such as the PICC line team.
alias:
  v: patient
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.subject
  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: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: CareTeam.encounter
path:
  v: CareTeam.encounter
short:
  v: Referência ao atendimento
definition:
  v: Referência ao atendimento
comment:
  v: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.encounter
  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-encounter
    l: br-core-encounter
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: w5
  map:
    v: FiveWs.context

id:
  v: CareTeam.period
path:
  v: CareTeam.period
short:
  v: Período de atendimento pela a equipe assistêncial
definition:
  v: Período de atendimento pela a equipe assistêncial
requirements:
  v: Allows tracking what team(s) are in effect at a particular time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.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
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.init

id:
  v: CareTeam.participant
path:
  v: CareTeam.participant
short:
  v: Lista de participantes envolvidos no atendimento
definition:
  v: Lista de participantes envolvidos no atendimento
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
condition:
  v: ctm-1
constraint:
  key:
    v: ctm-1
  severity:
    v: error
  human:
    v: CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner
  expression:
    v: onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))
  xpath:
    v: starts-with(f:member/f:reference/@value, 'Practitioner/') or contains(f:member/f:reference/@value, '/Practitioner/') or exists(ancestor::*/f:contains/f:Practitioner/f:id[@value=substring-after(current()/f:member/f:reference/@value, '#')]) or not(exists(f:onBehalfOf))
  source:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    l: CareTeam
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: v2
  map:
    v: REL (REL.4 is always the Patient) ( or PRT?)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]

id:
  v: CareTeam.participant.id
path:
  v: CareTeam.participant.id
representation:
  v: xmlAttr
short:
  v: Identificador único para referência cruzada
definition:
  v: Identificador único para referência cruzada
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: CareTeam.participant.extension
path:
  v: CareTeam.participant.extension
short:
  v: Extension
definition:
  v: Extensões adicionais que não fazem parte do modelo de dados básico
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: CareTeam.participant.modifierExtension
path:
  v: CareTeam.participant.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: 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: CareTeam.participant.role
path:
  v: CareTeam.participant.role
short:
  v: Função do participante na equipe assistêncial
definition:
  v: Função do participante na equipe assistêncial
comment:
  v: Roles may sometimes be inferred by type of Practitioner. These are relationships that hold only within the context of the care team. General relationships should be handled as properties of the Patient resource directly.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.participant.role
  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:
  strength:
    v: example
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BROcupacao
    l: BROcupacao
mapping:
  identity:
    v: v2
  map:
    v: REL.2 (or PRT-4?)
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: CareTeam.participant.member
path:
  v: CareTeam.participant.member
short:
  v: Referência ao partipante
definition:
  v: Referência ao partipante
comment:
  v: Patient only needs to be listed if they have a role other than "subject of care". Member is optional because some participants may be known only by their role, particularly in draft plans.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.participant.member
  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-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-patient
    l: br-core-patient
  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-careteam
    l: br-core-careteam
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: w5
  map:
    v: FiveWs.actor
mapping:
  identity:
    v: v2
  map:
    v: REL.5 (or PRT-5 : ( PRV-4 {provider participations} ) / PRT-5 : ( PRV-4 {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8?)
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: CareTeam.participant.onBehalfOf
path:
  v: CareTeam.participant.onBehalfOf
short:
  v: Organização do participante
definition:
  v: Organização do participante
requirements:
  v: Practitioners can be associated with multiple organizations. This element indicates which organization they were acting on behalf of.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.participant.onBehalfOf
  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-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

id:
  v: CareTeam.participant.period
path:
  v: CareTeam.participant.period
short:
  v: Período de tempo do participante atua no time assistêncial
definition:
  v: Período de tempo do participante atua no time assistêncial
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.participant.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: false

id:
  v: CareTeam.reasonCode
path:
  v: CareTeam.reasonCode
short:
  v: Motivo pelo qual a equipe assistência foi criada
definition:
  v: Motivo pelo qual a equipe assistência foi criada
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.reasonCode
  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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CareTeamReason
  strength:
    v: example
  description:
    v: Indicates the reason for the care team.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1
    l: http://hl7.org/fhir/ValueSet/clinical-findings
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]

id:
  v: CareTeam.reasonReference
path:
  v: CareTeam.reasonReference
short:
  v: Referência aos diagnóstico que esta equipe assistencial cobre
definition:
  v: Referência aos diagnóstico que esta equipe assistencial cobre
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-condition
    l: br-core-condition
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: w5
  map:
    v: FiveWs.why[x]

id:
  v: CareTeam.managingOrganization
path:
  v: CareTeam.managingOrganization
short:
  v: Organização da equipe assistêncial
definition:
  v: Organização da equipe assistêncial
requirements:
  v: Allows for multiple organizations to collaboratively manage cross-organizational, longitudinal care plan.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.managingOrganization
  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

id:
  v: CareTeam.telecom
path:
  v: CareTeam.telecom
short:
  v: Contato da equipe assistencial
definition:
  v: Contato da equipe assistencial
comment:
  v: The ContactPoint.use code of home is not appropriate to use. These contacts are not the contact details of individual care team members.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
    l: ContactPoint
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: CareTeam.note
path:
  v: CareTeam.note
short:
  v: Comentários adicionais sobre a equipe assistencial
definition:
  v: Comentários adicionais sobre a equipe assistencial
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
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: CareTeam
  path:
    v: CareTeam
element:
  id:
    v: CareTeam.id
  path:
    v: CareTeam.id
  short:
    v: Identificador lógico deste artefato
  definition:
    v: Identificador lógico deste artefato
element:
  id:
    v: CareTeam.meta
  path:
    v: CareTeam.meta
  short:
    v: Metadados sobre o recurso
  definition:
    v: Metadados sobre o recurso
element:
  id:
    v: CareTeam.implicitRules
  path:
    v: CareTeam.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: CareTeam.language
  path:
    v: CareTeam.language
  short:
    v: Idioma do recurso
  definition:
    v: Idioma do recurso
element:
  id:
    v: CareTeam.text
  path:
    v: CareTeam.text
  short:
    v: Resumo do texto do recurso em linguagem natural
  definition:
    v: Resumo do texto do recurso em linguagem natural
element:
  id:
    v: CareTeam.contained
  path:
    v: CareTeam.contained
  short:
    v: Recursos contidos no recurso
  definition:
    v: Recursos contidos no recurso
element:
  id:
    v: CareTeam.extension
  path:
    v: CareTeam.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
element:
  id:
    v: CareTeam.modifierExtension
  path:
    v: CareTeam.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: CareTeam.identifier
  path:
    v: CareTeam.identifier
  short:
    v: Identificadores externos para este recurso
  definition:
    v: Identificadores externos para este recurso
element:
  id:
    v: CareTeam.status
  path:
    v: CareTeam.status
  definition:
    v: proposed | active | suspended | inactive | entered-in-error
element:
  id:
    v: CareTeam.category
  path:
    v: CareTeam.category
  short:
    v: Tipo da equipe assistêncial
  definition:
    v: Tipo da equipe assistêncial
  binding:
    strength:
      v: required
    value set:
      v: https://terminologia.saude.gov.br/fhir/ValueSet/BRModalidadeAssistencial
      l: BRModalidadeAssistencial
element:
  id:
    v: CareTeam.name
  path:
    v: CareTeam.name
  short:
    v: Nome da equipe assistêncial
  definition:
    v: Nome da equipe assistêncial
element:
  id:
    v: CareTeam.subject
  path:
    v: CareTeam.subject
  short:
    v: Paciente referenciado pela equipe assistêncial
  definition:
    v: Paciente referenciado pela equipe assistêncial
  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: CareTeam.encounter
  path:
    v: CareTeam.encounter
  short:
    v: Referência ao atendimento
  definition:
    v: Referência ao atendimento
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-encounter
      l: br-core-encounter
element:
  id:
    v: CareTeam.period
  path:
    v: CareTeam.period
  short:
    v: Período de atendimento pela a equipe assistêncial
  definition:
    v: Período de atendimento pela a equipe assistêncial
element:
  id:
    v: CareTeam.participant
  path:
    v: CareTeam.participant
  short:
    v: Lista de participantes envolvidos no atendimento
  definition:
    v: Lista de participantes envolvidos no atendimento
element:
  id:
    v: CareTeam.participant.id
  path:
    v: CareTeam.participant.id
  short:
    v: Identificador único para referência cruzada
  definition:
    v: Identificador único para referência cruzada
element:
  id:
    v: CareTeam.participant.extension
  path:
    v: CareTeam.participant.extension
  definition:
    v: Extensões adicionais que não fazem parte do modelo de dados básico
element:
  id:
    v: CareTeam.participant.modifierExtension
  path:
    v: CareTeam.participant.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: CareTeam.participant.role
  path:
    v: CareTeam.participant.role
  short:
    v: Função do participante na equipe assistêncial
  definition:
    v: Função do participante na equipe assistêncial

strength:
  v: example
value set:
  v: https://terminologia.saude.gov.br/fhir/ValueSet/BROcupacao
  l: BROcupacao

id:
  v: CareTeam.participant.member
path:
  v: CareTeam.participant.member
short:
  v: Referência ao partipante
definition:
  v: Referência ao partipante
type:
  code:
    v: Reference
    l: Reference
  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-patient
    l: br-core-patient
  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-careteam
    l: br-core-careteam

id:
  v: CareTeam.participant.onBehalfOf
path:
  v: CareTeam.participant.onBehalfOf
short:
  v: Organização do participante
definition:
  v: Organização do participante
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: CareTeam.participant.period
path:
  v: CareTeam.participant.period
short:
  v: Período de tempo do participante atua no time assistêncial
definition:
  v: Período de tempo do participante atua no time assistêncial

id:
  v: CareTeam.reasonCode
path:
  v: CareTeam.reasonCode
short:
  v: Motivo pelo qual a equipe assistência foi criada
definition:
  v: Motivo pelo qual a equipe assistência foi criada

id:
  v: CareTeam.reasonReference
path:
  v: CareTeam.reasonReference
short:
  v: Referência aos diagnóstico que esta equipe assistencial cobre
definition:
  v: Referência aos diagnóstico que esta equipe assistencial cobre
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-condition
    l: br-core-condition

id:
  v: CareTeam.managingOrganization
path:
  v: CareTeam.managingOrganization
short:
  v: Organização da equipe assistêncial
definition:
  v: Organização da equipe assistêncial
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: CareTeam.telecom
path:
  v: CareTeam.telecom
short:
  v: Contato da equipe assistencial
definition:
  v: Contato da equipe assistencial

id:
  v: CareTeam.note
path:
  v: CareTeam.note
short:
  v: Comentários adicionais sobre a equipe assistencial
definition:
  v: Comentários adicionais sobre a equipe assistencial