-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add audit_helper dependency and create first audit model
- Loading branch information
Maria Lorena Rodriguez Viruel
authored and
Maria Lorena Rodriguez Viruel
committed
Nov 7, 2023
1 parent
194b3d5
commit 51b86ae
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{# in dbt Develop #} | ||
|
||
|
||
{% set old_useview_postnatal_care %} | ||
select | ||
uuid, | ||
patient_id, | ||
form | ||
from dbt.useview_postnatal_care | ||
{% endset %} | ||
|
||
|
||
{% set new_impact_pncview_visit %} | ||
select | ||
uuid, | ||
patient_id, | ||
form | ||
from {{ ref("impact_pncview_visit") }} | ||
{% endset %} | ||
|
||
|
||
{{ audit_helper.compare_queries( | ||
a_query=old_useview_postnatal_care, | ||
b_query=new_impact_pncview_visit, | ||
primary_key="uuid" | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters