PackagesCanonicalsLogsProblems
    Packages
    rs/br.ufg.cgis.rnds@lite-0.2.2
    http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRegulacaoAssistencial
description: Documento público que coleta os dados da regulação assistencial
package_name: rs/br.ufg.cgis.rnds
derivation: constraint
name: BRRegulacaoAssistencial
type: Composition
elements:
  category:
    short: Modalidade Assistencial
    binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRModalidadeAssistencialMIRA'}
    mustSupport: true
    index: 11
    elements:
      coding:
        mustSupport: true
        index: 12
        elements:
          system: {index: 13}
          code: {index: 14}
          display: {index: 15}
          userSelected: {index: 16}
        required: [code, system]
      text: {index: 17}
    required: [coding]
  date: {short: Data/hora de Geração do Documento, mustSupport: true, index: 34}
  encounter: {index: 33}
  section:
    short: Seções do documento
    mustSupport: true
    index: 230
    elements:
      orderedBy: {index: 238}
      section: {index: 246}
      mode: {index: 237}
      title: {index: 232}
      emptyReason: {index: 245}
      author: {index: 234}
      id: {index: 231}
      code: {index: 233}
      focus: {index: 235}
      entry:
        type: Reference
        refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial']
        index: 239
        elements:
          id: {index: 240}
          reference: {index: 241}
          type: {index: 242}
          identifier: {index: 243}
          display: {index: 244}
        required: [reference]
      text: {index: 236}
    required: [entry]
  attester: {index: 48}
  type:
    short: Tipo de Documento
    binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRTipoDocumento-1.0'}
    mustSupport: true
    index: 2
    elements:
      id: {index: 3}
      coding:
        mustSupport: true
        index: 4
        elements:
          id: {index: 5}
          system: {index: 6}
          code:
            pattern: {type: code, value: RA}
            type: code
            index: 7
          display: {index: 8}
          userSelected: {index: 9}
        required: [code, system]
      text: {index: 10}
    required: [coding]
  title: {short: Título do documento, mustSupport: true, index: 46}
  author:
    type: Reference
    short: Reponsável pelo Contato Assistencial
    mustSupport: true
    refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0', 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRPessoaJuridicaProfissionalLiberal-1.0']
    index: 35
    elements:
      reference: {index: 36}
      type: {index: 37}
      identifier:
        index: 38
        elements:
          use: {index: 39}
          type: {index: 40}
          system: {index: 41}
          value: {index: 42}
          period: {index: 43}
          assigner: {index: 44}
        required: [system, value]
      display: {index: 45}
    required: [identifier]
  event:
    short: Evento de regulação
    index: 60
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        pending:
          match:
            code:
              coding: {code: pending}
          schema:
            short: Evento de solicitação de procedimento regulado
            index: 61
            elements:
              id: {index: 62}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 63
                elements:
                  id: {index: 64}
                  coding:
                    index: 65
                    elements:
                      system: {index: 66}
                      code:
                        pattern: {type: code, value: pending}
                        type: code
                        index: 67
                      userSelected: {index: 68}
                    required: [code, system]
                  text: {index: 69}
                required: [coding]
              period:
                short: Data da solicitação
                index: 70
                elements:
                  id: {index: 71}
                  end: {index: 72}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0', 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRequisicaoRegulacaoAssistencial']
                index: 73
                elements:
                  id: {index: 74}
                  type: {index: 75}
                  identifier:
                    elements:
                      id: {index: 76}
                      use: {index: 77}
                      type:
                        index: 78
                        elements:
                          id: {index: 79}
                          coding:
                            index: 80
                            elements:
                              id: {index: 81}
                              system: {index: 82}
                              code: {index: 83}
                              userSelected: {index: 84}
                            required: [code, system]
                          text: {index: 85}
                        required: [coding]
                      system: {index: 86}
                      value: {index: 87}
                      period: {index: 88}
                      assigner: {index: 89}
                    required: [system, value]
                  display: {index: 90}
            required: [code, detail, period]
        returned-to-requester:
          match:
            code:
              coding: {code: returned-to-requester}
          schema:
            short: Evento de devolução ao solicitante
            index: 91
            elements:
              id: {index: 92}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 93
                elements:
                  id: {index: 94}
                  coding:
                    index: 95
                    elements:
                      id: {index: 96}
                      system: {index: 97}
                      code:
                        pattern: {type: code, value: returned-to-requester}
                        type: code
                        index: 98
                      userSelected: {index: 99}
                    required: [code, system]
                  text: {index: 100}
                required: [coding]
              period:
                elements:
                  id: {index: 101}
                  end: {index: 102}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 103
                elements:
                  id: {index: 104}
                  reference: {index: 105}
                  type: {index: 106}
                  identifier:
                    index: 107
                    elements:
                      id: {index: 108}
                      use: {index: 109}
                      type: {index: 110}
                      system: {index: 111}
                      value: {index: 112}
                      period: {index: 113}
                      assigner: {index: 114}
                    required: [system, value]
                  display: {index: 115}
                required: [identifier]
            required: [code, detail]
        booked:
          match:
            code:
              coding: {code: booked}
          schema:
            short: Evento de agendamento de procedimento regulado
            index: 116
            elements:
              id: {index: 117}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 118
                elements:
                  id: {index: 119}
                  coding:
                    index: 120
                    elements:
                      id: {index: 121}
                      system: {index: 122}
                      code:
                        pattern: {type: code, value: booked}
                        type: code
                        index: 123
                      userSelected: {index: 124}
                    required: [code, system]
                  text: {index: 125}
                required: [coding]
              period:
                elements:
                  id: {index: 126}
                  end: {index: 127}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial', 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 128
                elements:
                  id: {index: 129}
                  type: {index: 130}
                  identifier:
                    elements:
                      id: {index: 131}
                      use: {index: 132}
                      type: {index: 133}
                      system: {index: 134}
                      value: {index: 135}
                      period: {index: 136}
                      assigner: {index: 137}
                    required: [system, value]
                  display: {index: 138}
            required: [code, detail]
        attended:
          match:
            code:
              coding: {code: attended}
          schema:
            short: Evento de atendimento de procedimento regulado
            index: 139
            elements:
              id: {index: 140}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 141
                elements:
                  id: {index: 142}
                  coding:
                    index: 143
                    elements:
                      id: {index: 144}
                      system: {index: 145}
                      code:
                        pattern: {type: code, value: attended}
                        type: code
                        index: 146
                      userSelected: {index: 147}
                    required: [code, system]
                  text: {index: 148}
                required: [coding]
              period:
                elements:
                  id: {index: 149}
                  end: {index: 150}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial', 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 151
                elements:
                  id: {index: 152}
                  type: {index: 153}
                  identifier:
                    elements:
                      id: {index: 154}
                      use: {index: 155}
                      type: {index: 156}
                      system: {index: 157}
                      value: {index: 158}
                      period: {index: 159}
                      assigner: {index: 160}
                    required: [system, value]
                  display: {index: 161}
            required: [code, detail]
        cancelled:
          match:
            code:
              coding: {code: cancelled}
          schema:
            index: 162
            elements:
              id: {index: 163}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 164
                elements:
                  id: {index: 165}
                  coding:
                    index: 166
                    elements:
                      id: {index: 167}
                      system: {index: 168}
                      code:
                        pattern: {type: code, value: cancelled}
                        type: code
                        index: 169
                      userSelected: {index: 170}
                    required: [code, system]
                  text: {index: 171}
                required: [coding]
              period:
                elements:
                  id: {index: 172}
                  end: {index: 173}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 174
                elements:
                  id: {index: 175}
                  type: {index: 176}
                  identifier:
                    elements:
                      id: {index: 177}
                      use: {index: 178}
                      type: {index: 179}
                      system: {index: 180}
                      value: {index: 181}
                      period: {index: 182}
                      assigner: {index: 183}
                    required: [system, value]
                  display: {index: 184}
            required: [code]
        absence:
          match:
            code:
              coding: {code: absence}
          schema:
            index: 185
            elements:
              id: {index: 186}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 187
                elements:
                  id: {index: 188}
                  coding:
                    index: 189
                    elements:
                      id: {index: 190}
                      system: {index: 191}
                      code:
                        pattern: {type: code, value: absence}
                        type: code
                        index: 192
                      userSelected: {index: 193}
                    required: [system]
                  text: {index: 194}
                required: [coding]
              period:
                elements:
                  id: {index: 195}
                  end: {index: 196}
                required: [end]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial', 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 197
                elements:
                  id: {index: 198}
                  type: {index: 199}
                  identifier:
                    elements:
                      id: {index: 200}
                      use: {index: 201}
                      type: {index: 202}
                      system: {index: 203}
                      value: {index: 204}
                      period: {index: 205}
                      assigner: {index: 206}
                    required: [system, value]
                  display: {index: 207}
            required: [code, detail]
        excluded:
          match:
            code:
              coding: {code: excluded}
          schema:
            index: 208
            elements:
              id: {index: 209}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 210
                elements:
                  id: {index: 211}
                  coding:
                    index: 212
                    elements:
                      id: {index: 213}
                      system: {index: 214}
                      code:
                        pattern: {type: code, value: excluded}
                        type: code
                        index: 215
                      userSelected: {index: 216}
                    required: [code, system]
                  text: {index: 217}
                required: [coding]
              period:
                elements:
                  id: {index: 218}
                  end: {index: 219}
                required: [end]
              detail:
                elements:
                  id: {index: 220}
                  type: {index: 221}
                  identifier:
                    elements:
                      id: {index: 222}
                      use: {index: 223}
                      type: {index: 224}
                      system: {index: 225}
                      value: {index: 226}
                      period: {index: 227}
                      assigner: {index: 228}
                    required: [system, value]
                  display: {index: 229}
            required: [code]
  custodian: {index: 49}
  status:
    short: final | entered-in-error
    binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BREstadoDocumento-1.0'}
    mustSupport: true
    index: 1
  identifier: {index: 0}
  relatesTo:
    short: Relação a Outros Documentos
    index: 50
    elements:
      code:
        short: Tipo de Relacionamento
        pattern: {type: code, value: replaces}
        type: code
        index: 51
      target:
        short: Documento a Ser Substituído
        choices: [targetReference]
        index: 53
      targetReference: {type: Reference, short: Documento a Ser Substituído, choiceOf: target, index: 54}
      target[x]:
        elements:
          id: {index: 55}
          reference: {index: 56}
          type: {index: 57}
          identifier: {index: 58}
          display: {index: 59}
        required: [reference]
  subject:
    short: Sujeito da Composição
    refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0']
    type: Reference
    mustSupport: true
    index: 18
    extensions:
      unidentifiedPatient:
        url: http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuoNaoIdentificado-1.0
        type: Extension
        short: Dados do Indivíduo Não Identificado
        mustSupport: true
        index: 19
        extensions:
          gender: {url: null, mustSupport: true, index: 21}
          birthYear: {url: null, mustSupport: true, index: 22}
          reason: {url: null, mustSupport: true, index: 23}
        elements:
          extension:
            array: true
            min: 3
            index: 20
            slicing:
              slices:
                gender:
                  match: {}
                  schema: {mustSupport: true, index: 21}
                birthYear:
                  match: {}
                  schema: {mustSupport: true, index: 22}
                reason:
                  match: {}
                  schema: {mustSupport: true, index: 23}
    elements:
      extension:
        type: Extension
        short: Dados do Indivíduo Não Identificado
        mustSupport: true
        url: http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuoNaoIdentificado-1.0
        index: 19
        slicing:
          slices:
            unidentifiedPatient:
              match: {}
              schema:
                type: Extension
                short: Dados do Indivíduo Não Identificado
                mustSupport: true
                url: http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuoNaoIdentificado-1.0
                index: 19
                extensions:
                  gender: {url: null, mustSupport: true, index: 21}
                  birthYear: {url: null, mustSupport: true, index: 22}
                  reason: {url: null, mustSupport: true, index: 23}
                elements:
                  extension:
                    array: true
                    min: 3
                    index: 20
                    slicing:
                      slices:
                        gender:
                          match: {}
                          schema: {mustSupport: true, index: 21}
                        birthYear:
                          match: {}
                          schema: {mustSupport: true, index: 22}
                        reason:
                          match: {}
                          schema: {mustSupport: true, index: 23}
      reference: {index: 24}
      type:
        pattern: {type: uri, value: Patient}
        type: uri
        index: 25
      identifier:
        elements:
          use: {index: 26}
          type: {index: 27}
          system: {index: 28}
          value: {index: 29}
          period: {index: 30}
          assigner: {index: 31}
        required: [system, value]
      display: {index: 32}
  confidentiality: {index: 47}
package_version: lite-0.2.2
class: profile
kind: resource
url: http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRegulacaoAssistencial
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.2.2
required: [category, event, section, subject]