Skip to content

Commit b6a5e7e

Browse files
committed
Create RXCUI to ANDA
1 parent 8f64ff1 commit b6a5e7e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)