R package of helper functions for the Roux OHDSI Frailty project
remotes::install_github("roux-ohdsi/aouFI")getEligible()retrieves a single column dataframe of person_ids from the AoU database (when provided with a database connection) that are > 50 years old and < 120 years old (defaults).getConcepts()retrieves index concept_ids and namesomop2fi()returns a dataframe of frailty category occurrences when given a database connection to any (in theory) OMOP CDM database and a table of person_id values (e.g., fromgetEligible()), and a frailty index (one of efi, efragicap, vafi, or hfrs). In theory, this data can be used withgetFI()though this is not yet tested…getFI()returns frailty scores for a several FIs given a dataframe of person_id’s, start, and end dates. It requires a specific data input format and isn’t terribly flexible yet.
These tables hold concept_ids and concept names for each of the frailty
indices. They can be queried using getConcepts(). Used by the
omop2fi() function.
- efi_concepts.rda
- efragicap_concepts.rda
- hfrs_concepts.rda
- vafi_concepts.rda
Data generating scripts are either in data-raw on on the AoU workbench…
survey_namesList of surveys given in All of USFI_labelsPaper-ready names for AouFI variables with a linking column for derived datasimulated_ehrSimulated ehr data to search - similar to what would be returned byomop2fi(). This will be used for testing and demo purposes. It can be used with getFI(). The values in this data are entirely fabricated based on code in /data-raw. Next step is to add a third dataset with occurrences that don’t fall within any of the FIs as well to be able to test the omop2fi function.simulated_cohortSimulated cohort with a starting search date. Can be used withsimulated_ehrto use thegetFI()function. It contains a sample of fake participants in simulated_ehr with randomly generated start dates in the observation period for each person_id.