A novel REDCap-based framework for rare disease interoperability linking international registries to HL7 FHIR and GA4GH Phenopackets. The corresponding paper was recently published in npj Genomic Medicine! You can read it here: https://www.nature.com/articles/s41525-025-00534-z
-> This way to the RareLink documentation
-> This way to the RareLink FHIR Implementation Guide
RareLink is a novel rare disease framework based on REDCap that connects international registries, FHIR, 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
, HL7 Genomics Reporting profiles
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.
- RareLink-Phenopacket Engine: Predefined configurations enable seamless export of the RD-CDM data and extensions to validated Phenopackets -> User Guide.
- HL7 FHIR Export: RareLink uses the open-source toFHIR Engine to export data to any FHIR server, supporting profiles based on the HL7 International Patient Summary v2.0.0, the HL7 GenomicsReporting v3.0.0 and FHIR Base Resources (v4.0.1).
- Customising RareLink & 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.12 -m venv .venv
source .venv/bin/activate
pip install --upgrade pipNote: You need Python β₯3.10 but <3.13 to be able to use RareLink!
Next, install rarelink through pypi...
pip install rarelink... or 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_herewith your actual BioPortal API token.
To ensure everything is set up correctly, run the test suite using pytest (this
may take a while...):
pytest- Ensure that your
.envfile 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 statusTo set up your local REDCap project, run:
rarelink setup redcap-projectFor additional setup guidance, use:
rarelink setup --helpThis will provide details about available commands, such as:
rarelink setup keysfor configuring, viewing, or reseting your local API config file.rarelink setup download-records --helpfor downloading RareLink REDCap sheets.rarelink setup data-dictionaryto 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 adam.graefe[at]charite.de, if you are interested in collaborating and improve the use of REDCap for rare disease research and care.
- Human Phenotype Ontology (HP) π
- Monarch Initiative Disease Ontology (MONDO) π
- Online Mendelian Inheritance in Man (OMIM) π
- Orphanet Rare Disease Ontology (ORDO) π
- National Center for Biotechnology Information Taxonomy (NCBITaxon) π
- Logical Observation Identifiers Names and Codes (LOINC) π
- HUGO Gene Nomenclature Committee (HGNC) π
- Gene Ontology (GO) π
- NCI Thesaurus OBO Edition (NCIT) π
This project is licensed under the terms of the open-source Apache 2.0 License
We would like to extend our thanks to everyone in the last three years for their support in the development of this project.
When using the software or its specifications please cite:
Graefe, A.S.L., Rehburg, F., Alkarkoukly, S. et al. RareLink: scalable REDCap-based framework for rare disease interoperability linking international registries to FHIR and Phenopackets. npj Genom. Med. 10, 72 (2025). https://doi.org/10.1038/s41525-025-00534-z
- Authors:

