Rare Disease Interoperability Framework in REDCap linking international registries, FHIR and Phenopackets.
⚠️ Note: RareLink v2.0.0.dev0 is currently under development, and many things are subject to change. Please reach out before implementing or using the software to ensure you have the latest updates and guidance.
Stable Documentation
Latest Documentation
RareLink - A Rare Disease Framework in REDCap that connects international registries, FHIR standards, and Phenopackets. It provides comprehensive documentation and user guides to enable sustainable data management for your local rare disease REDCap project.
Built on the RD-CDM,
all RareLink-CDM pipelines are preconfigured to generate FHIR resources compliant
with the HL7 International Patient Summary
or validated GA4GH Phenopackets. For disease-specific extensions, detailed guides
are available to help you develop sheets that integrate seamlessly with the
RareLink framework.
If you are familiar with REDCap but lack coding experience, you can still set up your local RareLink REDCap project and begin capturing data. However, some coding experience is recommended for accessing advanced functionalities.
REDCap is a widely-used clinical electronic data capture system, licensed by institutions worldwide. RareLink enhances REDCap by providing detailed guidelines for structuring and encoding data to ensure seamless integration with its preconfigured FHIR and Phenopacket pipelines. Built on the Rare Disease Common Data Model v2.0 (RD-CDM) RareLink is ready-to-use and extensible for disease-specific requirements.
RareLink integrates the following features for rare disease data management in REDCap:
- RareLink CLI: Set up and manage your project via the Command Line Interface, including API setup, instrument configuration, and running FHIR or Phenopacket pipelines.
- Native REDCap Usage: Downloadable REDCap forms for all RD-CDM sections, complete with installation guides and manuals for manual data capture and BioPortal connection.
- Semi-Automated Data Capture: Use a template script to map your tabular data to the RareLink-CDM, which is in LinkML. This process includes syntactic mapping, local semantic encoding, validation, and data upload to REDCap for FHIR or Phenopacket export.
- Phenopacket Export: Predefined configurations enable seamless export of the RD-CDM data to validated Phenopackets utilising the Phenopacket Mapper. RareLink guides ensure compatibility for developing custom REDCap instruments and LinkML-based extensions.
- HL7 FHIR Export: RareLink uses the open-source toFHIR Engine to export data to any FHIR server, supporting profiles based on the International Patient Summary v2.0.0.ballot or FHIR Base Resources (v4.0.1).
- RD-CDM Extensions: Guidelines for modeling and encoding custom data extensions ensure compatibility with the RareLink framework and its pipelines.
Begin by exploring the RareLink Background section to understand the framework's scope and components.
To start using RareLink, ensure you have access to a local REDCap license and a running REDCap server. For more information, visit the official REDCap site: https://projectredcap.org/partners/join/. If your institution already provides a REDCap instance, proceed to the RareLink Documentation on Setting Up a REDCap Project.
RareLink can be set up using various Python project management approaches. One
common method is to use a virtual environment. Below is an example where the
virtual environment is named rarelink-venv
, but you can name it as you prefer:
python3 -m venv rarelink-venv
source rarelink-venv/bin/activate
pip install --upgrade pip
Next, clone the RareLink repository, navigate to its root directory, and install RareLink using:
git clone https://github.com/BIH-CEI/rarelink.git
cd rarelink
pip install .
If you want to install development dependencies (e.g., pytest
), use:
pip install .[dev]
Create a .env
file in the project root directory to store your BioPortal API
token securely. Add the following line:
BIOPORTAL_API_TOKEN=your_api_token_here
You can create your free BioPortal account here: https://bioportal.bioontology.org/ Then replace
your_api_token_here
with your actual BioPortal API token.
To ensure everything is set up correctly, run the test suite using pytest
:
pytest
- Ensure that your
.env
file is not committed to version control by adding it to.gitignore
. - If you encounter issues, verify you are using the correct Python version and have installed all dependencies properly.
To ensure you have the latest version of RareLink installed and to check the current version, run:
rarelink framework update
rarelink framework status
To set up your local REDCap project, run:
rarelink redcap-setup start
For additional setup guidance, use:
rarelink redcap-setup --help
This will provide details about available commands, such as:
rarelink redcap-setup api-config --help
for configuring, viewing, or reseting your local API config file.rarelink redcap-setup download --help
for downloading RareLink REDCap sheets.rarelink redcap-setup data-dictionary upload
to upload the RareLink-CDM sheets to your REDCap project.
Note: Ensure that your local REDCap administrator has granted you API access to your REDCap project. Remember that the API token is sensitive information, so store it securely!
To process and import your local (tabular) rare disease datasets into your RareLink REDCap project, refer to the user guide on Semi-Automatic Data Capture.
To export IPS-based FHIR resources to your local FHIR server, refer to the user guide on the IPS RareLink FHIR Export.
To export your REDCap RareLink data to validated Phenopackets, refer to the user guide on the RareLink Phenopacket Export.
To develop your local REDCap database for disease-specific extensions around the RD-CDM, refer to the guide on how to develop and model REDCap sheets for processing by the RareLink framework: RD-CDM RareLink Extension Guide.
Please write an issue or exchange with other users in the discussions if you encounter any problems or wish to give feedback. Feel free to reach out to [email protected], if you are interested in collaborating and improve the use of REDCap for rare disease research and care.
- Human Phenotype Ontology (HP, Version 2024-08-13) 🔗
- Monarch Initiative Disease Ontology (MONDO, Version Version 2024-09-03) 🔗
- Online Mendelian Inheritance in Man (OMIM, Version 2024-09-12) 🔗
- Orphanet Rare Disease Ontology (OPRHA, Version 2024-09-12) 🔗
- National Center for Biotechnology Information Taxonomy (NCBITaxon, Version 2024-07-03) 🔗
- Logical Observation Identifiers Names and Codes (LOINC, Version 2.78) 🔗
- HUGO Gene Nomenclature Committee (HGNC, Version 2024-08-23) 🔗
- Gene Ontology (GENO, Version 2023-10-08) 🔗
- NCI Thesaurus OBO Edition (NCIT, Version Version 24.04e ) 🔗
This project is licensed under the terms of the BSD 3-Clause License
We would like to extend our thanks to everyone in the last three years for their support in the development of this project.
- Authors: