MAGENT

Emergency · LIVE

PECARN pediatric IAI

Apply the Holmes 2013 PECARN seven-variable prediction rule and return whether the child is at very low risk of intra-abdominal injury requiring acute intervention (all seven caller-assigned findings absent). Does not order a CT.

LIVE $0.005 USDC GET /api/calc/pecarn_iai

Markdown: /docs/pecarn-iai.md · Canonical: https://magentlab.com/docs/pecarn-iai

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Apply the Holmes 2013 PECARN seven-variable prediction rule and return whether the child is at very low risk of intra-abdominal injury requiring acute intervention (all seven caller-assigned findings absent). Does not order a CT.

When to use

When an agent has caller-assigned findings after blunt torso trauma in a child and needs the Holmes 2013 PECARN IAI rule, not PECARN head CT (pecarn-head).

When not to use

  • Not a medical device. Not a diagnosis. magent does not examine the patient.
  • This tool is the Holmes 2013 PECARN seven-variable IAI prediction rule only. It is not PECARN head CT (pecarn-head) and does not implement the 2024 Lancet validation as a second rule.
  • Very low risk of IAI requiring acute intervention only when all seven caller-assigned findings are absent. Presence of a criterion does not mandate CT. Do not order a CT from this tool.
  • The caller assigns all flags, including GCS <14 (not the PECARN head GCS <=14 flag). magent does not take a GCS integer or classify mechanism.

Formula

very_low_risk_iai_intervention iff no abdominal_wall_trauma_or_seatbelt_sign and no gcs_less_than_14 and no abdominal_tenderness and no thoracic_wall_trauma and no abdominal_pain and no decreased_breath_sounds and no vomiting

Citation

Title
Identifying children at very low risk of clinically important blunt abdominal injuries
Authors
Holmes JF, Lillis K, Monroe D, Borgialli D, Kerrey BT, Mahajan P, Adelgais K, Ellison AM, Yen K, Atabaki S, Menaker J, Bonsu B, Quayle KS, Garcia M, Rogers A, Blumberg S, Lee L, Tunik M, Kooistra J, Kwok M, Cook LJ, Dean JM, Sokolove PE, Wisner DH, Ehrlich P, Cooper A, Dayan PS, Wootton-Gorges S, Kuppermann N
Source
Ann Emerg Med. 2013;62(2):107-116.e2
DOI
10.1016/j.annemergmed.2012.11.009

Worked example

All seven findings absent

Given: abdominal_pain=falseabdominal_tenderness=falseabdominal_wall_trauma_or_seatbelt_sign=falsedecreased_breath_sounds=falsegcs_less_than_14=falsethoracic_wall_trauma=falsevomiting=false

  1. No abdominal wall trauma or seatbelt sign, GCS not <14, no abdominal tenderness, no thoracic wall trauma, no abdominal pain, no decreased breath sounds, no vomiting
  2. very_low_risk_iai_intervention is true; this tool does not order a CT

Seatbelt sign alone is not very low risk

Given: abdominal_pain=falseabdominal_tenderness=falseabdominal_wall_trauma_or_seatbelt_sign=truedecreased_breath_sounds=falsegcs_less_than_14=falsethoracic_wall_trauma=falsevomiting=false

  1. Abdominal wall trauma or seatbelt sign is present
  2. very_low_risk_iai_intervention is false. Presence of this criterion does not mandate CT

Also searched as

  • PECARN IAI
  • PECARN abdominal injury
  • Holmes 2013 abdominal
  • pediatric intra-abdominal injury
  • PECARN blunt abdominal trauma
  • IAI requiring intervention
  • children very low risk abdominal injury
  • PECARN pediatric IAI algorithm

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/pecarn_iai?abdominal_wall_trauma_or_seatbelt_sign=false&gcs_less_than_14=false&abdominal_tenderness=false&thoracic_wall_trauma=false&abdominal_pain=false&decreased_breath_sounds=false&vomiting=false

Full URL: https://api.magentlab.com/api/calc/pecarn_iai?abdominal_wall_trauma_or_seatbelt_sign=false&gcs_less_than_14=false&abdominal_tenderness=false&thoracic_wall_trauma=false&abdominal_pain=false&decreased_breath_sounds=false&vomiting=false

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/pecarn_iai?abdominal_wall_trauma_or_seatbelt_sign=false&gcs_less_than_14=false&abdominal_tenderness=false&thoracic_wall_trauma=false&abdominal_pain=false&decreased_breath_sounds=false&vomiting=false"

