ToolAssay

HOSPITAL (Donze 2013 JAMA Intern Med acronym table)

HOSPITAL (Donze 2013 JAMA Intern Med acronym table): hemoglobin_lt_12 (last Hb <12 g/dL) 1; oncology_service 2; sodium_lt_135 (last Na <135 mmol/L) 1; procedure (any ICD-coded procedure during the stay) 1; urgent_or_emergent_admission 1; admissions_12mo 0-1→0, 2-5→2, >5→5; los_ge_5_days 2. Max 13. Bands 0-4 low, 5-6 intermediate, >=7 high for potentially avoidable 30-day readmission (SQLape), not all-cause. Flags and counts are caller-assigned. Not a discharge order or diagnosis.

Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
278 msmedian answer time
$0.005listed price per call
$0.007price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://api.magentlab.com/api/calc/hospital

CategoryEverything else
Provider hostapi.magentlab.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days0 from 0 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-28 valid payment request 402$0.007 278 ms

Example input (from the provider)

{
  "body": {
    "items": [
      {
        "admissions_12mo": 0,
        "hemoglobin_lt_12": false,
        "los_ge_5_days": false,
        "oncology_service": false,
        "procedure": false,
        "sodium_lt_135": false,
        "urgent_or_emergent_admission": false
      },
      {
        "admissions_12mo": 0,
        "hemoglobin_lt_12": false,
        "los_ge_5_days": false,
        "oncology_service": false,
        "procedure": false,
        "sodium_lt_135": false,
        "urgent_or_emergent_admission": false
      }
    ]
  },
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "items": {
              "items": {
                "properties": {
                  "admissions_12mo": {
                    "description": "Hospital admissions during the previous year (integer 0-50, magent clamp). Donze 2013 A: 0-1 scores 0; 2-5 scores 2; >5 scores 5. Count 0 and 1 both score 0; 2 scores 2; 5 scores 2; 6 scores 5.",
                    "type": "integer"
                  },
                  "hemoglobin_lt_12": {
                    "description": "Last hemoglobin <12 g/dL as assigned by the caller (Donze 2013 H). true scores 1. magent does not assay hemoglobin. Do not send a hemoglobin number.",
                    "type": "boolean"
                  },
                  "los_ge_5_days": {
                    "description": "Length of stay \u22655 days as assigned by the caller (Donze 2013 L). true scores 2. magent does not compute length of stay from dates.",
                    "type": "boolean"
                  },
                  "oncology_service": {
                    "description": "Discharge from an oncology service as assigned by the caller (Donze 2013 O). true scores 2.",
                    "type": "boolean"
                  },
                  "procedure": {
                    "description": "Any ICD-coded procedure during the stay as assigned by the caller (Donze 2013 P). true scores 1. magent does not read the chart.",
                    "type": "boolean"
                  },
                  "sodium_lt_135": {
                    "description": "Last sodium <135 mmol/L as assigned by the caller (Donze 2013 S). true scores 1. magent does not assay sodium. Do not send a sodium number.",
                    "type": "boolean"
                  },
                  "urgent_or_emergent_admission": {
                    "description": "Index admission type urgent or emergent, not elective, as assigned by the caller (Donze 2013 I). true scores 1.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "hemoglobin_lt_12",
                  "oncology_service",
                  "sodium_lt_135",
                  "procedure",
                  "urgent_or_emergent_admission",
                  "admissions_12mo",
                  "los_ge_5_days"
                ],
                "type": "object"
              },
              "maxItems": 25,
              "minItems": 1,
              "type": "array"
            }
          },
          "required": [
            "items"
          ],
          "type": "object"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "method": {
          "const": "POST",
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON