fhir_meds
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.8%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: rvandewater
- Language: Python
- Default Branch: main
- Size: 70.3 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 2
Metadata Files
README.md
MEDS on FHIR
Overview
[!CAUTION] This package is in alpha development. Use at your own risk.
MEDS on FHIR is a Python package for converting HL7 FHIR (v4/v5) resources into the MEDS sharded Parquet format. It supports scalable, schema-validated event extraction and is designed for research and interoperability projects. This project is in its early stages and has been tested mainly with the MIMIC-IV FHIR demo.
Features
- Parses and processes all MEDS-compatible FHIR resource types (v4/v5) (tested with MIMIC-IV FHIR demo)
- Robust mapping from FHIR Observation to MEDS event schema
- Handles patient ID resolution and vocabulary mapping
- Outputs sharded Parquet files, validated against the MEDS schema
- Extensible: add mapping for new FHIR resource types easily
- Comprehensive test suite for FHIR resource parsing
Installation
```bash pip install fhir2meds
or for local development
pip install -e . ```
Usage
bash
fhir2meds raw_input_dir=mimic-fhir root_output_dir=example_output ++overwrite=true ++verbose=true
raw_input_dir: Directory containing FHIR .ndjson/.json files (e.g., MIMIC-IV FHIR demo)output_dir: Output directory for MEDS Parquet shardsmax_observations: (Optional) Limit number of observations for debuggingoverwrite: (Optional) Overwrite existing output directoryverbose: (Optional) Enable verbose loggingdo_download: (Optional) Download MIMIC-IV FHIR demo dataset automatically (to be tested)
Testing
Run the test suite (requires pytest):
bash
PYTHONPATH=src pytest tests/
References
- HL7 FHIR Resource List
- MIMIC-IV FHIR Demo
- MEDS Format & Schema
- ETLMEDSTemplate R4 Resource List: https://hl7.org/fhir/R4/resourcelist.html ---
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Owner
- Name: Robin van de Water
- Login: rvandewater
- Kind: user
- Location: Berlin
- Company: Hasso Plattner Institute
- Website: https://www.rpvandewater.com/
- Repositories: 1
- Profile: https://github.com/rvandewater
PhD student in Medical Event Prediction at Hasso Plattner Institute in collaboration with the Charité hospital (Berlin)
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
url: "https://github.com/rvandewater/FHIR2MEDS"
title: "FHIR2MEDS ETL (MEDS on FHIR)"
doi: "10.5281/zenodo.16269018"
authors:
- family-names: "van de Water"
given-names: "Robin Philippus"
orcid: "https://orcid.org/0000-0002-2895-4872"
repository-code: "https://github.com/rvandewater/FHIR_MEDS"
date-released: "2025-07-21"
url: "https://github.com/rvandewater/FHIR_MEDS"
license: "MIT"
GitHub Events
Total
- Release event: 1
- Public event: 1
- Push event: 2
- Create event: 1
Last Year
- Release event: 1
- Public event: 1
- Push event: 2
- Create event: 1
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- trilom/file-changes-action v1.2.4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/setup-python v5 composite
- actions/upload-artifact v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- sigstore/gh-action-sigstore-python v3.0.0 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- codecov/codecov-action v4.0.1 composite
- codecov/test-results-action v1 composite
- beautifulsoup4 *
- fhir.resources >=6.3.0
- hydra-core *
- meds ~=0.4.0
- polars >=1.20.0
- pyarrow >=12.0.0
- pyyaml >=6.0
- requests *