Emergency · LIVE
Patient Safety Screener 3 (PSS-3)
PSS-3
Apply Boudreaux 2015 PSS-3 from four caller-assigned flags and return screen_positive using the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med): ideation past 2 weeks or attempt within 6 months. Depression is a segue and is not factored into screening results. magent does not interview the patient. Not a diagnosis. Not C-SSRS.
Markdown: /docs/pss-3.md · Canonical: https://magentlab.com/docs/pss-3
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Apply Boudreaux 2015 PSS-3 from four caller-assigned flags and return screen_positive using the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med): ideation past 2 weeks or attempt within 6 months. Depression is a segue and is not factored into screening results. magent does not interview the patient. Not a diagnosis. Not C-SSRS.
When to use
When an agent has already assigned Boudreaux 2015 PSS-3 flags (2-week depressed mood, 2-week suicidal ideation, lifetime attempt, and whether the most recent attempt was within 6 months) and needs the published screen_positive result, not a suicide-risk diagnosis, a C-SSRS interview, or a clinical interview.
When not to use
- Not a medical device and not a diagnosis or treatment order.
- magent does not interview the patient. The caller assigns four bools.
- depressed_mood is the Boudreaux 2015 2-week down/depressed/hopeless segue and is not factored into screening results.
- screen_positive uses the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med): ideation past 2 weeks or attempt within 6 months. ToolRecord citation is Boudreaux 2015 (PSS-3 validation).
- If lifetime_attempt is false, attempt_within_6_months must be false. This is not C-SSRS.
Formula
screen_positive iff ideation_2_weeks OR (lifetime_attempt AND attempt_within_6_months); depressed_mood (past 2 weeks down/depressed/hopeless) is a segue item and is not factored into screening results; this positive rule is the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med: ideation past 2 weeks or attempt within 6 months); if lifetime_attempt is false then attempt_within_6_months must be false; four caller-assigned bools; magent does not interview the patient; not a diagnosis; not C-SSRS
Citation
- Authors
- Boudreaux ED, Jaques ML, Brady KM, Matson A, Allen MH
- Source
- Arch Suicide Res. 2015;19(2):151-160
Worked example
All flags false
Given:
attempt_within_6_months=falsedepressed_mood=falseideation_2_weeks=falselifetime_attempt=false
- depressed_mood false (segue; not in screen_positive)
- ideation_2_weeks false
- lifetime_attempt false and attempt_within_6_months false
- screen_positive false
Ideation in the past 2 weeks
Given:
attempt_within_6_months=falsedepressed_mood=falseideation_2_weeks=truelifetime_attempt=false
- ideation_2_weeks true
- screen_positive true (ED-SAFE / Boudreaux 2016: ideation past 2 weeks)
Attempt within 6 months
Given:
attempt_within_6_months=truedepressed_mood=falseideation_2_weeks=falselifetime_attempt=true
- lifetime_attempt true and attempt_within_6_months true
- ideation_2_weeks false
- screen_positive true (ED-SAFE / Boudreaux 2016: attempt within 6 months)
Also searched as
- PSS-3
- Patient Safety Screener
- Patient Safety Screener 3
- PSS-3 suicide screen
- ED-SAFE PSS-3
- Boudreaux PSS-3
- Patient Safety Screener-3
- ED suicide screener
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/pss_3?depressed_mood=false&ideation_2_weeks=false&lifetime_attempt=false&attempt_within_6_months=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/pss_3?depressed_mood=false&ideation_2_weeks=false&lifetime_attempt=false&attempt_within_6_months=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
depressed_mood |
boolean | required | Over the past 2 weeks, felt down, depressed, or hopeless (Boudreaux 2015 PSS-3 segue item). true or false as assigned by the caller. Not factored into screen_positive. magent does not interview the patient. |
ideation_2_weeks |
boolean | required | Active suicidal ideation in the past 2 weeks (Boudreaux 2015: over the past 2 weeks, thoughts of killing yourself). true or false as assigned by the caller. screen_positive is true if this is true. magent does not interview the patient. |
lifetime_attempt |
boolean | required | Lifetime suicide attempt (Boudreaux 2015: ever attempted to kill yourself). true or false as assigned by the caller. If false, attempt_within_6_months must be false. magent does not interview the patient. |
attempt_within_6_months |
boolean | required | Most recent suicide attempt was within 6 months (Boudreaux 2015 timing follow-up). true or false as assigned by the caller. Always required. If lifetime_attempt is false this must be false. screen_positive is true when lifetime_attempt and this are both true. 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": [
{
"attempt_within_6_months": "false",
"depressed_mood": "false",
"ideation_2_weeks": "false",
"lifetime_attempt": "false"
},
{
"attempt_within_6_months": "false",
"depressed_mood": "false",
"ideation_2_weeks": "false",
"lifetime_attempt": "false"
}
]
}
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/pss_3",
"items": [
{
"components": [
{
"factor": "depressed_mood",
"met": false
},
{
"factor": "ideation_2_weeks",
"met": false
},
{
"factor": "lifetime_attempt",
"met": false
},
{
"factor": "attempt_within_6_months",
"met": 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": "Boudreaux ED, Jaques ML, Brady KM, Matson A, Allen MH",
"doi": "10.1080/13811118.2015.1034604",
"id": "boudreaux-2015",
"pmid": "25826715",
"source": "Arch Suicide Res. 2015;19(2):151-160",
"title": "The Patient Safety Screener: Validation of a Brief Suicide Risk Screener for Emergency Department Settings"
},
"formula": "pss_3",
"formula_expression": "screen_positive iff ideation_2_weeks OR (lifetime_attempt AND attempt_within_6_months); depressed_mood (past 2 weeks down/depressed/hopeless) is a segue item and is not factored into screening results; this positive rule is the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med: ideation past 2 weeks or attempt within 6 months); if lifetime_attempt is false then attempt_within_6_months must be false; four caller-assigned bools; magent does not interview the patient; not a diagnosis; not C-SSRS",
"screen_positive": false,
"attempt_within_6_months": false,
"depressed_mood": false,
"ideation_2_weeks": false,
"lifetime_attempt": false
},
{
"components": [
{
"factor": "depressed_mood",
"met": false
},
{
"factor": "ideation_2_weeks",
"met": false
},
{
"factor": "lifetime_attempt",
"met": false
},
{
"factor": "attempt_within_6_months",
"met": 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": "Boudreaux ED, Jaques ML, Brady KM, Matson A, Allen MH",
"doi": "10.1080/13811118.2015.1034604",
"id": "boudreaux-2015",
"pmid": "25826715",
"source": "Arch Suicide Res. 2015;19(2):151-160",
"title": "The Patient Safety Screener: Validation of a Brief Suicide Risk Screener for Emergency Department Settings"
},
"formula": "pss_3",
"formula_expression": "screen_positive iff ideation_2_weeks OR (lifetime_attempt AND attempt_within_6_months); depressed_mood (past 2 weeks down/depressed/hopeless) is a segue item and is not factored into screening results; this positive rule is the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med: ideation past 2 weeks or attempt within 6 months); if lifetime_attempt is false then attempt_within_6_months must be false; four caller-assigned bools; magent does not interview the patient; not a diagnosis; not C-SSRS",
"screen_positive": false,
"attempt_within_6_months": false,
"depressed_mood": false,
"ideation_2_weeks": false,
"lifetime_attempt": false
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | pss_3 |
formula_expression |
string | Published PSS-3 / ED-SAFE screen-positive rule |
depressed_mood |
boolean | Boudreaux 2015 2-week down/depressed/hopeless segue as assigned by the caller. Not in screen_positive. |
ideation_2_weeks |
boolean | Active suicidal ideation in the past 2 weeks as assigned by the caller |
lifetime_attempt |
boolean | Lifetime suicide attempt as assigned by the caller |
attempt_within_6_months |
boolean | Most recent attempt was within 6 months as assigned by the caller |
screen_positive |
boolean | true iff ideation_2_weeks or (lifetime_attempt and attempt_within_6_months). Same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med). Depression is not factored in. Not a diagnosis. Not C-SSRS. |
components |
array | Per-flag Tree rows depressed_mood, ideation_2_weeks, lifetime_attempt, attempt_within_6_months with factor and met |
citation |
object | Boudreaux 2015 Arch Suicide Res citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"factor": "depressed_mood",
"met": false
},
{
"factor": "ideation_2_weeks",
"met": false
},
{
"factor": "lifetime_attempt",
"met": false
},
{
"factor": "attempt_within_6_months",
"met": 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": "Boudreaux ED, Jaques ML, Brady KM, Matson A, Allen MH",
"doi": "10.1080/13811118.2015.1034604",
"id": "boudreaux-2015",
"pmid": "25826715",
"source": "Arch Suicide Res. 2015;19(2):151-160",
"title": "The Patient Safety Screener: Validation of a Brief Suicide Risk Screener for Emergency Department Settings"
},
"formula": "pss_3",
"formula_expression": "screen_positive iff ideation_2_weeks OR (lifetime_attempt AND attempt_within_6_months); depressed_mood (past 2 weeks down/depressed/hopeless) is a segue item and is not factored into screening results; this positive rule is the same-group ED-SAFE definition used with PSS-3 (Boudreaux 2016 Am J Prev Med: ideation past 2 weeks or attempt within 6 months); if lifetime_attempt is false then attempt_within_6_months must be false; four caller-assigned bools; magent does not interview the patient; not a diagnosis; not C-SSRS",
"screen_positive": false,
"attempt_within_6_months": false,
"depressed_mood": false,
"ideation_2_weeks": false,
"lifetime_attempt": false
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_pss3 |
PSS-3 needs Boudreaux 2015 depressed_mood, ideation_2_weeks, lifetime_attempt, and attempt_within_6_months as true or false. 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
- PHQ-9 — Sum nine caller-assigned Kroenke 2001 PHQ-9 integers (0-3) and return the published total (max 27), severity cutpoints, and ≥10 screen.
- GAD-7 — Sum seven caller-assigned Spitzer 2006 GAD-7 integers (0-3) and return the published 0-21 total, 5/10/15 severity cuts, and ≥10 case-finding flag.
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.