MAGENT

Emergency · LIVE

BRUE definition

BRUE

Apply the Tieder 2016 AAP BRUE definition and return feature_count (0-4) and whether the published definition box holds (brue).

LIVE $0.005 USDC GET /api/calc/brue

Markdown: /docs/brue.md · Canonical: https://magentlab.com/docs/brue

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

What it computes

Apply the Tieder 2016 AAP BRUE definition and return feature_count (0-4) and whether the published definition box holds (brue).

When to use

When an agent already has the seven caller-assigned Tieder 2016 BRUE definition flags and needs whether the published definition box holds. magent does not examine the infant.

When not to use

  • Not a medical device.
  • Not a diagnosis. magent does not diagnose BRUE, ALTE, or SIDS.
  • The caller assigns the seven flags. magent does not examine the infant or take a history.
  • This tool is the Tieder 2016 AAP BRUE definition box only. It does not implement the lower-risk subset or the lower-risk management key-action statements. BRUE replaced ALTE; this tool is not an ALTE diagnosis and is not a SIDS diagnosis.

Formula

brue iff age_under_1_year and sudden_brief_now_resolved and unexplained_after_history_exam and feature_count >= 1; feature_count counts cyanosis_or_pallor, absent_decreased_irregular_breathing, marked_tone_change, and altered_responsiveness (Tieder 2016 AAP BRUE definition)

Citation

Title
Brief Resolved Unexplained Events (Formerly Apparent Life-Threatening Events) and Evaluation of Lower-Risk Infants
Authors
Tieder JS, Bonkowsky JL, Etzel RA, et al; American Academy of Pediatrics Subcommittee on Apparent Life-Threatening Events
Source
Pediatrics. 2016;137(5):e20160590
DOI
10.1542/peds.2016-0590

Worked example

Infant, resolved, unexplained, cyanosis only

Given: absent_decreased_irregular_breathing=falseage_under_1_year=truealtered_responsiveness=falsecyanosis_or_pallor=truemarked_tone_change=falsesudden_brief_now_resolved=trueunexplained_after_history_exam=true

  1. Age under 1 year is true
  2. Sudden, brief, and now resolved is true
  3. Cyanosis or pallor is true; breathing, tone, and responsiveness features are false (feature_count 1)
  4. Unexplained after history and exam is true
  5. brue is true

Infant, resolved, unexplained, no event features

Given: absent_decreased_irregular_breathing=falseage_under_1_year=truealtered_responsiveness=falsecyanosis_or_pallor=falsemarked_tone_change=falsesudden_brief_now_resolved=trueunexplained_after_history_exam=true

  1. Age under 1 year, sudden brief now resolved, and unexplained after history and exam hold
  2. All four event features are false (feature_count 0)
  3. brue is false

Also searched as

  • Brief Resolved Unexplained Event
  • BRUE AAP
  • Tieder 2016 BRUE
  • apparent life-threatening event
  • AAP BRUE guideline
  • brief resolved unexplained events
  • BRUE definition
  • ALTE replacement BRUE

Try

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

/api/calc/brue?age_under_1_year=true&sudden_brief_now_resolved=true&cyanosis_or_pallor=true&absent_decreased_irregular_breathing=false&marked_tone_change=false&altered_responsiveness=false&unexplained_after_history_exam=true

Full URL: https://api.magentlab.com/api/calc/brue?age_under_1_year=true&sudden_brief_now_resolved=true&cyanosis_or_pallor=true&absent_decreased_irregular_breathing=false&marked_tone_change=false&altered_responsiveness=false&unexplained_after_history_exam=true

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/brue?age_under_1_year=true&sudden_brief_now_resolved=true&cyanosis_or_pallor=true&absent_decreased_irregular_breathing=false&marked_tone_change=false&altered_responsiveness=false&unexplained_after_history_exam=true"

Parameters

