PackagesCanonicalsLogsProblems
    Packages
    rs/br.ufg.cgis.rnds@lite-0.0.3
    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: 37}
  encounter: {index: 36}
  section:
    short: Seções do documento
    mustSupport: true
    index: 145
    elements:
      orderedBy: {index: 153}
      section: {index: 161}
      mode: {index: 152}
      title: {index: 147}
      emptyReason: {index: 160}
      author: {index: 149}
      id: {index: 146}
      code: {index: 148}
      focus: {index: 150}
      entry:
        type: Reference
        refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial']
        index: 154
        elements:
          id: {index: 155}
          reference: {index: 156}
          type: {index: 157}
          identifier: {index: 158}
          display: {index: 159}
        required: [reference]
      text: {index: 151}
    required: [entry]
  attester: {index: 51}
  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: 49}
  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: 38
    elements:
      reference: {index: 39}
      type: {index: 40}
      identifier:
        index: 41
        elements:
          use: {index: 42}
          type: {index: 43}
          system: {index: 44}
          value: {index: 45}
          period: {index: 46}
          assigner: {index: 47}
        required: [system, value]
      display: {index: 48}
    required: [identifier]
  event:
    short: Evento de regulação
    index: 63
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        regulationRequest:
          match:
            code:
              coding: {code: pending}
          schema:
            short: Evento de solicitação de procedimento regulado
            _required: true
            index: 64
            elements:
              id: {index: 65}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 66
                elements:
                  id: {index: 67}
                  coding:
                    index: 68
                    elements:
                      system: {index: 69}
                      code:
                        pattern: {type: code, value: pending}
                        type: code
                        index: 70
                      userSelected: {index: 71}
                    required: [code, system]
                  text: {index: 72}
                required: [coding]
              period:
                short: Data da solicitação
                index: 73
                elements:
                  id: {index: 74}
                  start: {index: 75}
                  end: {index: 76}
                required: [end, start]
              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: 77
                elements:
                  id: {index: 78}
                  type: {index: 79}
                  identifier:
                    elements:
                      id: {index: 80}
                      use: {index: 81}
                      type:
                        index: 82
                        elements:
                          id: {index: 83}
                          coding:
                            index: 84
                            elements:
                              id: {index: 85}
                              system: {index: 86}
                              code: {index: 87}
                              userSelected: {index: 88}
                            required: [code, system]
                          text: {index: 89}
                        required: [coding]
                      system: {index: 90}
                      value: {index: 91}
                      period: {index: 92}
                      assigner: {index: 93}
                    required: [system, value]
                  display: {index: 94}
            required: [code, detail, period]
        returnedToRequester:
          match:
            code:
              coding: {code: returned-to-requester}
          schema:
            short: Evento de devolução ao solicitante
            index: 95
            elements:
              id: {index: 96}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 97
                elements:
                  id: {index: 98}
                  coding:
                    index: 99
                    elements:
                      id: {index: 100}
                      system: {index: 101}
                      code:
                        pattern: {type: code, value: returned-to-requester}
                        type: code
                        index: 102
                      userSelected: {index: 103}
                    required: [code, system]
                  text: {index: 104}
                required: [coding]
              period:
                elements:
                  id: {index: 105}
                  start: {index: 106}
                  end: {index: 107}
                required: [end, start]
              detail:
                type: Reference
                refers: ['http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0']
                index: 108
                elements:
                  id: {index: 109}
                  reference: {index: 110}
                  type: {index: 111}
                  identifier:
                    index: 112
                    elements:
                      id: {index: 113}
                      use: {index: 114}
                      type: {index: 115}
                      system: {index: 116}
                      value: {index: 117}
                      period: {index: 118}
                      assigner: {index: 119}
                    required: [system, value]
                  display: {index: 120}
                required: [identifier]
            required: [code, detail]
        regulationBooking:
          match:
            code:
              coding: {code: booked}
          schema:
            short: Evento de agendamento de procedimento regulado
            index: 121
            elements:
              id: {index: 122}
              code:
                binding: {strength: required, valueSet: 'http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial'}
                index: 123
                elements:
                  id: {index: 124}
                  coding:
                    index: 125
                    elements:
                      id: {index: 126}
                      system: {index: 127}
                      code:
                        pattern: {type: code, value: booked}
                        type: code
                        index: 128
                      userSelected: {index: 129}
                    required: [code, system]
                  text: {index: 130}
                required: [coding]
              period:
                elements:
                  id: {index: 131}
                  start: {index: 132}
                  end: {index: 133}
                required: [end, start]
              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: 134
                elements:
                  id: {index: 135}
                  type: {index: 136}
                  identifier:
                    elements:
                      id: {index: 137}
                      use: {index: 138}
                      type: {index: 139}
                      system: {index: 140}
                      value: {index: 141}
                      period: {index: 142}
                      assigner: {index: 143}
                    required: [system, value]
                  display: {index: 144}
            required: [code, detail]
  custodian: {index: 52}
  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: 53
    elements:
      code:
        short: Tipo de Relacionamento
        pattern: {type: code, value: replaces}
        type: code
        index: 54
      target:
        short: Documento a Ser Substituído
        choices: [targetReference]
        index: 56
      targetReference: {type: Reference, short: Documento a Ser Substituído, choiceOf: target, index: 57}
      target[x]:
        elements:
          id: {index: 58}
          reference: {index: 59}
          type: {index: 60}
          identifier: {index: 61}
          display: {index: 62}
        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: 20
            elements:
              url:
                pattern: {type: uri, value: gender}
                type: uri
                index: 21
          birthYear:
            url: null
            mustSupport: true
            index: 22
            elements:
              url:
                pattern: {type: uri, value: birthYear}
                type: uri
                index: 23
          reason:
            url: null
            mustSupport: true
            index: 24
            elements:
              url:
                pattern: {type: uri, value: reason}
                type: uri
                index: 25
        elements:
          extension:
            mustSupport: true
            index: 20
            slicing:
              slices:
                gender:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 20
                    elements:
                      url:
                        pattern: {type: uri, value: gender}
                        type: uri
                        index: 21
                birthYear:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 22
                    elements:
                      url:
                        pattern: {type: uri, value: birthYear}
                        type: uri
                        index: 23
                reason:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 24
                    elements:
                      url:
                        pattern: {type: uri, value: reason}
                        type: uri
                        index: 25
          url:
            pattern: {type: uri, value: 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuoNaoIdentificado-1.0'}
            type: uri
            index: 26
    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: 20
                    elements:
                      url:
                        pattern: {type: uri, value: gender}
                        type: uri
                        index: 21
                  birthYear:
                    url: null
                    mustSupport: true
                    index: 22
                    elements:
                      url:
                        pattern: {type: uri, value: birthYear}
                        type: uri
                        index: 23
                  reason:
                    url: null
                    mustSupport: true
                    index: 24
                    elements:
                      url:
                        pattern: {type: uri, value: reason}
                        type: uri
                        index: 25
                elements:
                  extension:
                    mustSupport: true
                    index: 20
                    slicing:
                      slices:
                        gender:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 20
                            elements:
                              url:
                                pattern: {type: uri, value: gender}
                                type: uri
                                index: 21
                        birthYear:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 22
                            elements:
                              url:
                                pattern: {type: uri, value: birthYear}
                                type: uri
                                index: 23
                        reason:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 24
                            elements:
                              url:
                                pattern: {type: uri, value: reason}
                                type: uri
                                index: 25
                  url:
                    pattern: {type: uri, value: 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuoNaoIdentificado-1.0'}
                    type: uri
                    index: 26
      reference: {index: 27}
      type:
        pattern: {type: uri, value: Patient}
        type: uri
        index: 28
      identifier:
        elements:
          use: {index: 29}
          type: {index: 30}
          system: {index: 31}
          value: {index: 32}
          period: {index: 33}
          assigner: {index: 34}
        required: [system, value]
      display: {index: 35}
  confidentiality: {index: 50}
package_version: lite-0.0.3
class: profile
kind: resource
url: http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRegulacaoAssistencial
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.0.3
required: [category, event, section, subject]