-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map OMOP data to inpatient_microbiology
table
#29
Comments
|
@AngharadGreen, Would you like to discuss this further in a call? |
Hi @zsenousy I have found some useful resources to help me with this mapping, I am just working through those today. I can meet tomorrow if there is a time that works for you? |
Following this paper https://pubmed.ncbi.nlm.nih.gov/35612079/ I will try to map the OMOP CDM to the inpatient_microbiology ramses table following this figure - I have put together a summary presentation going over how the OMOP CDM can be mapped to the Ramses fata frame |
I now want to just pull out the relevant columns from the Merged_df_1 table created in code from #45 that represent the Ramses Inpatient_microbiology table to see if I can use the OMOP data to create the data frames required by Ramses
I want to tidy up the code from issue #45 that produced the merged specimen and observation table, and also use the dplyr function left_join instead of merge following advice from colleagues:
|
I will now attempt to load the table Joined_df_3 into Ramses
This resulted in the following output:
The two data frames specimens = microbiology_data$specimens and isolates = microbiology_data$isolates have now been created from the OMOP mapping I now need to find the relevant data to create the data frame susceptibilities = microbiology_data$susceptibilities) Information on RSI code: S - Susceptible, standard dosing regimen: A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent. |
|
I used the following code to filter out just the antibiotics from the OMOP extract data
I will now use this filtered antibiotic data and join it with the Joined_df_3 table
|
I will now use the Ramses package and try to load in the Drug_Joined_df_5 table:
This is the output message in the R console:
Output message in the R console:
Output message in the R console:
I will now proceed to follow the code that creates the three separate data frames:
There were no error messages output with this code so i will now continue to validate the data:
|
Updated code to ensure that only one organism_display_name is mapped to each unique observation_id/isolate_id
|
I will now join Specimen_Observ_df_11 with the drug_exposure_anti data frame
This has produced a table that contains the information about isolate, organism name, specimen and drug |
I want to determine if there is any information related to antibiotic susceptibility within the measurement table Discussions on this forum are useful to understand how microbiology lab data and susceptibility data can be stored within OMOP tables
Out of the 75 cocnept_ids 43 were identified within the concept table
I will now filter the other OMOP tables using these codes:
Output:
|
Improving the mapping of the specimen table to the observation table
I ran the following R code to determine what columns are present when comparing observation to condition occurrence and specimen to condition occurrence:
Key Relationships Between the Tables
Lets explore the bacteria information that is stored within the condition_occurrence table:
|
I have noticed that in this OMOP extract there are tables for each of the OMOP tables called LINKS. I will explore these more:
|
Extract data from the example OMOP data to fill the inpatient_microbiology table from the validate article. This is a split from #17
Please feel free to assign yourself to the issue. Please the respective branch for development.
The text was updated successfully, but these errors were encountered: