Open katy-sadowski opened 2 weeks ago
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: https://github.com/OHDSI/dbt-synthea/blob/236f52ab1f651e418eab6978d6a9bb92754ad682/models/omop/drug_exposure.sql#L11
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: https://github.com/OHDSI/dbt-synthea/blob/236f52ab1f651e418eab6978d6a9bb92754ad682/models/omop/drug_exposure.sql#L11