br-core-schedule
type: StructureDefinition
node role: treeRoot
id:
  v: br-core-schedule
text:
  status:
    v: extensions
  div:
    v: Narrativa gerada: StructureDefinition br-core-schedule Nome Bandeiras Card. Tipo Descrição e condicionalismos<img src="[binary]" alt="doco" style="background-color: inherit"/> Schedule 0..* Schedule A container for slots of time that may be available for booking appointments #xD; id 0..1 id Identificador lógico deste artefato #xD; meta 0..1 Meta Metadados sobre o recurso #xD; implicitRules 0..1 uri Conjunto de regras usadas para criar o conteúdo #xD; language 0..1 code Idioma do recurso #xD; text 0..1 Narrative Resumo narrativo em linguagem natural #xD; contained 0..* Resource Recursos aninhados #xD; extension 0..* Extension Extensões adicionais não previstas no modelo base #xD; modifierExtension 0..* Extension Extensões que não podem ser ignoradas #xD; identifier 0..* Identifier Identificador do Schedule #xD; active 0..1 boolean Indica se este Schedule está ativo Padrão necessário: true #xD; serviceCategory 0..* CodeableConcept Categoria assistencial de alto nível Vínculo: BR Modalidade Assistencial (preferred) #xD; serviceType 0..* CodeableConcept Tipo de serviço Vínculo: BRFormaOrganizacaoTabelaSUS (preferred) #xD; specialty 0..* CodeableConcept Especialidade clínica Vínculo: http://www.saude.gov.br/fhir/r4/ValueSet/BROcupacao-1.0 (preferred) #xD; actor S 1..* Reference(br-core-healthcareservice) Entidades vinculadas à agenda #xD; planningHorizon 0..1 Period Período de tempo coberto pela agenda #xD; start 0..1 dateTime Data de início da agenda #xD; end 0..1 dateTime Data de término da agenda #xD; comment 0..1 string Comentários sobre a agenda #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentação para este formato
url:
  v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-schedule
  l: br-core-schedule
version:
  v: 1.0.0
name:
  v: BRCoreSchedule
title:
  v: br-core-schedule
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: Perfil brasileiro do recurso FHIR R4 Schedule, utilizado para representar agendas e disponibilidades de profissionais, serviços ou locais de saúde no contexto da RNDS e sistemas de interoperabilidade, incluindo suporte a teleconsultas e telecolposcopia.
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: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: ical
  uri:
    v: http://ietf.org/rfc/2445
    l: http://ietf.org/rfc/2445
  name:
    v: iCalendar
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: Schedule
  l: Schedule
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Schedule
  l: Schedule
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: Schedule
    path:
      v: Schedule
    short:
      v: A container for slots of time that may be available for booking appointments
    definition:
      v: A container for slots of time that may be available for booking appointments.
    alias:
      v: Availability
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Schedule
      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.

identity:
  v: rim
map:
  v: n/a

identity:
  v: ical
map:
  v: BEGIN:VFREEBUSY ??? END:VFREEBUSY (If your fhir server provides this information via calDAV, then you may want to include addressing information in a URL section, and with the search, a DTSTART and DTEND component can be included to indicate the range of time that has been covered in the collection of slots, where these overlap the resources period values. For all slots that reference this resource, include a FREEBUSY row for each slot)

id:
  v: Schedule.id
path:
  v: Schedule.id
short:
  v: Identificador lógico deste artefato
definition:
  v: Identificador lógico único 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: Schedule.meta
path:
  v: Schedule.meta
short:
  v: Metadados sobre o recurso
definition:
  v: Metadados sobre o recurso, incluindo versão, autor e histórico de atualização
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: Schedule.implicitRules
path:
  v: Schedule.implicitRules
short:
  v: Conjunto de regras usadas para criar o conteúdo
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: Schedule.language
path:
  v: Schedule.language
short:
  v: Idioma do recurso
definition:
  v: Idioma em que o recurso está escrito
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: Schedule.text
path:
  v: Schedule.text
short:
  v: Resumo narrativo em linguagem natural
definition:
  v: Resumo narrativo em linguagem natural do conteúdo deste recurso
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: Schedule.contained
path:
  v: Schedule.contained
short:
  v: Recursos aninhados
definition:
  v: Recursos contidos neste 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: Schedule.extension
path:
  v: Schedule.extension
short:
  v: Extensões adicionais não previstas no 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: Schedule.modifierExtension
path:
  v: Schedule.modifierExtension
short:
  v: Extensões que não podem ser ignoradas
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: Schedule.identifier
path:
  v: Schedule.identifier
