-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from coderxio/schema2
Update DB Schemas [Attempt 2]
- Loading branch information
Showing
100 changed files
with
26,055 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
airflow/dags/dailymed_pharm_class/load-dailymed_pharm_class.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/* datasource.dailymed_pharm_class */ | ||
DROP TABLE IF EXISTS datasource.dailymed_pharm_class; | ||
/* sagerx_lake.dailymed_pharm_class */ | ||
DROP TABLE IF EXISTS sagerx_lake.dailymed_pharm_class; | ||
|
||
CREATE TABLE datasource.dailymed_pharm_class ( | ||
CREATE TABLE sagerx_lake.dailymed_pharm_class ( | ||
spl_setid TEXT, | ||
spl_version TEXT, | ||
pharma_setid TEXT, | ||
pharma_version TEXT | ||
); | ||
|
||
COPY datasource.dailymed_pharm_class | ||
COPY sagerx_lake.dailymed_pharm_class | ||
FROM '{data_path}/pharmacologic_class_mappings.txt' DELIMITER '|' QUOTE E'\b' CSV HEADER; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/* datasource.dailymed_rxnorm */ | ||
DROP TABLE IF EXISTS datasource.dailymed_rxnorm CASCADE; | ||
/* sagerx_lake.dailymed_rxnorm */ | ||
DROP TABLE IF EXISTS sagerx_lake.dailymed_rxnorm CASCADE; | ||
|
||
CREATE TABLE datasource.dailymed_rxnorm ( | ||
CREATE TABLE sagerx_lake.dailymed_rxnorm ( | ||
setid TEXT, | ||
spl_version TEXT, | ||
rxcui TEXT, | ||
rxstr TEXT, | ||
rxtty TEXT | ||
); | ||
|
||
COPY datasource.dailymed_rxnorm | ||
COPY sagerx_lake.dailymed_rxnorm | ||
FROM '{data_path}/rxnorm_mappings.txt' DELIMITER '|' QUOTE E'\b' CSV HEADER; |
8 changes: 4 additions & 4 deletions
8
airflow/dags/dailymed_zip_file_metadata/load-dailymed_zip_file_metadata.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/* datasource.dailymed_zip_file_metadata */ | ||
DROP TABLE IF EXISTS datasource.dailymed_zip_file_metadata; | ||
/* sagerx_lake.dailymed_zip_file_metadata */ | ||
DROP TABLE IF EXISTS sagerx_lake.dailymed_zip_file_metadata; | ||
|
||
CREATE TABLE datasource.dailymed_zip_file_metadata ( | ||
CREATE TABLE sagerx_lake.dailymed_zip_file_metadata ( | ||
setid TEXT, | ||
zip_file_name TEXT, | ||
upload_date TEXT, | ||
spl_version TEXT, | ||
title TEXT | ||
); | ||
|
||
COPY datasource.dailymed_zip_file_metadata | ||
COPY sagerx_lake.dailymed_zip_file_metadata | ||
FROM '{data_path}/dm_spl_zip_files_meta_data.txt' DELIMITER '|' QUOTE E'\b' CSV HEADER; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.