I am currently using https://github.com/shamsbayzid/mimic-cdm as a base for performing a full mapping from the MIMIC II database to the OMOP CDM. Is there any good way to either automate or make the process easier for finding source concept ids and the standard concepts that they map to?
e.g. In the condition_occurence
table I want to transform the 0 concepts that are used as place holders currently into their actual ids in the condition_source_concept_id
and condition_concept_id
I am currently using the concept
table to reverse look up the ids that correspond to the source values and then utilizing the concept_relationship
table to find if these ids have any “Maps to” relationships associated to them with a concept_id_2
of a standard concept.
OR has this already been done by anyone?
Also what would be some example queries for the OMOP mapped data for example: Find me all patients that have taken the drug Warfarin in the past 20 days