short:
  v: Identificador do Schedule
definition:
  v: Identificador único do recurso Schedule em sistemas locais ou nacionais
min:
  v: 0
max:
  v: *
base:
  path:
    v: Schedule.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
mapping:
  identity:
    v: ical
  map:
    v: UID

id:
  v: Schedule.active
path:
  v: Schedule.active
short:
  v: Indica se este Schedule está ativo
definition:
  v: Indica se este Schedule está em uso ativo no sistema
comment:
  v: This element is labeled as a modifier because it may be used to mark that the resource was created in error.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Schedule.active
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: This resource is generally assumed to be active if no value is provided for the active element
pattern: Boolean
  v: true
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 can indicate that a record should not be treated as valid
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: Schedule.serviceCategory
path:
  v: Schedule.serviceCategory
short:
  v: Categoria assistencial de alto nível
definition:
  v: Categoria de serviço de saúde (ex.: Atenção Básica, Atenção Especializada, Diagnóstico e Terapia)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Schedule.serviceCategory
  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: preferred
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRModalidadeAssistencial
    l: BRModalidadeAssistencial
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: Schedule.serviceType
path:
  v: Schedule.serviceType
short:
  v: Tipo de serviço
definition:
  v: Serviço específico associado à agenda (ex.: Telecolposcopia, Consultas de Enfermagem)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Schedule.serviceType
  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: preferred
  value set:
    v: https://terminologia.saude.gov.br/fhir/ValueSet/BRFormaOrganizacaoTabelaSUS
    l: BRFormaOrganizacaoTabelaSUS
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: ical
  map:
    v: n/a

id:
  v: Schedule.specialty
path:
  v: Schedule.specialty
short:
  v: Especialidade clínica
definition:
  v: Tipo de especialidade requerida (ex.: Ginecologia, Cardiologia, etc.)
min:
  v: 0
max:
  v: *
base:
  path:
    v: Schedule.specialty
  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: preferred
  value set:
    v: http://www.saude.gov.br/fhir/r4/ValueSet/BROcupacao-1.0
    l: BROcupacao-1.0
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: Schedule.actor
path:
  v: Schedule.actor
short:
  v: Entidades vinculadas à agenda
definition:
  v: Recurso para o qual a disponibilidade é fornecida neste Schedule
comment:
  v: The capacity to support multiple referenced resource types should be used in cases where the specific resources themselves cannot be scheduled without the other, and thus only make sense to the system exposing them as a group. Common examples of this are where the combination of a practitioner and a room (Location) are always required by a system.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Schedule.actor
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-healthcareservice
    l: br-core-healthcareservice
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: ical
  map:
    v: ATTENDEE:MAILTO:john_public@host2.com This can be populated with a value from the referenced resource
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Schedule.planningHorizon
path:
  v: Schedule.planningHorizon
short:
  v: Período de tempo coberto pela agenda
definition:
  v: Intervalo de tempo coberto pelo Schedule (planejamento da agenda)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Schedule.planningHorizon
  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.planned
mapping:
  identity:
    v: ical
  map:
    v: DTSTART:20131201T003000Z DTEND:2014030101T003000Z

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

id:
  v: Schedule.planningHorizon.start
path:
  v: Schedule.planningHorizon.start
short:
  v: Data de início da agenda
definition:
  v: Data e hora de início do planejamento da agenda
comment:
  v: If the low element is missing, the meaning is that the low boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.start
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: per-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: v2
  map:
    v: DR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: Schedule.planningHorizon.end
path:
  v: Schedule.planningHorizon.end
short:
  v: Data de término da agenda
definition:
  v: Data e hora de término do planejamento da agenda
comment:
  v: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.end
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
meaning when missing:
  v: If the end of the period is missing, it means that the period is ongoing
condition:
  v: per-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: v2
  map:
    v: DR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

id:
  v: Schedule.comment
path:
  v: Schedule.comment
short:
  v: Comentários sobre a agenda
definition:
  v: Comentários adicionais sobre disponibilidade, regras de agendamento ou observações operacionais
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Schedule.comment
  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: false
mapping:
  identity:
    v: ical
  map:
    v: COMMENT:(comment) If there is no comment, then the line can be excluded from the iCalendar entry

element:
  id:
    v: Schedule
  path:
    v: Schedule
element:
  id:
    v: Schedule.id
  path:
    v: Schedule.id
  short:
    v: Identificador lógico deste artefato
  definition:
    v: Identificador lógico único deste artefato
element:
  id:
    v: Schedule.meta
  path:
    v: Schedule.meta
  short:
    v: Metadados sobre o recurso
  definition:
    v: Metadados sobre o recurso, incluindo versão, autor e histórico de atualização
