# ROSIER stroke recognition scale

ROSIER

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/rosier`
HTML: https://magentlab.com/docs/rosier
Markdown: https://magentlab.com/docs/rosier.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Sum the seven Nor 2005 ROSIER items from caller-assigned flags and return whether the score is greater than 0 (stroke more likely).

## When to use

When an agent already has ROSIER items assigned as present or absent and needs the published −2 to +5 total and the Nor 2005 score > 0 discriminator, not a stroke diagnosis and not NIHSS.

## When not to use

- Not a medical device. Not a stroke diagnosis. magent does not examine the patient.
- Each item is a caller-assigned boolean. magent does not collect a time of onset.
- Stroke is more likely when the score is greater than 0 (Nor 2005). A score of 0 or less does not exclude stroke.
- This is the Nor 2005 seven-item ROSIER instrument only. magent does not map ROSIER to NIHSS.

## Formula

```
ROSIER = -1*loss_of_consciousness_or_syncope - 1*seizure + 1*asymmetric_face_weakness + 1*asymmetric_arm_weakness + 1*asymmetric_leg_weakness + 1*speech_disturbance + 1*visual_field_defect; range -2 to 5; stroke_more_likely iff score > 0 (Nor 2005)
```

## Citation

[The Recognition of Stroke in the Emergency Room (ROSIER) scale: development and validation of a stroke recognition instrument](https://doi.org/10.1016/S1474-4422(05)70201-5)
Nor AM, Davis J, Sen B, et al
Lancet Neurol. 2005;4(11):727-734
DOI: [10.1016/S1474-4422(05)70201-5](https://doi.org/10.1016/S1474-4422(05)70201-5)

## Worked example

### All seven flags false

Given: `asymmetric_arm_weakness=false, asymmetric_face_weakness=false, asymmetric_leg_weakness=false, loss_of_consciousness_or_syncope=false, seizure=false, speech_disturbance=false, visual_field_defect=false`

1. History items (loss of consciousness or syncope, seizure) false → 0 each
2. Five new acute-onset findings false → 0 each
3. Score = 0 (max 5); stroke_more_likely false because score is not > 0


### All five acute findings true

Given: `asymmetric_arm_weakness=true, asymmetric_face_weakness=true, asymmetric_leg_weakness=true, loss_of_consciousness_or_syncope=false, seizure=false, speech_disturbance=true, visual_field_defect=true`

1. History items false → 0 each
2. Face, arm, and leg weakness, speech disturbance, and visual field defect true → +1 each
3. Score = 5 (max 5); stroke_more_likely true because score > 0


## Also searched as

- ROSIER scale
- Recognition of Stroke in the Emergency Room
- Nor ROSIER
- ROSIER stroke score
- emergency room stroke recognition
- ROSIER 2005
- Nor 2005 ROSIER

## Parameters

- `loss_of_consciousness_or_syncope` (boolean, required): History of loss of consciousness or syncope (Nor 2005, −1 if true). true or false as assigned by the caller. magent does not examine the patient or collect a time of onset.
- `seizure` (boolean, required): History of seizure activity (Nor 2005, −1 if true). true or false as assigned by the caller. magent does not examine the patient.
- `asymmetric_face_weakness` (boolean, required): New acute-onset (or on awakening) asymmetric facial weakness (Nor 2005, +1 if true). true or false as assigned by the caller. magent does not examine the patient.
- `asymmetric_arm_weakness` (boolean, required): New acute-onset (or on awakening) asymmetric arm weakness (Nor 2005, +1 if true). true or false as assigned by the caller. magent does not examine the patient.
- `asymmetric_leg_weakness` (boolean, required): New acute-onset (or on awakening) asymmetric leg weakness (Nor 2005, +1 if true). true or false as assigned by the caller. magent does not examine the patient.
- `speech_disturbance` (boolean, required): New acute-onset (or on awakening) speech disturbance (Nor 2005, +1 if true). true or false as assigned by the caller. magent does not examine the patient.
- `visual_field_defect` (boolean, required): New acute-onset (or on awakening) visual field defect (Nor 2005, +1 if true). true or false as assigned by the caller. magent does not examine 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.

Method: `POST /api/calc/rosier`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: PREVIEW

- 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:

```json
{
  "items": [
    {
      "asymmetric_arm_weakness": "false",
      "asymmetric_face_weakness": "false",
      "asymmetric_leg_weakness": "false",
      "loss_of_consciousness_or_syncope": "false",
      "seizure": "false",
      "speech_disturbance": "false",
      "visual_field_defect": "false"
    },
    {
      "asymmetric_arm_weakness": "false",
      "asymmetric_face_weakness": "false",
      "asymmetric_leg_weakness": "false",
      "loss_of_consciousness_or_syncope": "false",
      "seizure": "false",
      "speech_disturbance": "false",
      "visual_field_defect": "false"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/rosier

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/rosier",
  "items": [
    {
      "components": [
        {
          "factor": "loss_of_consciousness_or_syncope",
          "points": 0,
          "present": false
        },
        {
          "factor": "seizure",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_face_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_arm_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_leg_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "speech_disturbance",
          "points": 0,
          "present": false
        },
        {
          "factor": "visual_field_defect",
          "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": "Nor AM, Davis J, Sen B, et al",
        "doi": "10.1016/S1474-4422(05)70201-5",
        "id": "nor-2005",
        "pmid": "16239179",
        "source": "Lancet Neurol. 2005;4(11):727-734",
        "title": "The Recognition of Stroke in the Emergency Room (ROSIER) scale: development and validation of a stroke recognition instrument"
      },
      "formula": "rosier",
      "formula_expression": "ROSIER = -1*loss_of_consciousness_or_syncope - 1*seizure + 1*asymmetric_face_weakness + 1*asymmetric_arm_weakness + 1*asymmetric_leg_weakness + 1*speech_disturbance + 1*visual_field_defect; range -2 to 5; stroke_more_likely iff score > 0 (Nor 2005)",
      "max_score": 5,
      "score": 0,
      "stroke_more_likely": false
    },
    {
      "components": [
        {
          "factor": "loss_of_consciousness_or_syncope",
          "points": 0,
          "present": false
        },
        {
          "factor": "seizure",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_face_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_arm_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "asymmetric_leg_weakness",
          "points": 0,
          "present": false
        },
        {
          "factor": "speech_disturbance",
          "points": 0,
          "present": false
        },
        {
          "factor": "visual_field_defect",
          "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": "Nor AM, Davis J, Sen B, et al",
        "doi": "10.1016/S1474-4422(05)70201-5",
        "id": "nor-2005",
        "pmid": "16239179",
        "source": "Lancet Neurol. 2005;4(11):727-734",
        "title": "The Recognition of Stroke in the Emergency Room (ROSIER) scale: development and validation of a stroke recognition instrument"
      },
      "formula": "rosier",
      "formula_expression": "ROSIER = -1*loss_of_consciousness_or_syncope - 1*seizure + 1*asymmetric_face_weakness + 1*asymmetric_arm_weakness + 1*asymmetric_leg_weakness + 1*speech_disturbance + 1*visual_field_defect; range -2 to 5; stroke_more_likely iff score > 0 (Nor 2005)",
      "max_score": 5,
      "score": 0,
      "stroke_more_likely": false
    }
  ]
}
```

## Response fields

- `formula` (string): rosier
- `formula_expression` (string): Exact expression used
- `score` (integer): ROSIER points -2 to 5 (Nor 2005)
- `max_score` (integer): 5
- `stroke_more_likely` (boolean): true iff score > 0 (Nor 2005). Score ≤ 0 does not exclude stroke. Not a diagnosis.
- `components` (array): Per-item points
- `citation` (object): Nor et al. Lancet Neurol 2005 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "factor": "loss_of_consciousness_or_syncope",
      "points": 0,
      "present": false
    },
    {
      "factor": "seizure",
      "points": 0,
      "present": false
    },
    {
      "factor": "asymmetric_face_weakness",
      "points": 0,
      "present": false
    },
    {
      "factor": "asymmetric_arm_weakness",
      "points": 0,
      "present": false
    },
    {
      "factor": "asymmetric_leg_weakness",
      "points": 0,
      "present": false
    },
    {
      "factor": "speech_disturbance",
      "points": 0,
      "present": false
    },
    {
      "factor": "visual_field_defect",
      "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": "Nor AM, Davis J, Sen B, et al",
    "doi": "10.1016/S1474-4422(05)70201-5",
    "id": "nor-2005",
    "pmid": "16239179",
    "source": "Lancet Neurol. 2005;4(11):727-734",
    "title": "The Recognition of Stroke in the Emergency Room (ROSIER) scale: development and validation of a stroke recognition instrument"
  },
  "formula": "rosier",
  "formula_expression": "ROSIER = -1*loss_of_consciousness_or_syncope - 1*seizure + 1*asymmetric_face_weakness + 1*asymmetric_arm_weakness + 1*asymmetric_leg_weakness + 1*speech_disturbance + 1*visual_field_defect; range -2 to 5; stroke_more_likely iff score > 0 (Nor 2005)",
  "max_score": 5,
  "score": 0,
  "stroke_more_likely": false
}
```

## Errors

- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 400 `invalid_rosier`: each ROSIER 2005 item must be true or false as assigned by the caller. Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [LAMS](https://magentlab.com/docs/lams) — Sum Llanes 2004 LAMS points from caller-assigned facial droop, arm drift, and grip (LAPSS motor items).

## 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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
