-
Notifications
You must be signed in to change notification settings - Fork 190
Description
There was:
which touched upon adding description of medication(s) for a patient for iEEG (attn @bids-standard/raw-electrophys-ieeg @bids-standard/raw-electrophys-eeg @bids-standard/raw-electrophys-meg). It was never addressed, and I do not think it is iEEG specific anyhow, thus I will close that issue in favor of this more generic BEP proposal.
We already have some Pharmaceutical* fields described:
- in context of PET: https://bids-specification.readthedocs.io/en/stable/modality-specific-files/positron-emission-tomography.html#pharmaceuticals (attn @bids-standard/raw-pet @bids-standard/derivatives-pet)
- in context of "micro ephys" (animals) BEP032 where we decided for now to minimize and just use what PET one introduced and postpone more detailed one for this BEP (attn @bids-standard/bep032)
It would be great to formalize, taking into account work in #319.
Motivation
Medication/pharmaceutical information is critically important across many neuroimaging modalities:
- iEEG/EEG/MEG: Anti-epileptic drugs significantly affect signal quality and spike detection
- PET: Pharmacological challenges during scans, tracer interactions
- fMRI: Drug studies, effects on BOLD signal
- Animal electrophysiology: Anesthetics, experimental compounds
Currently, medication metadata is either absent, inconsistently represented, or limited to specific modalities. A unified approach would improve:
- Reproducibility: Clear documentation of pharmacological state during data acquisition
- Data sharing: Standardized format enables cross-study comparisons
- Analysis: Machine-readable medication data supports automated phenotyping
Proposal Overview
This BEP proposes:
- Adoption of established controlled vocabularies/ontologies for medication identification
- A standardized schema for medication administration details (dose, route, timing, etc.)
- Modality-agnostic placement that can extend current PET Pharmaceuticals fields
Recommended Ontologies for Drug/Medication Identification
RxNorm (NIH/NLM) - Primary recommendation for clinical/US contexts
- URL: https://www.nlm.nih.gov/research/umls/rxnorm/
- API: https://lhncbc.nlm.nih.gov/RxNav/APIs/RxNormAPIs.html
- License: Free, non-proprietary (NLM)
- Description: The de facto US standard for normalized drug names. Provides normalized names for clinical drugs and links to many drug vocabularies (First Databank, Micromedex, Multum, Gold Standard).
- Key features:
- RxCUI (unique concept identifier) for each drug formulation
- Links ingredients, strengths, dose forms
- Mappings to NDC codes, ATC classifications
- Well-maintained REST API
- Example: Carbamazepine 200 MG Oral Tablet → RxCUI: 308971
ChEBI (Chemical Entities of Biological Interest) - Primary recommendation for FAIR/open science
- URL: https://www.ebi.ac.uk/chebi/
- License: Fully open (CC BY 4.0)
- OBO Foundry member: http://obofoundry.org/ontology/chebi.html
- Description: Open-access database and ontology of molecular entities from EMBL-EBI. Part of the OBO Foundry family, designed for interoperability with other biomedical ontologies.
- Key features:
- CHEBI IDs are stable, persistent identifiers
- Full chemical structure information
- Role-based classification (e.g., "anticonvulsant", "anesthetic")
- Integration with Gene Ontology, Reactome, BioModels
- Available in OBO, OWL, SDF formats
- Example: Carbamazepine → CHEBI:3387
- Relevance: Already used in OMOP2OBO mappings for drug ingredients; aligns with FAIR principles central to BIDS philosophy
ATC (Anatomical Therapeutic Chemical Classification) - WHO standard
- URL: https://www.who.int/tools/atc-ddd-toolkit
- License: WHO (free for research)
- Description: Hierarchical classification system from WHO, widely used internationally in pharmacoepidemiology.
- Key features:
- 5-level hierarchy (Anatomical → Therapeutic → Pharmacological → Chemical → Substance)
- Includes Defined Daily Doses (DDD) - useful for dosing context
- Standard in clinical trial submissions (via CDISC)
- Example: Carbamazepine → N03AF01 (N=Nervous system, 03=Antiepileptics, AF=Carboxamide derivatives, 01=Carbamazepine)
DrugBank
- URL: https://go.drugbank.com/
- License: Mixed (open + commercial tiers)
- Description: Comprehensive drug database with detailed pharmacological information including targets, interactions, pharmacokinetics.
- Key features:
- Rich pharmacological metadata
- Drug-target interactions
- ADMET properties
- Note: Commercial licensing may limit use in fully open datasets
SNOMED CT (Medications subset)
- URL: https://www.snomed.org/
- License: Requires SNOMED license (free in many countries via national release centers)
- Description: Comprehensive clinical terminology including medications, widely adopted in EHR systems internationally.
- Note: Licensing complexity may be a barrier for international data sharing
Recommended Schemas for Medication Administration
HL7 FHIR MedicationStatement / MedicationAdministration - Primary recommendation
- MedicationStatement: https://www.hl7.org/fhir/medicationstatement.html
- MedicationAdministration: https://www.hl7.org/fhir/medicationadministration.html
- JSON Schema: https://www.hl7.org/fhir/medicationstatement.schema.json.html
- License: Open specification (HL7)
Key fields from FHIR that could inform BIDS medication metadata:
{
"medication": {
"code": {
"coding": [
{"system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "308971"},
{"system": "https://www.ebi.ac.uk/chebi", "code": "CHEBI:3387"},
{"system": "http://www.whocc.no/atc", "code": "N03AF01"}
],
"text": "Carbamazepine 200mg"
}
},
"dosage": {
"dose": {"value": 200, "unit": "mg"},
"route": {"text": "oral"},
"timing": {"repeat": {"frequency": 2, "period": 1, "periodUnit": "d"}}
},
"effectivePeriod": {
"start": "2024-01-01",
"end": "2024-06-15"
},
"status": "active",
"reasonCode": [{"text": "epilepsy"}]
}Advantages:
- Open, JSON-native, widely adopted in healthcare
- Handles medication coding with multiple vocabulary references
- Comprehensive dosage model (amount, timing, route, method)
- Designed for real-world medication documentation scenarios
CDISC SDTM CM (Concomitant Medications) Domain
- URL: https://www.cdisc.org/standards/foundational/sdtm
- CDASHIG CM: https://www.cdisc.org/kb/ecrf/concomitant-medications
- License: CDISC membership (free academic access)
Key SDTM CM variables:
| Variable | Description |
|---|---|
| CMTRT | Reported Name of Drug |
| CMDECOD | Standardized Medication Name (dictionary-derived) |
| CMCLAS | Medication Class (e.g., ATC level) |
| CMCLASCD | Medication Class Code |
| CMDOSE | Dose per Administration |
| CMDOSU | Dose Units |
| CMDOSFRQ | Dosing Frequency per Interval |
| CMROUTE | Route of Administration |
| CMSTDTC | Start Date/Time |
| CMENDTC | End Date/Time |
| CMINDC | Indication |
Advantages:
- FDA-accepted standard for clinical trial submissions
- Well-defined field specifications
- Established mapping to WHO Drug Dictionary
OpenEHR Medication Archetypes
- URL: https://ckm.openehr.org/ckm/archetypes/1013.1.5939
- License: Open (CC BY-SA)
- Description: Clinically-validated, open data models for medication documentation developed through international clinical governance process.
Related Projects and Standards
OHDSI / OMOP CDM
- URL: https://www.ohdsi.org/
- Drug Exposure table: https://ohdsi.github.io/CommonDataModel/cdm60.html#DRUG_EXPOSURE
- Description: Observational Health Data Sciences and Informatics consortium has done extensive work mapping drug vocabularies for large-scale health data research. Their OMOP2OBO project maps OMOP drug concepts to OBO ontologies including ChEBI.
- Relevance: Demonstrates successful integration of RxNorm, ATC, and ChEBI for drug data standardization
Biolink Model
- URL: https://biolink.github.io/biolink-model/
- Description: Knowledge graph schema used by NCATS Translator for biomedical knowledge integration. Includes drug/chemical entity modeling.
schema.org Drug type
- URL: https://schema.org/Drug
- Description: Lightweight structured data vocabulary. Limited but provides basic drug metadata fields.
Proposed BIDS Approach
Vocabulary Selection
Primary recommendation: Support multiple vocabularies with clear preference order:
- RxNorm (RxCUI) - for US clinical drugs, normalized names
- ChEBI (CHEBI ID) - for full FAIR compliance, international use, OBO integration
- ATC - for therapeutic classification, DDD information
Datasets SHOULD include at least one of these identifiers. Free-text names alone are discouraged.
Proposed Schema (Draft)
Building on existing PET Pharmaceuticals field structure:
{
"Medications": [
{
"Name": "Carbamazepine",
"RxNormCode": "2002",
"ChEBICode": "CHEBI:3387",
"ATCCode": "N03AF01",
"Dose": 200,
"DoseUnits": "mg",
"DoseFrequency": "twice daily",
"Route": "oral",
"StartDate": "2024-01-01",
"EndDate": null,
"Indication": "epilepsy",
"Notes": "Stable dose for 6 months prior to recording"
}
]
}Placement in BIDS
Options to discuss:
participants.tsvcolumns + detailedparticipants.jsondefinitions - for chronic medications- Session-level sidecar - for medications at time of scan (see BEP026 attn @bep026; Formalize the concept of
[{leading entities}_]{entity_plural}.{tsv,json}file(s) #2283 forsubject+sessions.tsvproposal), - Dedicated
sub-<label>_medications.tsvfile per subject/session - for complex regimens - Extension/Migration from existing
Pharmaceuticalsfield from PET to other modalities
Questions for Community Discussion
-
Which vocabularies should be REQUIRED vs RECOMMENDED?
- Should we mandate at least one coded identifier, or allow free-text fallback?
-
How to handle temporal aspects?
- Chronic medications vs. acute administration during scan
- Historical medication exposure (relevant for pharmacological neuroimaging)
-
Privacy considerations?
- Medication lists can be identifying - guidance on de-identification?
-
Compatibility with existing PET Pharmaceuticals fields?
- Extend or replace current structure?
-
Animal studies?
- Same schema for veterinary drugs? Different vocabularies needed?
References
- BIDS PET Pharmaceuticals: https://bids-specification.readthedocs.io/en/stable/modality-specific-files/positron-emission-tomography.html#pharmaceuticals
- Original iEEG medication issue: BEP010 (iEEG) Medication field #319
- BEP032 (Microelectrode Electrophysiology): [ENH] microelectrode electrophysiology specification (BEP032) #1705
- FHIR Medication resources: https://www.hl7.org/fhir/medications-module.html
- RxNorm: https://www.nlm.nih.gov/research/umls/rxnorm/
- ChEBI: https://www.ebi.ac.uk/chebi/
- ATC/DDD: https://www.who.int/tools/atc-ddd-toolkit
- CDISC SDTM: https://www.cdisc.org/standards/foundational/sdtm
- OHDSI/OMOP: https://www.ohdsi.org/
- OBO Foundry: http://obofoundry.org/
Call for Contributors
We are looking for contributors with expertise in:
- Pharmacology/clinical pharmacy
- Clinical data standards (HL7, CDISC)
- Neuroimaging (particularly clinical iEEG, PET pharmacological studies)
- Animal research (veterinary pharmacology)
Please comment below if interested in contributing to this BEP.