{
  "x402Version": 2,
  "id": 39439,
  "slug": "39439",
  "resource": "https://api.magentlab.com/api/calc/impact",
  "description": "Steyerberg 2008 IMPACT prognostic score for 6-month mortality and unfavorable outcome after traumatic brain injury. model=core (age, motor, pupils), extended (plus hypoxia, hypotension, Marshall CT, tSAH, EDH), or lab (plus glucose mmol/L and Hb g/dL). Points and printed logistic LPs from that paper. Not a diagnosis, not MRC CRASH (Perel 2008), and not magent chemotherapy CRASH.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 35,
                "edh": false,
                "glucose_mmol_l": 10,
                "hemoglobin_g_dl": 11,
                "hypotension": false,
                "hypoxia": false,
                "marshall_ct": "II",
                "model": "core",
                "motor_score": 3,
                "pupillary_reactivity": "both",
                "tsah": false
              },
              {
                "age": 35,
                "edh": false,
                "glucose_mmol_l": 10,
                "hemoglobin_g_dl": 11,
                "hypotension": false,
                "hypoxia": false,
                "marshall_ct": "II",
                "model": "core",
                "motor_score": 3,
                "pupillary_reactivity": "both",
                "tsah": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 35,
                "citation": {
                  "authors": "Steyerberg EW, Mushkudiani N, Perel P, Butcher I, Lu J, McHugh GS, Murray GD, Marmarou A, Roberts I, Habbema JDF, Maas AIR",
                  "doi": "10.1371/journal.pmed.0050165",
                  "id": "steyerberg-2008-impact",
                  "pmid": "18640954",
                  "source": "PLoS Med. 2008;5(8):e165",
                  "title": "Predicting outcome after traumatic brain injury: development and international validation of prognostic scores based on admission characteristics"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 35
                  },
                  {
                    "factor": "motor_score",
                    "points": 4,
                    "present": true,
                    "value": 3
                  },
                  {
                    "factor": "pupillary_reactivity",
                    "points": 0,
                    "present": false,
                    "value": "both"
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "impact",
                "formula_expression": "IMPACT (Steyerberg 2008 Fig 1): core = age(<=30:0, 31-39:1, 40-49:2, 50-59:3, 60-69:4, >=70:5) + motor(1-2:6, 3:4, 4:2, 5-6:0, 9:3) + pupils(both:0, one:2, none:4); extended = core + hypoxia(yes/suspected:1) + hypotension(yes/suspected:2) + marshall(I:-2, II:0, III-VI:2) + tSAH(yes:2) + EDH(yes:-2); lab = extended + glucose_mmol_l(<6:0, 6-8.9:1, 9-11.9:2, 12-14.9:3, >=15:4) + hb_g_dl(<9:3, 9-11.9:2, 12-14.9:1, >=15:0); p = 1/(1+e^(-LP)); LPcore mort=-2.55+0.275*sum; LPcore unfav=-1.62+0.299*sum; LPext mort=-2.98+0.256*sum; LPext unfav=-2.10+0.276*sum; LPlab mort=-3.42+0.216*sum; LPlab unfav=-2.82+0.257*sum; 6-month percent 1 decimal; not MRC CRASH",
                "linear_predictor_mortality": -1.175,
                "linear_predictor_unfavorable": -0.125,
                "max_score": 15,
                "model": "core",
                "mortality_6_month_percent": 23.6,
                "motor_score": 3,
                "pupillary_reactivity": "both",
                "score": 5,
                "sum_core": 5,
                "unfavorable_6_month_percent": 46.9
              },
              {
                "age": 35,
                "citation": {
                  "authors": "Steyerberg EW, Mushkudiani N, Perel P, Butcher I, Lu J, McHugh GS, Murray GD, Marmarou A, Roberts I, Habbema JDF, Maas AIR",
                  "doi": "10.1371/journal.pmed.0050165",
                  "id": "steyerberg-2008-impact",
                  "pmid": "18640954",
                  "source": "PLoS Med. 2008;5(8):e165",
                  "title": "Predicting outcome after traumatic brain injury: development and international validation of prognostic scores based on admission characteristics"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 35
                  },
                  {
                    "factor": "motor_score",
                    "points": 4,
                    "present": true,
                    "value": 3
                  },
                  {
                    "factor": "pupillary_reactivity",
                    "points": 0,
                    "present": false,
                    "value": "both"
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "impact",
                "formula_expression": "IMPACT (Steyerberg 2008 Fig 1): core = age(<=30:0, 31-39:1, 40-49:2, 50-59:3, 60-69:4, >=70:5) + motor(1-2:6, 3:4, 4:2, 5-6:0, 9:3) + pupils(both:0, one:2, none:4); extended = core + hypoxia(yes/suspected:1) + hypotension(yes/suspected:2) + marshall(I:-2, II:0, III-VI:2) + tSAH(yes:2) + EDH(yes:-2); lab = extended + glucose_mmol_l(<6:0, 6-8.9:1, 9-11.9:2, 12-14.9:3, >=15:4) + hb_g_dl(<9:3, 9-11.9:2, 12-14.9:1, >=15:0); p = 1/(1+e^(-LP)); LPcore mort=-2.55+0.275*sum; LPcore unfav=-1.62+0.299*sum; LPext mort=-2.98+0.256*sum; LPext unfav=-2.10+0.276*sum; LPlab mort=-3.42+0.216*sum; LPlab unfav=-2.82+0.257*sum; 6-month percent 1 decimal; not MRC CRASH",
                "linear_predictor_mortality": -1.175,
                "linear_predictor_unfavorable": -0.125,
                "max_score": 15,
                "model": "core",
                "mortality_6_month_percent": 23.6,
                "motor_score": 3,
                "pupillary_reactivity": "both",
                "score": 5,
                "sum_core": 5,
                "unfavorable_6_month_percent": 46.9
              }
            ],
            "path": "/api/calc/impact"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (integer 14-90). Steyerberg 2008 Figure 1: ≤30 → 0; 31–39 → 1; 40–49 → 2; 50–59 → 3; 60–69 → 4; ≥70 → 5. Chart label 30–39 is the decade after ≤30 (age 30 scores 0).",
                          "type": "integer"
                        },
                        "edh": {
                          "description": "Epidural hematoma (Steyerberg 2008). Required when model is extended or lab. true adds −2; false adds 0. Ignored on model=core.",
                          "type": "boolean"
                        },
                        "glucose_mmol_l": {
                          "description": "Admission glucose in mmol/L (2.8-55.5). Required when model is lab. Steyerberg 2008: <6 → 0; 6–8.9 → 1; 9–11.9 → 2; 12–14.9 → 3; ≥15 → 4. Ignored on core and extended. magent does not assay glucose.",
                          "type": "number"
                        },
                        "hemoglobin_g_dl": {
                          "description": "Admission hemoglobin in g/dL (3-22). Required when model is lab. Steyerberg 2008: <9 → 3; 9–11.9 → 2; 12–14.9 → 1; ≥15 → 0. Ignored on core and extended. magent does not assay hemoglobin.",
                          "type": "number"
                        },
                        "hypotension": {
                          "description": "Hypotension yes or suspected (Steyerberg 2008). Required when model is extended or lab. true adds 2; false adds 0. Ignored on model=core.",
                          "type": "boolean"
                        },
                        "hypoxia": {
                          "description": "Hypoxia yes or suspected (Steyerberg 2008). Required when model is extended or lab. true adds 1; false adds 0. Ignored on model=core.",
                          "type": "boolean"
                        },
                        "marshall_ct": {
                          "description": "Marshall CT class I–VI (Steyerberg 2008). Required when model is extended or lab. I → −2; II → 0; III, IV, V, or VI → 2. Ignored on model=core. magent does not read the scan.",
                          "enum": [
                            "I",
                            "II",
                            "III",
                            "IV",
                            "V",
                            "VI"
                          ],
                          "type": "string"
                        },
                        "model": {
                          "description": "Steyerberg 2008 IMPACT model. core uses age, motor, and pupils. extended adds hypoxia, hypotension, Marshall CT, tSAH, and EDH. lab adds glucose mmol/L and hemoglobin g/dL. Required; magent does not pick a model.",
                          "enum": [
                            "core",
                            "extended",
                            "lab"
                          ],
                          "type": "string"
                        },
                        "motor_score": {
                          "description": "GCS motor integer 1-6 or 9 (untestable/missing) as in Steyerberg 2008. 1 or 2 (none/extension) → 6; 3 (abnormal flexion) → 4; 4 (normal flexion) → 2; 5 or 6 (localizes/obeys) → 0; 9 → 3.",
                          "type": "integer"
                        },
                        "pupillary_reactivity": {
                          "description": "Pupillary reactivity (Steyerberg 2008). both → 0; one → 2; none → 4. Caller-assigned. magent does not examine pupils.",
                          "enum": [
                            "both",
                            "one",
                            "none"
                          ],
                          "type": "string"
                        },
                        "tsah": {
                          "description": "Traumatic subarachnoid hemorrhage (Steyerberg 2008). Required when model is extended or lab. true adds 2; false adds 0. Ignored on model=core.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "model",
                        "age",
                        "motor_score",
                        "pupillary_reactivity"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "impact",
    "tbi",
    "prognosis",
    "neurology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:53:00.068Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:52:59.917Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 35,
                  "edh": false,
                  "glucose_mmol_l": 10,
                  "hemoglobin_g_dl": 11,
                  "hypotension": false,
                  "hypoxia": false,
                  "marshall_ct": "II",
                  "model": "core",
                  "motor_score": 3,
                  "pupillary_reactivity": "both",
                  "tsah": false
                },
                {
                  "age": 35,
                  "edh": false,
                  "glucose_mmol_l": 10,
                  "hemoglobin_g_dl": 11,
                  "hypotension": false,
                  "hypoxia": false,
                  "marshall_ct": "II",
                  "model": "core",
                  "motor_score": 3,
                  "pupillary_reactivity": "both",
                  "tsah": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 35,
                  "citation": {
                    "authors": "Steyerberg EW, Mushkudiani N, Perel P, Butcher I, Lu J, McHugh GS, Murray GD, Marmarou A, Roberts I, Habbema JDF, Maas AIR",
                    "doi": "10.1371/journal.pmed.0050165",
                    "id": "steyerberg-2008-impact",
                    "pmid": "18640954",
                    "source": "PLoS Med. 2008;5(8):e165",
                    "title": "Predicting outcome after traumatic brain injury: development and international validation of prognostic scores based on admission characteristics"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 35
                    },
                    {
                      "factor": "motor_score",
                      "points": 4,
                      "present": true,
                      "value": 3
                    },
                    {
                      "factor": "pupillary_reactivity",
                      "points": 0,
                      "present": false,
                      "value": "both"
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "impact",
                  "formula_expression": "IMPACT (Steyerberg 2008 Fig 1): core = age(<=30:0, 31-39:1, 40-49:2, 50-59:3, 60-69:4, >=70:5) + motor(1-2:6, 3:4, 4:2, 5-6:0, 9:3) + pupils(both:0, one:2, none:4); extended = core + hypoxia(yes/suspected:1) + hypotension(yes/suspected:2) + marshall(I:-2, II:0, III-VI:2) + tSAH(yes:2) + EDH(yes:-2); lab = extended + glucose_mmol_l(<6:0, 6-8.9:1, 9-11.9:2, 12-14.9:3, >=15:4) + hb_g_dl(<9:3, 9-11.9:2, 12-14.9:1, >=15:0); p = 1/(1+e^(-LP)); LPcore mort=-2.55+0.275*sum; LPcore unfav=-1.62+0.299*sum; LPext mort=-2.98+0.256*sum; LPext unfav=-2.10+0.276*sum; LPlab mort=-3.42+0.216*sum; LPlab unfav=-2.82+0.257*sum; 6-month percent 1 decimal; not MRC CRASH",
                  "linear_predictor_mortality": -1.175,
                  "linear_predictor_unfavorable": -0.125,
                  "max_score": 15,
                  "model": "core",
                  "mortality_6_month_percent": 23.6,
                  "motor_score": 3,
                  "pupillary_reactivity": "both",
                  "score": 5,
                  "sum_core": 5,
                  "unfavorable_6_month_percent": 46.9
                },
                {
                  "age": 35,
                  "citation": {
                    "authors": "Steyerberg EW, Mushkudiani N, Perel P, Butcher I, Lu J, McHugh GS, Murray GD, Marmarou A, Roberts I, Habbema JDF, Maas AIR",
                    "doi": "10.1371/journal.pmed.0050165",
                    "id": "steyerberg-2008-impact",
                    "pmid": "18640954",
                    "source": "PLoS Med. 2008;5(8):e165",
                    "title": "Predicting outcome after traumatic brain injury: development and international validation of prognostic scores based on admission characteristics"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 35
                    },
                    {
                      "factor": "motor_score",
                      "points": 4,
                      "present": true,
                      "value": 3
                    },
                    {
                      "factor": "pupillary_reactivity",
                      "points": 0,
                      "present": false,
                      "value": "both"
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "impact",
                  "formula_expression": "IMPACT (Steyerberg 2008 Fig 1): core = age(<=30:0, 31-39:1, 40-49:2, 50-59:3, 60-69:4, >=70:5) + motor(1-2:6, 3:4, 4:2, 5-6:0, 9:3) + pupils(both:0, one:2, none:4); extended = core + hypoxia(yes/suspected:1) + hypotension(yes/suspected:2) + marshall(I:-2, II:0, III-VI:2) + tSAH(yes:2) + EDH(yes:-2); lab = extended + glucose_mmol_l(<6:0, 6-8.9:1, 9-11.9:2, 12-14.9:3, >=15:4) + hb_g_dl(<9:3, 9-11.9:2, 12-14.9:1, >=15:0); p = 1/(1+e^(-LP)); LPcore mort=-2.55+0.275*sum; LPcore unfav=-1.62+0.299*sum; LPext mort=-2.98+0.256*sum; LPext unfav=-2.10+0.276*sum; LPlab mort=-3.42+0.216*sum; LPlab unfav=-2.82+0.257*sum; 6-month percent 1 decimal; not MRC CRASH",
                  "linear_predictor_mortality": -1.175,
                  "linear_predictor_unfavorable": -0.125,
                  "max_score": 15,
                  "model": "core",
                  "mortality_6_month_percent": 23.6,
                  "motor_score": 3,
                  "pupillary_reactivity": "both",
                  "score": 5,
                  "sum_core": 5,
                  "unfavorable_6_month_percent": 46.9
                }
              ],
              "path": "/api/calc/impact"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (integer 14-90). Steyerberg 2008 Figure 1: ≤30 → 0; 31–39 → 1; 40–49 → 2; 50–59 → 3; 60–69 → 4; ≥70 → 5. Chart label 30–39 is the decade after ≤30 (age 30 scores 0).",
                            "type": "integer"
                          },
                          "edh": {
                            "description": "Epidural hematoma (Steyerberg 2008). Required when model is extended or lab. true adds −2; false adds 0. Ignored on model=core.",
                            "type": "boolean"
                          },
                          "glucose_mmol_l": {
                            "description": "Admission glucose in mmol/L (2.8-55.5). Required when model is lab. Steyerberg 2008: <6 → 0; 6–8.9 → 1; 9–11.9 → 2; 12–14.9 → 3; ≥15 → 4. Ignored on core and extended. magent does not assay glucose.",
                            "type": "number"
                          },
                          "hemoglobin_g_dl": {
                            "description": "Admission hemoglobin in g/dL (3-22). Required when model is lab. Steyerberg 2008: <9 → 3; 9–11.9 → 2; 12–14.9 → 1; ≥15 → 0. Ignored on core and extended. magent does not assay hemoglobin.",
                            "type": "number"
                          },
                          "hypotension": {
                            "description": "Hypotension yes or suspected (Steyerberg 2008). Required when model is extended or lab. true adds 2; false adds 0. Ignored on model=core.",
                            "type": "boolean"
                          },
                          "hypoxia": {
                            "description": "Hypoxia yes or suspected (Steyerberg 2008). Required when model is extended or lab. true adds 1; false adds 0. Ignored on model=core.",
                            "type": "boolean"
                          },
                          "marshall_ct": {
                            "description": "Marshall CT class I–VI (Steyerberg 2008). Required when model is extended or lab. I → −2; II → 0; III, IV, V, or VI → 2. Ignored on model=core. magent does not read the scan.",
                            "enum": [
                              "I",
                              "II",
                              "III",
                              "IV",
                              "V",
                              "VI"
                            ],
                            "type": "string"
                          },
                          "model": {
                            "description": "Steyerberg 2008 IMPACT model. core uses age, motor, and pupils. extended adds hypoxia, hypotension, Marshall CT, tSAH, and EDH. lab adds glucose mmol/L and hemoglobin g/dL. Required; magent does not pick a model.",
                            "enum": [
                              "core",
                              "extended",
                              "lab"
                            ],
                            "type": "string"
                          },
                          "motor_score": {
                            "description": "GCS motor integer 1-6 or 9 (untestable/missing) as in Steyerberg 2008. 1 or 2 (none/extension) → 6; 3 (abnormal flexion) → 4; 4 (normal flexion) → 2; 5 or 6 (localizes/obeys) → 0; 9 → 3.",
                            "type": "integer"
                          },
                          "pupillary_reactivity": {
                            "description": "Pupillary reactivity (Steyerberg 2008). both → 0; one → 2; none → 4. Caller-assigned. magent does not examine pupils.",
                            "enum": [
                              "both",
                              "one",
                              "none"
                            ],
                            "type": "string"
                          },
                          "tsah": {
                            "description": "Traumatic subarachnoid hemorrhage (Steyerberg 2008). Required when model is extended or lab. true adds 2; false adds 0. Ignored on model=core.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "model",
                          "age",
                          "motor_score",
                          "pupillary_reactivity"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}