Emergency · LIVE
Prediction of Alcohol Withdrawal Severity Scale (PAWSS)
PAWSS
Apply the Maldonado 2014 PAWSS Part A threshold and ten yes/no items and return the published 0–10 total with the ≥4 high-risk band.
Markdown: /docs/pawss.md · Canonical: https://magentlab.com/docs/pawss
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Apply the Maldonado 2014 PAWSS Part A threshold and ten yes/no items and return the published 0–10 total with the ≥4 high-risk band.
When to use
When an agent has already assigned the PAWSS threshold and ten item flags and needs the published score and high-risk cutoff, not a later prophylaxis protocol.
When not to use
- Not a medical device and not a diagnosis of alcohol withdrawal syndrome (AWS) or a prophylaxis order.
- Not CIWA-Ar.
- The Part A threshold (any alcohol in the last 30 days or positive BAL on admission) is required. If it is false, magent returns score 0 and pawss_band outside_window and does not add the ten item points.
- magent does not interview the patient or measure BAL. Each flag is caller-assigned.
- Published cutoff is ≥4 high risk for complicated AWS. Scores 0–3 with a true threshold are low. magent does not invent a moderate class.
Formula
PAWSS = if alcohol_last_30d_or_positive_bal then recently_intoxicated_30d + alcohol_rehab + previous_withdrawal + blackouts + withdrawal_seizures + delirium_tremens + combined_downers_90d + combined_other_substances_90d + bal_ge_200 + increased_autonomic_activity else 0; each item 1 if true; Part A threshold 0 points; max 10; threshold false → outside_window; 0-3 low; >=4 high; Maldonado 2014
Citation
- Authors
- Maldonado JR, Sher Y, Ashouri JF, Hills-Evans K, Swendsen H, Lolak S, Miller AC
- Source
- Alcohol. 2014;48(4):375-390
Worked example
Threshold false
Given:
alcohol_last_30d_or_positive_bal=falsealcohol_rehab=falsebal_ge_200=falseblackouts=falsecombined_downers_90d=falsecombined_other_substances_90d=falsedelirium_tremens=falseincreased_autonomic_activity=falseprevious_withdrawal=falserecently_intoxicated_30d=falsewithdrawal_seizures=false
- alcohol_last_30d_or_positive_bal false
- ten item flags false
- score = 0 (items not added)
- pawss_band = outside_window
Four items with threshold true
Given:
alcohol_last_30d_or_positive_bal=truealcohol_rehab=truebal_ge_200=falseblackouts=truecombined_downers_90d=falsecombined_other_substances_90d=falsedelirium_tremens=falseincreased_autonomic_activity=falseprevious_withdrawal=truerecently_intoxicated_30d=truewithdrawal_seizures=false
- alcohol_last_30d_or_positive_bal true
- four items true → 4
- score = 4
- pawss_band = high
Also searched as
- PAWSS
- Prediction of Alcohol Withdrawal Severity Scale
- Maldonado PAWSS
- alcohol withdrawal severity scale
- complicated alcohol withdrawal prediction
- PAWSS score
- PAWSS high risk
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/pawss?alcohol_last_30d_or_positive_bal=false&recently_intoxicated_30d=false&alcohol_rehab=false&previous_withdrawal=false&blackouts=false&withdrawal_seizures=false&delirium_tremens=false&combined_downers_90d=false&combined_other_substances_90d=false&bal_ge_200=false&increased_autonomic_activity=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/pawss?alcohol_last_30d_or_positive_bal=false&recently_intoxicated_30d=false&alcohol_rehab=false&previous_withdrawal=false&blackouts=false&withdrawal_seizures=false&delirium_tremens=false&combined_downers_90d=false&combined_other_substances_90d=false&bal_ge_200=false&increased_autonomic_activity=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
alcohol_last_30d_or_positive_bal |
boolean | required | Part A threshold (0 points). Caller-assigned: consumed any alcohol in the last 30 days or a positive BAL on admission (Maldonado 2014). If false, score is 0 and pawss_band is outside_window; the ten items are not added. magent does not interview the patient or measure BAL. |
recently_intoxicated_30d |
boolean | required | Recently intoxicated or drunk within the last 30 days as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
alcohol_rehab |
boolean | required | Ever alcohol-use-disorder rehabilitation or AA as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
previous_withdrawal |
boolean | required | Any previous alcohol withdrawal as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
blackouts |
boolean | required | Ever blackouts as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
withdrawal_seizures |
boolean | required | Ever alcohol withdrawal seizures as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
delirium_tremens |
boolean | required | Ever delirium tremens as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
combined_downers_90d |
boolean | required | Combined alcohol with benzodiazepines or barbiturates in the last 90 days as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
combined_other_substances_90d |
boolean | required | Combined alcohol with any other substance of abuse in the last 90 days as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not interview the patient. |
bal_ge_200 |
boolean | required | BAL on presentation ≥200 as assigned by the caller (Maldonado 2014). true scores 1 when the Part A threshold is true. magent does not measure BAL. |
increased_autonomic_activity |
boolean | required | Increased autonomic activity as assigned by the caller (Maldonado 2014), for example HR>120, tremor, sweating, agitation, or nausea. true scores 1 when the Part A threshold is true. magent does not observe the patient. |
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": [
{
"alcohol_last_30d_or_positive_bal": "false",
"alcohol_rehab": "false",
"bal_ge_200": "false",
"blackouts": "false",
"combined_downers_90d": "false",
"combined_other_substances_90d": "false",
"delirium_tremens": "false",
"increased_autonomic_activity": "false",
"previous_withdrawal": "false",
"recently_intoxicated_30d": "false",
"withdrawal_seizures": "false"
},
{
"alcohol_last_30d_or_positive_bal": "false",
"alcohol_rehab": "false",
"bal_ge_200": "false",
"blackouts": "false",
"combined_downers_90d": "false",
"combined_other_substances_90d": "false",
"delirium_tremens": "false",
"increased_autonomic_activity": "false",
"previous_withdrawal": "false",
"recently_intoxicated_30d": "false",
"withdrawal_seizures": "false"
}
]
}
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/pawss",
"items": [
{
"components": [
{
"factor": "alcohol_last_30d_or_positive_bal",
"points": 0,
"present": false
},
{
"factor": "recently_intoxicated_30d",
"points": 0,
"present": false
},
{
"factor": "alcohol_rehab",
"points": 0,
"present": false
},
{
"factor": "previous_withdrawal",
"points": 0,
"present": false
},
{
"factor": "blackouts",
"points": 0,
"present": false
},
{
"factor": "withdrawal_seizures",
"points": 0,
"present": false
},
{
"factor": "delirium_tremens",
"points": 0,
"present": false
},
{
"factor": "combined_downers_90d",
"points": 0,
"present": false
},
{
"factor": "combined_other_substances_90d",
"points": 0,
"present": false
},
{
"factor": "bal_ge_200",
"points": 0,
"present": false
},
{
"factor": "increased_autonomic_activity",
"points": 0,
"present": false
}
],
"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": "Maldonado JR, Sher Y, Ashouri JF, Hills-Evans K, Swendsen H, Lolak S, Miller AC",
"doi": "10.1016/j.alcohol.2014.01.004",
"id": "maldonado-2014",
"pmid": "24657098",
"source": "Alcohol. 2014;48(4):375-390",
"title": "The \"Prediction of Alcohol Withdrawal Severity Scale\" (PAWSS): systematic literature review and pilot study of a new scale for the prediction of complicated alcohol withdrawal syndrome"
},
"formula": "pawss",
"formula_expression": "PAWSS = if alcohol_last_30d_or_positive_bal then recently_intoxicated_30d + alcohol_rehab + previous_withdrawal + blackouts + withdrawal_seizures + delirium_tremens + combined_downers_90d + combined_other_substances_90d + bal_ge_200 + increased_autonomic_activity else 0; each item 1 if true; Part A threshold 0 points; max 10; threshold false → outside_window; 0-3 low; >=4 high; Maldonado 2014",
"max_score": 10,
"score": 0,
"pawss_band": "outside_window"
},
{
"components": [
{
"factor": "alcohol_last_30d_or_positive_bal",
"points": 0,
"present": false
},
{
"factor": "recently_intoxicated_30d",
"points": 0,
"present": false
},
{
"factor": "alcohol_rehab",
"points": 0,
"present": false
},
{
"factor": "previous_withdrawal",
"points": 0,
"present": false
},
{
"factor": "blackouts",
"points": 0,
"present": false
},
{
"factor": "withdrawal_seizures",
"points": 0,
"present": false
},
{
"factor": "delirium_tremens",
"points": 0,
"present": false
},
{
"factor": "combined_downers_90d",
"points": 0,
"present": false
},
{
"factor": "combined_other_substances_90d",
"points": 0,
"present": false
},
{
"factor": "bal_ge_200",
"points": 0,
"present": false
},
{
"factor": "increased_autonomic_activity",
"points": 0,
"present": false
}
],
"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": "Maldonado JR, Sher Y, Ashouri JF, Hills-Evans K, Swendsen H, Lolak S, Miller AC",
"doi": "10.1016/j.alcohol.2014.01.004",
"id": "maldonado-2014",
"pmid": "24657098",
"source": "Alcohol. 2014;48(4):375-390",
"title": "The \"Prediction of Alcohol Withdrawal Severity Scale\" (PAWSS): systematic literature review and pilot study of a new scale for the prediction of complicated alcohol withdrawal syndrome"
},
"formula": "pawss",
"formula_expression": "PAWSS = if alcohol_last_30d_or_positive_bal then recently_intoxicated_30d + alcohol_rehab + previous_withdrawal + blackouts + withdrawal_seizures + delirium_tremens + combined_downers_90d + combined_other_substances_90d + bal_ge_200 + increased_autonomic_activity else 0; each item 1 if true; Part A threshold 0 points; max 10; threshold false → outside_window; 0-3 low; >=4 high; Maldonado 2014",
"max_score": 10,
"score": 0,
"pawss_band": "outside_window"
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | pawss |
formula_expression |
string | Exact expression used |
score |
integer | PAWSS points 0-10 |
max_score |
integer | 10 |
pawss_band |
string | outside_window when the Part A threshold is false; low when the threshold is true and score is 0-3; high when the threshold is true and score is ≥4 (Maldonado 2014 cutoff for complicated AWS). Not a diagnosis. |
components |
array | Part A threshold (0 points) then per-item points |
citation |
object | Maldonado et al. Alcohol 2014 citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"factor": "alcohol_last_30d_or_positive_bal",
"points": 0,
"present": false
},
{
"factor": "recently_intoxicated_30d",
"points": 0,
"present": false
},
{
"factor": "alcohol_rehab",
"points": 0,
"present": false
},
{
"factor": "previous_withdrawal",
"points": 0,
"present": false
},
{
"factor": "blackouts",
"points": 0,
"present": false
},
{
"factor": "withdrawal_seizures",
"points": 0,
"present": false
},
{
"factor": "delirium_tremens",
"points": 0,
"present": false
},
{
"factor": "combined_downers_90d",
"points": 0,
"present": false
},
{
"factor": "combined_other_substances_90d",
"points": 0,
"present": false
},
{
"factor": "bal_ge_200",
"points": 0,
"present": false
},
{
"factor": "increased_autonomic_activity",
"points": 0,
"present": false
}
],
"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": "Maldonado JR, Sher Y, Ashouri JF, Hills-Evans K, Swendsen H, Lolak S, Miller AC",
"doi": "10.1016/j.alcohol.2014.01.004",
"id": "maldonado-2014",
"pmid": "24657098",
"source": "Alcohol. 2014;48(4):375-390",
"title": "The \"Prediction of Alcohol Withdrawal Severity Scale\" (PAWSS): systematic literature review and pilot study of a new scale for the prediction of complicated alcohol withdrawal syndrome"
},
"formula": "pawss",
"formula_expression": "PAWSS = if alcohol_last_30d_or_positive_bal then recently_intoxicated_30d + alcohol_rehab + previous_withdrawal + blackouts + withdrawal_seizures + delirium_tremens + combined_downers_90d + combined_other_substances_90d + bal_ge_200 + increased_autonomic_activity else 0; each item 1 if true; Part A threshold 0 points; max 10; threshold false → outside_window; 0-3 low; >=4 high; Maldonado 2014",
"max_score": 10,
"score": 0,
"pawss_band": "outside_window"
}
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
- CIWA-Ar — Sum the ten Sullivan 1989 CIWA-Ar items (nine caller-assigned 0-7 plus orientation 0-4) and return the published total (max 67).
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.
- 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.