{
  "x402Version": 2,
  "id": 38809,
  "slug": "38809",
  "resource": "https://api.magentlab.com/api/calc/sf_syncope",
  "description": "San Francisco Syncope Rule (CHESS) from history of CHF, hematocrit, abnormal ECG, shortness of breath, and systolic BP. Returns a 0-5 criterion count and rule-positive if any CHESS item is present. Deterministic published score with citation; not a disposition protocol.",
  "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": [
              {
                "abnormal_ecg": false,
                "chf": false,
                "hematocrit_percent": 40,
                "shortness_of_breath": false,
                "systolic_bp_mm_hg": 120
              },
              {
                "abnormal_ecg": false,
                "chf": false,
                "hematocrit_percent": 40,
                "shortness_of_breath": false,
                "systolic_bp_mm_hg": 120
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Quinn JV, Stiell IG, McDermott DA, Sellers KL, Kohn MA, Wells GA",
                  "doi": "10.1016/S0196-0644(03)00823-0",
                  "id": "quinn-2004",
                  "source": "Ann Emerg Med. 2004;43(2):224-232",
                  "title": "Derivation of the San Francisco Syncope Rule to predict patients with short-term serious outcomes"
                },
                "components": [
                  {
                    "factor": "chf",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hematocrit_lt_30",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "abnormal_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "shortness_of_breath",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "systolic_bp_lt_90",
                    "points": 0,
                    "present": false,
                    "value": 120
                  }
                ],
                "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": "sf_syncope",
                "formula_expression": "CHESS = chf + hematocrit_lt_30 + abnormal_ecg + shortness_of_breath + systolic_bp_lt_90; rule-positive if score ≥ 1; max 5",
                "hematocrit_percent": 40,
                "max_score": 5,
                "rule_positive": false,
                "score": 0,
                "systolic_bp_mm_hg": 120
              },
              {
                "citation": {
                  "authors": "Quinn JV, Stiell IG, McDermott DA, Sellers KL, Kohn MA, Wells GA",
                  "doi": "10.1016/S0196-0644(03)00823-0",
                  "id": "quinn-2004",
                  "source": "Ann Emerg Med. 2004;43(2):224-232",
                  "title": "Derivation of the San Francisco Syncope Rule to predict patients with short-term serious outcomes"
                },
                "components": [
                  {
                    "factor": "chf",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hematocrit_lt_30",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "abnormal_ecg",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "shortness_of_breath",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "systolic_bp_lt_90",
                    "points": 0,
                    "present": false,
                    "value": 120
                  }
                ],
                "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": "sf_syncope",
                "formula_expression": "CHESS = chf + hematocrit_lt_30 + abnormal_ecg + shortness_of_breath + systolic_bp_lt_90; rule-positive if score ≥ 1; max 5",
                "hematocrit_percent": 40,
                "max_score": 5,
                "rule_positive": false,
                "score": 0,
                "systolic_bp_mm_hg": 120
              }
            ],
            "path": "/api/calc/sf_syncope"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "abnormal_ecg": {
                          "description": "Abnormal ECG (E). true or false. Caller-assigned; magent does not read tracings.",
                          "type": "boolean"
                        },
                        "chf": {
                          "description": "History of congestive heart failure (C). true or false.",
                          "type": "boolean"
                        },
                        "hematocrit_percent": {
                          "description": "Hematocrit in percent (10-70). Scores 1 when <30; 30 is negative.",
                          "type": "number"
                        },
                        "shortness_of_breath": {
                          "description": "Shortness of breath (S). true or false.",
                          "type": "boolean"
                        },
                        "systolic_bp_mm_hg": {
                          "description": "Systolic BP in mm Hg (50-250). Scores 1 when <90; 90 is negative.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "chf",
                        "hematocrit_percent",
                        "abnormal_ecg",
                        "shortness_of_breath",
                        "systolic_bp_mm_hg"
                      ],
                      "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": [
    "sf-syncope",
    "chess",
    "syncope",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T14:52:50.869Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T14:52:50.729Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "abnormal_ecg": false,
                  "chf": false,
                  "hematocrit_percent": 40,
                  "shortness_of_breath": false,
                  "systolic_bp_mm_hg": 120
                },
                {
                  "abnormal_ecg": false,
                  "chf": false,
                  "hematocrit_percent": 40,
                  "shortness_of_breath": false,
                  "systolic_bp_mm_hg": 120
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Quinn JV, Stiell IG, McDermott DA, Sellers KL, Kohn MA, Wells GA",
                    "doi": "10.1016/S0196-0644(03)00823-0",
                    "id": "quinn-2004",
                    "source": "Ann Emerg Med. 2004;43(2):224-232",
                    "title": "Derivation of the San Francisco Syncope Rule to predict patients with short-term serious outcomes"
                  },
                  "components": [
                    {
                      "factor": "chf",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hematocrit_lt_30",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "abnormal_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "shortness_of_breath",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "systolic_bp_lt_90",
                      "points": 0,
                      "present": false,
                      "value": 120
                    }
                  ],
                  "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": "sf_syncope",
                  "formula_expression": "CHESS = chf + hematocrit_lt_30 + abnormal_ecg + shortness_of_breath + systolic_bp_lt_90; rule-positive if score ≥ 1; max 5",
                  "hematocrit_percent": 40,
                  "max_score": 5,
                  "rule_positive": false,
                  "score": 0,
                  "systolic_bp_mm_hg": 120
                },
                {
                  "citation": {
                    "authors": "Quinn JV, Stiell IG, McDermott DA, Sellers KL, Kohn MA, Wells GA",
                    "doi": "10.1016/S0196-0644(03)00823-0",
                    "id": "quinn-2004",
                    "source": "Ann Emerg Med. 2004;43(2):224-232",
                    "title": "Derivation of the San Francisco Syncope Rule to predict patients with short-term serious outcomes"
                  },
                  "components": [
                    {
                      "factor": "chf",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hematocrit_lt_30",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "abnormal_ecg",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "shortness_of_breath",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "systolic_bp_lt_90",
                      "points": 0,
                      "present": false,
                      "value": 120
                    }
                  ],
                  "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": "sf_syncope",
                  "formula_expression": "CHESS = chf + hematocrit_lt_30 + abnormal_ecg + shortness_of_breath + systolic_bp_lt_90; rule-positive if score ≥ 1; max 5",
                  "hematocrit_percent": 40,
                  "max_score": 5,
                  "rule_positive": false,
                  "score": 0,
                  "systolic_bp_mm_hg": 120
                }
              ],
              "path": "/api/calc/sf_syncope"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "abnormal_ecg": {
                            "description": "Abnormal ECG (E). true or false. Caller-assigned; magent does not read tracings.",
                            "type": "boolean"
                          },
                          "chf": {
                            "description": "History of congestive heart failure (C). true or false.",
                            "type": "boolean"
                          },
                          "hematocrit_percent": {
                            "description": "Hematocrit in percent (10-70). Scores 1 when <30; 30 is negative.",
                            "type": "number"
                          },
                          "shortness_of_breath": {
                            "description": "Shortness of breath (S). true or false.",
                            "type": "boolean"
                          },
                          "systolic_bp_mm_hg": {
                            "description": "Systolic BP in mm Hg (50-250). Scores 1 when <90; 90 is negative.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "chf",
                          "hematocrit_percent",
                          "abnormal_ecg",
                          "shortness_of_breath",
                          "systolic_bp_mm_hg"
                        ],
                        "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"
  }
}