# Pediatric Trauma Score (PTS)

PTS

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/pts`
HTML: https://magentlab.com/docs/pts
Markdown: https://magentlab.com/docs/pts.md

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

## What it computes

Compute the Tepas 1987 Pediatric Trauma Score from caller-assigned weight, airway, systolic BP, CNS, skeletal, and wound grades.

## When to use

When an agent needs the published Tepas 1987 six-item Pediatric Trauma Score and must not substitute ISS or RTS or treat the total as a triage order.

## When not to use

- Not a medical device and not a triage, trauma-activation, or transport order. magent does not examine the child.
- Tepas 1987 Pediatric Trauma Score only. Not ISS, not RTS, and not a triage order of care.
- Weight is the size item (>20 kg +2, 10–20 kg +1, <10 kg −1). Adult age is not required.
- Airway, CNS, skeletal, and wound grades are caller-assigned tokens. magent does not inspect the airway or skeleton.
- score_le_8 follows the paper's association of scores ≤8 with significant mortality and the need for trauma-center care. It is not a disposition.

## Formula

```
PTS = weight_points + airway_points + sbp_points + cns_points + skeletal_points + wound_points; Tepas 1987; each +2/+1/−1; total −6 to +12
```

## Citation

[The pediatric trauma score as a predictor of injury severity in the injured child](https://doi.org/10.1016/s0022-3468(87)80006-4)
Tepas JJ, Mollitt DL, Talbert JL, Bryant M
J Pediatr Surg. 1987;22(1):14-18
DOI: [10.1016/s0022-3468(87)80006-4](https://doi.org/10.1016/s0022-3468(87)80006-4)

## Worked example

### All +2 grades, score 12

Given: `airway=normal, cns=awake, skeletal=none, systolic_mm_hg=100, weight_kg=25, wound=none`

1. Weight 25 kg → +2; airway normal → +2; SBP 100 → +2; CNS awake → +2; skeletal none → +2; wound none → +2
2. Score = 12 (max 12); score_le_8 = false


### All +1 grades, score 6

Given: `airway=maintainable, cns=obtunded, skeletal=closed, systolic_mm_hg=70, weight_kg=15, wound=minor`

1. Weight 15 kg → +1; airway maintainable → +1; SBP 70 → +1; CNS obtunded → +1; skeletal closed → +1; wound minor → +1
2. Score = 6 (min −6, max 12); score_le_8 = true


## Also searched as

- pediatric trauma score
- PTS trauma
- Tepas PTS
- paediatric trauma score
- Tepas 1987
- pediatric trauma
- child trauma score

## Parameters

- `weight_kg` (number, optional): Weight in kilograms (1-500), the Tepas 1987 size item. Provide weight_kg or weight_lb. >20 → +2; 10-20 inclusive → +1; <10 → −1.
- `weight_lb` (number, optional): Weight in pounds (2-1100). Converted as kg = lb * 0.45359237.
- `airway` (string, required): Caller-assigned airway (normal, maintainable, or unmaintainable). Tepas 1987: normal → +2, maintainable → +1, unmaintainable → −1. magent does not examine the airway.
- `systolic_mm_hg` (integer, required): Systolic blood pressure in mm Hg (integer 0-300). Tepas 1987: >90 → +2; 50-90 inclusive → +1; <50 → −1. 0 is a published −1 band.
- `cns` (string, required): Caller-assigned CNS (awake, obtunded, or coma). Tepas 1987: awake → +2, obtunded → +1, coma → −1. magent does not examine the child.
- `skeletal` (string, required): Caller-assigned skeletal injury (none, closed, or open_or_multiple). Tepas 1987: none → +2, closed → +1, open_or_multiple → −1. magent does not assign fractures.
- `wound` (string, required): Caller-assigned cutaneous wound (none, minor, or major). Tepas 1987: none → +2, minor → +1, major → −1. magent does not inspect wounds.

## 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.

Method: `POST /api/calc/pts`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: 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:

```json
{
  "items": [
    {
      "airway": "normal",
      "cns": "awake",
      "skeletal": "none",
      "systolic_mm_hg": "100",
      "weight_kg": "25",
      "wound": "none"
    },
    {
      "airway": "normal",
      "cns": "awake",
      "skeletal": "none",
      "systolic_mm_hg": "100",
      "weight_kg": "25",
      "wound": "none"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/pts

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/pts",
  "items": [
    {
      "components": [
        {
          "value": 25.0,
          "factor": "weight_kg",
          "points": 2,
          "present": true
        },
        {
          "value": "normal",
          "factor": "airway",
          "points": 2,
          "present": true
        },
        {
          "value": 100,
          "factor": "systolic_mm_hg",
          "points": 2,
          "present": true
        },
        {
          "value": "awake",
          "factor": "cns",
          "points": 2,
          "present": true
        },
        {
          "value": "none",
          "factor": "skeletal",
          "points": 2,
          "present": true
        },
        {
          "value": "none",
          "factor": "wound",
          "points": 2,
          "present": 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": "Tepas JJ, Mollitt DL, Talbert JL, Bryant M",
        "doi": "10.1016/s0022-3468(87)80006-4",
        "id": "tepas-1987",
        "pmid": "3102714",
        "source": "J Pediatr Surg. 1987;22(1):14-18",
        "title": "The pediatric trauma score as a predictor of injury severity in the injured child"
      },
      "formula": "pts",
      "formula_expression": "PTS = weight_points + airway_points + sbp_points + cns_points + skeletal_points + wound_points; Tepas 1987; each +2/+1/−1; total −6 to +12",
      "systolic_mm_hg": 100,
      "max_score": 12,
      "score": 12,
      "weight_kg": 25.0,
      "min_score": -6,
      "airway": "normal",
      "cns": "awake",
      "score_le_8": false,
      "skeletal": "none",
      "wound": "none"
    },
    {
      "components": [
        {
          "value": 25.0,
          "factor": "weight_kg",
          "points": 2,
          "present": true
        },
        {
          "value": "normal",
          "factor": "airway",
          "points": 2,
          "present": true
        },
        {
          "value": 100,
          "factor": "systolic_mm_hg",
          "points": 2,
          "present": true
        },
        {
          "value": "awake",
          "factor": "cns",
          "points": 2,
          "present": true
        },
        {
          "value": "none",
          "factor": "skeletal",
          "points": 2,
          "present": true
        },
        {
          "value": "none",
          "factor": "wound",
          "points": 2,
          "present": 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": "Tepas JJ, Mollitt DL, Talbert JL, Bryant M",
        "doi": "10.1016/s0022-3468(87)80006-4",
        "id": "tepas-1987",
        "pmid": "3102714",
        "source": "J Pediatr Surg. 1987;22(1):14-18",
        "title": "The pediatric trauma score as a predictor of injury severity in the injured child"
      },
      "formula": "pts",
      "formula_expression": "PTS = weight_points + airway_points + sbp_points + cns_points + skeletal_points + wound_points; Tepas 1987; each +2/+1/−1; total −6 to +12",
      "systolic_mm_hg": 100,
      "max_score": 12,
      "score": 12,
      "weight_kg": 25.0,
      "min_score": -6,
      "airway": "normal",
      "cns": "awake",
      "score_le_8": false,
      "skeletal": "none",
      "wound": "none"
    }
  ]
}
```

## Response fields

- `formula` (string): pts
- `formula_expression` (string): Exact expression used
- `score` (integer): PTS total −6 to +12 (higher is better)
- `max_score` (integer): Always 12
- `min_score` (integer): Always −6
- `score_le_8` (boolean): true when score is ≤8. Tepas 1987 associated scores ≤8 with significant mortality and the need for trauma-center care. Not a triage order.
- `weight_kg` (number): Normalized weight in kg
- `airway` (string): Caller-assigned airway used
- `systolic_mm_hg` (integer): Systolic BP used, mm Hg
- `cns` (string): Caller-assigned CNS used
- `skeletal` (string): Caller-assigned skeletal grade used
- `wound` (string): Caller-assigned wound grade used
- `components` (array): Per-item points (always present)
- `citation` (object): Tepas 1987 J Pediatr Surg citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 25.0,
      "factor": "weight_kg",
      "points": 2,
      "present": true
    },
    {
      "value": "normal",
      "factor": "airway",
      "points": 2,
      "present": true
    },
    {
      "value": 100,
      "factor": "systolic_mm_hg",
      "points": 2,
      "present": true
    },
    {
      "value": "awake",
      "factor": "cns",
      "points": 2,
      "present": true
    },
    {
      "value": "none",
      "factor": "skeletal",
      "points": 2,
      "present": true
    },
    {
      "value": "none",
      "factor": "wound",
      "points": 2,
      "present": 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": "Tepas JJ, Mollitt DL, Talbert JL, Bryant M",
    "doi": "10.1016/s0022-3468(87)80006-4",
    "id": "tepas-1987",
    "pmid": "3102714",
    "source": "J Pediatr Surg. 1987;22(1):14-18",
    "title": "The pediatric trauma score as a predictor of injury severity in the injured child"
  },
  "formula": "pts",
  "formula_expression": "PTS = weight_points + airway_points + sbp_points + cns_points + skeletal_points + wound_points; Tepas 1987; each +2/+1/−1; total −6 to +12",
  "systolic_mm_hg": 100,
  "max_score": 12,
  "score": 12,
  "weight_kg": 25.0,
  "min_score": -6,
  "airway": "normal",
  "cns": "awake",
  "score_le_8": false,
  "skeletal": "none",
  "wound": "none"
}
```

## Errors

- HTTP 400 `invalid_weight`: weight_kg (1-500) or weight_lb (2-1100) is required Returned before settlement; you are not charged.
- HTTP 400 `invalid_pts_airway`: airway must be normal, maintainable, or unmaintainable (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged.
- HTTP 400 `invalid_rts_systolic`: systolic_mm_hg must be an integer from 0 to 300. Returned before settlement; you are not charged.
- HTTP 400 `invalid_pts_cns`: cns must be awake, obtunded, or coma (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged.
- HTTP 400 `invalid_pts_skeletal`: skeletal must be none, closed, or open_or_multiple (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged.
- HTTP 400 `invalid_pts_wound`: wound must be none, minor, or major (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [ISS](https://magentlab.com/docs/iss) — Compute the Baker 1974 Injury Severity Score as the sum of squares of the three highest caller-assigned AIS body-region grades, or 75 if any region is AIS 6.

## 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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
