Athena vocabulary load into OMOP CDM database question #4
Replies: 1 comment
-
TL;DR -- Athena Vocabulary downloads sorted out on my end High level - download all the check marked files with CDM version toggled and then unzip and load the files (they are labelled csv yet are tab separated) In Postgres I have gotten around the tab separated values with extra spaces within the column value within psql with this command (assuming the owner of the db/schema does not have super user granted) Note: What the quote field somehow does is escape the extra spaces without changing the space between values in the column. I walked through the 7 tables worth of data from upload to get high level heuristics on concepts (and their concept codes) and re-walk through the Book of OHDSI I've created my own heuristics SQL to then plug in later for dbt to make some fact tables. |
Beta Was this translation helpful? Give feedback.
-
Folks,
I have two pieces to the question
Referential integrity:
The main concern I have below is about referential integrity.
The thing is... the concept id is in OMOP CDM concept table and confirmed with this SQL below:
Beta Was this translation helpful? Give feedback.
All reactions