Closed lofung closed 3 years ago
Which version of the CDM are you on - if you are on version 6, then it might explain it as https://github.com/OHDSI/CommonDataModel/blob/master/Redshift/OMOP%20CDM%20redshift%20ddl.txt#L712
If you are in version 5.x then it should work https://github.com/OHDSI/CommonDataModel/blob/v5.3.1_fixes/Redshift/OMOP%20CDM%20redshift%20v5_3_1%20ddl.sql#L373
Oh I see. Let me recheck the columns.
There is an error in such code.
Too bad it is very convoluted I am not too sure where condition_era_start_date comes from.
Also I find it weird in the code -
INNER JOIN ohdsiv5_june2021_thin.condition_era
whileohdsiv5_june2021_thin
is my OHDSI database, I am sure that the tablecondition_era
does not exist. I am not sure how that table would come into the SQL.