MAGENT

Neurology · LIVE

ROSIER stroke recognition scale

ROSIER

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

LIVE $0.005 USDC GET /api/calc/rosier

Markdown: /docs/rosier.md · Canonical: https://magentlab.com/docs/rosier

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

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

Worked example

All seven flags false

Given: asymmetric_arm_weakness=falseasymmetric_face_weakness=falseasymmetric_leg_weakness=falseloss_of_consciousness_or_syncope=falseseizure=falsespeech_disturbance=falsevisual_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=trueasymmetric_face_weakness=trueasymmetric_leg_weakness=trueloss_of_consciousness_or_syncope=falseseizure=falsespeech_disturbance=truevisual_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

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/rosier?loss_of_consciousness_or_syncope=false&seizure=false&asymmetric_face_weakness=false&asymmetric_arm_weakness=false&asymmetric_leg_weakness=false&speech_disturbance=false&visual_field_defect=false

Full URL: https://api.magentlab.com/api/calc/rosier?loss_of_consciousness_or_syncope=false&seizure=false&asymmetric_face_weakness=false&asymmetric_arm_weakness=false&asymmetric_leg_weakness=false&speech_disturbance=false&visual_field_defect=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/rosier?loss_of_consciousness_or_syncope=false&seizure=false&asymmetric_face_weakness=false&asymmetric_arm_weakness=false&asymmetric_leg_weakness=false&speech_disturbance=false&visual_field_defect=false"

Parameters

Name Type Required Description
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.

POST /api/calc/rosier Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 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 (fixture)

{
  "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"
    }
  ]
}

Open bulk paywall →

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

Field Type Description
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

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "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
}

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_rosier each ROSIER 2005 item must be true or false as assigned by the caller. 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

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