diff --git a/Sql Server/OMOP CDM Results sql server.txt b/Sql Server/OMOP CDM Results sql server.txt new file mode 100644 index 0000000..deb5d1d --- /dev/null +++ b/Sql Server/OMOP CDM Results sql server.txt @@ -0,0 +1,54 @@ +/********************************************************************************* +# Copyright 2018-08 Observational Health Data Sciences and Informatics +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +********************************************************************************/ + +/************************ + + ####### # # ####### ###### ##### ###### # # ##### ### + # # ## ## # # # # # # # # ## ## # # # # # # + # # # # # # # # # # # # # # # # # # # # # # + # # # # # # # ###### # # # # # # # # ###### # # + # # # # # # # # # # # # # # # # ### # # + # # # # # # # # # # # # # # # # # ### # # + ####### # # ####### # ##### ###### # # ## ##### ### ### + +sql server script to create OMOP common data model results schema version 6.0 + +last revised: 27-Aug-2018 + +Authors: Patrick Ryan, Christian Reich, Clair Blacketer + + +*************************/ + + +/************************ + +Standardized vocabulary + +************************/ + +--HINT DISTRIBUTE ON RANDOM +CREATE TABLE cohort_definition ( + cohort_definition_id INTEGER NOT NULL, + cohort_definition_name VARCHAR(255) NOT NULL, + cohort_definition_description VARCHAR(MAX) NULL, + definition_type_concept_id INTEGER NOT NULL, + cohort_definition_syntax VARCHAR(MAX) NULL, + subject_concept_id INTEGER NOT NULL, + cohort_initiation_date DATE NULL +) +;