Calculate Hospital Frailty Risk Score (HFRS) for ICU patients using ICD diagnosis codes. Use for frailty assessment, risk stratification, or outcome prediction in older patients. Supports both ICD-9-CM and ICD-10-CM codes for MIMIC-IV compatibility.
Run a clinical research study with the researcher from question to results - interview, protocol, approved analysis scripts, and results on the Vitrine board. Use when the user wants to study whether an exposure or treatment affects an outcome, compare patient groups, characterise or model a cohort, write a research…
Write a new M4 skill with a contributor - interview, SKILL.md, PROVENANCE.yaml, and an example tested on real data. Use when the user wants to create, write or contribute an M4 skill, or turn a clinical score, cohort definition, research method or M4 workflow into one.
Query M4 clinical datasets (MIMIC-IV, MIMIC-IV-Note, MIMIC-IV-ED, eICU, MIMIC-III, MIMIC-CXR-JPG, and demos) from Python with import m4: find tables, run SQL into pandas, search clinical notes, select chest X-ray cohorts and fetch their images, handle M4's errors. Use before writing Python or SQL against M4 data.
Diagnose and repair an M4 installation. Use when import m4 or import vitrine fails or runs under the wrong Python, a dataset is missing, not ready, or locked, the user's own CSV files are to become a dataset, the BigQuery backend or its credentials are wrong, M4's skills are missing from an agent, or the Vitrine board…
Map MIMIC-IV identifiers, tables, time handling and concepts to eICU-CRD as M4 exposes it. Use when translating a MIMIC-IV query to eICU, validating a MIMIC-IV model on eICU, or running one analysis on both databases.
Join MIMIC-IV tables on the right key and time window, in the active backend's SQL dialect. Use before writing MIMIC-IV SQL that joins hosp, icu and derived tables, or when row counts look duplicated or short.
Publish results to the researcher's Vitrine board as cards (tables, figures, images and galleries, notes, forms, approvals) and read back what is on it (cards, decisions, form answers, annotations). Use when showing results, asking the researcher to choose or approve, or when they mention a card, a table, the board…
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: