{
  "x402Version": 2,
  "id": 38805,
  "slug": "38805",
  "resource": "https://api.magentlab.com/api/calc/shapiro",
  "description": "Shapiro 2008 blood-culture rule. Indicated if ≥1 major (temperature >39.5 °C, indwelling vascular catheter, suspected endocarditis) or ≥2 minor (temperature 38.3–39.4 °C, age >65, chills, vomiting, hypotension SBP <90, neutrophils >80%, WBC >18 k, bands >5%, platelets <150 k, creatinine >2.0 mg/dL). Not a culture order or sepsis diagnosis. magent does not examine the patient.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 40,
                "bands_percent": 2,
                "catheter": false,
                "chills": false,
                "creatinine_mg_dl": 1,
                "hypotension": false,
                "neutrophil_percent": 70,
                "platelets_k": 250,
                "suspected_endocarditis": false,
                "temperature_c": 37,
                "vomiting": false,
                "wbc_k": 10
              },
              {
                "age": 40,
                "bands_percent": 2,
                "catheter": false,
                "chills": false,
                "creatinine_mg_dl": 1,
                "hypotension": false,
                "neutrophil_percent": 70,
                "platelets_k": 250,
                "suspected_endocarditis": false,
                "temperature_c": 37,
                "vomiting": false,
                "wbc_k": 10
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 40,
                "citation": {
                  "authors": "Shapiro NI, Wolfe RE, Wright SB, Moore R, Bates DW",
                  "doi": "10.1016/j.jemermed.2008.04.001",
                  "id": "shapiro-2008",
                  "pmid": "18486413",
                  "source": "J Emerg Med. 2008;35(3):255-264",
                  "title": "Who needs a blood culture? A prospectively derived and validated prediction rule"
                },
                "criteria": [
                  {
                    "factor": "temperature_gt_39_5",
                    "met": false,
                    "value": 37
                  },
                  {
                    "factor": "catheter",
                    "met": false
                  },
                  {
                    "factor": "suspected_endocarditis",
                    "met": false
                  },
                  {
                    "factor": "temperature_38_3_to_39_4",
                    "met": false,
                    "value": 37
                  },
                  {
                    "factor": "age_gt_65",
                    "met": false,
                    "value": 40
                  },
                  {
                    "factor": "chills",
                    "met": false
                  },
                  {
                    "factor": "vomiting",
                    "met": false
                  },
                  {
                    "factor": "hypotension",
                    "met": false
                  },
                  {
                    "factor": "neutrophil_gt_80",
                    "met": false,
                    "value": 70
                  },
                  {
                    "factor": "wbc_gt_18k",
                    "met": false,
                    "value": 10
                  },
                  {
                    "factor": "bands_gt_5",
                    "met": false,
                    "value": 2
                  },
                  {
                    "factor": "platelets_lt_150k",
                    "met": false,
                    "value": 250
                  },
                  {
                    "factor": "creatinine_gt_2",
                    "met": false,
                    "value": 1
                  }
                ],
                "culture_indicated": 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.",
                "formula": "shapiro",
                "formula_expression": "culture indicated if ≥1 major (temperature_c > 39.5, catheter, suspected_endocarditis) or ≥2 minor (temperature_c 38.3–39.4, age > 65, chills, vomiting, hypotension, neutrophil_percent > 80, wbc_k > 18, bands_percent > 5, platelets_k < 150, creatinine_mg_dl > 2.0) (Shapiro 2008)",
                "major_count": 0,
                "minor_count": 0,
                "temperature_c": 37
              },
              {
                "age": 40,
                "citation": {
                  "authors": "Shapiro NI, Wolfe RE, Wright SB, Moore R, Bates DW",
                  "doi": "10.1016/j.jemermed.2008.04.001",
                  "id": "shapiro-2008",
                  "pmid": "18486413",
                  "source": "J Emerg Med. 2008;35(3):255-264",
                  "title": "Who needs a blood culture? A prospectively derived and validated prediction rule"
                },
                "criteria": [
                  {
                    "factor": "temperature_gt_39_5",
                    "met": false,
                    "value": 37
                  },
                  {
                    "factor": "catheter",
                    "met": false
                  },
                  {
                    "factor": "suspected_endocarditis",
                    "met": false
                  },
                  {
                    "factor": "temperature_38_3_to_39_4",
                    "met": false,
                    "value": 37
                  },
                  {
                    "factor": "age_gt_65",
                    "met": false,
                    "value": 40
                  },
                  {
                    "factor": "chills",
                    "met": false
                  },
                  {
                    "factor": "vomiting",
                    "met": false
                  },
                  {
                    "factor": "hypotension",
                    "met": false
                  },
                  {
                    "factor": "neutrophil_gt_80",
                    "met": false,
                    "value": 70
                  },
                  {
                    "factor": "wbc_gt_18k",
                    "met": false,
                    "value": 10
                  },
                  {
                    "factor": "bands_gt_5",
                    "met": false,
                    "value": 2
                  },
                  {
                    "factor": "platelets_lt_150k",
                    "met": false,
                    "value": 250
                  },
                  {
                    "factor": "creatinine_gt_2",
                    "met": false,
                    "value": 1
                  }
                ],
                "culture_indicated": 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.",
                "formula": "shapiro",
                "formula_expression": "culture indicated if ≥1 major (temperature_c > 39.5, catheter, suspected_endocarditis) or ≥2 minor (temperature_c 38.3–39.4, age > 65, chills, vomiting, hypotension, neutrophil_percent > 80, wbc_k > 18, bands_percent > 5, platelets_k < 150, creatinine_mg_dl > 2.0) (Shapiro 2008)",
                "major_count": 0,
                "minor_count": 0,
                "temperature_c": 37
              }
            ],
            "path": "/api/calc/shapiro"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (integer 18-120). Age >65 is a Shapiro 2008 minor criterion; 65 is not. The published rule is for adults ≥18 years.",
                          "type": "integer"
                        },
                        "bands_percent": {
                          "description": "Band percent (0-100). Shapiro 2008 minor when >5 (5 does not). magent does not assay a CBC.",
                          "type": "number"
                        },
                        "catheter": {
                          "description": "Indwelling vascular catheter (Shapiro 2008 major). true or false as assigned by the caller. magent does not inspect lines.",
                          "type": "boolean"
                        },
                        "chills": {
                          "description": "Chills (Shapiro 2008 minor). true or false as assigned by the caller. magent does not take a history.",
                          "type": "boolean"
                        },
                        "creatinine_mg_dl": {
                          "description": "Creatinine in mg/dL (0.1-20.0). Shapiro 2008 minor when >2.0 (2.0 does not). magent does not assay creatinine.",
                          "type": "number"
                        },
                        "hypotension": {
                          "description": "Hypotension (Shapiro 2008 minor: systolic blood pressure < 90 mm Hg). true or false as assigned by the caller. magent does not measure blood pressure.",
                          "type": "boolean"
                        },
                        "neutrophil_percent": {
                          "description": "Neutrophil percent (0-100). Shapiro 2008 minor when >80 (80 does not). magent does not assay a CBC.",
                          "type": "number"
                        },
                        "platelets_k": {
                          "description": "Platelet count in thousands (0-2000; same as 10^3/µL). Shapiro 2008 minor when <150 (150 does not). magent does not assay a CBC.",
                          "type": "number"
                        },
                        "suspected_endocarditis": {
                          "description": "Clinical suspicion of endocarditis (Shapiro 2008 major). true or false as assigned by the caller. magent does not diagnose endocarditis.",
                          "type": "boolean"
                        },
                        "temperature_c": {
                          "description": "Temperature in °C (30.0-45.0). Major when >39.5 (39.5 is not). Minor when 38.3–39.4 inclusive. magent does not measure temperature.",
                          "type": "number"
                        },
                        "vomiting": {
                          "description": "Vomiting (Shapiro 2008 minor). true or false as assigned by the caller. magent does not observe vomiting.",
                          "type": "boolean"
                        },
                        "wbc_k": {
                          "description": "White blood cell count in thousands (0-500; same as 10^3/µL). Shapiro 2008 minor when >18 (18 does not). magent does not assay a CBC.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "temperature_c",
                        "catheter",
                        "suspected_endocarditis",
                        "chills",
                        "vomiting",
                        "hypotension",
                        "neutrophil_percent",
                        "wbc_k",
                        "bands_percent",
                        "platelets_k",
                        "creatinine_mg_dl"
                      ],
                      "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"
      }
    }
  },
  "tags": [
    "shapiro",
    "blood-culture",
    "bacteremia",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T14:57:33.767Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T14:57:33.61Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "bands_percent": 2,
                  "catheter": false,
                  "chills": false,
                  "creatinine_mg_dl": 1,
                  "hypotension": false,
                  "neutrophil_percent": 70,
                  "platelets_k": 250,
                  "suspected_endocarditis": false,
                  "temperature_c": 37,
                  "vomiting": false,
                  "wbc_k": 10
                },
                {
                  "age": 40,
                  "bands_percent": 2,
                  "catheter": false,
                  "chills": false,
                  "creatinine_mg_dl": 1,
                  "hypotension": false,
                  "neutrophil_percent": 70,
                  "platelets_k": 250,
                  "suspected_endocarditis": false,
                  "temperature_c": 37,
                  "vomiting": false,
                  "wbc_k": 10
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 40,
                  "citation": {
                    "authors": "Shapiro NI, Wolfe RE, Wright SB, Moore R, Bates DW",
                    "doi": "10.1016/j.jemermed.2008.04.001",
                    "id": "shapiro-2008",
                    "pmid": "18486413",
                    "source": "J Emerg Med. 2008;35(3):255-264",
                    "title": "Who needs a blood culture? A prospectively derived and validated prediction rule"
                  },
                  "criteria": [
                    {
                      "factor": "temperature_gt_39_5",
                      "met": false,
                      "value": 37
                    },
                    {
                      "factor": "catheter",
                      "met": false
                    },
                    {
                      "factor": "suspected_endocarditis",
                      "met": false
                    },
                    {
                      "factor": "temperature_38_3_to_39_4",
                      "met": false,
                      "value": 37
                    },
                    {
                      "factor": "age_gt_65",
                      "met": false,
                      "value": 40
                    },
                    {
                      "factor": "chills",
                      "met": false
                    },
                    {
                      "factor": "vomiting",
                      "met": false
                    },
                    {
                      "factor": "hypotension",
                      "met": false
                    },
                    {
                      "factor": "neutrophil_gt_80",
                      "met": false,
                      "value": 70
                    },
                    {
                      "factor": "wbc_gt_18k",
                      "met": false,
                      "value": 10
                    },
                    {
                      "factor": "bands_gt_5",
                      "met": false,
                      "value": 2
                    },
                    {
                      "factor": "platelets_lt_150k",
                      "met": false,
                      "value": 250
                    },
                    {
                      "factor": "creatinine_gt_2",
                      "met": false,
                      "value": 1
                    }
                  ],
                  "culture_indicated": 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.",
                  "formula": "shapiro",
                  "formula_expression": "culture indicated if ≥1 major (temperature_c > 39.5, catheter, suspected_endocarditis) or ≥2 minor (temperature_c 38.3–39.4, age > 65, chills, vomiting, hypotension, neutrophil_percent > 80, wbc_k > 18, bands_percent > 5, platelets_k < 150, creatinine_mg_dl > 2.0) (Shapiro 2008)",
                  "major_count": 0,
                  "minor_count": 0,
                  "temperature_c": 37
                },
                {
                  "age": 40,
                  "citation": {
                    "authors": "Shapiro NI, Wolfe RE, Wright SB, Moore R, Bates DW",
                    "doi": "10.1016/j.jemermed.2008.04.001",
                    "id": "shapiro-2008",
                    "pmid": "18486413",
                    "source": "J Emerg Med. 2008;35(3):255-264",
                    "title": "Who needs a blood culture? A prospectively derived and validated prediction rule"
                  },
                  "criteria": [
                    {
                      "factor": "temperature_gt_39_5",
                      "met": false,
                      "value": 37
                    },
                    {
                      "factor": "catheter",
                      "met": false
                    },
                    {
                      "factor": "suspected_endocarditis",
                      "met": false
                    },
                    {
                      "factor": "temperature_38_3_to_39_4",
                      "met": false,
                      "value": 37
                    },
                    {
                      "factor": "age_gt_65",
                      "met": false,
                      "value": 40
                    },
                    {
                      "factor": "chills",
                      "met": false
                    },
                    {
                      "factor": "vomiting",
                      "met": false
                    },
                    {
                      "factor": "hypotension",
                      "met": false
                    },
                    {
                      "factor": "neutrophil_gt_80",
                      "met": false,
                      "value": 70
                    },
                    {
                      "factor": "wbc_gt_18k",
                      "met": false,
                      "value": 10
                    },
                    {
                      "factor": "bands_gt_5",
                      "met": false,
                      "value": 2
                    },
                    {
                      "factor": "platelets_lt_150k",
                      "met": false,
                      "value": 250
                    },
                    {
                      "factor": "creatinine_gt_2",
                      "met": false,
                      "value": 1
                    }
                  ],
                  "culture_indicated": 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.",
                  "formula": "shapiro",
                  "formula_expression": "culture indicated if ≥1 major (temperature_c > 39.5, catheter, suspected_endocarditis) or ≥2 minor (temperature_c 38.3–39.4, age > 65, chills, vomiting, hypotension, neutrophil_percent > 80, wbc_k > 18, bands_percent > 5, platelets_k < 150, creatinine_mg_dl > 2.0) (Shapiro 2008)",
                  "major_count": 0,
                  "minor_count": 0,
                  "temperature_c": 37
                }
              ],
              "path": "/api/calc/shapiro"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (integer 18-120). Age >65 is a Shapiro 2008 minor criterion; 65 is not. The published rule is for adults ≥18 years.",
                            "type": "integer"
                          },
                          "bands_percent": {
                            "description": "Band percent (0-100). Shapiro 2008 minor when >5 (5 does not). magent does not assay a CBC.",
                            "type": "number"
                          },
                          "catheter": {
                            "description": "Indwelling vascular catheter (Shapiro 2008 major). true or false as assigned by the caller. magent does not inspect lines.",
                            "type": "boolean"
                          },
                          "chills": {
                            "description": "Chills (Shapiro 2008 minor). true or false as assigned by the caller. magent does not take a history.",
                            "type": "boolean"
                          },
                          "creatinine_mg_dl": {
                            "description": "Creatinine in mg/dL (0.1-20.0). Shapiro 2008 minor when >2.0 (2.0 does not). magent does not assay creatinine.",
                            "type": "number"
                          },
                          "hypotension": {
                            "description": "Hypotension (Shapiro 2008 minor: systolic blood pressure < 90 mm Hg). true or false as assigned by the caller. magent does not measure blood pressure.",
                            "type": "boolean"
                          },
                          "neutrophil_percent": {
                            "description": "Neutrophil percent (0-100). Shapiro 2008 minor when >80 (80 does not). magent does not assay a CBC.",
                            "type": "number"
                          },
                          "platelets_k": {
                            "description": "Platelet count in thousands (0-2000; same as 10^3/µL). Shapiro 2008 minor when <150 (150 does not). magent does not assay a CBC.",
                            "type": "number"
                          },
                          "suspected_endocarditis": {
                            "description": "Clinical suspicion of endocarditis (Shapiro 2008 major). true or false as assigned by the caller. magent does not diagnose endocarditis.",
                            "type": "boolean"
                          },
                          "temperature_c": {
                            "description": "Temperature in °C (30.0-45.0). Major when >39.5 (39.5 is not). Minor when 38.3–39.4 inclusive. magent does not measure temperature.",
                            "type": "number"
                          },
                          "vomiting": {
                            "description": "Vomiting (Shapiro 2008 minor). true or false as assigned by the caller. magent does not observe vomiting.",
                            "type": "boolean"
                          },
                          "wbc_k": {
                            "description": "White blood cell count in thousands (0-500; same as 10^3/µL). Shapiro 2008 minor when >18 (18 does not). magent does not assay a CBC.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "temperature_c",
                          "catheter",
                          "suspected_endocarditis",
                          "chills",
                          "vomiting",
                          "hypotension",
                          "neutrophil_percent",
                          "wbc_k",
                          "bands_percent",
                          "platelets_k",
                          "creatinine_mg_dl"
                        ],
                        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}