gcs-calculation

Calculate Glasgow Coma Scale scores from ICU chart data with intubation handling.

40|17|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/hannesill/m4 --skill gcs-calculation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcs-calculation
Source: https://github.com/hannesill/m4/tree/main/src/m4/skills/clinical/gcs-calculation
Command: npx skills add https://github.com/hannesill/m4 --skill gcs-calculation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Glasgow Coma Scale scores must be computed from ICU chart data while correctly handling intubation and sedation scenarios.

Core Features & Use Cases

  • Compute total GCS from motor, verbal, and eye components with rules for intubation (gcs_verbal = 0 leads to total GCS = 15) and component carry-forward within 6 hours.
  • Produce per-chart and per-stay trajectories suitable for clinical analytics, cohort definitions, and outcome studies across ICUs.
  • Support sedation policy by using pre-sedation GCS where available and flagging uncertain scores for review.

Quick Start

Provide a dataset containing GCS components (motor, verbal, eyes) and charttimes and the skill will compute GCS for each observation.

Frequently Asked Questions about gcs-calculation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate Glasgow Coma Scale scores from ICU chart data while handling intubation?

Calculate Glasgow Coma Scale scores by extracting motor, verbal, and eye components from ICU datasets and applying deterministic SQL logic for intubation handling. The skill sets verbal scores to zero during intubation, yielding a total GCS of 15, and forward-fills missing components within six hours to produce robust per-chart trajectories.

What is the best way to compute GCS trajectories for ICU stays using MIMIC-IV data?

Compute GCS trajectories for ICU stays by processing MIMIC-IV chart data with SQL-based component reconciliation. The skill aggregates motor, verbal, and eye observations per chart, forward-fills values within a six-hour window, and handles missing data to output continuous per-stay GCS timelines suitable for clinical analytics.

How does intubation logic affect GCS calculation in clinical datasets?

Intubation logic affects GCS calculation by setting the verbal component to zero, which results in a maximum total GCS score of 15 rather than the standard 3. This approach prevents artificially depressed scores for intubated ICU patients and flags uncertain values for clinical review.

Can I use this GCS calculation skill with electronic health record feeds that have missing chart components?

Yes, you can use this skill with electronic health record feeds containing missing chart components. It applies deterministic forward-fill logic within a six-hour window to carry forward existing GCS component values, ensuring continuous neuro-status monitoring even when individual observations are incomplete.

Does the skill handle sedation when deriving Glasgow Coma Scale scores for cohort definitions?

The skill handles sedation by using pre-sedation GCS values where available and flagging uncertain scores for review. This sedation policy ensures that neuro-status scores used for cohort definitions and outcome studies reflect baseline patient condition rather than medication-induced suppression.

What data do I need to provide to calculate GCS from ICU datasets?

Provide an ICU dataset containing GCS components—motor, verbal, and eyes—along with corresponding charttimes. The skill processes these inputs to compute total GCS for each observation, applying intubation rules and forward-fill logic to generate per-chart and per-stay trajectories without requiring additional dependencies.