Skip to content

Commit c195753

Browse files
committed
Update mart with urls
1 parent cd7df2a commit c195753

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

airflow/dags/dailymed/dag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def dailymed():
2828
# - "dm_spl_release_human_rx_part1" for a given part
2929
# - "dm_spl_daily_update_MMDDYYYY" for a given date
3030
# (replace MMDDYYY with your month, day, and year)
31-
file_set = "dm_spl_release_human"
31+
file_set = "dm_spl_release_human_rx"
3232

3333
def connect_to_ftp_dir(ftp_str: str, dir: str):
3434
import ftplib

dbt/sagerx/models/marts/ndc/ndcs_to_label_images.sql

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ all_image_ndcs_ndc11 as (
3737

3838
select
3939
set_id,
40-
{{ ndc_to_11('ndc') }} as ndc11,
4140
ndc,
42-
image
41+
{{ ndc_to_11('ndc') }} as ndc11,
42+
concat('https://dailymed.nlm.nih.gov/dailymed/image.cfm?name=', image, '&setid=', set_id) as image_url,
43+
image as image_file,
44+
concat('https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=', set_id) as dailymed_spl_url
4345
from all_image_ndcs
4446

4547
)

0 commit comments

Comments
 (0)