OHDSI Home | Forums | Wiki | Github

About restrictToCommonPeriod parameter of CohortMethod

Dear all,

I’m trying to perform the Risk of hip fracture on bisphosphonates study.
([http://www.ohdsi.org/web/wiki/doku.php?id=research:bisphosphonates_and_hip_fracture]
(http://www.ohdsi.org/web/wiki/doku.php?id=research:bisphosphonates_and_hip_fracture))

I got an error when I use the AlendronateVsRaloxifene package.

image

As I know, the restrictToCommonPeriod paramter was added in CohortMethod after AlendronateVsRaloxifene study has been finished.

I Think the error also can occur when we perform other prior studies.

Should either CohortMethod or AlendronateVsRaloxifene package be modified?

Thank you,

Hi @Hojun_Park,

Yes, the problem is that the study package is ‘too old’ for the new OHDSI methods packages. Keeping old study packages up-to-date with new methods packages seems infeasible in the long run, and the same holds true for keeping methods packages backwards compatible with all old study packages.

Although we haven’t completely solved this problem, this is what we can currently do: When we ran the study we recorded all package versions used at the time. To be able to run the study package now, all we need to do is make sure we install the same (old) version of the methods packages. Below is the R code that will do this.

Hopefully in the future we’ll have a more automated approach to handle this problem.

library(devtools)
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/SqlRender_1.3.1.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/DatabaseConnector_1.10.0.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/FeatureExtraction_1.0.3.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/OhdsiRTools_1.2.1.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/CohortMethod_2.2.1.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/EmpiricalCalibration_1.2.2.tar.gz")
install_url("https://github.com/OHDSI/drat/raw/gh-pages/src/contrib/OhdsiSharing_0.1.1.tar.gz")
t