75trust / 100

Calc Sg Port

by magent in Productivity & SaaS

x402 APIPassing, checked 6 h ago

Jacobs 2022 Table 3 Cox linear predictor for overall survival after resected major salivary gland cancer with versus without postoperative radiotherapy. Age per 10 years by PORT, male, Charlson-Deyo per point, gland, PORT by T stage, nodal-positivity ratio band, grade step, and positive margin as ln(HR). Not a 2-/5-/10-year OS percent (no printed S0). Not a radiation order. magent does not compute Charlson-Deyo or count nodes.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
137 ms typical, 137 ms slowest 5%
Last check
6 h ago
Next check
in 1 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/calc/sg_port?age=65&charlson_deyo=0&gland=parotid&grade=low&margin=negative&nodal_positivity_ratio=0&port=false&sex=male&t_stage=t2"
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%2Fsg_port
const res = await pay("https://api.magentlab.com/api/calc/sg_port?age=65&charlson_deyo=0&gland=parotid&grade=low&margin=negative&nodal_positivity_ratio=0&port=false&sex=male&t_stage=t2");
console.log(await res.json());

Example input

{
  "age": 65,
  "charlson_deyo": "0",
  "gland": "parotid",
  "grade": "low",
  "margin": "negative",
  "nodal_positivity_ratio": "0",
  "port": false,
  "sex": "male",
  "t_stage": "t2"
}

Example output

{
  "age": 65,
  "charlson_deyo": "0",
  "citation": {
    "authors": "Jacobs CD, Barak I, Jung SH, et al.",
    "doi": "10.1016/j.oraloncology.2022.105955",
    "id": "jacobs-2022-sg-port",
    "pmid": "35752134",
    "source": "Oral Oncol. 2022;132:105955",
    "title": "Prediction model to estimate overall survival benefit of postoperative radiotherapy for resected major salivary gland cancers"
  },
  "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": "sg_port",
  "formula_expression": "lp = ln(age_hr_by_port)*(age/10) + ln(1.28)*male + ln(1.22)*charlson_deyo_step + ln(1.32)*submandibular + ln(0.72)*sublingual + ln(port_hr_by_t)*port + ln(1.29)*nodal_ratio_step + ln(1.34)*grade_step + ln(1.26)*positive_margin; Jacobs 2022 Table 3 multivariable HRs, β = ln(HR); age_hr is 1.52 without PORT and 1.37 with PORT (per 10 years); port_hr is 1.03/0.83/0.68/0.55 for pT1/pT2/pT3/pT4; charlson_deyo_step 0/1/2/3 for 0/1/2/ge_3; nodal_ratio_step 0/1/2/3 for 0 / 0.1-10 / 10.1-49.9 / ge_50; grade_step 0/1/2 for low/intermediate/high; T-stage main-effect HRs printed as dashes (PORT×T interaction); no printed S0; not 2-/5-/10-year OS percents; not a radiation order; magent does not compute Charlson-Deyo or count nodes",
  "gland": "parotid",
  "grade": "low",
  "linear_predictor": 2.968477,
  "margin": "negative",
  "nodal_positivity_ratio": "0",
  "port": false,
  "risk_score": 2.968477,
  "sex": "male",
  "t_stage": "t2"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402137 ms$0.005