{
  "x402Version": 2,
  "id": 38820,
  "slug": "38820",
  "resource": "https://api.magentlab.com/api/calc/scarf",
  "description": "Hardin 2019 SCARF from four caller-assigned flags (incentive spirometry <50% predicted, respiratory rate >20, numeric pain score ≥5, inadequate cough). 1 point each, total 0-4. Proposed threshold is score greater than 2. magent does not measure spirometry or examine the chest. Not a named risk class, analgesia order, or SSRF 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": [
              {
                "inadequate_cough": false,
                "incentive_spirometry_lt_50_predicted": false,
                "pain_score_ge_5": false,
                "respiratory_rate_gt_20": false
              },
              {
                "inadequate_cough": false,
                "incentive_spirometry_lt_50_predicted": false,
                "pain_score_ge_5": false,
                "respiratory_rate_gt_20": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Hardin KS, Leasia KN, Haenel J, Moore EE, Burlew CC, Pieracci FM",
                  "doi": "10.1097/TA.0000000000002480",
                  "id": "hardin-2019",
                  "pmid": "31425473",
                  "source": "J Trauma Acute Care Surg. 2019;87(6):1260-1268",
                  "title": "The Sequential Clinical Assessment of Respiratory Function (SCARF) score: A dynamic pulmonary physiologic score that predicts adverse outcomes in critically ill rib fracture patients"
                },
                "components": [
                  {
                    "factor": "incentive_spirometry_lt_50_predicted",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_gt_20",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pain_score_ge_5",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "inadequate_cough",
                    "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": "scarf",
                "formula_expression": "SCARF = incentive_spirometry_lt_50_predicted + respiratory_rate_gt_20 + pain_score_ge_5 + inadequate_cough; each 1; Hardin 2019; max 4; proposed threshold score > 2 (scarf_gt_2); caller-assigned flags; magent does not measure spirometry or examine the chest",
                "max_score": 4,
                "scarf_gt_2": false,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Hardin KS, Leasia KN, Haenel J, Moore EE, Burlew CC, Pieracci FM",
                  "doi": "10.1097/TA.0000000000002480",
                  "id": "hardin-2019",
                  "pmid": "31425473",
                  "source": "J Trauma Acute Care Surg. 2019;87(6):1260-1268",
                  "title": "The Sequential Clinical Assessment of Respiratory Function (SCARF) score: A dynamic pulmonary physiologic score that predicts adverse outcomes in critically ill rib fracture patients"
                },
                "components": [
                  {
                    "factor": "incentive_spirometry_lt_50_predicted",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "respiratory_rate_gt_20",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pain_score_ge_5",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "inadequate_cough",
                    "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": "scarf",
                "formula_expression": "SCARF = incentive_spirometry_lt_50_predicted + respiratory_rate_gt_20 + pain_score_ge_5 + inadequate_cough; each 1; Hardin 2019; max 4; proposed threshold score > 2 (scarf_gt_2); caller-assigned flags; magent does not measure spirometry or examine the chest",
                "max_score": 4,
                "scarf_gt_2": false,
                "score": 0
              }
            ],
            "path": "/api/calc/scarf"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "inadequate_cough": {
                          "description": "Inadequate cough (unable to clear secretions) as assigned by the caller (Hardin 2019). true or false. magent does not examine the chest or cough.",
                          "type": "boolean"
                        },
                        "incentive_spirometry_lt_50_predicted": {
                          "description": "Incentive spirometry volume <50% of predicted as assigned by the caller (Hardin 2019). true or false. magent does not measure incentive spirometry.",
                          "type": "boolean"
                        },
                        "pain_score_ge_5": {
                          "description": "Numeric pain score ≥5 as assigned by the caller (Hardin 2019). true or false. magent does not score pain.",
                          "type": "boolean"
                        },
                        "respiratory_rate_gt_20": {
                          "description": "Respiratory rate >20 breaths/min as assigned by the caller (Hardin 2019). true or false. magent does not count respiratory rate.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "incentive_spirometry_lt_50_predicted",
                        "respiratory_rate_gt_20",
                        "pain_score_ge_5",
                        "inadequate_cough"
                      ],
                      "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": [
    "scarf",
    "rib-fracture",
    "trauma",
    "emergency",
    "respiratory",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T14:29:49.894Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T14:29:49.737Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "inadequate_cough": false,
                  "incentive_spirometry_lt_50_predicted": false,
                  "pain_score_ge_5": false,
                  "respiratory_rate_gt_20": false
                },
                {
                  "inadequate_cough": false,
                  "incentive_spirometry_lt_50_predicted": false,
                  "pain_score_ge_5": false,
                  "respiratory_rate_gt_20": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Hardin KS, Leasia KN, Haenel J, Moore EE, Burlew CC, Pieracci FM",
                    "doi": "10.1097/TA.0000000000002480",
                    "id": "hardin-2019",
                    "pmid": "31425473",
                    "source": "J Trauma Acute Care Surg. 2019;87(6):1260-1268",
                    "title": "The Sequential Clinical Assessment of Respiratory Function (SCARF) score: A dynamic pulmonary physiologic score that predicts adverse outcomes in critically ill rib fracture patients"
                  },
                  "components": [
                    {
                      "factor": "incentive_spirometry_lt_50_predicted",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_gt_20",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pain_score_ge_5",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "inadequate_cough",
                      "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": "scarf",
                  "formula_expression": "SCARF = incentive_spirometry_lt_50_predicted + respiratory_rate_gt_20 + pain_score_ge_5 + inadequate_cough; each 1; Hardin 2019; max 4; proposed threshold score > 2 (scarf_gt_2); caller-assigned flags; magent does not measure spirometry or examine the chest",
                  "max_score": 4,
                  "scarf_gt_2": false,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Hardin KS, Leasia KN, Haenel J, Moore EE, Burlew CC, Pieracci FM",
                    "doi": "10.1097/TA.0000000000002480",
                    "id": "hardin-2019",
                    "pmid": "31425473",
                    "source": "J Trauma Acute Care Surg. 2019;87(6):1260-1268",
                    "title": "The Sequential Clinical Assessment of Respiratory Function (SCARF) score: A dynamic pulmonary physiologic score that predicts adverse outcomes in critically ill rib fracture patients"
                  },
                  "components": [
                    {
                      "factor": "incentive_spirometry_lt_50_predicted",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "respiratory_rate_gt_20",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pain_score_ge_5",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "inadequate_cough",
                      "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": "scarf",
                  "formula_expression": "SCARF = incentive_spirometry_lt_50_predicted + respiratory_rate_gt_20 + pain_score_ge_5 + inadequate_cough; each 1; Hardin 2019; max 4; proposed threshold score > 2 (scarf_gt_2); caller-assigned flags; magent does not measure spirometry or examine the chest",
                  "max_score": 4,
                  "scarf_gt_2": false,
                  "score": 0
                }
              ],
              "path": "/api/calc/scarf"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "inadequate_cough": {
                            "description": "Inadequate cough (unable to clear secretions) as assigned by the caller (Hardin 2019). true or false. magent does not examine the chest or cough.",
                            "type": "boolean"
                          },
                          "incentive_spirometry_lt_50_predicted": {
                            "description": "Incentive spirometry volume <50% of predicted as assigned by the caller (Hardin 2019). true or false. magent does not measure incentive spirometry.",
                            "type": "boolean"
                          },
                          "pain_score_ge_5": {
                            "description": "Numeric pain score ≥5 as assigned by the caller (Hardin 2019). true or false. magent does not score pain.",
                            "type": "boolean"
                          },
                          "respiratory_rate_gt_20": {
                            "description": "Respiratory rate >20 breaths/min as assigned by the caller (Hardin 2019). true or false. magent does not count respiratory rate.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "incentive_spirometry_lt_50_predicted",
                          "respiratory_rate_gt_20",
                          "pain_score_ge_5",
                          "inadequate_cough"
                        ],
                        "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"
  }
}