Emergency · LIVE
Urticaria Activity Score (UAS7)
UAS
Sum Młynek 2008 EAACI/GA2LEN/EDF urticaria activity score over seven consecutive days: each day wheals 0-3 plus pruritus 0-3 (daily UAS 0-6). Return UAS7 (0-42) and mean_daily_uas. This paper published no UAS7 activity bands.
Markdown: /docs/uas.md · Canonical: https://magentlab.com/docs/uas
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum Młynek 2008 EAACI/GA2LEN/EDF urticaria activity score over seven consecutive days: each day wheals 0-3 plus pruritus 0-3 (daily UAS 0-6). Return UAS7 (0-42) and mean_daily_uas. This paper published no UAS7 activity bands.
When to use
When an agent already has seven consecutive days of caller-assigned UAS wheals and pruritus integers (0-3) and needs the published UAS7 and mean daily UAS. magent does not count wheals, grade pruritus, diagnose urticaria, or score angioedema activity (AAS).
When not to use
- Not a medical device and not a diagnosis of urticaria or a treatment order. magent does not count wheals or grade pruritus. Each of the 14 values is a caller-assigned integer 0-3.
- Młynek 2008 found quality-of-life correlation plateaued from the fourth consecutive day. magent still requires seven complete days and does not impute missing days.
- This is EAACI/GA2LEN/EDF UAS (daily wheals plus pruritus; UAS7 0-42), not angioedema activity (AAS).
- Młynek 2008 published no UAS7 activity-band cutpoints. magent returns UAS7 and mean_daily_uas only.
Formula
UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands
Citation
- Authors
- Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M
- Source
- Allergy. 2008;63(6):777-780
Worked example
Day-1 wheals 1 and pruritus 1
Given:
pruritus_d1=1pruritus_d2=0pruritus_d3=0pruritus_d4=0pruritus_d5=0pruritus_d6=0pruritus_d7=0wheals_d1=1wheals_d2=0wheals_d3=0wheals_d4=0wheals_d5=0wheals_d6=0wheals_d7=0
- wheals_d1 1 + pruritus_d1 1; days 2-7 wheals 0 and pruritus 0 as assigned by the caller
- daily_d1 = 2; UAS7 = 2 (max 42); mean_daily_uas = 2/7 = 0.2857. This paper published no UAS7 activity band.
All 14 items at published maximum
Given:
pruritus_d1=3pruritus_d2=3pruritus_d3=3pruritus_d4=3pruritus_d5=3pruritus_d6=3pruritus_d7=3wheals_d1=3wheals_d2=3wheals_d3=3wheals_d4=3wheals_d5=3wheals_d6=3wheals_d7=3
- each wheals_d1-d7 and pruritus_d1-d7 is 3 as assigned by the caller
- each daily UAS = 6; UAS7 = 42 (max 42); mean_daily_uas = 6. No UAS7 activity band.
Also searched as
- UAS
- UAS7
- Urticaria Activity Score
- UAS-7
- Młynek UAS
- Mlynek 2008 UAS
- EAACI urticaria activity score
- chronic urticaria UAS
- seven-day UAS
- UAS7 score
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/uas?wheals_d1=1&wheals_d2=0&wheals_d3=0&wheals_d4=0&wheals_d5=0&wheals_d6=0&wheals_d7=0&pruritus_d1=1&pruritus_d2=0&pruritus_d3=0&pruritus_d4=0&pruritus_d5=0&pruritus_d6=0&pruritus_d7=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/uas?wheals_d1=1&wheals_d2=0&wheals_d3=0&wheals_d4=0&wheals_d5=0&wheals_d6=0&wheals_d7=0&pruritus_d1=1&pruritus_d2=0&pruritus_d3=0&pruritus_d4=0&pruritus_d5=0&pruritus_d6=0&pruritus_d7=0"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
wheals_d1 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d2 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d3 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d4 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d5 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d6 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
wheals_d7 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals. |
pruritus_d1 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d2 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d3 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d4 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d5 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d6 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
pruritus_d7 |
integer | required · 0, 1, 2, 3 | Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch. |
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": [
{
"pruritus_d1": "1",
"pruritus_d2": "0",
"pruritus_d3": "0",
"pruritus_d4": "0",
"pruritus_d5": "0",
"pruritus_d6": "0",
"pruritus_d7": "0",
"wheals_d1": "1",
"wheals_d2": "0",
"wheals_d3": "0",
"wheals_d4": "0",
"wheals_d5": "0",
"wheals_d6": "0",
"wheals_d7": "0"
},
{
"pruritus_d1": "1",
"pruritus_d2": "0",
"pruritus_d3": "0",
"pruritus_d4": "0",
"pruritus_d5": "0",
"pruritus_d6": "0",
"pruritus_d7": "0",
"wheals_d1": "1",
"wheals_d2": "0",
"wheals_d3": "0",
"wheals_d4": "0",
"wheals_d5": "0",
"wheals_d6": "0",
"wheals_d7": "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/uas",
"items": [
{
"components": [
{
"value": 1,
"factor": "wheals_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "wheals_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d7",
"points": 0,
"present": true
},
{
"value": 1,
"factor": "pruritus_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "pruritus_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d7",
"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": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
"doi": "10.1111/j.1398-9995.2008.01726.x",
"id": "mlynek-2008",
"pmid": "18445192",
"source": "Allergy. 2008;63(6):777-780",
"title": "How to assess disease activity in patients with chronic urticaria?"
},
"formula": "uas",
"formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
"max_score": 42,
"score": 2,
"mean_daily_uas": 0.2857,
"daily_d1": 2,
"daily_d2": 0,
"daily_d3": 0,
"daily_d4": 0,
"daily_d5": 0,
"daily_d6": 0,
"daily_d7": 0
},
{
"components": [
{
"value": 1,
"factor": "wheals_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "wheals_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d7",
"points": 0,
"present": true
},
{
"value": 1,
"factor": "pruritus_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "pruritus_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d7",
"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": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
"doi": "10.1111/j.1398-9995.2008.01726.x",
"id": "mlynek-2008",
"pmid": "18445192",
"source": "Allergy. 2008;63(6):777-780",
"title": "How to assess disease activity in patients with chronic urticaria?"
},
"formula": "uas",
"formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
"max_score": 42,
"score": 2,
"mean_daily_uas": 0.2857,
"daily_d1": 2,
"daily_d2": 0,
"daily_d3": 0,
"daily_d4": 0,
"daily_d5": 0,
"daily_d6": 0,
"daily_d7": 0
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | uas |
formula_expression |
string | Exact expression used |
score |
integer | Młynek 2008 UAS7: sum of seven daily UAS values (0-42) |
max_score |
integer | Always 42 |
mean_daily_uas |
number | UAS7 / 7, rounded to four decimal places |
daily_d1 |
integer | Day 1 UAS: wheals_d1 + pruritus_d1 (0-6) |
daily_d2 |
integer | Day 2 UAS: wheals_d2 + pruritus_d2 (0-6) |
daily_d3 |
integer | Day 3 UAS: wheals_d3 + pruritus_d3 (0-6) |
daily_d4 |
integer | Day 4 UAS: wheals_d4 + pruritus_d4 (0-6) |
daily_d5 |
integer | Day 5 UAS: wheals_d5 + pruritus_d5 (0-6) |
daily_d6 |
integer | Day 6 UAS: wheals_d6 + pruritus_d6 (0-6) |
daily_d7 |
integer | Day 7 UAS: wheals_d7 + pruritus_d7 (0-6) |
components |
array | Per-day caller-assigned wheals and pruritus points |
citation |
object | Młynek et al. Allergy 2008 citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": 1,
"factor": "wheals_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "wheals_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "wheals_d7",
"points": 0,
"present": true
},
{
"value": 1,
"factor": "pruritus_d1",
"points": 1,
"present": true
},
{
"value": 0,
"factor": "pruritus_d2",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d3",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d4",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d5",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d6",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "pruritus_d7",
"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": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
"doi": "10.1111/j.1398-9995.2008.01726.x",
"id": "mlynek-2008",
"pmid": "18445192",
"source": "Allergy. 2008;63(6):777-780",
"title": "How to assess disease activity in patients with chronic urticaria?"
},
"formula": "uas",
"formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
"max_score": 42,
"score": 2,
"mean_daily_uas": 0.2857,
"daily_d1": 2,
"daily_d2": 0,
"daily_d3": 0,
"daily_d4": 0,
"daily_d5": 0,
"daily_d6": 0,
"daily_d7": 0
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_uas |
UAS needs seven consecutive daily wheals and pruritus integers 0-3 (Mlynek 2008). 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
- SCORTEN — Sum the seven Bastuji-Garin 2000 SCORTEN risk factors from caller-assigned flags and return the 0–7 score and that paper's predicted in-hospital mortality token.
- RegiSCAR — Sum the ten Kardaun 2007 RegiSCAR DRESS scoring-letter items from caller-assigned flags, eosinophilia grade, and organ count, and return the −4 to 9 total and the published none/possible/probable/definite band.
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.