xiaohongshu
xiaohongshu
mimic-eicu-mapping
Map equivalent concepts between MIMIC-IV and eICU databases. Use for multi-database studies, external validation, or understanding structural differences between databases.
Full skill instructions
This skill maps equivalent tables, columns, and concepts between MIMIC-IV and eICU databases to enable cross-database research and external validation.
| Characteristic | MIMIC-IV | eICU |
|---|---|---|
| Institution | Beth Israel Deaconess (single center) | 208 hospitals (multi-center) |
| Patients | ~300,000 admissions | ~200,000 patients |
| Time Period | 2008-2019 | 2014-2015 |
| ICU Types | All ICU types | All ICU types |
| Geography | Boston, MA | United States (nationwide) |
| Concept | MIMIC-IV | eICU |
|---|---|---|
| Patient ID | subject_id | uniquepid |
| Hospital Admission | hadm_id | patienthealthsystemstayid |
| ICU Stay | stay_id | patientunitstayid |
| Hospital ID | N/A (single center) | hospitalid |
| Unit Visit | icustay_seq | unitvisitnumber |
| MIMIC-IV | eICU | Notes |
|---|---|---|
| mimiciv_hosp.patients | patient | Base demographics |
| mimiciv_hosp.admissions | patient | Admission info combined |
| mimiciv_icu.icustays | patient | ICU stay info in patient table |
| mimiciv_derived.icustay_detail | icustay_detail (concept) | Derived convenience table |
| MIMIC-IV | eICU | Notes |
|---|---|---|
| mimiciv_derived.vitalsign | vitalperiodic, vitalaperiodic | eICU splits periodic/aperiodic |
| mimiciv_icu.chartevents | nursecharting | Raw charted values |
| MIMIC-IV | eICU | Notes |
|---|---|---|
| mimiciv_hosp.labevents | lab | Different labname conventions |
| mimiciv_derived.chemistry | pivoted_lab (concept) | Derived/pivoted |
| mimiciv_derived.complete_blood_count | pivoted_lab (concept) |
| MIMIC-IV | eICU | Notes |
|---|---|---|
| mimiciv_hosp.prescriptions | medication | Hospital medications |
| mimiciv_icu.inputevents | infusiondrug | IV infusions |
| mimiciv_derived.antibiotic | - | Concept needs creation for eICU |
| MIMIC-IV | eICU | Notes |
|---|---|---|
| mimiciv_hosp.diagnoses_icd | diagnosis | eICU uses text descriptions |
| - | admissiondx | eICU has admission diagnosis |
| - | apacheapsvar | APACHE diagnosis categories |
| Concept | MIMIC-IV | eICU |
|---|---|---|
| SOFA | mimiciv_derived.sofa | Requires custom calculation |
| APACHE IV | Not pre-computed | apachepatientresult |
| OASIS | mimiciv_derived.oasis | pivoted_oasis (concept) |
| GCS | mimiciv_derived.gcs | pivoted_score (concept) |
| Urine Output | mimiciv_derived.urine_output | pivoted_uo (concept) |
MIMIC-IV: Absolute timestamps (DATETIME)
eICU: Offset in minutes from unit admission (INTEGER)
-- MIMIC-IV
WHERE charttime BETWEEN ie.intime AND ie.outtime
-- eICU (convert offset to time)
WHERE chartoffset >= 0 AND chartoffset <= unitdischargeoffset
MIMIC-IV: Single hospital, no hospital identifier
eICU: hospitalid links to hospital table with region, bed count
MIMIC-IV: ICD-9 and ICD-10 codes
eICU: Free-text diagnosis strings + APACHE categories
MIMIC-IV: itemid (numeric codes) with d_labitems lookup
eICU: labname (text strings), less standardized
MIMIC-IV:
SELECT *
FROM mimiciv_derived.icustay_detail
WHERE first_icu_stay = TRUE;
eICU:
SELECT *
FROM patient
WHERE unitvisitnumber = 1;
MIMIC-IV:
SELECT stay_id, hospital_expire_flag
FROM mimiciv_hosp.admissions a
INNER JOIN mimiciv_icu.icustays ie ON a.hadm_id = ie.hadm_id;
eICU:
SELECT patientunitstayid,
CASE WHEN hospitaldischargestatus = 'Expired' THEN 1 ELSE 0 END AS hosp_mort
FROM patient;
MIMIC-IV:
SELECT stay_id, admission_age
FROM mimiciv_derived.icustay_detail;
-- Note: Ages > 89 are shifted
eICU:
SELECT patientunitstayid,
CASE WHEN age = '> 89' THEN 90 ELSE CAST(age AS INT) END AS age
FROM patient;
-- Note: age is stored as string, "> 89" for elderly
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience