Skip to content

Commit

Permalink
Remove not null birthdate restriction in hci
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoTrabach committed Sep 9, 2024
1 parent 26f6bbe commit 575b98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,13 @@ models:
- '{{ var ("TAG_NOME") }}'
- name: dados.data_nascimento
description: Data de nascimento.
tests:
- not_null:
name: mart_historico_clinico__paciente__data_nascimento__not_null
policy_tags:
- '{{ var ("TAG_DTNASCIMENTO") }}'
- name: dados.genero
description: "Gênero do paciente. Os valores possíveis são 'Masculino',
'Feminino' e nulo (não informado)."
- name: dados.raca
description: "Raça do paciente. Os valores possíveis são 'Amarela','Branca',
'Indigena', 'Parda', 'Preta' e nulo (não informado)."
description: "Raça do paciente. Os valores possíveis são 'Amarela','Branca', 'Indigena', 'Parda', 'Preta' e nulo (não informado)."
- name: dados.obito_indicador
description: Indica se o paciente é falecido ou não.
policy_tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ paciente_integrado AS (
LEFT JOIN endereco_dados ed ON pd.cpf = ed.cpf
LEFT JOIN prontuario_dados pt ON pd.cpf = pt.cpf
WHERE pd.dados.nome IS NOT NULL
AND pd.dados.data_nascimento IS NOT NULL
-- AND pd.dados.data_nascimento IS NOT NULL
AND pd.dados.cpf_valido_indicador IS TRUE

)
Expand Down

0 comments on commit 575b98b

Please sign in to comment.