PackagesCanonicalsLogsProblems
    Packages
    br.go.ses.estatisticas-vitais@1.0.4
    https://fhir.saude.go.gov.br/r4/estatisticas-vitais/StructureDefinition/historico-gestacional
description: Perfil para representar o histórico gestacional da parturiente na Declaração de Nascido Vivo (DNV). Todos os quesitos dessa variável referem-se aos eventos passados da história gestacional da/o parturiente do/a recém-nascido/a, não incluindo, portanto, dados da gestação atual.
package_name: br.go.ses.estatisticas-vitais
derivation: constraint
name: HistoricoGestacional
type: Observation
elements:
  identifier:
    index: 0
    elements:
      system:
        pattern: {type: Uri, value: 'http://www.saude.go.gov.br/fhir/r4/NamingSystem/dnv'}
        index: 1
      value: {short: Número da Declaração de Nascido Vivo, index: 2}
      period:
        elements:
          start: {short: Data do preenchimento, index: 3}
        required: [start]
    required: [value, system]
  status:
    pattern: {type: Code, value: final}
    index: 4
  code:
    elements:
      coding:
        index: 5
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            index: 6
          code:
            pattern: {type: Code, value: 10163-4}
            index: 7
        required: [system, code]
    required: [coding]
  subject:
    type: Reference
    short: Parturiente
    refers: ['https://fhir.saude.go.gov.br/r4/core/StructureDefinition/individuo']
    index: 8
    elements:
      identifier:
        constraint:
          CPFouCNS: {human: O sistema de identificação do indivíduo deve ser ou CPF ou CNS, source: 'https://fhir.saude.go.gov.br/r4/estatisticas-vitais/StructureDefinition/historico-gestacional', severity: error, expression: 'system = ''https://fhir.saude.go.gov.br/sid/cpf'' or system = ''https://fhir.saude.go.gov.br/sid/cns'''}
        index: 9
        elements:
          system: {index: 10}
          value: {index: 11}
        required: [value, system]
    required: [identifier]
  encounter:
    type: Reference
    short: Atendimento do Parto
    refers: ['https://fhir.saude.go.gov.br/r4/estatisticas-vitais/StructureDefinition/atendimento-parto']
    index: 12
  component:
    array: true
    min: 5
    max: 5
    index: 13
    slicing:
      rules: closed
      discriminator:
      - {path: code.coding.code, type: value}
      min: 5
      max: 5
      slices:
        gestacoesAnteriores:
          match:
            code:
              coding: {code: 11996-6}
          schema:
            _required: true
            index: 14
            elements:
              code:
                elements:
                  coding:
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 16
                      code:
                        pattern: {type: Code, value: 11996-6}
                        index: 17
                    required: [system, code]
                required: [coding]
              value:
                choices: []
                index: 19
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueInteger:
                      match: {}
                      schema:
                        short: Número de gestações anteriores
                        choices: [valueInteger]
                        _required: true
                        index: 21
                      min: 1
                      max: 1
              valueInteger:
                short: Número de gestações anteriores
                type: integer
                choiceOf: value
                index: 22
                slicing:
                  slices:
                    valueInteger:
                      match: {}
                      schema: {short: Número de gestações anteriores, type: integer, _required: true, choiceOf: value, index: 22}
                      min: 1
                      max: 1
            required: [value, valueInteger]
        partosVaginais:
          match:
            code:
              coding: {code: 11977-6}
          schema:
            _required: true
            index: 23
            elements:
              code:
                elements:
                  coding:
                    index: 24
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 25
                      code:
                        pattern: {type: Code, value: 11977-6}
                        index: 26
                    required: [system, code]
                required: [coding]
              value:
                choices: []
                index: 28
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueInteger:
                      match: {}
                      schema:
                        short: Número de partos vaginais
                        choices: [valueInteger]
                        _required: true
                        index: 30
                      min: 1
                      max: 1
              valueInteger:
                short: Número de partos vaginais
                type: integer
                choiceOf: value
                index: 31
                slicing:
                  slices:
                    valueInteger:
                      match: {}
                      schema: {short: Número de partos vaginais, type: integer, _required: true, choiceOf: value, index: 31}
                      min: 1
                      max: 1
            required: [value, valueInteger]
        cesareas:
          match:
            code:
              coding: {code: 68497-7}
          schema:
            _required: true
            index: 32
            elements:
              code:
                elements:
                  coding:
                    index: 33
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 34
                      code:
                        pattern: {type: Code, value: 68497-7}
                        index: 35
                    required: [system, code]
                required: [coding]
              value:
                choices: []
                index: 37
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueInteger:
                      match: {}
                      schema:
                        short: Número de cesáreas
                        choices: [valueInteger]
                        _required: true
                        index: 39
                      min: 1
                      max: 1
              valueInteger:
                short: Número de cesáreas
                type: integer
                choiceOf: value
                index: 40
                slicing:
                  slices:
                    valueInteger:
                      match: {}
                      schema: {short: Número de cesáreas, type: integer, _required: true, choiceOf: value, index: 40}
                      min: 1
                      max: 1
            required: [value, valueInteger]
        nascidosVivos:
          match:
            code:
              coding: {code: 11636-8}
          schema:
            _required: true
            index: 41
            elements:
              code:
                elements:
                  coding:
                    index: 42
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 43
                      code:
                        pattern: {type: Code, value: 11636-8}
                        index: 44
                    required: [system, code]
                required: [coding]
              value:
                choices: []
                index: 46
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueInteger:
                      match: {}
                      schema:
                        short: Número de nascidos vivos
                        choices: [valueInteger]
                        _required: true
                        index: 48
                      min: 1
                      max: 1
              valueInteger:
                short: Número de nascidos vivos
                type: integer
                choiceOf: value
                index: 49
                slicing:
                  slices:
                    valueInteger:
                      match: {}
                      schema: {short: Número de nascidos vivos, type: integer, _required: true, choiceOf: value, index: 49}
                      min: 1
                      max: 1
            required: [value, valueInteger]
        perdasFetaisOuAbortos:
          match:
            code:
              coding: {code: 11612-9}
          schema:
            _required: true
            index: 50
            elements:
              code:
                elements:
                  coding:
                    index: 51
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 52
                      code:
                        pattern: {type: Code, value: 11612-9}
                        index: 53
                    required: [system, code]
                required: [coding]
              value:
                choices: []
                index: 55
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueInteger:
                      match: {}
                      schema:
                        short: Número de perdas fetais ou abortos
                        choices: [valueInteger]
                        _required: true
                        index: 57
                      min: 1
                      max: 1
              valueInteger:
                short: Número de perdas fetais ou abortos
                type: integer
                choiceOf: value
                index: 58
                slicing:
                  slices:
                    valueInteger:
                      match: {}
                      schema: {short: Número de perdas fetais ou abortos, type: integer, _required: true, choiceOf: value, index: 58}
                      min: 1
                      max: 1
            required: [value, valueInteger]
package_version: 1.0.4
class: profile
kind: resource
url: https://fhir.saude.go.gov.br/r4/estatisticas-vitais/StructureDefinition/historico-gestacional
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.0.4
required: [encounter, identifier, subject]