Parameters

Name Type Required Description
abdominal_wall_trauma_or_seatbelt_sign boolean required Evidence of abdominal wall trauma or seatbelt sign as assigned by the caller (Holmes 2013 first-ranked criterion). true means the finding is present and very_low_risk_iai_intervention is false. true or false. magent does not examine the abdomen.
gcs_less_than_14 boolean required GCS score <14 as assigned by the caller (paper: GCS <14; equivalently GCS >13 is the low-risk direction). true means GCS <14 and very_low_risk_iai_intervention is false. true or false. This is not the PECARN head GCS <=14 flag. magent does not take a GCS integer.
abdominal_tenderness boolean required Abdominal tenderness as assigned by the caller. true means tenderness is present and very_low_risk_iai_intervention is false. true or false. magent does not palpate the abdomen.
thoracic_wall_trauma boolean required Evidence of thoracic wall trauma as assigned by the caller. true means the finding is present and very_low_risk_iai_intervention is false. true or false. magent does not examine the chest.
abdominal_pain boolean required Complaints of abdominal pain as assigned by the caller. true means pain is present and very_low_risk_iai_intervention is false. true or false. magent does not take a pain score.
decreased_breath_sounds boolean required Decreased breath sounds as assigned by the caller. true means decreased breath sounds are present and very_low_risk_iai_intervention is false. true or false. magent does not auscultate the chest.
vomiting boolean required History of vomiting as assigned by the caller. true means vomiting is present and very_low_risk_iai_intervention is false. true or false. magent does not take a vomit count.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/pecarn_iai Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "abdominal_pain": "false",
      "abdominal_tenderness": "false",
      "abdominal_wall_trauma_or_seatbelt_sign": "false",
      "decreased_breath_sounds": "false",
      "gcs_less_than_14": "false",
      "thoracic_wall_trauma": "false",
      "vomiting": "false"
    },
    {
      "abdominal_pain": "false",
      "abdominal_tenderness": "false",
      "abdominal_wall_trauma_or_seatbelt_sign": "false",
      "decreased_breath_sounds": "false",
      "gcs_less_than_14": "false",
      "thoracic_wall_trauma": "false",
      "vomiting": "false"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/pecarn_iai",
  "items": [
    {
      "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.",
      "citation": {
        "authors": "Holmes JF, Lillis K, Monroe D, Borgialli D, Kerrey BT, Mahajan P, Adelgais K, Ellison AM, Yen K, Atabaki S, Menaker J, Bonsu B, Quayle KS, Garcia M, Rogers A, Blumberg S, Lee L, Tunik M, Kooistra J, Kwok M, Cook LJ, Dean JM, Sokolove PE, Wisner DH, Ehrlich P, Cooper A, Dayan PS, Wootton-Gorges S, Kuppermann N",
        "doi": "10.1016/j.annemergmed.2012.11.009",
        "id": "holmes-2013",
        "source": "Ann Emerg Med. 2013;62(2):107-116.e2",
        "title": "Identifying children at very low risk of clinically important blunt abdominal injuries"
      },
      "formula": "pecarn_iai",
      "formula_expression": "very_low_risk_iai_intervention iff no abdominal_wall_trauma_or_seatbelt_sign and no gcs_less_than_14 and no abdominal_tenderness and no thoracic_wall_trauma and no abdominal_pain and no decreased_breath_sounds and no vomiting",
      "criteria": [
        {
          "factor": "no_abdominal_wall_trauma_or_seatbelt_sign",
          "met": true
        },
        {
          "factor": "no_gcs_less_than_14",
          "met": true
        },
        {
          "factor": "no_abdominal_tenderness",
          "met": true
        },
        {
          "factor": "no_thoracic_wall_trauma",
          "met": true
        },
        {
          "factor": "no_abdominal_pain",
          "met": true
        },
        {
          "factor": "no_decreased_breath_sounds",
          "met": true
        },
        {
          "factor": "no_vomiting",
          "met": true
        }
      ],
      "very_low_risk_iai_intervention": true
    },
    {
      "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.",
      "citation": {
        "authors": "Holmes JF, Lillis K, Monroe D, Borgialli D, Kerrey BT, Mahajan P, Adelgais K, Ellison AM, Yen K, Atabaki S, Menaker J, Bonsu B, Quayle KS, Garcia M, Rogers A, Blumberg S, Lee L, Tunik M, Kooistra J, Kwok M, Cook LJ, Dean JM, Sokolove PE, Wisner DH, Ehrlich P, Cooper A, Dayan PS, Wootton-Gorges S, Kuppermann N",
        "doi": "10.1016/j.annemergmed.2012.11.009",
        "id": "holmes-2013",
        "source": "Ann Emerg Med. 2013;62(2):107-116.e2",
        "title": "Identifying children at very low risk of clinically important blunt abdominal injuries"
      },
      "formula": "pecarn_iai",
      "formula_expression": "very_low_risk_iai_intervention iff no abdominal_wall_trauma_or_seatbelt_sign and no gcs_less_than_14 and no abdominal_tenderness and no thoracic_wall_trauma and no abdominal_pain and no decreased_breath_sounds and no vomiting",
      "criteria": [
        {
          "factor": "no_abdominal_wall_trauma_or_seatbelt_sign",
          "met": true
        },
        {
          "factor": "no_gcs_less_than_14",
          "met": true
        },
        {
          "factor": "no_abdominal_tenderness",
          "met": true
        },
        {
          "factor": "no_thoracic_wall_trauma",
          "met": true
        },
        {
          "factor": "no_abdominal_pain",
          "met": true
        },
        {
          "factor": "no_decreased_breath_sounds",
          "met": true
        },
        {
          "factor": "no_vomiting",
          "met": true
        }
      ],
      "very_low_risk_iai_intervention": true
    }
  ]
}

