{
  "x402Version": 2,
  "id": 39111,
  "slug": "39111",
  "resource": "https://api.magentlab.com/api/calc/ohfrs",
  "description": "Ottawa Heart Failure Risk Scale (OHFRS; Stiell 2013 derivation). Ten caller-assigned flags (stroke/TIA 1, intubation 2, arrival HR >=110 2, arrival SaO2 <90% 1, walk-test HR >=110 or unable 1, new ischemic ECG 2, urea >=12 mmol/L 1, CO2 >=35 mmol/L 2, troponin at MI level 2, NT-proBNP >=5000 ng/L 1); integer points, max 15. Derivation SAE risk 2.8% to 89.0%. Not a medical device, not a disposition or discharge order, not EHMRG. magent does not walk the patient or read the ECG.",
  "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": [
              {
                "co2_ge_35_mmol_l": false,
                "history_stroke_or_tia": false,
                "hr_arrival_ge_110": false,
                "intubation_respiratory_distress": false,
                "new_ischemic_ecg": false,
                "ntprobnp_ge_5000": false,
                "sao2_lt_90_arrival": false,
                "troponin_mi_level": false,
                "urea_ge_12_mmol_l": false,
                "walk_test_hr_ge_110_or_unable": false
              },
              {
                "co2_ge_35_mmol_l": false,
                "history_stroke_or_tia": false,
                "hr_arrival_ge_110": false,
                "intubation_respiratory_distress": false,
                "new_ischemic_ecg": false,
                "ntprobnp_ge_5000": false,
                "sao2_lt_90_arrival": false,
                "troponin_mi_level": false,
                "urea_ge_12_mmol_l": false,
                "walk_test_hr_ge_110_or_unable": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Stiell IG, Clement CM, Brison RJ, et al.",
                  "doi": "10.1111/acem.12056",
                  "id": "stiell-2013",
                  "pmid": "23570474",
                  "source": "Acad Emerg Med. 2013;20(1):17-26",
                  "title": "A risk scoring system to identify emergency department patients with heart failure at high risk for serious adverse events"
                },
                "components": [
                  {
                    "factor": "history_stroke_or_tia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intubation_respiratory_distress",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hr_arrival_ge_110",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sao2_lt_90_arrival",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "walk_test_hr_ge_110_or_unable",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "new_ischemic_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "urea_ge_12_mmol_l",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "co2_ge_35_mmol_l",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "troponin_mi_level",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ntprobnp_ge_5000",
                    "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": "ohfrs",
                "formula_expression": "OHFRS = history_stroke_or_tia(1) + intubation_respiratory_distress(2) + hr_arrival_ge_110(2) + sao2_lt_90_arrival(1) + walk_test_hr_ge_110_or_unable(1) + new_ischemic_ecg(2) + urea_ge_12_mmol_l(1) + co2_ge_35_mmol_l(2) + troponin_mi_level(2) + ntprobnp_ge_5000(1); Stiell 2013 derivation; max 15; SAE risk varied from 2.8% to 89.0%; admission thresholds of total score 1, 2, or 3 had sensitivities 95.2 / 80.6 / 64.5%",
                "max_score": 15,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Stiell IG, Clement CM, Brison RJ, et al.",
                  "doi": "10.1111/acem.12056",
                  "id": "stiell-2013",
                  "pmid": "23570474",
                  "source": "Acad Emerg Med. 2013;20(1):17-26",
                  "title": "A risk scoring system to identify emergency department patients with heart failure at high risk for serious adverse events"
                },
                "components": [
                  {
                    "factor": "history_stroke_or_tia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intubation_respiratory_distress",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hr_arrival_ge_110",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sao2_lt_90_arrival",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "walk_test_hr_ge_110_or_unable",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "new_ischemic_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "urea_ge_12_mmol_l",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "co2_ge_35_mmol_l",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "troponin_mi_level",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "ntprobnp_ge_5000",
                    "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": "ohfrs",
                "formula_expression": "OHFRS = history_stroke_or_tia(1) + intubation_respiratory_distress(2) + hr_arrival_ge_110(2) + sao2_lt_90_arrival(1) + walk_test_hr_ge_110_or_unable(1) + new_ischemic_ecg(2) + urea_ge_12_mmol_l(1) + co2_ge_35_mmol_l(2) + troponin_mi_level(2) + ntprobnp_ge_5000(1); Stiell 2013 derivation; max 15; SAE risk varied from 2.8% to 89.0%; admission thresholds of total score 1, 2, or 3 had sensitivities 95.2 / 80.6 / 64.5%",
                "max_score": 15,
                "score": 0
              }
            ],
            "path": "/api/calc/ohfrs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "co2_ge_35_mmol_l": {
                          "description": "Serum CO2 >=35 mmol/L as assigned by the caller after applying the Stiell 2013 cutoff (2 points if true). true or false. magent does not assay CO2.",
                          "type": "boolean"
                        },
                        "history_stroke_or_tia": {
                          "description": "History of stroke or TIA as assigned by the caller (Stiell 2013; 1 point if true). true or false. magent does not take the history.",
                          "type": "boolean"
                        },
                        "hr_arrival_ge_110": {
                          "description": "Heart rate on ED arrival >=110 as assigned by the caller after applying the Stiell 2013 cutoff (2 points if true). true or false. magent does not measure heart rate.",
                          "type": "boolean"
                        },
                        "intubation_respiratory_distress": {
                          "description": "Intubation for respiratory distress as assigned by the caller (Stiell 2013; 2 points if true). true or false.",
                          "type": "boolean"
                        },
                        "new_ischemic_ecg": {
                          "description": "New ischemic ECG changes as assigned by the caller (Stiell 2013 derivation; 2 points if true). true or false. magent does not interpret the ECG.",
                          "type": "boolean"
                        },
                        "ntprobnp_ge_5000": {
                          "description": "NT-proBNP >=5000 ng/L as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not assay NT-proBNP.",
                          "type": "boolean"
                        },
                        "sao2_lt_90_arrival": {
                          "description": "Oxygen saturation <90% on ED arrival as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not measure saturation.",
                          "type": "boolean"
                        },
                        "troponin_mi_level": {
                          "description": "Troponin I or T elevated to MI level as assigned by the caller (Stiell 2013; 2 points if true). true or false. magent does not assay troponin.",
                          "type": "boolean"
                        },
                        "urea_ge_12_mmol_l": {
                          "description": "Urea >=12 mmol/L as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not assay urea.",
                          "type": "boolean"
                        },
                        "walk_test_hr_ge_110_or_unable": {
                          "description": "Heart rate >=110 during the 3-minute walk test, or unable to perform the walk test, as assigned by the caller after ED intervention (Stiell 2013; 1 point if true). true or false. magent does not walk the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "history_stroke_or_tia",
                        "intubation_respiratory_distress",
                        "hr_arrival_ge_110",
                        "sao2_lt_90_arrival",
                        "walk_test_hr_ge_110_or_unable",
                        "new_ischemic_ecg",
                        "urea_ge_12_mmol_l",
                        "co2_ge_35_mmol_l",
                        "troponin_mi_level",
                        "ntprobnp_ge_5000"
                      ],
                      "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": [
    "ohfrs",
    "heart-failure",
    "emergency",
    "stiell",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:57:08.668Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:57:08.542Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "co2_ge_35_mmol_l": false,
                  "history_stroke_or_tia": false,
                  "hr_arrival_ge_110": false,
                  "intubation_respiratory_distress": false,
                  "new_ischemic_ecg": false,
                  "ntprobnp_ge_5000": false,
                  "sao2_lt_90_arrival": false,
                  "troponin_mi_level": false,
                  "urea_ge_12_mmol_l": false,
                  "walk_test_hr_ge_110_or_unable": false
                },
                {
                  "co2_ge_35_mmol_l": false,
                  "history_stroke_or_tia": false,
                  "hr_arrival_ge_110": false,
                  "intubation_respiratory_distress": false,
                  "new_ischemic_ecg": false,
                  "ntprobnp_ge_5000": false,
                  "sao2_lt_90_arrival": false,
                  "troponin_mi_level": false,
                  "urea_ge_12_mmol_l": false,
                  "walk_test_hr_ge_110_or_unable": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Stiell IG, Clement CM, Brison RJ, et al.",
                    "doi": "10.1111/acem.12056",
                    "id": "stiell-2013",
                    "pmid": "23570474",
                    "source": "Acad Emerg Med. 2013;20(1):17-26",
                    "title": "A risk scoring system to identify emergency department patients with heart failure at high risk for serious adverse events"
                  },
                  "components": [
                    {
                      "factor": "history_stroke_or_tia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intubation_respiratory_distress",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hr_arrival_ge_110",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sao2_lt_90_arrival",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "walk_test_hr_ge_110_or_unable",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "new_ischemic_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "urea_ge_12_mmol_l",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "co2_ge_35_mmol_l",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "troponin_mi_level",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ntprobnp_ge_5000",
                      "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": "ohfrs",
                  "formula_expression": "OHFRS = history_stroke_or_tia(1) + intubation_respiratory_distress(2) + hr_arrival_ge_110(2) + sao2_lt_90_arrival(1) + walk_test_hr_ge_110_or_unable(1) + new_ischemic_ecg(2) + urea_ge_12_mmol_l(1) + co2_ge_35_mmol_l(2) + troponin_mi_level(2) + ntprobnp_ge_5000(1); Stiell 2013 derivation; max 15; SAE risk varied from 2.8% to 89.0%; admission thresholds of total score 1, 2, or 3 had sensitivities 95.2 / 80.6 / 64.5%",
                  "max_score": 15,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Stiell IG, Clement CM, Brison RJ, et al.",
                    "doi": "10.1111/acem.12056",
                    "id": "stiell-2013",
                    "pmid": "23570474",
                    "source": "Acad Emerg Med. 2013;20(1):17-26",
                    "title": "A risk scoring system to identify emergency department patients with heart failure at high risk for serious adverse events"
                  },
                  "components": [
                    {
                      "factor": "history_stroke_or_tia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intubation_respiratory_distress",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hr_arrival_ge_110",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sao2_lt_90_arrival",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "walk_test_hr_ge_110_or_unable",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "new_ischemic_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "urea_ge_12_mmol_l",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "co2_ge_35_mmol_l",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "troponin_mi_level",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "ntprobnp_ge_5000",
                      "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": "ohfrs",
                  "formula_expression": "OHFRS = history_stroke_or_tia(1) + intubation_respiratory_distress(2) + hr_arrival_ge_110(2) + sao2_lt_90_arrival(1) + walk_test_hr_ge_110_or_unable(1) + new_ischemic_ecg(2) + urea_ge_12_mmol_l(1) + co2_ge_35_mmol_l(2) + troponin_mi_level(2) + ntprobnp_ge_5000(1); Stiell 2013 derivation; max 15; SAE risk varied from 2.8% to 89.0%; admission thresholds of total score 1, 2, or 3 had sensitivities 95.2 / 80.6 / 64.5%",
                  "max_score": 15,
                  "score": 0
                }
              ],
              "path": "/api/calc/ohfrs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "co2_ge_35_mmol_l": {
                            "description": "Serum CO2 >=35 mmol/L as assigned by the caller after applying the Stiell 2013 cutoff (2 points if true). true or false. magent does not assay CO2.",
                            "type": "boolean"
                          },
                          "history_stroke_or_tia": {
                            "description": "History of stroke or TIA as assigned by the caller (Stiell 2013; 1 point if true). true or false. magent does not take the history.",
                            "type": "boolean"
                          },
                          "hr_arrival_ge_110": {
                            "description": "Heart rate on ED arrival >=110 as assigned by the caller after applying the Stiell 2013 cutoff (2 points if true). true or false. magent does not measure heart rate.",
                            "type": "boolean"
                          },
                          "intubation_respiratory_distress": {
                            "description": "Intubation for respiratory distress as assigned by the caller (Stiell 2013; 2 points if true). true or false.",
                            "type": "boolean"
                          },
                          "new_ischemic_ecg": {
                            "description": "New ischemic ECG changes as assigned by the caller (Stiell 2013 derivation; 2 points if true). true or false. magent does not interpret the ECG.",
                            "type": "boolean"
                          },
                          "ntprobnp_ge_5000": {
                            "description": "NT-proBNP >=5000 ng/L as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not assay NT-proBNP.",
                            "type": "boolean"
                          },
                          "sao2_lt_90_arrival": {
                            "description": "Oxygen saturation <90% on ED arrival as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not measure saturation.",
                            "type": "boolean"
                          },
                          "troponin_mi_level": {
                            "description": "Troponin I or T elevated to MI level as assigned by the caller (Stiell 2013; 2 points if true). true or false. magent does not assay troponin.",
                            "type": "boolean"
                          },
                          "urea_ge_12_mmol_l": {
                            "description": "Urea >=12 mmol/L as assigned by the caller after applying the Stiell 2013 cutoff (1 point if true). true or false. magent does not assay urea.",
                            "type": "boolean"
                          },
                          "walk_test_hr_ge_110_or_unable": {
                            "description": "Heart rate >=110 during the 3-minute walk test, or unable to perform the walk test, as assigned by the caller after ED intervention (Stiell 2013; 1 point if true). true or false. magent does not walk the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "history_stroke_or_tia",
                          "intubation_respiratory_distress",
                          "hr_arrival_ge_110",
                          "sao2_lt_90_arrival",
                          "walk_test_hr_ge_110_or_unable",
                          "new_ischemic_ecg",
                          "urea_ge_12_mmol_l",
                          "co2_ge_35_mmol_l",
                          "troponin_mi_level",
                          "ntprobnp_ge_5000"
                        ],
                        "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"
  }
}