formatting

This commit is contained in:
Maxim Moinat 2023-03-30 16:01:54 +02:00
parent f0637ad97d
commit 2bd79da969
No known key found for this signature in database
GPG Key ID: 94EA516FB6174455
1 changed files with 9 additions and 9 deletions

View File

@ -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
``` ```