formatting
This commit is contained in:
parent
f0637ad97d
commit
2bd79da969
|
@ -462,10 +462,10 @@ SELECT
|
||||||
'<your_source_documentation_reference>', -- e.g. link to source data dictionary
|
'<your_source_documentation_reference>', -- e.g. link to source data dictionary
|
||||||
'<your_etl_reference>', -- e.g. link to ETL documentation
|
'<your_etl_reference>', -- e.g. link to ETL documentation
|
||||||
'<your_source_release_date>', -- when the source data was pulled
|
'<your_source_release_date>', -- when the source data was pulled
|
||||||
getdate(),
|
getdate(), -- or the date of ETL run
|
||||||
'v5.4',
|
'v5.4',
|
||||||
vocabulary_version,
|
vocabulary_version,
|
||||||
756265 -- OMOP CDM Version 5.4.0
|
756265 -- 'OMOP CDM Version 5.4.0'
|
||||||
FROM @cdm_schema.vocabulary
|
FROM @cdm_schema.vocabulary
|
||||||
WHERE vocabulary_id = 'None';
|
WHERE vocabulary_id = 'None';
|
||||||
```
|
```
|
||||||
|
@ -478,11 +478,11 @@ The query below will utilize the Visit Concept hierarcy to find the highest-leve
|
||||||
|
|
||||||
```{sql eval=FALSE, echo=TRUE}
|
```{sql eval=FALSE, echo=TRUE}
|
||||||
SELECT concept_id, concept_name
|
SELECT concept_id, concept_name
|
||||||
FROM concept
|
FROM concept
|
||||||
LEFT JOIN concept_ancestor
|
LEFT JOIN concept_ancestor
|
||||||
ON concept_id=descendant_concept_id
|
ON concept_id=descendant_concept_id
|
||||||
AND ancestor_concept_id!=descendant_concept_id
|
AND ancestor_concept_id!=descendant_concept_id
|
||||||
WHERE domain_id='Visit'
|
WHERE domain_id='Visit'
|
||||||
AND standard_concept='S'
|
AND standard_concept='S'
|
||||||
AND ancestor_concept_id IS NULL
|
AND ancestor_concept_id IS NULL
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue