Logo

Background

  • Rare Diseases and Interoperability
    • Definitons
    • Further Reading
  • Ontologies & Terminologies
    • Ontologies used in RareLink
    • Further Reading
  • GA4GH Phenopackets
    • Phenopacket Blocks
    • Phenopacket Tools
  • HL7 FHIR
    • FHIR and Rare Diseases (RDs)
    • FHIR Overview - Clinicians
    • FHIR Overview - Developers
    • FHIR Overview - Architects
    • Further Reading
  • RD-CDM
    • RD-CDM Overview
    • Key Success Factors of a Rare Disease Common Data Model
    • Further Reading
  • REDCap
    • REDCap Projects
    • REDCap Instruments
    • REDCap Data Dictionary
    • REDCap API
    • REDCap Ontology Services
    • Further Reading

RareLink Framework

  • RareLink Overview
    • RareLink Framework components
  • RareLink-CDM
    • Contents
    • REDCap Data Dictionary
    • LinkML Schema
    • Rules for REDCap codes and codesystems
    • REDCap Field Annotations
    • RareLink-CDM Instruments
  • RareLink CLI
    • 1. Framework Setup (framework)
    • 2. REDCap Setup (setup)
    • 3. REDCap Tools (redcap)
    • 4. FHIR configuration and pipelines (fhir)
    • 5. Phenopacket Export (phenopackets)

Installation

  • Set up the RareLink Framework
    • Getting Started
    • RareLink Framework CLI config
  • Set up a REDCap Project
    • Steps
    • Next Steps and further reading
    • RareLink CLI Commands
  • Set up the Data Dictionary
    • Installation
    • Separate RareLink-CDM Instruments
    • Extensional RareLink-CDM Instruments
    • Customise the Data Dictionary
  • Set up the REDCap API
    • API Set Up

User Guide

  • Manual Data Capture
    • General Information (please read!)
    • (1) Formal Criteria
    • (2) Personal Information
    • (3) Patient Status
    • (4) Care Pathway
    • (5) Disease
    • (6.1) Genetic Findings
    • (6.2) Phenotypic Features
    • (6.3) Measurements
    • (6.4) Family History
    • (7) Consent
    • (8) Disability
  • Semi-Automatic Import
    • Overview of Components
    • Steps When Importing Data
    • Examples
    • Additional Resources
  • Phenopackets Module
    • Get started
    • RareLink-CDM to Phenopackets
    • RareLink-Phenopacket engine
    • All Command-Line Options
    • Mapping Configuration Structure
    • Advanced Configuration Options
    • Mapping Strategies
    • Best Practices
  • Phenopacket Adapters
    • Multi-Onset Adapter
    • Ontology Routing Adapter
  • FHIR Module
    • Getting started
    • RareLink-CDM FHIR Profiles
    • RareLink-CLI FHIR Commands
    • Docker Commands
    • Importing FHIR to REDCap
  • Develop REDCap Instruments
    • REDCap instrument structure
    • REDCap-inherent rules
    • RareLink obligatory rules
    • RareLink optional rules
  • REDCap Tools
    • API Endpoints

Additional Information

  • Contributing
  • Changelog
    • v2.0.6
    • v2.0.5 (2025-12-12)
    • v2.0.4 (2025-09-25)
    • v2.0.3 (2025-09-24)
    • v2.0.2 (including v2.0.1)
    • v2.0.0
    • v2.0.0.dev1 (Under Development)
    • Previous versions (up to v2.0):
  • FAQ
  • Glossary
  • Acknowlegements
  • License
  • Contact
RareLink REDCap Documentation
  • Set up the RareLink Framework
  • View page source

Set up the RareLink Framework

Getting Started

Follow these steps to set up the project locally and run tests.

  1. Clone the repository:

git clone https://github.com/BIH-CEI/rarelink.git
cd rarelink
  1. Create a virtual environment:

python3 -m venv .venv
source .venv/bin/activate  # On macOS/Linux
.venv\Scripts\activate     # On Windows
  1. Install RareLink:

pip install rarelink

This installs everything needed for REDCap interaction, Phenopacket export, and the RareLink CLI.

For optional features, install the relevant extras:

pip install rarelink[fhir]    # adds Docker SDK for the toFHIR pipeline
pip install rarelink[data]    # adds numpy and pandas for tabular data processing

For development (includes testing, docs, and all optional extras):

pip install -e .[dev]

4. Configure all api keys necessary to use rarelink by running the following command:

rarelink setup keys

This command will prompt you to enter the following keys:
- BioPortal API key
- REDCap API key
- REDCap URL
- REDCap project ID

Note

You can create your free BioPortal account here: BioPortal

  1. Run tests:

pip install rarelink[test]
pytest

RareLink Framework CLI config

Use the following commands to update the framework and its components, view its status or reset the framework. See RareLink CLI for more information.

rarelink framework --help
rarelink framework update
rarelink framework status
rarelink framework reset

Import Mapper Configuration

Via the RareLink CLI type:

to be implemented

This command guides you through setting up the Import Mapper pipeline for RareLink. You will be prompted to enter: - Your location of your local (tabular) database. - Your REDCap project URL and API token. - Your location where to store the Import Mapper configurations.


Phenopacket Pipeline Configuration

The Phenopacket export pipeline requires a BioPortal API key and a CREATED_BY value, both configured via:

rarelink setup keys

Once configured, export Phenopackets with:

rarelink phenopackets export --help

FHIR Pipeline Configuration

Note

The FHIR pipeline requires the fhir extra: pip install rarelink[fhir]

rarelink fhir setup

This command guides you through setting up the FHIR pipeline for RareLink. You will be prompted to enter:

  • Your FHIR server URL.

  • If required, your FHIR server username & password.

Note

All sensitive information will also be stored in the hidden configuration file.

Previous Next

© Copyright 2025, Berlin Institute of Health - Charité Universitätsmedizin Berlin.

Built with Sphinx using a theme provided by Read the Docs.