I would like to run SQL queries against a source dataset that has been transformed into the OMOP model to check data quality. I have come across a list of rules that Achilles Heel uses to do exactly that. However I cannot seem to find the corresponding SQL. Firstly are these queries published and if so, from where can I get a copy?
These scripts are run through a translation layer to get the appropriate dialect. If you have R, you can just install the package, and run achilles() with the parameter sqlOnly = TRUE. That will translate the sql and write it to an ‘output’ folder. You can see the line in question here: