{"uid":"cap_MYx2cUsd8-7QxrYMjW36X","slug":"magent-baws-calculator-c6ccf1de","name":"magent BAWS Calculator","description":"Rastegar 2017 Brief Alcohol Withdrawal Scale (BAWS): five caller-assigned integers 0-3 (tremor, diaphoresis, agitation, orientation, hallucinations), summed 0-15. BAWS >=3 predicted CIWA-Ar >=8 in that paper (sensitivity 85.3%, specificity 65.8%). magent does not examine the patient or order benzodiazepines. Not later ICU dose bands. Not a medical device.","url":"https://api.magentlab.com/api/calc/baws","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["tremor","diaphoresis","agitation","orientation","hallucinations"],"properties":{"tremor":{"type":"integer","description":"Caller-assigned Rastegar 2017 BAWS tremor points (integer 0-3). magent does not examine the patient."},"agitation":{"type":"integer","description":"Caller-assigned Rastegar 2017 BAWS agitation points (integer 0-3). magent does not examine the patient."},"diaphoresis":{"type":"integer","description":"Caller-assigned Rastegar 2017 BAWS diaphoresis (sweats) points (integer 0-3). magent does not examine the patient."},"orientation":{"type":"integer","description":"Caller-assigned Rastegar 2017 BAWS confusion/orientation points (integer 0-3). magent does not examine the patient."},"hallucinations":{"type":"integer","description":"Caller-assigned Rastegar 2017 BAWS hallucinations points (integer 0-3). One item, not separate CIWA-Ar tactile/auditory/visual scores. magent does not examine the patient."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3ipbLIzeG4AfLT3TJmFXG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Brief Alcohol Withdrawal Scale (BAWS) total score (0–15) from five caller-supplied symptom integers and flags whether the score predicts clinically significant withdrawal (CIWA-Ar ≥8).","exampleAgentPrompt":"Calculate the BAWS score for a patient with tremor 2, diaphoresis 1, agitation 2, orientation 1, and hallucinations 0 — does it predict significant alcohol withdrawal?","exampleUseCases":[{"title":"ED triage alcohol withdrawal screening","prompt":"A patient in the ED may be going through alcohol withdrawal. Tremor is 2, diaphoresis is 2, agitation is 1, orientation is 1, hallucinations is 0 — what's the BAWS total and does it suggest clinically significant withdrawal?"},{"title":"Automated withdrawal risk flagging in EHR workflow","prompt":"We're scoring all alcohol-dependent admissions on BAWS at intake. This patient has tremor 1, diaphoresis 0, agitation 1, orientation 2, hallucinations 1 — calculate the total BAWS and tell me if the Rastegar 2017 threshold for CIWA-Ar risk is met."},{"title":"Telehealth nurse triage support","prompt":"Our nurse just assessed a patient remotely and recorded BAWS items: tremor 3, diaphoresis 2, agitation 2, orientation 0, hallucinations 1. Can you compute the full BAWS score and flag whether it predicts a CIWA-Ar of 8 or more?"}],"resultDescription":"Returns the BAWS total integer score (sum of five symptom components, range 0–15) and a boolean or flag indicating whether the score meets the Rastegar 2017 threshold (≥3) that predicted CIWA-Ar ≥8 with 85.3% sensitivity and 65.8% specificity. Does not include treatment recommendations or benzodiazepine dosing.","failureModes":["Missing required query parameters (tremor, diaphoresis, agitation, orientation, or hallucinations) returns a 400 or validation error","Non-integer or out-of-range values (e.g. 4, -1, or decimals) for any component will fail schema validation","Payment not included or invalid x402 token results in a 402 Payment Required response","Server-side error returns 5xx with no score"],"whenToPreferThis":"Use this endpoint when you need a fast, automated computation of the Rastegar 2017 Brief Alcohol Withdrawal Scale from pre-assessed symptom integers in clinical decision-support or triage workflows. It is appropriate when a human clinician has already observed and scored the five BAWS items and needs the arithmetic sum and threshold interpretation. Prefer this over manual calculation in high-volume ED or admission pipelines where BAWS is the selected withdrawal screening instrument.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:01:32.323Z","isFirstParty":false}