From 247a1fe0c1968bed2bd7ebc44744bdf0ae93dbbc Mon Sep 17 00:00:00 2001 From: Clair Blacketer Date: Thu, 13 Jan 2022 11:49:47 -0500 Subject: [PATCH] Adds version queries for the cdm and vocab closes #463 --- inst/csv/OMOP_CDMv5.4_Field_Level.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/csv/OMOP_CDMv5.4_Field_Level.csv b/inst/csv/OMOP_CDMv5.4_Field_Level.csv index 94b107b..ede0570 100644 --- a/inst/csv/OMOP_CDMv5.4_Field_Level.csv +++ b/inst/csv/OMOP_CDMv5.4_Field_Level.csv @@ -401,8 +401,8 @@ CDM_SOURCE,cdm_etl_reference,No,varchar(255),,Put the link to the CDM version us CDM_SOURCE,source_release_date,Yes,date,The release date of the source data.,,No,No,,,,, CDM_SOURCE,cdm_release_date,Yes,date,The release data of the CDM instance.,,No,No,,,,, CDM_SOURCE,cdm_version,No,varchar(10),,,No,No,,,,, -CDM_SOURCE,cdm_version_concept_id,Yes,integer,The Concept Id representing the version of the CDM.,,No,Yes,CONCEPT,CONCEPT_ID,,, -CDM_SOURCE,vocabulary_version,Yes,varchar(20),,,No,No,,,,, +CDM_SOURCE,cdm_version_concept_id,Yes,integer,The Concept Id representing the version of the CDM.,You can find all concepts that represent the CDM versions using the query: SELECT * FROM CONCEPT WHERE VOCABULARY_ID = 'CDM' AND CONCEPT_CLASS = 'CDM',No,Yes,CONCEPT,CONCEPT_ID,,, +CDM_SOURCE,vocabulary_version,Yes,varchar(20),,You can find the version of your Vocabulary using the query: SELECT vocabulary_version from vocabulary where vocabulary_id = 'None',No,No,,,,, CONCEPT,concept_id,Yes,integer,A unique identifier for each Concept across all domains.,,Yes,No,,,,, CONCEPT,concept_name,Yes,varchar(255),"An unambiguous, meaningful and descriptive name for the Concept.",,No,No,,,,, CONCEPT,domain_id,Yes,varchar(20),A foreign key to the [DOMAIN](https://ohdsi.github.io/CommonDataModel/cdm531.html#domain) table the Concept belongs to.,,No,Yes,DOMAIN,DOMAIN_ID,,,