element:
  id:
    v: Schedule.implicitRules
  path:
    v: Schedule.implicitRules
  short:
    v: Conjunto de regras usadas para criar o conteúdo
  definition:
    v: Um conjunto de regras sob as quais este conteúdo foi criado
element:
  id:
    v: Schedule.language
  path:
    v: Schedule.language
  short:
    v: Idioma do recurso
  definition:
    v: Idioma em que o recurso está escrito
element:
  id:
    v: Schedule.text
  path:
    v: Schedule.text
  short:
    v: Resumo narrativo em linguagem natural
  definition:
    v: Resumo narrativo em linguagem natural do conteúdo deste recurso
element:
  id:
    v: Schedule.contained
  path:
    v: Schedule.contained
  short:
    v: Recursos aninhados
  definition:
    v: Recursos contidos neste recurso
element:
  id:
    v: Schedule.extension
  path:
    v: Schedule.extension
  short:
    v: Extensões adicionais não previstas no modelo base
  definition:
    v: Extensões adicionais que não fazem parte do modelo base
element:
  id:
    v: Schedule.modifierExtension
  path:
    v: Schedule.modifierExtension
  short:
    v: Extensões que não podem ser ignoradas
  definition:
    v: Extensões adicionais que não podem ser ignoradas, mesmo que não reconhecidas
element:
  id:
    v: Schedule.identifier
  path:
    v: Schedule.identifier
  short:
    v: Identificador do Schedule
  definition:
    v: Identificador único do recurso Schedule em sistemas locais ou nacionais
element:
  id:
    v: Schedule.active
  path:
    v: Schedule.active
  short:
    v: Indica se este Schedule está ativo
  definition:
    v: Indica se este Schedule está em uso ativo no sistema
  pattern: Boolean
    v: true
element:
  id:
    v: Schedule.serviceCategory
  path:
    v: Schedule.serviceCategory
  short:
    v: Categoria assistencial de alto nível
  definition:
    v: Categoria de serviço de saúde (ex.: Atenção Básica, Atenção Especializada, Diagnóstico e Terapia)
  binding:
    strength:
      v: preferred
    value set:
      v: https://terminologia.saude.gov.br/fhir/ValueSet/BRModalidadeAssistencial
      l: BRModalidadeAssistencial
element:
  id:
    v: Schedule.serviceType
  path:
    v: Schedule.serviceType
  short:
    v: Tipo de serviço
  definition:
    v: Serviço específico associado à agenda (ex.: Telecolposcopia, Consultas de Enfermagem)
  binding:
    strength:
      v: preferred
    value set:
      v: https://terminologia.saude.gov.br/fhir/ValueSet/BRFormaOrganizacaoTabelaSUS
      l: BRFormaOrganizacaoTabelaSUS
element:
  id:
    v: Schedule.specialty
  path:
    v: Schedule.specialty
  short:
    v: Especialidade clínica
  definition:
    v: Tipo de especialidade requerida (ex.: Ginecologia, Cardiologia, etc.)
  binding:
    strength:
      v: preferred
    value set:
      v: http://www.saude.gov.br/fhir/r4/ValueSet/BROcupacao-1.0
      l: BROcupacao-1.0
element:
  id:
    v: Schedule.actor
  path:
    v: Schedule.actor
  short:
    v: Entidades vinculadas à agenda
  definition:
    v: Recurso para o qual a disponibilidade é fornecida neste Schedule
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://br-core.saude.gov.br/fhir/StructureDefinition/br-core-healthcareservice
      l: br-core-healthcareservice
  must support:
    v: true
element:
  id:
    v: Schedule.planningHorizon
  path:
    v: Schedule.planningHorizon
  short:
    v: Período de tempo coberto pela agenda
  definition:
    v: Intervalo de tempo coberto pelo Schedule (planejamento da agenda)
element:
  id:
    v: Schedule.planningHorizon.start
  path:
    v: Schedule.planningHorizon.start
  short:
    v: Data de início da agenda
  definition:
    v: Data e hora de início do planejamento da agenda
element:
  id:
    v: Schedule.planningHorizon.end
  path:
    v: Schedule.planningHorizon.end
  short:
    v: Data de término da agenda
  definition:
    v: Data e hora de término do planejamento da agenda
element:
  id:
    v: Schedule.comment
  path:
    v: Schedule.comment
  short:
    v: Comentários sobre a agenda
  definition:
    v: Comentários adicionais sobre disponibilidade, regras de agendamento ou observações operacionais