{
  "x402Version": 2,
  "id": 39211,
  "slug": "39211",
  "resource": "https://api.magentlab.com/api/calc/decaf",
  "description": "Steer 2012 DECAF: eMRCD 1-4 → 0, 5a → 1, 5b → 2; eosinophils <0.05 ×10^9/L → 1 (0.05 does not score); caller-assigned consolidation → 1; arterial pH <7.30 → 1 (7.30 does not score); atrial fibrillation → 1. Returns a 0–6 total and band 0-1 / 2 / 3-6. Deterministic published points with citation. Not an early-discharge or escalation protocol and not a medical device.",
  "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": [
              {
                "arterial_ph": 7.4,
                "atrial_fibrillation": false,
                "consolidation": false,
                "emrcd": "1-4",
                "eosinophils_10e9_l": 0.1
              },
              {
                "arterial_ph": 7.4,
                "atrial_fibrillation": false,
                "consolidation": false,
                "emrcd": "1-4",
                "eosinophils_10e9_l": 0.1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "arterial_ph": 7.4,
                "atrial_fibrillation": false,
                "citation": {
                  "authors": "Steer J, Gibson J, Bourke SC",
                  "doi": "10.1136/thoraxjnl-2012-202103",
                  "id": "steer-2012",
                  "pmid": "22895999",
                  "source": "Thorax. 2012;67(11):970-976",
                  "title": "The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease"
                },
                "components": [
                  {
                    "factor": "emrcd",
                    "points": 0,
                    "present": false,
                    "value": "1-4"
                  },
                  {
                    "factor": "eosinopenia",
                    "points": 0,
                    "present": false,
                    "value": 0.1
                  },
                  {
                    "factor": "consolidation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acidemia",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "atrial_fibrillation",
                    "points": 0,
                    "present": false
                  }
                ],
                "consolidation": false,
                "decaf_band": "0-1",
                "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.",
                "emrcd": "1-4",
                "eosinophils_10e9_l": 0.1,
                "formula": "decaf",
                "formula_expression": "DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6",
                "max_score": 6,
                "score": 0
              },
              {
                "arterial_ph": 7.4,
                "atrial_fibrillation": false,
                "citation": {
                  "authors": "Steer J, Gibson J, Bourke SC",
                  "doi": "10.1136/thoraxjnl-2012-202103",
                  "id": "steer-2012",
                  "pmid": "22895999",
                  "source": "Thorax. 2012;67(11):970-976",
                  "title": "The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease"
                },
                "components": [
                  {
                    "factor": "emrcd",
                    "points": 0,
                    "present": false,
                    "value": "1-4"
                  },
                  {
                    "factor": "eosinopenia",
                    "points": 0,
                    "present": false,
                    "value": 0.1
                  },
                  {
                    "factor": "consolidation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acidemia",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "atrial_fibrillation",
                    "points": 0,
                    "present": false
                  }
                ],
                "consolidation": false,
                "decaf_band": "0-1",
                "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.",
                "emrcd": "1-4",
                "eosinophils_10e9_l": 0.1,
                "formula": "decaf",
                "formula_expression": "DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6",
                "max_score": 6,
                "score": 0
              }
            ],
            "path": "/api/calc/decaf"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "arterial_ph": {
                          "description": "Arterial pH (6.80-7.80). Steer 2012: <7.30 scores 1; 7.30 does not score.",
                          "type": "number"
                        },
                        "atrial_fibrillation": {
                          "description": "Atrial fibrillation as assigned by the caller (Steer 2012 F). true or false. 1 point if true. magent does not interpret the ECG.",
                          "type": "boolean"
                        },
                        "consolidation": {
                          "description": "Chest radiograph consolidation as assigned by the caller (Steer 2012 C). true or false. 1 point if true. magent does not interpret radiographs.",
                          "type": "boolean"
                        },
                        "emrcd": {
                          "description": "Steer 2012 extended MRC dyspnoea as assigned by the caller. 1-4 scores 0; 5a scores 1; 5b scores 2. magent does not interview the patient.",
                          "enum": [
                            "1-4",
                            "5a",
                            "5b"
                          ],
                          "type": "string"
                        },
                        "eosinophils_10e9_l": {
                          "description": "Blood eosinophil count ×10^9/L (0-5). Steer 2012: <0.05 scores 1; 0.05 does not score.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "emrcd",
                        "eosinophils_10e9_l",
                        "consolidation",
                        "arterial_ph",
                        "atrial_fibrillation"
                      ],
                      "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": [
    "decaf",
    "copd",
    "eosinopenia",
    "respiratory",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:41:28.287Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:41:28.136Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "arterial_ph": 7.4,
                  "atrial_fibrillation": false,
                  "consolidation": false,
                  "emrcd": "1-4",
                  "eosinophils_10e9_l": 0.1
                },
                {
                  "arterial_ph": 7.4,
                  "atrial_fibrillation": false,
                  "consolidation": false,
                  "emrcd": "1-4",
                  "eosinophils_10e9_l": 0.1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "arterial_ph": 7.4,
                  "atrial_fibrillation": false,
                  "citation": {
                    "authors": "Steer J, Gibson J, Bourke SC",
                    "doi": "10.1136/thoraxjnl-2012-202103",
                    "id": "steer-2012",
                    "pmid": "22895999",
                    "source": "Thorax. 2012;67(11):970-976",
                    "title": "The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease"
                  },
                  "components": [
                    {
                      "factor": "emrcd",
                      "points": 0,
                      "present": false,
                      "value": "1-4"
                    },
                    {
                      "factor": "eosinopenia",
                      "points": 0,
                      "present": false,
                      "value": 0.1
                    },
                    {
                      "factor": "consolidation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acidemia",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "atrial_fibrillation",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "consolidation": false,
                  "decaf_band": "0-1",
                  "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.",
                  "emrcd": "1-4",
                  "eosinophils_10e9_l": 0.1,
                  "formula": "decaf",
                  "formula_expression": "DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6",
                  "max_score": 6,
                  "score": 0
                },
                {
                  "arterial_ph": 7.4,
                  "atrial_fibrillation": false,
                  "citation": {
                    "authors": "Steer J, Gibson J, Bourke SC",
                    "doi": "10.1136/thoraxjnl-2012-202103",
                    "id": "steer-2012",
                    "pmid": "22895999",
                    "source": "Thorax. 2012;67(11):970-976",
                    "title": "The DECAF Score: predicting hospital mortality in exacerbations of chronic obstructive pulmonary disease"
                  },
                  "components": [
                    {
                      "factor": "emrcd",
                      "points": 0,
                      "present": false,
                      "value": "1-4"
                    },
                    {
                      "factor": "eosinopenia",
                      "points": 0,
                      "present": false,
                      "value": 0.1
                    },
                    {
                      "factor": "consolidation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acidemia",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "atrial_fibrillation",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "consolidation": false,
                  "decaf_band": "0-1",
                  "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.",
                  "emrcd": "1-4",
                  "eosinophils_10e9_l": 0.1,
                  "formula": "decaf",
                  "formula_expression": "DECAF = emrcd_points + eosinopenia + consolidation + acidemia + atrial_fibrillation; eMRCD 1-4 -> 0, 5a -> 1, 5b -> 2; eosinophils_10e9_l < 0.05 -> 1 (0.05 does not score); consolidation true -> 1; arterial_ph < 7.30 -> 1 (7.30 does not score); atrial_fibrillation true -> 1; bands 0-1 / 2 / 3-6; max 6",
                  "max_score": 6,
                  "score": 0
                }
              ],
              "path": "/api/calc/decaf"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "arterial_ph": {
                            "description": "Arterial pH (6.80-7.80). Steer 2012: <7.30 scores 1; 7.30 does not score.",
                            "type": "number"
                          },
                          "atrial_fibrillation": {
                            "description": "Atrial fibrillation as assigned by the caller (Steer 2012 F). true or false. 1 point if true. magent does not interpret the ECG.",
                            "type": "boolean"
                          },
                          "consolidation": {
                            "description": "Chest radiograph consolidation as assigned by the caller (Steer 2012 C). true or false. 1 point if true. magent does not interpret radiographs.",
                            "type": "boolean"
                          },
                          "emrcd": {
                            "description": "Steer 2012 extended MRC dyspnoea as assigned by the caller. 1-4 scores 0; 5a scores 1; 5b scores 2. magent does not interview the patient.",
                            "enum": [
                              "1-4",
                              "5a",
                              "5b"
                            ],
                            "type": "string"
                          },
                          "eosinophils_10e9_l": {
                            "description": "Blood eosinophil count ×10^9/L (0-5). Steer 2012: <0.05 scores 1; 0.05 does not score.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "emrcd",
                          "eosinophils_10e9_l",
                          "consolidation",
                          "arterial_ph",
                          "atrial_fibrillation"
                        ],
                        "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"
  }
}