Skip to content

Commit

Permalink
chore: add cns logic ref
Browse files Browse the repository at this point in the history
  • Loading branch information
d116626 committed Aug 29, 2024
1 parent 0ee2b83 commit 492dc9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions macros/validate_cns.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% macro validate_cns(cns_column) %}
-- CNS validation based on https://integracao.esusab.ufsc.br/v211/docs/algoritmo_CNS.html
CASE
WHEN LENGTH(TRIM({{ cns_column }})) != 15 THEN FALSE

Expand Down

0 comments on commit 492dc9e

Please sign in to comment.