← Browse

@mkurman/mimic

A

MIMIC (Medical Information Mart for Intensive Care) database toolkit. Curated ICU data: vitals, labs, medications, notes, diagnoses. Tools for querying MIMIC-III/IV, building ML features, and reproducing benchmarks.

skillclaude

Install

agr install @mkurman/mimic --target claude

Writes 1 file into .claude/skills/, pinned to git-9df0acdb.

  • .claude/skills/mimic/SKILL.md

Document


name: mimic description: "MIMIC (Medical Information Mart for Intensive Care) database toolkit. Curated ICU data: vitals, labs, medications, notes, diagnoses. Tools for querying MIMIC-III/IV, building ML features, and reproducing benchmarks." tags: [mimic, icu, ehr, clinical-database, research, healthcare, zorai]

Overview

MIMIC (Medical Information Mart for Intensive Care) provides ICU data: vitals, labs, medications, notes, diagnoses. Tools for querying MIMIC-III/IV, building ML features, and reproducing clinical benchmarks.

Access

Apply for access at https://physionet.org/content/mimiciv/ -- requires CITI data use training.

Installation

uv pip install psycopg2 pandas

Python Analysis

import pandas as pd
from sqlalchemy import create_engine

engine = create_engine("postgresql://user:pass@localhost:5432/mimiciv")

# First 24h vitals
query = """
SELECT subject_id, charttime, valuenum
FROM mimiciv_icu.chartevents
WHERE itemid = 220045
AND valuenum IS NOT NULL
LIMIT 100
"""
hr = pd.read_sql(query, engine)

Workflow

  1. Apply for MIMIC access (physionet.org)
  2. Load MIMIC-IV into PostgreSQL
  3. Query ICU stays, diagnoses, labs, medications, notes
  4. Extract features (vitals over time, labs at admission, comorbidity scores)
  5. Build ML benchmarks (in-hospital mortality, LOS prediction, sepsis detection)

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-9df0acdbc6782026-07-31