Skip to content

Commit 11dc17d

Browse files
authored
Merge pull request #405 from coderxio/jrlegrand/orange-book-update
Map RXCUI to ANDA
2 parents 0051ed3 + b6a5e7e commit 11dc17d

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)