Emergency · LIVE
RUIS (Sansoni)
Sum five caller-assigned Sansoni 2008 RUIS items (urgency, activity, and drops leakage 0-3; leakage frequency 0-4; leakage amount 0-3) and return the published 0-16 total. Does not apply later total-score severity bands and does not score ISI frequency×amount.
Markdown: /docs/ruis.md · Canonical: https://magentlab.com/docs/ruis
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum five caller-assigned Sansoni 2008 RUIS items (urgency, activity, and drops leakage 0-3; leakage frequency 0-4; leakage amount 0-3) and return the published 0-16 total. Does not apply later total-score severity bands and does not score ISI frequency×amount.
When to use
When an agent already has Sansoni 2008 item integers and needs the published RUIS total. magent does not interview the patient, diagnose incontinence, order continence procedures, or apply later mild/moderate/severe cuts.
When not to use
- Not a medical device and not a diagnosis. Not a continence-procedure order.
- Each item is a caller-assigned integer. magent does not interview the patient.
- This is Sansoni 2008 RUIS only (five items; max 16). magent does not score ICIQ-UI SF or multiply leakage_frequency by leakage_amount as ISI.
- Sansoni 2008 published no RUIS total-score severity bands. This tool returns score and max_score only. It does not apply later slight/moderate/severe cuts.
Formula
RUIS = urgency_leakage (0-3) + activity_leakage (0-3) + drops_leakage (0-3) + leakage_frequency (0-4) + leakage_amount (0-3); each caller-assigned; max 16; Sansoni 2008; no RUIS total-score severity bands; not ISI frequency×amount
Citation
- Authors
- Sansoni J, Marosszeky N, Sansoni E, Hawthorne G
- Source
- Centre for Health Service Development, University of Wollongong. 2008
- DOI
- none
Worked example
All items 0
Given:
activity_leakage=0drops_leakage=0leakage_amount=0leakage_frequency=0urgency_leakage=0
- urgency_leakage, activity_leakage, drops_leakage, leakage_frequency, and leakage_amount are 0 as assigned by the caller
- Score = 0 (max 16). Sansoni 2008 published no RUIS total-score severity band.
Five items at 2
Given:
activity_leakage=2drops_leakage=2leakage_amount=2leakage_frequency=2urgency_leakage=2
- each of the five Sansoni 2008 RUIS items is 2 as assigned by the caller
- Score = 10 (max 16). No RUIS total-score severity band.
Also searched as
- RUIS
- Revised Urinary Incontinence Scale
- Sansoni RUIS
- Sansoni 2008 RUIS
- urinary leakage scale
- revised incontinence scale
- UDI-6 ISI RUIS
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/ruis?urgency_leakage=0&activity_leakage=0&drops_leakage=0&leakage_frequency=0&leakage_amount=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/ruis?urgency_leakage=0&activity_leakage=0&drops_leakage=0&leakage_frequency=0&leakage_amount=0"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
urgency_leakage |
integer | required · 0, 1, 2, 3 | Caller-assigned Sansoni 2008 RUIS item 1 (integer 0-3: 0 not at all, 1 slightly, 2 moderately, 3 greatly): urine leakage related to the feeling of urgency. magent does not interview the patient. |
activity_leakage |
integer | required · 0, 1, 2, 3 | Caller-assigned Sansoni 2008 RUIS item 2 (integer 0-3: 0 not at all, 1 slightly, 2 moderately, 3 greatly): urine leakage related to physical activity, coughing or sneezing. magent does not interview the patient. |
drops_leakage |
integer | required · 0, 1, 2, 3 | Caller-assigned Sansoni 2008 RUIS item 3 (integer 0-3: 0 not at all, 1 slightly, 2 moderately, 3 greatly): small amounts of urine leakage (drops). magent does not interview the patient. |
leakage_frequency |
integer | required · 0, 1, 2, 3, 4 | Caller-assigned Sansoni 2008 RUIS item 4 (integer 0-4: 0 never, 1 less than once a month, 2 a few times a month, 3 a few times a week, 4 every day and/or night): how often urine leakage is experienced. magent does not interview the patient. |
leakage_amount |
integer | required · 0, 1, 2, 3 | Caller-assigned Sansoni 2008 RUIS item 5 (integer 0-3: 0 none, 1 drops, 2 small splashes, 3 more): how much urine is lost each time. magent does not interview 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": [
{
"activity_leakage": "0",
"drops_leakage": "0",
"leakage_amount": "0",
"leakage_frequency": "0",
"urgency_leakage": "0"
},
{
"activity_leakage": "0",
"drops_leakage": "0",
"leakage_amount": "0",
"leakage_frequency": "0",
"urgency_leakage": "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/ruis",
"items": [
{
"components": [
{
"value": 0,
"factor": "urgency_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "activity_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drops_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_frequency",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_amount",
"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": "Sansoni J, Marosszeky N, Sansoni E, Hawthorne G",
"id": "sansoni-ruis",
"source": "Centre for Health Service Development, University of Wollongong. 2008",
"title": "The development of the Revised Urinary Incontinence Scale (RUIS)"
},
"formula": "ruis",
"formula_expression": "RUIS = urgency_leakage (0-3) + activity_leakage (0-3) + drops_leakage (0-3) + leakage_frequency (0-4) + leakage_amount (0-3); each caller-assigned; max 16; Sansoni 2008; no RUIS total-score severity bands; not ISI frequency×amount",
"max_score": 16,
"score": 0
},
{
"components": [
{
"value": 0,
"factor": "urgency_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "activity_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drops_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_frequency",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_amount",
"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": "Sansoni J, Marosszeky N, Sansoni E, Hawthorne G",
"id": "sansoni-ruis",
"source": "Centre for Health Service Development, University of Wollongong. 2008",
"title": "The development of the Revised Urinary Incontinence Scale (RUIS)"
},
"formula": "ruis",
"formula_expression": "RUIS = urgency_leakage (0-3) + activity_leakage (0-3) + drops_leakage (0-3) + leakage_frequency (0-4) + leakage_amount (0-3); each caller-assigned; max 16; Sansoni 2008; no RUIS total-score severity bands; not ISI frequency×amount",
"max_score": 16,
"score": 0
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | ruis |
formula_expression |
string | Exact expression used |
score |
integer | Sansoni 2008 RUIS sum of five caller-assigned items (urgency/activity/drops 0-3, frequency 0-4, amount 0-3; 0-16) |
max_score |
integer | Always 16 |
components |
array | Per-item caller-assigned points |
citation |
object | Sansoni et al. 2008 RUIS 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": "urgency_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "activity_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "drops_leakage",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_frequency",
"points": 0,
"present": true
},
{
"value": 0,
"factor": "leakage_amount",
"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": "Sansoni J, Marosszeky N, Sansoni E, Hawthorne G",
"id": "sansoni-ruis",
"source": "Centre for Health Service Development, University of Wollongong. 2008",
"title": "The development of the Revised Urinary Incontinence Scale (RUIS)"
},
"formula": "ruis",
"formula_expression": "RUIS = urgency_leakage (0-3) + activity_leakage (0-3) + drops_leakage (0-3) + leakage_frequency (0-4) + leakage_amount (0-3); each caller-assigned; max 16; Sansoni 2008; no RUIS total-score severity bands; not ISI frequency×amount",
"max_score": 16,
"score": 0
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_ruis |
RUIS inputs must match the published urinary-incontinence item scores. 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
- AUA-SI — Sum seven caller-assigned Barry 1992 AUA-SI items (each integer 0-5) and return the published 0-35 total. Does not apply later total-score severity bands and does not score the IPSS quality-of-life item.
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.