Response

Field Type Description
formula string pecarn_iai
formula_expression string Holmes 2013 seven-variable very-low-risk prediction rule
very_low_risk_iai_intervention boolean true only when all seven caller-assigned findings are absent. Does not order a CT. Presence of a criterion does not mandate CT. Not a diagnosis.
criteria array Per-factor rows with factor and met; met is true when that Holmes 2013 finding is absent (the very-low-risk item holds)
citation object Holmes 2013 Ann Emerg Med citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "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.",
  "citation": {
    "authors": "Holmes JF, Lillis K, Monroe D, Borgialli D, Kerrey BT, Mahajan P, Adelgais K, Ellison AM, Yen K, Atabaki S, Menaker J, Bonsu B, Quayle KS, Garcia M, Rogers A, Blumberg S, Lee L, Tunik M, Kooistra J, Kwok M, Cook LJ, Dean JM, Sokolove PE, Wisner DH, Ehrlich P, Cooper A, Dayan PS, Wootton-Gorges S, Kuppermann N",
    "doi": "10.1016/j.annemergmed.2012.11.009",
    "id": "holmes-2013",
    "source": "Ann Emerg Med. 2013;62(2):107-116.e2",
    "title": "Identifying children at very low risk of clinically important blunt abdominal injuries"
  },
  "formula": "pecarn_iai",
  "formula_expression": "very_low_risk_iai_intervention iff no abdominal_wall_trauma_or_seatbelt_sign and no gcs_less_than_14 and no abdominal_tenderness and no thoracic_wall_trauma and no abdominal_pain and no decreased_breath_sounds and no vomiting",
  "criteria": [
    {
      "factor": "no_abdominal_wall_trauma_or_seatbelt_sign",
      "met": true
    },
    {
      "factor": "no_gcs_less_than_14",
      "met": true
    },
    {
      "factor": "no_abdominal_tenderness",
      "met": true
    },
    {
      "factor": "no_thoracic_wall_trauma",
      "met": true
    },
    {
      "factor": "no_abdominal_pain",
      "met": true
    },
    {
      "factor": "no_decreased_breath_sounds",
      "met": true
    },
    {
      "factor": "no_vomiting",
      "met": true
    }
  ],
  "very_low_risk_iai_intervention": true
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_flag boolean clinical flags must be true or false Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • PECARN pediatric head CT — Apply the Kuppermann 2009 PECARN prediction trees and return high, intermediate, or low risk of clinically important brain injury from caller-assigned findings after pediatric head trauma.
  • NEXUS Chest CT — Apply the Rodriguez 2015 NEXUS Chest CT-Major and Chest CT-All decision instruments and return whether each is negative (all of that instrument's caller-assigned criteria absent). Does not order a CT.

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.