{
  "x402Version": 2,
  "id": 38863,
  "slug": "38863",
  "resource": "https://api.magentlab.com/api/calc/ribs",
  "description": "Buchholz 2023 Revised Intensity Battle Score: 2.275 per fractured rib level, 4.08 chest tube, 1.525 pulmonary contusions, 2.83 COPD, 8.137 when GCS <15, rounded to an integer. Age is not a component. Published ICU triage cutoff 12. Not Chapman 2016 RibScore and not Battle 2014 STUMBL. magent does not count ribs or compute GCS. Deterministic published arithmetic with citation; not a diagnosis or surgical plan.",
  "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": [
              {
                "chest_tube": false,
                "copd": false,
                "gcs": 15,
                "pulmonary_contusions": false,
                "rib_count": 1
              },
              {
                "chest_tube": false,
                "copd": false,
                "gcs": 15,
                "pulmonary_contusions": false,
                "rib_count": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "any_complication_percent": 7.5,
                "chest_tube": false,
                "citation": {
                  "authors": "Buchholz CJ, Jia L, Manea C, Petersen T, Wang H, Stright A, Young JS, Calland JF",
                  "doi": "10.1177/00031348221123087",
                  "id": "buchholz-2022",
                  "pmid": "36120831",
                  "source": "Am Surg. 2023;89(10):4668-4674",
                  "title": "Revised Intensity Battle Score (RIBS): Development of a Clinical Score for Predicting Poor Outcomes After Rib Fractures"
                },
                "components": [
                  {
                    "factor": "rib_count",
                    "points": 2.275,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "chest_tube",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pulmonary_contusions",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  }
                ],
                "copd": 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": "ribs",
                "formula_expression": "RIBS = round(2.275*rib_count + 1.525*pulmonary_contusions + 2.83*copd + 4.08*chest_tube + 8.137*(gcs<15)); Buchholz 2023; rib level not fracture count; age is not a component; ICU triage cutoff 12; not Chapman 2016 RibScore; not Battle 2014 STUMBL",
                "gcs": 15,
                "gcs_lt_15": false,
                "icu_triage_cutoff": false,
                "mortality_percent": 2.8,
                "pneumonia_or_vap_percent": 3,
                "pulmonary_contusions": false,
                "rib_count": 1,
                "ribs_band": "below_12",
                "score": 2,
                "unplanned_icu_or_intubation_percent": 4.7,
                "vent_or_tracheostomy_percent": 1.9
              },
              {
                "any_complication_percent": 7.5,
                "chest_tube": false,
                "citation": {
                  "authors": "Buchholz CJ, Jia L, Manea C, Petersen T, Wang H, Stright A, Young JS, Calland JF",
                  "doi": "10.1177/00031348221123087",
                  "id": "buchholz-2022",
                  "pmid": "36120831",
                  "source": "Am Surg. 2023;89(10):4668-4674",
                  "title": "Revised Intensity Battle Score (RIBS): Development of a Clinical Score for Predicting Poor Outcomes After Rib Fractures"
                },
                "components": [
                  {
                    "factor": "rib_count",
                    "points": 2.275,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "chest_tube",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pulmonary_contusions",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  }
                ],
                "copd": 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": "ribs",
                "formula_expression": "RIBS = round(2.275*rib_count + 1.525*pulmonary_contusions + 2.83*copd + 4.08*chest_tube + 8.137*(gcs<15)); Buchholz 2023; rib level not fracture count; age is not a component; ICU triage cutoff 12; not Chapman 2016 RibScore; not Battle 2014 STUMBL",
                "gcs": 15,
                "gcs_lt_15": false,
                "icu_triage_cutoff": false,
                "mortality_percent": 2.8,
                "pneumonia_or_vap_percent": 3,
                "pulmonary_contusions": false,
                "rib_count": 1,
                "ribs_band": "below_12",
                "score": 2,
                "unplanned_icu_or_intubation_percent": 4.7,
                "vent_or_tracheostomy_percent": 1.9
              }
            ],
            "path": "/api/calc/ribs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "chest_tube": {
                          "description": "Chest tube placed, present, or anticipated as assigned by the caller (Buchholz 2023). true or false. true scores 4.08 before rounding.",
                          "type": "boolean"
                        },
                        "copd": {
                          "description": "History of COPD as assigned by the caller (Buchholz 2023). true or false. true scores 2.83 before rounding. Age is not a component.",
                          "type": "boolean"
                        },
                        "gcs": {
                          "description": "Caller-assigned Glasgow Coma Scale total, integer 3–15. Buchholz 2023 scores 8.137 when GCS <15 and 0 when GCS is 15. magent does not compute eye, verbal, or motor.",
                          "type": "integer"
                        },
                        "pulmonary_contusions": {
                          "description": "Pulmonary contusions as assigned by the caller (Buchholz 2023). true or false. true scores 1.525 before rounding. magent does not read a CT.",
                          "type": "boolean"
                        },
                        "rib_count": {
                          "description": "Caller-assigned number of fractured rib levels, integer 0–24. Buchholz 2023: 2.275 points per rib level, not per individual fracture (six fractures on three ribs is 3). magent does not read a CT or count ribs.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "rib_count",
                        "chest_tube",
                        "pulmonary_contusions",
                        "copd",
                        "gcs"
                      ],
                      "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": [
    "ribs",
    "rib-fracture",
    "trauma",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:32:06.388Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:32:06.258Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "chest_tube": false,
                  "copd": false,
                  "gcs": 15,
                  "pulmonary_contusions": false,
                  "rib_count": 1
                },
                {
                  "chest_tube": false,
                  "copd": false,
                  "gcs": 15,
                  "pulmonary_contusions": false,
                  "rib_count": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "any_complication_percent": 7.5,
                  "chest_tube": false,
                  "citation": {
                    "authors": "Buchholz CJ, Jia L, Manea C, Petersen T, Wang H, Stright A, Young JS, Calland JF",
                    "doi": "10.1177/00031348221123087",
                    "id": "buchholz-2022",
                    "pmid": "36120831",
                    "source": "Am Surg. 2023;89(10):4668-4674",
                    "title": "Revised Intensity Battle Score (RIBS): Development of a Clinical Score for Predicting Poor Outcomes After Rib Fractures"
                  },
                  "components": [
                    {
                      "factor": "rib_count",
                      "points": 2.275,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "chest_tube",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pulmonary_contusions",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    }
                  ],
                  "copd": 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": "ribs",
                  "formula_expression": "RIBS = round(2.275*rib_count + 1.525*pulmonary_contusions + 2.83*copd + 4.08*chest_tube + 8.137*(gcs<15)); Buchholz 2023; rib level not fracture count; age is not a component; ICU triage cutoff 12; not Chapman 2016 RibScore; not Battle 2014 STUMBL",
                  "gcs": 15,
                  "gcs_lt_15": false,
                  "icu_triage_cutoff": false,
                  "mortality_percent": 2.8,
                  "pneumonia_or_vap_percent": 3,
                  "pulmonary_contusions": false,
                  "rib_count": 1,
                  "ribs_band": "below_12",
                  "score": 2,
                  "unplanned_icu_or_intubation_percent": 4.7,
                  "vent_or_tracheostomy_percent": 1.9
                },
                {
                  "any_complication_percent": 7.5,
                  "chest_tube": false,
                  "citation": {
                    "authors": "Buchholz CJ, Jia L, Manea C, Petersen T, Wang H, Stright A, Young JS, Calland JF",
                    "doi": "10.1177/00031348221123087",
                    "id": "buchholz-2022",
                    "pmid": "36120831",
                    "source": "Am Surg. 2023;89(10):4668-4674",
                    "title": "Revised Intensity Battle Score (RIBS): Development of a Clinical Score for Predicting Poor Outcomes After Rib Fractures"
                  },
                  "components": [
                    {
                      "factor": "rib_count",
                      "points": 2.275,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "chest_tube",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pulmonary_contusions",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    }
                  ],
                  "copd": 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": "ribs",
                  "formula_expression": "RIBS = round(2.275*rib_count + 1.525*pulmonary_contusions + 2.83*copd + 4.08*chest_tube + 8.137*(gcs<15)); Buchholz 2023; rib level not fracture count; age is not a component; ICU triage cutoff 12; not Chapman 2016 RibScore; not Battle 2014 STUMBL",
                  "gcs": 15,
                  "gcs_lt_15": false,
                  "icu_triage_cutoff": false,
                  "mortality_percent": 2.8,
                  "pneumonia_or_vap_percent": 3,
                  "pulmonary_contusions": false,
                  "rib_count": 1,
                  "ribs_band": "below_12",
                  "score": 2,
                  "unplanned_icu_or_intubation_percent": 4.7,
                  "vent_or_tracheostomy_percent": 1.9
                }
              ],
              "path": "/api/calc/ribs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "chest_tube": {
                            "description": "Chest tube placed, present, or anticipated as assigned by the caller (Buchholz 2023). true or false. true scores 4.08 before rounding.",
                            "type": "boolean"
                          },
                          "copd": {
                            "description": "History of COPD as assigned by the caller (Buchholz 2023). true or false. true scores 2.83 before rounding. Age is not a component.",
                            "type": "boolean"
                          },
                          "gcs": {
                            "description": "Caller-assigned Glasgow Coma Scale total, integer 3–15. Buchholz 2023 scores 8.137 when GCS <15 and 0 when GCS is 15. magent does not compute eye, verbal, or motor.",
                            "type": "integer"
                          },
                          "pulmonary_contusions": {
                            "description": "Pulmonary contusions as assigned by the caller (Buchholz 2023). true or false. true scores 1.525 before rounding. magent does not read a CT.",
                            "type": "boolean"
                          },
                          "rib_count": {
                            "description": "Caller-assigned number of fractured rib levels, integer 0–24. Buchholz 2023: 2.275 points per rib level, not per individual fracture (six fractures on three ribs is 3). magent does not read a CT or count ribs.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "rib_count",
                          "chest_tube",
                          "pulmonary_contusions",
                          "copd",
                          "gcs"
                        ],
                        "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"
  }
}