We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0051ed3 + b6a5e7e commit 11dc17dCopy full SHA for 11dc17d
1 file changed
dbt/sagerx/models/intermediate/orange_book/int_rxcui_to_anda.sql
@@ -0,0 +1,11 @@
1
+select
2
+ rxn.product_rxcui,
3
+ rxn.product_name,
4
+ ndc.applicationnumber,
5
+ ndc11 as ndc
6
+from {{ ref('stg_fda_ndc__ndcs') }} ndc
7
+left join {{ ref('int_rxnorm_ndcs_to_products') }} rxn
8
+ on rxn.ndc = ndc.ndc11
9
+where applicationnumber like('ANDA%')
10
+ or applicationnumber like('NDA%')
11
+order by applicationnumber, product_rxcui
0 commit comments