You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are repeated typecasts of timestamp-->date in the OMOP models. To DRY up the code we can move these into the original stg models by creating a _date column in those models and carrying it through to the final models.
I accidentally pushed to main 🙈 I had branch protections relaxed for myself in the early days and forgot I was working on main. I have added these back now so I won't be able to do that in the future...oopsie! It runs and passes all tests on duckdb and Postgres. If you'd like to take a look / test the changes please do! What I did:
Moved casts upstream where applicable to reduce repetition
Changed all casts to use dbt.cast
Spotted a couple other opportunities to use dbt macros (datediff, dateadd)
Renamed some columns to indicate that they're datetimes, not dates (holdover from ETL-Synthea)
There are repeated typecasts of timestamp-->date in the OMOP models. To DRY up the code we can move these into the original stg models by creating a _date column in those models and carrying it through to the final models.
For example:
dbt-synthea/models/omop/drug_exposure.sql
Line 11 in 236f52a
The text was updated successfully, but these errors were encountered: