75trust / 100

Calc Aap Tsb

by magent in Productivity & SaaS

x402 APIPassing, checked 6 h ago

AAP 2022 Kemper KAS 10 intensive phototherapy threshold from Supplemental Tables 1 and 2 by completed GA, age in hours, TSB, and caller-assigned extra neurotoxicity risk factors. Linear interpolation between tabulated hours. Do not subtract conjugated bilirubin. Not a phototherapy order. magent does not assay TSB.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
138 ms typical, 138 ms slowest 5%
Last check
6 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/aap_tsb?age_hours=48&albumin_lt_3=false&clinical_instability_24h=false&g6pd_deficiency=false&gestational_age_weeks=40&isoimmune_hemolytic_disease=false&other_hemolytic_condition=false&sepsis=false&tsb_mg_dl=17"
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%2Faap_tsb
const res = await pay("https://api.magentlab.com/api/calc/aap_tsb?age_hours=48&albumin_lt_3=false&clinical_instability_24h=false&g6pd_deficiency=false&gestational_age_weeks=40&isoimmune_hemolytic_disease=false&other_hemolytic_condition=false&sepsis=false&tsb_mg_dl=17");
console.log(await res.json());

Example input

{
  "age_hours": 48,
  "albumin_lt_3": false,
  "clinical_instability_24h": false,
  "g6pd_deficiency": false,
  "gestational_age_weeks": 40,
  "isoimmune_hemolytic_disease": false,
  "other_hemolytic_condition": false,
  "sepsis": false,
  "tsb_mg_dl": 17
}

Example output

{
  "above_phototherapy_threshold": true,
  "age_hours": 48,
  "albumin_lt_3": false,
  "any_neurotoxicity_risk_factor": false,
  "citation": {
    "authors": "Kemper AR, Newman TB, Slaughter JL, et al.",
    "doi": "10.1542/peds.2022-058859",
    "id": "kemper-2022-aap-hyperbilirubinemia",
    "pmid": "35927462",
    "source": "Pediatrics. 2022;150(3):e2022058859",
    "title": "Clinical Practice Guideline Revision: Management of Hyperbilirubinemia in the Newborn Infant 35 or More Weeks of Gestation"
  },
  "clinical_instability_24h": false,
  "components": [
    {
      "factor": "any_neurotoxicity_risk_factor",
      "met": false
    },
    {
      "factor": "above_phototherapy_threshold",
      "met": true,
      "value": 17
    }
  ],
  "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": "aap_tsb",
  "formula_expression": "Kemper 2022 KAS 10 intensive phototherapy threshold (mg/dL) from Supplemental Table 1 when the caller assigns no neurotoxicity risk factors other than gestational age, or Supplemental Table 2 when any additional listed factor is assigned. Table 1 curves are completed GA 35, 36, 37, 38, 39, and ≥40 weeks. Table 2 curves are 35, 36, 37, and ≥38 weeks. Age is in hours (tabulated hourly from 1 through 336); interpolate linearly between adjacent tabulated hours. Use total serum bilirubin; do not subtract direct-reacting or conjugated bilirubin. Gestational age <38 weeks is already in the GA-specific curve — do not apply Table 2 solely for prematurity. Not a phototherapy or exchange order. magent does not assay TSB",
  "g6pd_deficiency": false,
  "gestational_age_group": "40_or_more",
  "gestational_age_weeks": 40,
  "isoimmune_hemolytic_disease": false,
  "other_hemolytic_condition": false,
  "phototherapy_threshold_mg_dl": 17,
  "sepsis": false,
  "supplemental_table": 1,
  "tsb_mg_dl": 17,
  "tsb_minus_threshold": 0
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402138 ms$0.005