{
  "x402Version": 2,
  "id": 38806,
  "slug": "38806",
  "resource": "https://api.magentlab.com/api/calc/shanghai",
  "description": "Antzelevitch 2016 Shanghai Score System (Table 2) for Brugada syndrome. Caller assigns ECG (spontaneous type 1 3.5, fever type 1 3, drug-converted type 2/3 2; required; highest only), clinical history (0–3), family history (0–2), and pathogenic BrS-gene mutation (0.5). Bands: probable_definite ≥3.5, possible 2–3. magent does not read tracings. Not a diagnosis or ICD indication. Not the ERS Table 5 score.",
  "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": [
              {
                "clinical": "none",
                "ecg_pattern": "spontaneous_type1",
                "family": "none",
                "pathogenic_mutation": false
              },
              {
                "clinical": "none",
                "ecg_pattern": "spontaneous_type1",
                "family": "none",
                "pathogenic_mutation": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Antzelevitch C, Yan GX, Ackerman MJ, Borggrefe M, Corrado D, Guo J, et al.",
                  "doi": "10.1016/j.hrthm.2016.05.024",
                  "id": "antzelevitch-2016",
                  "pmid": "27423412",
                  "source": "Heart Rhythm. 2016;13(10):e295-e324",
                  "title": "J-Wave syndromes expert consensus conference report: Emerging concepts and gaps in knowledge"
                },
                "clinical": "none",
                "components": [
                  {
                    "factor": "ecg_pattern",
                    "points": 3.5,
                    "present": true,
                    "value": "spontaneous_type1"
                  },
                  {
                    "factor": "clinical",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "family",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "pathogenic_mutation",
                    "points": 0,
                    "present": false,
                    "value": 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.",
                "ecg_pattern": "spontaneous_type1",
                "family": "none",
                "formula": "shanghai",
                "formula_expression": "Shanghai Table 2 (Antzelevitch 2016): ECG required, highest only (spontaneous_type1 3.5, fever_type1 3, drug_converted_type2_3 2) + clinical highest only (vf_arrest 3, nocturnal_agonal 2, arrhythmic_syncope 2, unclear_syncope 1, af_under_30 0.5, none 0) + family highest only (relative_definite_brs 2, suspicious_scd 1, unexplained_scd_under_45 0.5, none 0) + pathogenic_mutation 0.5; max 9; probable_definite ≥3.5, possible 2–3, nondiagnostic <2. Not ERS Table 5",
                "max_score": 9,
                "pathogenic_mutation": false,
                "score": 3.5,
                "shanghai_band": "probable_definite"
              },
              {
                "citation": {
                  "authors": "Antzelevitch C, Yan GX, Ackerman MJ, Borggrefe M, Corrado D, Guo J, et al.",
                  "doi": "10.1016/j.hrthm.2016.05.024",
                  "id": "antzelevitch-2016",
                  "pmid": "27423412",
                  "source": "Heart Rhythm. 2016;13(10):e295-e324",
                  "title": "J-Wave syndromes expert consensus conference report: Emerging concepts and gaps in knowledge"
                },
                "clinical": "none",
                "components": [
                  {
                    "factor": "ecg_pattern",
                    "points": 3.5,
                    "present": true,
                    "value": "spontaneous_type1"
                  },
                  {
                    "factor": "clinical",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "family",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "pathogenic_mutation",
                    "points": 0,
                    "present": false,
                    "value": 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.",
                "ecg_pattern": "spontaneous_type1",
                "family": "none",
                "formula": "shanghai",
                "formula_expression": "Shanghai Table 2 (Antzelevitch 2016): ECG required, highest only (spontaneous_type1 3.5, fever_type1 3, drug_converted_type2_3 2) + clinical highest only (vf_arrest 3, nocturnal_agonal 2, arrhythmic_syncope 2, unclear_syncope 1, af_under_30 0.5, none 0) + family highest only (relative_definite_brs 2, suspicious_scd 1, unexplained_scd_under_45 0.5, none 0) + pathogenic_mutation 0.5; max 9; probable_definite ≥3.5, possible 2–3, nondiagnostic <2. Not ERS Table 5",
                "max_score": 9,
                "pathogenic_mutation": false,
                "score": 3.5,
                "shanghai_band": "probable_definite"
              }
            ],
            "path": "/api/calc/shanghai"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "clinical": {
                          "description": "Highest Table 2 clinical-history item as assigned by the caller (Antzelevitch 2016). vf_arrest 3; nocturnal_agonal 2; arrhythmic_syncope 2; unclear_syncope 1; af_under_30 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a history.",
                          "enum": [
                            "vf_arrest",
                            "nocturnal_agonal",
                            "arrhythmic_syncope",
                            "unclear_syncope",
                            "af_under_30",
                            "none"
                          ],
                          "type": "string"
                        },
                        "ecg_pattern": {
                          "description": "Highest Table 2 ECG finding as assigned by the caller (Antzelevitch 2016). spontaneous_type1 scores 3.5; fever_type1 scores 3; drug_converted_type2_3 scores 2. At least one ECG finding is required. Award once (highest item only). magent does not read tracings.",
                          "enum": [
                            "spontaneous_type1",
                            "fever_type1",
                            "drug_converted_type2_3"
                          ],
                          "type": "string"
                        },
                        "family": {
                          "description": "Highest Table 2 family-history item as assigned by the caller (Antzelevitch 2016). relative_definite_brs 2; suspicious_scd 1; unexplained_scd_under_45 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a pedigree.",
                          "enum": [
                            "relative_definite_brs",
                            "suspicious_scd",
                            "unexplained_scd_under_45",
                            "none"
                          ],
                          "type": "string"
                        },
                        "pathogenic_mutation": {
                          "description": "Probable pathogenic mutation in a BrS susceptibility gene (Antzelevitch 2016 Table 2 IV). true scores 0.5; false scores 0. magent does not interpret sequencing.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ecg_pattern",
                        "pathogenic_mutation"
                      ],
                      "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": [
    "shanghai",
    "brugada",
    "ecg",
    "j-wave",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T14:57:32.197Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T14:57:32.041Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "clinical": "none",
                  "ecg_pattern": "spontaneous_type1",
                  "family": "none",
                  "pathogenic_mutation": false
                },
                {
                  "clinical": "none",
                  "ecg_pattern": "spontaneous_type1",
                  "family": "none",
                  "pathogenic_mutation": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Antzelevitch C, Yan GX, Ackerman MJ, Borggrefe M, Corrado D, Guo J, et al.",
                    "doi": "10.1016/j.hrthm.2016.05.024",
                    "id": "antzelevitch-2016",
                    "pmid": "27423412",
                    "source": "Heart Rhythm. 2016;13(10):e295-e324",
                    "title": "J-Wave syndromes expert consensus conference report: Emerging concepts and gaps in knowledge"
                  },
                  "clinical": "none",
                  "components": [
                    {
                      "factor": "ecg_pattern",
                      "points": 3.5,
                      "present": true,
                      "value": "spontaneous_type1"
                    },
                    {
                      "factor": "clinical",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "family",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "pathogenic_mutation",
                      "points": 0,
                      "present": false,
                      "value": 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.",
                  "ecg_pattern": "spontaneous_type1",
                  "family": "none",
                  "formula": "shanghai",
                  "formula_expression": "Shanghai Table 2 (Antzelevitch 2016): ECG required, highest only (spontaneous_type1 3.5, fever_type1 3, drug_converted_type2_3 2) + clinical highest only (vf_arrest 3, nocturnal_agonal 2, arrhythmic_syncope 2, unclear_syncope 1, af_under_30 0.5, none 0) + family highest only (relative_definite_brs 2, suspicious_scd 1, unexplained_scd_under_45 0.5, none 0) + pathogenic_mutation 0.5; max 9; probable_definite ≥3.5, possible 2–3, nondiagnostic <2. Not ERS Table 5",
                  "max_score": 9,
                  "pathogenic_mutation": false,
                  "score": 3.5,
                  "shanghai_band": "probable_definite"
                },
                {
                  "citation": {
                    "authors": "Antzelevitch C, Yan GX, Ackerman MJ, Borggrefe M, Corrado D, Guo J, et al.",
                    "doi": "10.1016/j.hrthm.2016.05.024",
                    "id": "antzelevitch-2016",
                    "pmid": "27423412",
                    "source": "Heart Rhythm. 2016;13(10):e295-e324",
                    "title": "J-Wave syndromes expert consensus conference report: Emerging concepts and gaps in knowledge"
                  },
                  "clinical": "none",
                  "components": [
                    {
                      "factor": "ecg_pattern",
                      "points": 3.5,
                      "present": true,
                      "value": "spontaneous_type1"
                    },
                    {
                      "factor": "clinical",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "family",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "pathogenic_mutation",
                      "points": 0,
                      "present": false,
                      "value": 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.",
                  "ecg_pattern": "spontaneous_type1",
                  "family": "none",
                  "formula": "shanghai",
                  "formula_expression": "Shanghai Table 2 (Antzelevitch 2016): ECG required, highest only (spontaneous_type1 3.5, fever_type1 3, drug_converted_type2_3 2) + clinical highest only (vf_arrest 3, nocturnal_agonal 2, arrhythmic_syncope 2, unclear_syncope 1, af_under_30 0.5, none 0) + family highest only (relative_definite_brs 2, suspicious_scd 1, unexplained_scd_under_45 0.5, none 0) + pathogenic_mutation 0.5; max 9; probable_definite ≥3.5, possible 2–3, nondiagnostic <2. Not ERS Table 5",
                  "max_score": 9,
                  "pathogenic_mutation": false,
                  "score": 3.5,
                  "shanghai_band": "probable_definite"
                }
              ],
              "path": "/api/calc/shanghai"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "clinical": {
                            "description": "Highest Table 2 clinical-history item as assigned by the caller (Antzelevitch 2016). vf_arrest 3; nocturnal_agonal 2; arrhythmic_syncope 2; unclear_syncope 1; af_under_30 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a history.",
                            "enum": [
                              "vf_arrest",
                              "nocturnal_agonal",
                              "arrhythmic_syncope",
                              "unclear_syncope",
                              "af_under_30",
                              "none"
                            ],
                            "type": "string"
                          },
                          "ecg_pattern": {
                            "description": "Highest Table 2 ECG finding as assigned by the caller (Antzelevitch 2016). spontaneous_type1 scores 3.5; fever_type1 scores 3; drug_converted_type2_3 scores 2. At least one ECG finding is required. Award once (highest item only). magent does not read tracings.",
                            "enum": [
                              "spontaneous_type1",
                              "fever_type1",
                              "drug_converted_type2_3"
                            ],
                            "type": "string"
                          },
                          "family": {
                            "description": "Highest Table 2 family-history item as assigned by the caller (Antzelevitch 2016). relative_definite_brs 2; suspicious_scd 1; unexplained_scd_under_45 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a pedigree.",
                            "enum": [
                              "relative_definite_brs",
                              "suspicious_scd",
                              "unexplained_scd_under_45",
                              "none"
                            ],
                            "type": "string"
                          },
                          "pathogenic_mutation": {
                            "description": "Probable pathogenic mutation in a BrS susceptibility gene (Antzelevitch 2016 Table 2 IV). true scores 0.5; false scores 0. magent does not interpret sequencing.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ecg_pattern",
                          "pathogenic_mutation"
                        ],
                        "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"
  }
}