Skip to content

Commit

Permalink
feat: fix cartao_nacional_saude null values in profissional table
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed May 22, 2024
1 parent 727cd00 commit 4b044a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/br_ms_cnes/br_ms_cnes__profissional.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ select
end as tipo_conselho,
-- replace de valores de linha com 15 zeros para null. 15 zeros é valor do campo
-- CNS_PROF que indica null
safe_cast(regexp_replace(cns_prof, '0{15}', null) as string) cartao_nacional_saude,
safe_cast(cns_prof as string) cartao_nacional_saude,
safe_cast(cbo as string) cbo_2002_original,
safe_cast(
case
Expand Down

0 comments on commit 4b044a6

Please sign in to comment.