Emergency · LIVE
Pediatric Trauma Score (PTS)
PTS
Compute the Tepas 1987 Pediatric Trauma Score from caller-assigned weight, airway, systolic BP, CNS, skeletal, and wound grades.
Markdown: /docs/pts.md · Canonical: https://magentlab.com/docs/pts
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
- Authors
- Tepas JJ, Mollitt DL, Talbert JL, Bryant M
- Source
- J Pediatr Surg. 1987;22(1):14-18
Worked example
All +2 grades, score 12
Given:
airway=normalcns=awakeskeletal=nonesystolic_mm_hg=100weight_kg=25wound=none
- Weight 25 kg → +2; airway normal → +2; SBP 100 → +2; CNS awake → +2; skeletal none → +2; wound none → +2
- Score = 12 (max 12); score_le_8 = false
All +1 grades, score 6
Given:
airway=maintainablecns=obtundedskeletal=closedsystolic_mm_hg=70weight_kg=15wound=minor
- Weight 15 kg → +1; airway maintainable → +1; SBP 70 → +1; CNS obtunded → +1; skeletal closed → +1; wound minor → +1
- 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
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
/api/calc/pts?weight_kg=25&airway=normal&systolic_mm_hg=100&cns=awake&skeletal=none&wound=none
Full URL: https://api.magentlab.com/api/calc/pts?weight_kg=25&airway=normal&systolic_mm_hg=100&cns=awake&skeletal=none&wound=none
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/pts?weight_kg=25&airway=normal&systolic_mm_hg=100&cns=awake&skeletal=none&wound=none"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
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 · normal, maintainable, unmaintainable | 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 · awake, obtunded, coma | Caller-assigned CNS (awake, obtunded, or coma). Tepas 1987: awake → +2, obtunded → +1, coma → −1. magent does not examine the child. |
skeletal |
string | required · none, closed, open_or_multiple | 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 · none, minor, major | 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.
- 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": [
{
"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"
}
]
}
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/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
| Field | Type | Description |
|---|---|---|
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
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"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"
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_weight |
weight_kg (1-500) or weight_lb (2-1100) is required Returned before settlement; you are not charged. |
| 400 | invalid_pts_airway |
airway must be normal, maintainable, or unmaintainable (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged. |
| 400 | invalid_rts_systolic |
systolic_mm_hg must be an integer from 0 to 300. Returned before settlement; you are not charged. |
| 400 | invalid_pts_cns |
cns must be awake, obtunded, or coma (Tepas 1987 Pediatric Trauma Score). Returned before settlement; you are not charged. |
| 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. |
| 400 | invalid_pts_wound |
wound must be none, minor, or major (Tepas 1987 Pediatric Trauma Score). 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
- 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. 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.