{
  "x402Version": 2,
  "id": 38988,
  "slug": "38988",
  "resource": "https://api.magentlab.com/api/calc/ottawa_copd",
  "description": "Ottawa COPD Risk Scale (Stiell 2014 derivation). Ten caller-assigned flags: CABG 1, PVD intervention 1, intubation 2, arrival HR >=110 2, too ill to walk or HR >=120 (SaO2 <90%) 2, ischemic ECG 2, CXR congestion 1, Hb <100 g/L 3, urea >=12 1, serum CO2 >=35 1; max 16. Bands low/medium/high/very high with Table 8 SAE percents when published. Not a medical device or admission order; not BAP-65 or DECAF; not the 2018 validation as formula. magent does not walk the patient or read the ECG or CXR.",
  "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": [
              {
                "cabg": false,
                "hemoglobin_lt_100": false,
                "hr_arrival_ge_110": false,
                "intubation_respiratory": false,
                "ischemic_ecg": false,
                "pulmonary_congestion": false,
                "pvd_intervention": false,
                "serum_co2_ge_35": false,
                "too_ill_to_walk": false,
                "urea_ge_12": false
              },
              {
                "cabg": false,
                "hemoglobin_lt_100": false,
                "hr_arrival_ge_110": false,
                "intubation_respiratory": false,
                "ischemic_ecg": false,
                "pulmonary_congestion": false,
                "pvd_intervention": false,
                "serum_co2_ge_35": false,
                "too_ill_to_walk": false,
                "urea_ge_12": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Stiell IG, Clement CM, Aaron SD, Rowe BH, Perry JJ, Brison RJ, Calder LA, Lang E, Borgundvaag B, Forster AJ, Wells GA",
                  "doi": "10.1503/cmaj.130968",
                  "id": "stiell-2014",
                  "pmid": "24549463",
                  "source": "CMAJ. 2014;186(6):E193-E204",
                  "title": "Clinical characteristics associated with adverse events in patients with exacerbation of chronic obstructive pulmonary disease: a prospective cohort study"
                },
                "components": [
                  {
                    "factor": "cabg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pvd_intervention",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intubation_respiratory",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hr_arrival_ge_110",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "too_ill_to_walk",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ischemic_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pulmonary_congestion",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoglobin_lt_100",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "urea_ge_12",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serum_co2_ge_35",
                    "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": "ottawa_copd",
                "formula_expression": "ottawa_copd = cabg(1) + pvd_intervention(1) + intubation_respiratory(2) + hr_arrival_ge_110(2) + too_ill_to_walk(2) + ischemic_ecg(2) + pulmonary_congestion(1) + hemoglobin_lt_100(3) + urea_ge_12(1) + serum_co2_ge_35(1); Stiell 2014 derivation Tables 6-8; max 16; SAE 2.2% (score 0) to 91.4% (score 10); score 9 and >10 SAE not published; admission thresholds of total score 1, 2, or 3 had sensitivities 91.2 / 80.9 / 60.3%",
                "max_score": 16,
                "ottawa_copd_band": "low",
                "sae_percent": 2.2,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Stiell IG, Clement CM, Aaron SD, Rowe BH, Perry JJ, Brison RJ, Calder LA, Lang E, Borgundvaag B, Forster AJ, Wells GA",
                  "doi": "10.1503/cmaj.130968",
                  "id": "stiell-2014",
                  "pmid": "24549463",
                  "source": "CMAJ. 2014;186(6):E193-E204",
                  "title": "Clinical characteristics associated with adverse events in patients with exacerbation of chronic obstructive pulmonary disease: a prospective cohort study"
                },
                "components": [
                  {
                    "factor": "cabg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pvd_intervention",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intubation_respiratory",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hr_arrival_ge_110",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "too_ill_to_walk",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ischemic_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pulmonary_congestion",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoglobin_lt_100",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "urea_ge_12",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serum_co2_ge_35",
                    "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": "ottawa_copd",
                "formula_expression": "ottawa_copd = cabg(1) + pvd_intervention(1) + intubation_respiratory(2) + hr_arrival_ge_110(2) + too_ill_to_walk(2) + ischemic_ecg(2) + pulmonary_congestion(1) + hemoglobin_lt_100(3) + urea_ge_12(1) + serum_co2_ge_35(1); Stiell 2014 derivation Tables 6-8; max 16; SAE 2.2% (score 0) to 91.4% (score 10); score 9 and >10 SAE not published; admission thresholds of total score 1, 2, or 3 had sensitivities 91.2 / 80.9 / 60.3%",
                "max_score": 16,
                "ottawa_copd_band": "low",
                "sae_percent": 2.2,
                "score": 0
              }
            ],
            "path": "/api/calc/ottawa_copd"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "cabg": {
                          "description": "Prior coronary artery bypass graft as assigned by the caller (Stiell 2014; 1 point if true). true or false.",
                          "type": "boolean"
                        },
                        "hemoglobin_lt_100": {
                          "description": "Hemoglobin <100 g/L as assigned by the caller after applying the Stiell 2014 cutoff (3 points if true). true or false. magent does not assay hemoglobin.",
                          "type": "boolean"
                        },
                        "hr_arrival_ge_110": {
                          "description": "Heart rate on ED arrival >=110/min as assigned by the caller after applying the Stiell 2014 cutoff (2 points if true). true or false. magent does not measure heart rate.",
                          "type": "boolean"
                        },
                        "intubation_respiratory": {
                          "description": "Intubation for respiratory distress as assigned by the caller (Stiell 2014; 2 points if true). true or false.",
                          "type": "boolean"
                        },
                        "ischemic_ecg": {
                          "description": "Acute ischemic changes on ECG as assigned by the caller (Stiell 2014; 2 points if true). true or false. magent does not interpret the ECG.",
                          "type": "boolean"
                        },
                        "pulmonary_congestion": {
                          "description": "Pulmonary congestion on chest radiograph as assigned by the caller (Stiell 2014; 1 point if true). true or false. magent does not read the chest radiograph.",
                          "type": "boolean"
                        },
                        "pvd_intervention": {
                          "description": "Peripheral vascular disease intervention as assigned by the caller (Stiell 2014; 1 point if true). true or false.",
                          "type": "boolean"
                        },
                        "serum_co2_ge_35": {
                          "description": "Serum CO2 >=35 mmol/L as assigned by the caller after applying the Stiell 2014 cutoff (1 point if true). true or false. magent does not assay CO2.",
                          "type": "boolean"
                        },
                        "too_ill_to_walk": {
                          "description": "Too ill to do the walk test after ED treatment, or heart rate >=120/min with SaO2 <90%, as assigned by the caller (Stiell 2014; one 2-point item, not two). true or false. magent does not walk the patient.",
                          "type": "boolean"
                        },
                        "urea_ge_12": {
                          "description": "Urea >=12 mmol/L as assigned by the caller after applying the Stiell 2014 cutoff (1 point if true). true or false. magent does not assay urea.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "cabg",
                        "pvd_intervention",
                        "intubation_respiratory",
                        "hr_arrival_ge_110",
                        "too_ill_to_walk",
                        "ischemic_ecg",
                        "pulmonary_congestion",
                        "hemoglobin_lt_100",
                        "urea_ge_12",
                        "serum_co2_ge_35"
                      ],
                      "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": [
    "ottawa-copd",
    "copd",
    "emergency",
    "stiell",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:16:29.911Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:16:29.778Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "cabg": false,
                  "hemoglobin_lt_100": false,
                  "hr_arrival_ge_110": false,
                  "intubation_respiratory": false,
                  "ischemic_ecg": false,
                  "pulmonary_congestion": false,
                  "pvd_intervention": false,
                  "serum_co2_ge_35": false,
                  "too_ill_to_walk": false,
                  "urea_ge_12": false
                },
                {
                  "cabg": false,
                  "hemoglobin_lt_100": false,
                  "hr_arrival_ge_110": false,
                  "intubation_respiratory": false,
                  "ischemic_ecg": false,
                  "pulmonary_congestion": false,
                  "pvd_intervention": false,
                  "serum_co2_ge_35": false,
                  "too_ill_to_walk": false,
                  "urea_ge_12": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Stiell IG, Clement CM, Aaron SD, Rowe BH, Perry JJ, Brison RJ, Calder LA, Lang E, Borgundvaag B, Forster AJ, Wells GA",
                    "doi": "10.1503/cmaj.130968",
                    "id": "stiell-2014",
                    "pmid": "24549463",
                    "source": "CMAJ. 2014;186(6):E193-E204",
                    "title": "Clinical characteristics associated with adverse events in patients with exacerbation of chronic obstructive pulmonary disease: a prospective cohort study"
                  },
                  "components": [
                    {
                      "factor": "cabg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pvd_intervention",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intubation_respiratory",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hr_arrival_ge_110",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "too_ill_to_walk",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ischemic_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pulmonary_congestion",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoglobin_lt_100",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "urea_ge_12",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serum_co2_ge_35",
                      "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": "ottawa_copd",
                  "formula_expression": "ottawa_copd = cabg(1) + pvd_intervention(1) + intubation_respiratory(2) + hr_arrival_ge_110(2) + too_ill_to_walk(2) + ischemic_ecg(2) + pulmonary_congestion(1) + hemoglobin_lt_100(3) + urea_ge_12(1) + serum_co2_ge_35(1); Stiell 2014 derivation Tables 6-8; max 16; SAE 2.2% (score 0) to 91.4% (score 10); score 9 and >10 SAE not published; admission thresholds of total score 1, 2, or 3 had sensitivities 91.2 / 80.9 / 60.3%",
                  "max_score": 16,
                  "ottawa_copd_band": "low",
                  "sae_percent": 2.2,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Stiell IG, Clement CM, Aaron SD, Rowe BH, Perry JJ, Brison RJ, Calder LA, Lang E, Borgundvaag B, Forster AJ, Wells GA",
                    "doi": "10.1503/cmaj.130968",
                    "id": "stiell-2014",
                    "pmid": "24549463",
                    "source": "CMAJ. 2014;186(6):E193-E204",
                    "title": "Clinical characteristics associated with adverse events in patients with exacerbation of chronic obstructive pulmonary disease: a prospective cohort study"
                  },
                  "components": [
                    {
                      "factor": "cabg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pvd_intervention",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intubation_respiratory",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hr_arrival_ge_110",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "too_ill_to_walk",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ischemic_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pulmonary_congestion",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoglobin_lt_100",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "urea_ge_12",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serum_co2_ge_35",
                      "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": "ottawa_copd",
                  "formula_expression": "ottawa_copd = cabg(1) + pvd_intervention(1) + intubation_respiratory(2) + hr_arrival_ge_110(2) + too_ill_to_walk(2) + ischemic_ecg(2) + pulmonary_congestion(1) + hemoglobin_lt_100(3) + urea_ge_12(1) + serum_co2_ge_35(1); Stiell 2014 derivation Tables 6-8; max 16; SAE 2.2% (score 0) to 91.4% (score 10); score 9 and >10 SAE not published; admission thresholds of total score 1, 2, or 3 had sensitivities 91.2 / 80.9 / 60.3%",
                  "max_score": 16,
                  "ottawa_copd_band": "low",
                  "sae_percent": 2.2,
                  "score": 0
                }
              ],
              "path": "/api/calc/ottawa_copd"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "cabg": {
                            "description": "Prior coronary artery bypass graft as assigned by the caller (Stiell 2014; 1 point if true). true or false.",
                            "type": "boolean"
                          },
                          "hemoglobin_lt_100": {
                            "description": "Hemoglobin <100 g/L as assigned by the caller after applying the Stiell 2014 cutoff (3 points if true). true or false. magent does not assay hemoglobin.",
                            "type": "boolean"
                          },
                          "hr_arrival_ge_110": {
                            "description": "Heart rate on ED arrival >=110/min as assigned by the caller after applying the Stiell 2014 cutoff (2 points if true). true or false. magent does not measure heart rate.",
                            "type": "boolean"
                          },
                          "intubation_respiratory": {
                            "description": "Intubation for respiratory distress as assigned by the caller (Stiell 2014; 2 points if true). true or false.",
                            "type": "boolean"
                          },
                          "ischemic_ecg": {
                            "description": "Acute ischemic changes on ECG as assigned by the caller (Stiell 2014; 2 points if true). true or false. magent does not interpret the ECG.",
                            "type": "boolean"
                          },
                          "pulmonary_congestion": {
                            "description": "Pulmonary congestion on chest radiograph as assigned by the caller (Stiell 2014; 1 point if true). true or false. magent does not read the chest radiograph.",
                            "type": "boolean"
                          },
                          "pvd_intervention": {
                            "description": "Peripheral vascular disease intervention as assigned by the caller (Stiell 2014; 1 point if true). true or false.",
                            "type": "boolean"
                          },
                          "serum_co2_ge_35": {
                            "description": "Serum CO2 >=35 mmol/L as assigned by the caller after applying the Stiell 2014 cutoff (1 point if true). true or false. magent does not assay CO2.",
                            "type": "boolean"
                          },
                          "too_ill_to_walk": {
                            "description": "Too ill to do the walk test after ED treatment, or heart rate >=120/min with SaO2 <90%, as assigned by the caller (Stiell 2014; one 2-point item, not two). true or false. magent does not walk the patient.",
                            "type": "boolean"
                          },
                          "urea_ge_12": {
                            "description": "Urea >=12 mmol/L as assigned by the caller after applying the Stiell 2014 cutoff (1 point if true). true or false. magent does not assay urea.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "cabg",
                          "pvd_intervention",
                          "intubation_respiratory",
                          "hr_arrival_ge_110",
                          "too_ill_to_walk",
                          "ischemic_ecg",
                          "pulmonary_congestion",
                          "hemoglobin_lt_100",
                          "urea_ge_12",
                          "serum_co2_ge_35"
                        ],
                        "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"
  }
}