81trust / 100

Calc Qids

by magent in Weather & location

x402 APIPassing, checked 2 h ago

Rush 2003 QIDS-SR16 from 16 caller-assigned integers 0-3 mapped to nine DSM-IV domains. Sleep is the max of four sleep items; appetite/weight is the max of four appetite and weight items; psychomotor is the max of retardation and agitation; remaining items add as published. Total 0-27. Severity: 0-5 none, 6-10 mild, 11-15 moderate, 16-20 severe, 21-27 very_severe. magent does not interpret items or administer a depression interview. Not a diagnosis, not QIDS-C, not IDS-30, and not PHQ-9.

GET https://api.magentlab.com/api/calc/qids

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
137 ms typical, 137 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/calc/qids?concentration=0&decreased_appetite=0&decreased_weight=0&early_morning=0&energy=0&hypersomnia=0&increased_appetite=0&increased_weight=0&interest=0&mid_nocturnal=0&psychomotor_agitation=0&psychomotor_retardation=0&sad_mood=0&self_view=0&sleep_onset=0&suicidal_ideation=0"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fqids
const res = await pay("https://api.magentlab.com/api/calc/qids?concentration=0&decreased_appetite=0&decreased_weight=0&early_morning=0&energy=0&hypersomnia=0&increased_appetite=0&increased_weight=0&interest=0&mid_nocturnal=0&psychomotor_agitation=0&psychomotor_retardation=0&sad_mood=0&self_view=0&sleep_onset=0&suicidal_ideation=0");
console.log(await res.json());

Example input

{
  "concentration": 0,
  "decreased_appetite": 0,
  "decreased_weight": 0,
  "early_morning": 0,
  "energy": 0,
  "hypersomnia": 0,
  "increased_appetite": 0,
  "increased_weight": 0,
  "interest": 0,
  "mid_nocturnal": 0,
  "psychomotor_agitation": 0,
  "psychomotor_retardation": 0,
  "sad_mood": 0,
  "self_view": 0,
  "sleep_onset": 0,
  "suicidal_ideation": 0
}

Example output

{
  "appetite_weight_points": 0,
  "citation": {
    "authors": "Rush AJ, Trivedi MH, Ibrahim HM, et al.",
    "doi": "10.1016/s0006-3223(02)01866-8",
    "id": "rush-2003",
    "pmid": "12946886",
    "source": "Biol Psychiatry. 2003;54(5):573-583",
    "title": "The 16-Item Quick Inventory of Depressive Symptomatology (QIDS), clinician rating (QIDS-C), and self-report (QIDS-SR): a psychometric evaluation in patients with chronic major depression"
  },
  "components": [
    {
      "factor": "sleep",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "sad_mood",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "appetite_weight",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "concentration",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "self_view",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "suicidal_ideation",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "interest",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "energy",
      "points": 0,
      "present": true,
      "value": 0
    },
    {
      "factor": "psychomotor",
      "points": 0,
      "present": true,
      "value": 0
    }
  ],
  "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.",
  "formula": "qids",
  "formula_expression": "QIDS-SR16 = max(sleep_onset, mid_nocturnal, early_morning, hypersomnia) + sad_mood + max(decreased_appetite, increased_appetite, decreased_weight, increased_weight) + concentration + self_view + suicidal_ideation + interest + energy + max(psychomotor_retardation, psychomotor_agitation); each caller-assigned 0-3; nine domains; max 27",
  "max_score": 27,
  "psychomotor_points": 0,
  "score": 0,
  "severity": "none",
  "sleep_points": 0
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402137 ms$0.005
7 h agoPassed402149 ms$0.005