{
  "x402Version": 2,
  "id": 38802,
  "slug": "38802",
  "resource": "https://api.magentlab.com/api/calc/shorr",
  "description": "Shorr 2013 MRSA pneumonia risk score (Table 2 only, not HCAP, not DRIP): recent hospitalization ≥2 days in 90 days 2; ICU admission 2; age <30 or >79 1; prior IV antibiotics 1; dementia 1; cerebrovascular disease 1; female with diabetes 1 (male with diabetes 0); nursing home/LTAC/SNF 1; max 10. Bands: 0-1 low, 2-5 medium, ≥6 high. Returns score, max_score, and risk_band. Not a medical device and not an antibiotic order.",
  "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": 50,
                "cerebrovascular_disease": false,
                "dementia": false,
                "diabetes": false,
                "hospitalization_90d": false,
                "icu_admission": false,
                "nursing_home_ltac_snf": false,
                "prior_iv_antibiotics": false,
                "sex": "male"
              },
              {
                "age": 50,
                "cerebrovascular_disease": false,
                "dementia": false,
                "diabetes": false,
                "hospitalization_90d": false,
                "icu_admission": false,
                "nursing_home_ltac_snf": false,
                "prior_iv_antibiotics": false,
                "sex": "male"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Shorr AF, Myers DE, Huang DB, Nathanson BH, Emons MF, Kollef MH",
                  "doi": "10.1186/1471-2334-13-268",
                  "id": "shorr-2013",
                  "pmid": "23742753",
                  "source": "BMC Infect Dis. 2013;13:268",
                  "title": "A risk score for identifying methicillin-resistant Staphylococcus aureus in patients presenting to the hospital with pneumonia"
                },
                "components": [
                  {
                    "factor": "hospitalization_90d",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "icu_admission",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "prior_iv_antibiotics",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "dementia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cerebrovascular_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "female_diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nursing_home_ltac_snf",
                    "points": 0,
                    "present": 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": "shorr",
                "formula_expression": "Shorr = hospitalization_90d (2) + icu_admission (2) + age_lt_30_or_gt_79 (1) + prior_iv_antibiotics (1) + dementia (1) + cerebrovascular_disease (1) + female_and_diabetes (1) + nursing_home_ltac_snf (1); max 10; 0-1 low, 2-5 medium, >=6 high",
                "max_score": 10,
                "risk_band": "low",
                "score": 0,
                "sex": "male"
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Shorr AF, Myers DE, Huang DB, Nathanson BH, Emons MF, Kollef MH",
                  "doi": "10.1186/1471-2334-13-268",
                  "id": "shorr-2013",
                  "pmid": "23742753",
                  "source": "BMC Infect Dis. 2013;13:268",
                  "title": "A risk score for identifying methicillin-resistant Staphylococcus aureus in patients presenting to the hospital with pneumonia"
                },
                "components": [
                  {
                    "factor": "hospitalization_90d",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "icu_admission",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "prior_iv_antibiotics",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "dementia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "cerebrovascular_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "female_diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "nursing_home_ltac_snf",
                    "points": 0,
                    "present": 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": "shorr",
                "formula_expression": "Shorr = hospitalization_90d (2) + icu_admission (2) + age_lt_30_or_gt_79 (1) + prior_iv_antibiotics (1) + dementia (1) + cerebrovascular_disease (1) + female_and_diabetes (1) + nursing_home_ltac_snf (1); max 10; 0-1 low, 2-5 medium, >=6 high",
                "max_score": 10,
                "risk_band": "low",
                "score": 0,
                "sex": "male"
              }
            ],
            "path": "/api/calc/shorr"
          },
          "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 (18-120). Shorr 2013 Table 2: <30 or >79 scores 1; 30 through 79 scores 0. 29 scores 1; 30 scores 0; 79 scores 0; 80 scores 1.",
                          "type": "integer"
                        },
                        "cerebrovascular_disease": {
                          "description": "Cerebrovascular disease (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "dementia": {
                          "description": "Dementia (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "diabetes": {
                          "description": "Diabetes mellitus. Scores 1 only when sex is female (Shorr 2013 Table 2). Male with diabetes scores 0. true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "hospitalization_90d": {
                          "description": "Recent inpatient hospitalization for ≥2 days within 90 days (Shorr 2013 Table 2, 2 points). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "icu_admission": {
                          "description": "ICU admission (Shorr 2013 Table 2, 2 points). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "nursing_home_ltac_snf": {
                          "description": "Recent nursing home, long-term acute care, or skilled nursing facility exposure (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller. magent does not classify the facility.",
                          "type": "boolean"
                        },
                        "prior_iv_antibiotics": {
                          "description": "Prior IV antibiotic exposure (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male. Female with diabetes scores 1 (Shorr 2013 Table 2). Male with diabetes scores 0. Sex alone does not score.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "hospitalization_90d",
                        "icu_admission",
                        "prior_iv_antibiotics",
                        "dementia",
                        "cerebrovascular_disease",
                        "diabetes",
                        "nursing_home_ltac_snf"
                      ],
                      "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": [
    "shorr",
    "mrsa",
    "pneumonia",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:02:06.303Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:02:06.078Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "cerebrovascular_disease": false,
                  "dementia": false,
                  "diabetes": false,
                  "hospitalization_90d": false,
                  "icu_admission": false,
                  "nursing_home_ltac_snf": false,
                  "prior_iv_antibiotics": false,
                  "sex": "male"
                },
                {
                  "age": 50,
                  "cerebrovascular_disease": false,
                  "dementia": false,
                  "diabetes": false,
                  "hospitalization_90d": false,
                  "icu_admission": false,
                  "nursing_home_ltac_snf": false,
                  "prior_iv_antibiotics": false,
                  "sex": "male"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Shorr AF, Myers DE, Huang DB, Nathanson BH, Emons MF, Kollef MH",
                    "doi": "10.1186/1471-2334-13-268",
                    "id": "shorr-2013",
                    "pmid": "23742753",
                    "source": "BMC Infect Dis. 2013;13:268",
                    "title": "A risk score for identifying methicillin-resistant Staphylococcus aureus in patients presenting to the hospital with pneumonia"
                  },
                  "components": [
                    {
                      "factor": "hospitalization_90d",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "icu_admission",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "prior_iv_antibiotics",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "dementia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cerebrovascular_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "female_diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nursing_home_ltac_snf",
                      "points": 0,
                      "present": 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": "shorr",
                  "formula_expression": "Shorr = hospitalization_90d (2) + icu_admission (2) + age_lt_30_or_gt_79 (1) + prior_iv_antibiotics (1) + dementia (1) + cerebrovascular_disease (1) + female_and_diabetes (1) + nursing_home_ltac_snf (1); max 10; 0-1 low, 2-5 medium, >=6 high",
                  "max_score": 10,
                  "risk_band": "low",
                  "score": 0,
                  "sex": "male"
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Shorr AF, Myers DE, Huang DB, Nathanson BH, Emons MF, Kollef MH",
                    "doi": "10.1186/1471-2334-13-268",
                    "id": "shorr-2013",
                    "pmid": "23742753",
                    "source": "BMC Infect Dis. 2013;13:268",
                    "title": "A risk score for identifying methicillin-resistant Staphylococcus aureus in patients presenting to the hospital with pneumonia"
                  },
                  "components": [
                    {
                      "factor": "hospitalization_90d",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "icu_admission",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "prior_iv_antibiotics",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "dementia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "cerebrovascular_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "female_diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "nursing_home_ltac_snf",
                      "points": 0,
                      "present": 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": "shorr",
                  "formula_expression": "Shorr = hospitalization_90d (2) + icu_admission (2) + age_lt_30_or_gt_79 (1) + prior_iv_antibiotics (1) + dementia (1) + cerebrovascular_disease (1) + female_and_diabetes (1) + nursing_home_ltac_snf (1); max 10; 0-1 low, 2-5 medium, >=6 high",
                  "max_score": 10,
                  "risk_band": "low",
                  "score": 0,
                  "sex": "male"
                }
              ],
              "path": "/api/calc/shorr"
            },
            "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 (18-120). Shorr 2013 Table 2: <30 or >79 scores 1; 30 through 79 scores 0. 29 scores 1; 30 scores 0; 79 scores 0; 80 scores 1.",
                            "type": "integer"
                          },
                          "cerebrovascular_disease": {
                            "description": "Cerebrovascular disease (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "dementia": {
                            "description": "Dementia (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "diabetes": {
                            "description": "Diabetes mellitus. Scores 1 only when sex is female (Shorr 2013 Table 2). Male with diabetes scores 0. true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "hospitalization_90d": {
                            "description": "Recent inpatient hospitalization for ≥2 days within 90 days (Shorr 2013 Table 2, 2 points). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "icu_admission": {
                            "description": "ICU admission (Shorr 2013 Table 2, 2 points). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "nursing_home_ltac_snf": {
                            "description": "Recent nursing home, long-term acute care, or skilled nursing facility exposure (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller. magent does not classify the facility.",
                            "type": "boolean"
                          },
                          "prior_iv_antibiotics": {
                            "description": "Prior IV antibiotic exposure (Shorr 2013 Table 2, 1 point). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male. Female with diabetes scores 1 (Shorr 2013 Table 2). Male with diabetes scores 0. Sex alone does not score.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "hospitalization_90d",
                          "icu_admission",
                          "prior_iv_antibiotics",
                          "dementia",
                          "cerebrovascular_disease",
                          "diabetes",
                          "nursing_home_ltac_snf"
                        ],
                        "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"
  }
}