-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ebb286
commit 7809dd2
Showing
47 changed files
with
339 additions
and
214 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 was deleted.
Oops, something went wrong.
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
61 changes: 0 additions & 61 deletions
61
sql/dacpac/dbo/StoredProcedures/test_move_data_to_permanent_tables.sql
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE [dbo].[metadata] ( | ||
[metadata_concept_id] INT NOT NULL, | ||
[metadata_type_concept_id] INT NOT NULL, | ||
[name] VARCHAR (250) NOT NULL, | ||
[value_as_string] VARCHAR (MAX) NULL, | ||
[value_as_concept_id] INT NULL, | ||
[metadata_date] DATE NULL, | ||
[metadata_datetime] DATETIME2 (7) NULL | ||
); |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE [dbo].[staging_attribute_definition] ( | ||
[attribute_definition_id] INT NOT NULL, | ||
[attribute_name] VARCHAR (255) NOT NULL, | ||
[attribute_description] VARCHAR (MAX) NULL, | ||
[attribute_type_concept_id] INT NOT NULL, | ||
[attribute_syntax] VARCHAR (MAX) NULL, | ||
); | ||
|
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 |
---|---|---|
|
@@ -11,6 +11,3 @@ CREATE TABLE [dbo].[staging_cdm_source] ( | |
[vocabulary_version] VARCHAR (20) NULL | ||
); | ||
|
||
|
||
GO | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE [dbo].[staging_cohort] ( | ||
[cohort_definition_id] INT NOT NULL, | ||
[subject_id] INT NOT NULL, | ||
[cohort_start_date] DATE NOT NULL, | ||
[cohort_end_date] DATE NOT NULL, | ||
); | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE [dbo].[staging_cohort_attribute] ( | ||
[cohort_definition_id] INT NOT NULL, | ||
[cohort_start_date] DATE NOT NULL, | ||
[cohort_end_date] DATE NOT NULL, | ||
[subject_id] INT NOT NULL, | ||
[attribute_definition_id] INT NOT NULL, | ||
[value_as_number] FLOAT (53) NULL, | ||
[value_as_concept_id] INT NULL, | ||
); | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE [dbo].[staging_cohort_definition] ( | ||
[cohort_definition_id] INT NOT NULL, | ||
[cohort_definition_name] VARCHAR (255) NOT NULL, | ||
[cohort_definition_description] VARCHAR (MAX) NULL, | ||
[definition_type_concept_id] INT NOT NULL, | ||
[cohort_definition_syntax] VARCHAR (MAX) NULL, | ||
[subject_concept_id] INT NOT NULL, | ||
[cohort_initiation_date] DATE NULL, | ||
); | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE [dbo].[staging_concept] ( | ||
[concept_id] INT NOT NULL, | ||
[concept_name] VARCHAR (255) NOT NULL, | ||
[domain_id] VARCHAR (20) NOT NULL, | ||
[vocabulary_id] VARCHAR (20) NOT NULL, | ||
[concept_class_id] VARCHAR (20) NOT NULL, | ||
[standard_concept] VARCHAR (1) NULL, | ||
[concept_code] VARCHAR (50) NOT NULL, | ||
[valid_start_date] DATE NOT NULL, | ||
[valid_end_date] DATE NOT NULL, | ||
[invalid_reason] VARCHAR (1) NULL, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE [dbo].[staging_concept_ancestor] ( | ||
[ancestor_concept_id] INT NOT NULL, | ||
[descendant_concept_id] INT NOT NULL, | ||
[min_levels_of_separation] INT NOT NULL, | ||
[max_levels_of_separation] INT NOT NULL, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE [dbo].[staging_concept_class] ( | ||
[concept_class_id] VARCHAR (20) NOT NULL, | ||
[concept_class_name] VARCHAR (255) NOT NULL, | ||
[concept_class_concept_id] INT NOT NULL, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE [dbo].[staging_concept_relationship] ( | ||
[concept_id_1] INT NOT NULL, | ||
[concept_id_2] INT NOT NULL, | ||
[relationship_id] VARCHAR (20) NOT NULL, | ||
[valid_start_date] DATE NOT NULL, | ||
[valid_end_date] DATE NOT NULL, | ||
[invalid_reason] VARCHAR (1) NULL, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE [dbo].[staging_concept_synonym] ( | ||
[concept_id] INT NOT NULL, | ||
[concept_synonym_name] VARCHAR (1000) NOT NULL, | ||
[language_concept_id] INT NOT NULL, | ||
); |
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.