Python framework for large-scale self-supervised learning on electronic health records. Provides tooling for converting raw EHR data to the MEDS (Medical Event Data Standard) format, building code ontologies (SNOMED, LOINC, ICD), and training clinical foundation models — including MOTOR, a BERT-style model pretrained on structured EHR events. Supports labelling functions, feature extraction pipelines, and evaluation utilities. Designed to lower the barrier to reproducing and extending EHR foundation model research. Apache 2.0. From the Shah Lab at Stanford Medicine.
Adopt — committed within 3 months; 2022 monthly downloads; permissive licence (Apache-2.0).
Derived deterministically by the MACH scorer from the signals below — not written prose.
Active — committed within the last month; has tests, CI, releases
★ 185 stars · 37 forks · 10 open issues
Python 87% Jupyter Notebook 13%
Every value records the source it was harvested from.
| Field | Value | Source |
|---|---|---|
| description | FEMR (Framework for Electronic Medical Records) provides tooling for large-scale, self-supervised learning using electronic health records | github_api |
| discovered_conda | not_found | discovery |
| discovered_cran | not_found | discovery |
| discovered_doi | not_found | discovery |
| discovered_hf | not_found | discovery |
| discovered_npm | not_found | discovery |
| discovered_pypi | femr | discovery |
| has CI | True | github_api |
| has docs | True | github_api |
| has releases | True | github_api |
| has tests | True | github_api |
| HuggingFace downloads (monthly) | not_found | huggingface |
| judgement | Adopt | mach_scorer |
| judgement reason | Adopt — committed within 3 months; 2022 monthly downloads; permissive licence (Apache-2.0). | mach_scorer |
| license | Apache-2.0 | github_api |
| PyPI downloads (monthly) | 2022 | pypi |
| archived | False | github_api |
| repository created | 2022-06-28T13:16:45Z | github_api |
| GitHub forks | 37 | github_api |
| repo health | Active | mach_health |
| repo health reason | committed within the last month; has tests, CI, releases | mach_health |
| homepage | ok | github_api |
| languages | Python:87,Jupyter Notebook:13 | github_api |
| last commit | 2026-11-16T18:58:04Z | github_api |
| open issues | 10 | github_api |
| primary language | Python | github_api |
| repo_size_kb | 44591 | github_api |
| GitHub stars | 185 | github_api |
| topics | electronic-health-records,foundation-models,healthcare,self-supervised-learning | github_api |
Recorded deviations — when a harvested value changed between runs.
| When | Field | Was | Now | Source |
|---|---|---|---|---|
| 2026-11-20T21:53:45.272169 | repo_health | — | Active | mach_health |
| 2026-11-20T21:53:45.272169 | repo_health_reason | — | committed within the last month; has tests, CI, releases | mach_health |
| 2026-11-20T21:53:45.272083 | judgement | — | Adopt | mach_scorer |
| 2026-11-20T21:53:45.272083 | judgement_reason | — | Adopt — committed within 3 months; 2022 monthly downloads; permissive licence (Apache-2.0). | mach_scorer |
| 2026-11-20T21:48:41.286369 | hf_downloads | — | — | huggingface |
| 2026-11-20T21:48:41.229332 | pypi_downloads | — | 2022 | pypi |
| 2026-11-20T21:48:41.229280 | discovered_conda | — | — | discovery |
| 2026-11-20T21:48:41.229280 | discovered_cran | — | — | discovery |
| 2026-11-20T21:48:41.229280 | discovered_doi | — | — | discovery |
| 2026-11-20T21:48:41.229280 | discovered_hf | — | — | discovery |
| 2026-11-20T21:48:41.229280 | discovered_npm | — | — | discovery |
| 2026-11-20T21:48:41.229280 | discovered_pypi | — | femr | discovery |
| 2026-11-20T21:48:39.417666 | has_ci | — | True | github_api |
| 2026-11-20T21:48:39.417666 | has_docs | — | True | github_api |
| 2026-11-20T21:48:39.417666 | has_releases | — | True | github_api |
| 2026-11-20T21:48:39.417666 | has_tests | — | True | github_api |
| 2026-11-20T21:48:39.417666 | repo_languages | — | Python:87,Jupyter Notebook:13 | github_api |
| 2026-11-20T21:48:39.417595 | description | — | FEMR (Framework for Electronic Medical Records) provides tooling for large-scale, self-supervised learning using electronic health records | github_api |
| 2026-11-20T21:48:39.417595 | license | — | Apache-2.0 | github_api |
| 2026-11-20T21:48:39.417595 | repo_archived | — | False | github_api |
| 2026-11-20T21:48:39.417595 | repo_created | — | 2022-06-28T13:16:45Z | github_api |
| 2026-11-20T21:48:39.417595 | repo_forks | — | 37 | github_api |
| 2026-11-20T21:48:39.417595 | repo_homepage | — | — | github_api |
| 2026-11-20T21:48:39.417595 | repo_last_commit | — | 2026-11-16T18:58:04Z | github_api |
| 2026-11-20T21:48:39.417595 | repo_open_issues | — | 10 | github_api |
| 2026-11-20T21:48:39.417595 | repo_primary_language | — | Python | github_api |
| 2026-11-20T21:48:39.417595 | repo_size_kb | — | 44591 | github_api |
| 2026-11-20T21:48:39.417595 | repo_stars | — | 185 | github_api |
| 2026-11-20T21:48:39.417595 | repo_topics | — | electronic-health-records,foundation-models,healthcare,self-supervised-learning | github_api |