Skip to content

Commit

Permalink
feat: Add obito field to prontuario_vitacare schema
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Aug 8, 2024
1 parent 1ab9cb7 commit 0e3fdc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ select
safe_cast(NULLIF(NOME_SOCIAL_DA_PESSOA_CADASTRADA, 'None') as string) as nome_social,
safe_cast(NULLIF(NOME_DA_MAE_PESSOA_CADASTRADA, 'None') as string) as nome_mae,
safe_cast(null as string) as nome_pai,
SAFE_CAST(CASE WHEN OBITO IS NULL OR OBITO = 'None' THEN 'False' ELSE 'True' END AS string) AS obito,
safe_cast(NULLIF(OBITO, 'None') as date format 'DD/MM/YYYY') as data_obito,
safe_cast(NULLIF(SEXO, 'None') as string) as sexo,
safe_cast(NULLIF(ORIENTACAO_SEXUAL, 'None') as string) as orientacao_sexual,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ select
safe_cast(NULLIF(data__nomeSocial, '') as string) as nome_social,
safe_cast(NULLIF(data__nomeMae, '') as string) as nome_mae,
safe_cast(NULLIF(data__nomePai, '') as string) as nome_pai,
safe_cast(NULLIF(data__obito, '') as date) as data_obito,
safe_cast(NULLIF(data__obito, '') as string) as obito,
safe_cast(null as date) as data_obito,
safe_cast(NULLIF(data__sexo, '') as string) as sexo,
safe_cast(NULLIF(data__orientacaoSexual, '') as string) as orientacao_sexual,
safe_cast(NULLIF(data__identidadeGenero, '') as string) as identidade_genero,
Expand Down

0 comments on commit 0e3fdc1

Please sign in to comment.