Emergency · LIVE
ESAS-r (Watanabe)
ESAS-r
Sum nine caller-assigned Watanabe 2011 ESAS-r integers (0-10) and return the total (max 90). Does not invent severity classes for the sum.
Markdown: /docs/esas-r.md · Canonical: https://magentlab.com/docs/esas-r
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum nine caller-assigned Watanabe 2011 ESAS-r integers (0-10) and return the total (max 90). Does not invent severity classes for the sum.
When to use
When an agent has already assigned Watanabe 2011 ESAS-r 0-10 integers for the nine core items (now) and needs the published total, not a diagnosis, treatment order, Bruera 1991 ESAS, or ESAS-r Renal.
When not to use
- Not a medical device and not a diagnosis or treatment order.
- Each of the nine items is a caller-assigned integer 0-10 (0 none/best, 10 worst) for how the person feels now. magent does not administer the form.
- This is Watanabe 2011 ESAS-r only (nine core items; max 90). magent does not score Bruera 1991 original ESAS. Itch, sleep, and restless legs are not core ESAS-r items (those appear on ESAS-r Renal). The optional other-problem line is not a required input.
- Watanabe 2011 published the nine 0-10 ratings and did not publish severity classes for a summed total. This tool returns score and max_score only. It does not invent mild, moderate, or severe bands.
Formula
ESAS-r = pain + tiredness + drowsiness + nausea + lack_of_appetite + shortness_of_breath + depression + anxiety + wellbeing; each caller-assigned 0-10; max 90; Watanabe 2011; no total-score severity classes; not Bruera 1991 ESAS
Citation
- Authors
- Watanabe SM, Nekolaichuk C, Beaumont C, Johnson L, Myers J, Strasser F
- Source
- J Pain Symptom Manage. 2011;41(2):456-468
Worked example
All items 0
Given:
anxiety=0depression=0drowsiness=0lack_of_appetite=0nausea=0pain=0shortness_of_breath=0tiredness=0wellbeing=0
- pain, tiredness, drowsiness, nausea, lack_of_appetite, shortness_of_breath, depression, anxiety, and wellbeing are 0 as assigned by the caller
- Score = 0 (max 90). Watanabe 2011 published no total-score severity class.
All items 10
Given:
anxiety=10depression=10drowsiness=10lack_of_appetite=10nausea=10pain=10shortness_of_breath=10tiredness=10wellbeing=10
- each of the nine Watanabe 2011 ESAS-r items is 10 as assigned by the caller
- Score = 90 (max 90). No total-score severity class.
Also searched as
- ESAS-r
- ESAS-r score
- Edmonton Symptom Assessment System-revised
- Watanabe ESAS-r
- Watanabe 2011 ESAS-r
- revised Edmonton Symptom Assessment System
- ESAS revised nine-item NRS
- palliative symptom assessment ESAS-r
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
Full URL: https://api.magentlab.com/api/calc/esas_r?pain=0&tiredness=0&drowsiness=0&nausea=0&lack_of_appetite=0&shortness_of_breath=0&depression=0&anxiety=0&wellbeing=0
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/esas_r?pain=0&tiredness=0&drowsiness=0&nausea=0&lack_of_appetite=0&shortness_of_breath=0&depression=0&anxiety=0&wellbeing=0"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pain |
integer | required | Caller-assigned Watanabe 2011 ESAS-r pain (integer 0-10): 0 no pain, 10 worst possible pain; how the person feels now. magent does not administer the form. |
tiredness |
integer | required | Caller-assigned Watanabe 2011 ESAS-r tiredness (integer 0-10): 0 no tiredness, 10 worst possible tiredness (tiredness = lack of energy); how the person feels now. magent does not administer the form. |
drowsiness |
integer | required | Caller-assigned Watanabe 2011 ESAS-r drowsiness (integer 0-10): 0 no drowsiness, 10 worst possible drowsiness (drowsiness = feeling sleepy); how the person feels now. magent does not administer the form. |
nausea |
integer | required | Caller-assigned Watanabe 2011 ESAS-r nausea (integer 0-10): 0 no nausea, 10 worst possible nausea; how the person feels now. magent does not administer the form. |
lack_of_appetite |
integer | required | Caller-assigned Watanabe 2011 ESAS-r lack of appetite (integer 0-10): 0 no lack of appetite, 10 worst possible lack of appetite; how the person feels now. magent does not administer the form. |
shortness_of_breath |
integer | required | Caller-assigned Watanabe 2011 ESAS-r shortness of breath (integer 0-10): 0 no shortness of breath, 10 worst possible shortness of breath; how the person feels now. magent does not administer the form. |
depression |
integer | required | Caller-assigned Watanabe 2011 ESAS-r depression (integer 0-10): 0 no depression, 10 worst possible depression (depression = feeling sad); how the person feels now. magent does not administer the form. |
anxiety |
integer | required | Caller-assigned Watanabe 2011 ESAS-r anxiety (integer 0-10): 0 no anxiety, 10 worst possible anxiety (anxiety = feeling nervous); how the person feels now. magent does not administer the form. |
wellbeing |
integer | required | Caller-assigned Watanabe 2011 ESAS-r wellbeing (integer 0-10): 0 best wellbeing, 10 worst possible wellbeing (wellbeing = how you feel overall); how the person feels now. magent does not administer the form. |
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": [
{
"anxiety": "0",
"depression": "0",
"drowsiness": "0",
"lack_of_appetite": "0",
"nausea": "0",
"pain": "0",
"shortness_of_breath": "0",
"tiredness": "0",
"wellbeing": "0"
},
{
"anxiety": "0",
"depression": "0",
"drowsiness": "0",
"lack_of_appetite": "0",
"nausea": "0",
"pain": "0",
"shortness_of_breath": "0",
"tiredness": "0",
"wellbeing": "0"
}
]
}
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/esas_r",
"items": [
{
"components": [
{
"value": 0,
"factor": "pain",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "tiredness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drowsiness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "nausea",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "lack_of_appetite",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "shortness_of_breath",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "depression",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "anxiety",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wellbeing",
"points": 0,
"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": "Watanabe SM, Nekolaichuk C, Beaumont C, Johnson L, Myers J, Strasser F",
"doi": "10.1016/j.jpainsymman.2010.04.020",
"id": "watanabe-2011",
"pmid": "20832987",
"source": "J Pain Symptom Manage. 2011;41(2):456-468",
"title": "A multicenter study comparing two numerical versions of the Edmonton Symptom Assessment System in palliative care patients"
},
"formula": "esas_r",
"formula_expression": "ESAS-r = pain + tiredness + drowsiness + nausea + lack_of_appetite + shortness_of_breath + depression + anxiety + wellbeing; each caller-assigned 0-10; max 90; Watanabe 2011; no total-score severity classes; not Bruera 1991 ESAS",
"max_score": 90,
"score": 0
},
{
"components": [
{
"value": 0,
"factor": "pain",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "tiredness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drowsiness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "nausea",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "lack_of_appetite",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "shortness_of_breath",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "depression",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "anxiety",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wellbeing",
"points": 0,
"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": "Watanabe SM, Nekolaichuk C, Beaumont C, Johnson L, Myers J, Strasser F",
"doi": "10.1016/j.jpainsymman.2010.04.020",
"id": "watanabe-2011",
"pmid": "20832987",
"source": "J Pain Symptom Manage. 2011;41(2):456-468",
"title": "A multicenter study comparing two numerical versions of the Edmonton Symptom Assessment System in palliative care patients"
},
"formula": "esas_r",
"formula_expression": "ESAS-r = pain + tiredness + drowsiness + nausea + lack_of_appetite + shortness_of_breath + depression + anxiety + wellbeing; each caller-assigned 0-10; max 90; Watanabe 2011; no total-score severity classes; not Bruera 1991 ESAS",
"max_score": 90,
"score": 0
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | esas_r |
formula_expression |
string | Exact expression used |
score |
integer | Watanabe 2011 ESAS-r sum of nine caller-assigned 0-10 items (0-90) |
max_score |
integer | Always 90 |
components |
array | Per-item caller-assigned points |
citation |
object | Watanabe et al. J Pain Symptom Manage 2011 citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": 0,
"factor": "pain",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "tiredness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drowsiness",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "nausea",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "lack_of_appetite",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "shortness_of_breath",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "depression",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "anxiety",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wellbeing",
"points": 0,
"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": "Watanabe SM, Nekolaichuk C, Beaumont C, Johnson L, Myers J, Strasser F",
"doi": "10.1016/j.jpainsymman.2010.04.020",
"id": "watanabe-2011",
"pmid": "20832987",
"source": "J Pain Symptom Manage. 2011;41(2):456-468",
"title": "A multicenter study comparing two numerical versions of the Edmonton Symptom Assessment System in palliative care patients"
},
"formula": "esas_r",
"formula_expression": "ESAS-r = pain + tiredness + drowsiness + nausea + lack_of_appetite + shortness_of_breath + depression + anxiety + wellbeing; each caller-assigned 0-10; max 90; Watanabe 2011; no total-score severity classes; not Bruera 1991 ESAS",
"max_score": 90,
"score": 0
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_esas_item |
each ESAS-r item must be an integer from 0 to 10 (Watanabe 2011). 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
- PEG — Compute the Krebs 2009 PEG as the unweighted mean of three caller-assigned 0-10 integers (pain_average, enjoyment_of_life, general_activity). Potential range 0-10. Krebs 2009 did not publish a diagnostic cutoff.
- PAINAD — Sum five caller-assigned Warden 2003 PAINAD integers (0-2) and return the published total (max 10).
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.