Name Type Required Description
age_under_1_year boolean required Infant younger than 1 year as assigned by the caller (Tieder 2016 BRUE definition). true or false. magent does not examine the infant or take an age in days.
sudden_brief_now_resolved boolean required Observer reports a sudden, brief, and now resolved episode as assigned by the caller. true or false. magent does not take a history.
cyanosis_or_pallor boolean required Cyanosis or pallor during the episode (one of four event features; at least one required). true or false as assigned by the caller. magent does not examine the infant.
absent_decreased_irregular_breathing boolean required Absent, decreased, or irregular breathing during the episode (one of four event features; at least one required). true or false as assigned by the caller.
marked_tone_change boolean required Marked change in tone (hyper- or hypotonia) during the episode (one of four event features; at least one required). true or false as assigned by the caller.
altered_responsiveness boolean required Altered level of responsiveness during the episode (one of four event features; at least one required). true or false as assigned by the caller.
unexplained_after_history_exam boolean required No explanation remains after appropriate history and physical examination as assigned by the caller. true means unexplained and is required for BRUE. true or false. magent does not examine the infant.

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/brue 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": [
    {
      "absent_decreased_irregular_breathing": "false",
      "age_under_1_year": "true",
      "altered_responsiveness": "false",
      "cyanosis_or_pallor": "true",
      "marked_tone_change": "false",
      "sudden_brief_now_resolved": "true",
      "unexplained_after_history_exam": "true"
    },
    {
      "absent_decreased_irregular_breathing": "false",
      "age_under_1_year": "true",
      "altered_responsiveness": "false",
      "cyanosis_or_pallor": "true",
      "marked_tone_change": "false",
      "sudden_brief_now_resolved": "true",
      "unexplained_after_history_exam": "true"
    }
  ]
}

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/brue",
  "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": "Tieder JS, Bonkowsky JL, Etzel RA, et al; American Academy of Pediatrics Subcommittee on Apparent Life-Threatening Events",
        "doi": "10.1542/peds.2016-0590",
        "id": "tieder-2016",
        "pmid": "27244835",
        "source": "Pediatrics. 2016;137(5):e20160590",
        "title": "Brief Resolved Unexplained Events (Formerly Apparent Life-Threatening Events) and Evaluation of Lower-Risk Infants"
      },
      "formula": "brue",
      "formula_expression": "brue iff age_under_1_year and sudden_brief_now_resolved and unexplained_after_history_exam and feature_count >= 1; feature_count counts cyanosis_or_pallor, absent_decreased_irregular_breathing, marked_tone_change, and altered_responsiveness (Tieder 2016 AAP BRUE definition)",
      "criteria": [
        {
          "factor": "age_under_1_year",
          "met": true
        },
        {
          "factor": "sudden_brief_now_resolved",
          "met": true
        },
        {
          "factor": "cyanosis_or_pallor",
          "met": true
        },
        {
          "factor": "absent_decreased_irregular_breathing",
          "met": false
        },
        {
          "factor": "marked_tone_change",
          "met": false
        },
        {
          "factor": "altered_responsiveness",
          "met": false
        },
        {
          "factor": "unexplained_after_history_exam",
          "met": true
        },
        {
          "value": 1,
          "factor": "feature_count_ge_1",
          "met": true
        }
      ],
      "brue": true,
      "feature_count": 1
    },
    {
      "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": "Tieder JS, Bonkowsky JL, Etzel RA, et al; American Academy of Pediatrics Subcommittee on Apparent Life-Threatening Events",
        "doi": "10.1542/peds.2016-0590",
        "id": "tieder-2016",
        "pmid": "27244835",
        "source": "Pediatrics. 2016;137(5):e20160590",
        "title": "Brief Resolved Unexplained Events (Formerly Apparent Life-Threatening Events) and Evaluation of Lower-Risk Infants"
      },
      "formula": "brue",
      "formula_expression": "brue iff age_under_1_year and sudden_brief_now_resolved and unexplained_after_history_exam and feature_count >= 1; feature_count counts cyanosis_or_pallor, absent_decreased_irregular_breathing, marked_tone_change, and altered_responsiveness (Tieder 2016 AAP BRUE definition)",
      "criteria": [
        {
          "factor": "age_under_1_year",
          "met": true
        },
        {
          "factor": "sudden_brief_now_resolved",
          "met": true
        },
        {
          "factor": "cyanosis_or_pallor",
          "met": true
        },
        {
          "factor": "absent_decreased_irregular_breathing",
          "met": false
        },
        {
          "factor": "marked_tone_change",
          "met": false
        },
        {
          "factor": "altered_responsiveness",
          "met": false
        },
        {
          "factor": "unexplained_after_history_exam",
          "met": true
        },
        {
          "value": 1,
          "factor": "feature_count_ge_1",
          "met": true
        }
      ],
      "brue": true,
      "feature_count": 1
    }
  ]
}

Response

Field Type Description
formula string brue
formula_expression string Tieder 2016 AAP BRUE definition box: infant younger than 1 year, sudden brief now resolved, unexplained after history and exam, and at least 1 of 4 event features
feature_count integer Count of true event features among cyanosis or pallor, absent/decreased/irregular breathing, marked tone change, and altered responsiveness (0-4)
brue boolean true only when age under 1 year, sudden brief now resolved, unexplained after history and exam, and feature_count >= 1 all hold. Not a diagnosis. Not ALTE. Not SIDS.
criteria array Per-factor rows with factor and met; feature_count_ge_1 includes value 0-4
citation object Tieder 2016 Pediatrics AAP guideline 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": "Tieder JS, Bonkowsky JL, Etzel RA, et al; American Academy of Pediatrics Subcommittee on Apparent Life-Threatening Events",
    "doi": "10.1542/peds.2016-0590",
    "id": "tieder-2016",
    "pmid": "27244835",
    "source": "Pediatrics. 2016;137(5):e20160590",
    "title": "Brief Resolved Unexplained Events (Formerly Apparent Life-Threatening Events) and Evaluation of Lower-Risk Infants"
  },
  "formula": "brue",
  "formula_expression": "brue iff age_under_1_year and sudden_brief_now_resolved and unexplained_after_history_exam and feature_count >= 1; feature_count counts cyanosis_or_pallor, absent_decreased_irregular_breathing, marked_tone_change, and altered_responsiveness (Tieder 2016 AAP BRUE definition)",
  "criteria": [
    {
      "factor": "age_under_1_year",
      "met": true
    },
    {
      "factor": "sudden_brief_now_resolved",
      "met": true
    },
    {
      "factor": "cyanosis_or_pallor",
      "met": true
    },
    {
      "factor": "absent_decreased_irregular_breathing",
      "met": false
    },
    {
      "factor": "marked_tone_change",
      "met": false
    },
    {
      "factor": "altered_responsiveness",
      "met": false
    },
    {
      "factor": "unexplained_after_history_exam",
      "met": true
    },
    {
      "value": 1,
      "factor": "feature_count_ge_1",
      "met": true
    }
  ],
  "brue": true,
  "feature_count": 1
}

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

  • Rochester criteria — Apply the Dagan 1985 Rochester criteria and return low_risk only when every published criterion holds for an infant younger than 3 months.
  • 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.

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.