{
  "x402Version": 2,
  "id": 39121,
  "slug": "39121",
  "resource": "https://api.magentlab.com/api/calc/he_macs",
  "description": "Alghamdi 2019 HE-MACS ACS probability from age, sex, caller-assigned observed sweating, acute ECG ischaemia, right-arm or shoulder radiation, vomiting, hypotension (SBP <100), and current smoking. Table 2 printed coefficients. Returns probability only; four-group ROC thresholds are in that paper's supplement and are not restated here. magent does not interpret ECG or take a history. Not MACS (Body 2014 biomarkers) or T-MACS. Not a diagnosis.",
  "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": [
              {
                "acute_ecg_ischaemia": false,
                "age": 40,
                "current_smoker": false,
                "hypotension": false,
                "pain_radiation_right_arm_or_shoulder": false,
                "sex": "female",
                "sweating_observed": false,
                "vomiting": false
              },
              {
                "acute_ecg_ischaemia": false,
                "age": 40,
                "current_smoker": false,
                "hypotension": false,
                "pain_radiation_right_arm_or_shoulder": false,
                "sex": "female",
                "sweating_observed": false,
                "vomiting": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "acute_ecg_ischaemia": false,
                "age": 40,
                "citation": {
                  "authors": "Alghamdi A, Howard L, Reynard C, et al.",
                  "doi": "10.1097/MEJ.0000000000000575",
                  "id": "alghamdi-2019",
                  "pmid": "30289775",
                  "source": "Eur J Emerg Med. 2019;26(5):356-361",
                  "title": "Enhanced triage for patients with suspected cardiac chest pain: the History and Electrocardiogram-only Manchester Acute Coronary Syndromes decision aid"
                },
                "current_smoker": 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": "he_macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.426*a + 1.838*b + 0.734*c + 0.996*d + 1.353*e + 0.675*f + 0.024*g + 0.462*h - 4.416; a sweating observed 0/1; b acute ECG ischaemia 0/1; c pain radiating to right arm or shoulder 0/1; d vomiting associated with pain 0/1; e systolic BP <100 mmHg 0/1; f current tobacco smoker 0/1; g age in years (continuous); h male sex 1, female 0 (Alghamdi 2019 Table 2 printed values)",
                "hypotension": false,
                "linear_predictor": -3.456,
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.0306,
                "sex": "female",
                "sweating_observed": false,
                "vomiting": false
              },
              {
                "acute_ecg_ischaemia": false,
                "age": 40,
                "citation": {
                  "authors": "Alghamdi A, Howard L, Reynard C, et al.",
                  "doi": "10.1097/MEJ.0000000000000575",
                  "id": "alghamdi-2019",
                  "pmid": "30289775",
                  "source": "Eur J Emerg Med. 2019;26(5):356-361",
                  "title": "Enhanced triage for patients with suspected cardiac chest pain: the History and Electrocardiogram-only Manchester Acute Coronary Syndromes decision aid"
                },
                "current_smoker": 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": "he_macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.426*a + 1.838*b + 0.734*c + 0.996*d + 1.353*e + 0.675*f + 0.024*g + 0.462*h - 4.416; a sweating observed 0/1; b acute ECG ischaemia 0/1; c pain radiating to right arm or shoulder 0/1; d vomiting associated with pain 0/1; e systolic BP <100 mmHg 0/1; f current tobacco smoker 0/1; g age in years (continuous); h male sex 1, female 0 (Alghamdi 2019 Table 2 printed values)",
                "hypotension": false,
                "linear_predictor": -3.456,
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.0306,
                "sex": "female",
                "sweating_observed": false,
                "vomiting": false
              }
            ],
            "path": "/api/calc/he_macs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "acute_ecg_ischaemia": {
                          "description": "Caller-assigned acute ECG ischaemia as used in Alghamdi 2019 (b): ST-deviation or abnormal T inversion (1 if true, 0 if false). magent does not interpret an ECG.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years as a continuous linear predictor (g; 18-100, implementation clamp). Alghamdi 2019 Table 2. magent does not read an identity document.",
                          "type": "number"
                        },
                        "current_smoker": {
                          "description": "Current tobacco smoker as assigned by the caller (f; Alghamdi 2019). true or false. magent does not take a smoking history.",
                          "type": "boolean"
                        },
                        "hypotension": {
                          "description": "Hypotension as assigned by the caller (e): systolic BP <100 mm Hg (Alghamdi 2019, dichotomised as in that paper). true or false.",
                          "type": "boolean"
                        },
                        "pain_radiation_right_arm_or_shoulder": {
                          "description": "Pain radiating to the right arm or shoulder as assigned by the caller (c; Alghamdi 2019). true or false. magent does not take a pain history.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "Sex used as h in Alghamdi 2019 Table 2 (male = 1, female = 0). male or female, case-insensitive. magent does not examine the patient.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "sweating_observed": {
                          "description": "Sweating observed by the treating clinician as assigned by the caller (a; 1 if true, 0 if false). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "vomiting": {
                          "description": "Vomiting associated with the pain as assigned by the caller (d; Alghamdi 2019). true or false.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "sweating_observed",
                        "acute_ecg_ischaemia",
                        "pain_radiation_right_arm_or_shoulder",
                        "vomiting",
                        "hypotension",
                        "current_smoker"
                      ],
                      "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": [
    "he-macs",
    "acs",
    "chest-pain",
    "ecg",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:41:23.751Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:41:23.639Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "acute_ecg_ischaemia": false,
                  "age": 40,
                  "current_smoker": false,
                  "hypotension": false,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "sex": "female",
                  "sweating_observed": false,
                  "vomiting": false
                },
                {
                  "acute_ecg_ischaemia": false,
                  "age": 40,
                  "current_smoker": false,
                  "hypotension": false,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "sex": "female",
                  "sweating_observed": false,
                  "vomiting": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "acute_ecg_ischaemia": false,
                  "age": 40,
                  "citation": {
                    "authors": "Alghamdi A, Howard L, Reynard C, et al.",
                    "doi": "10.1097/MEJ.0000000000000575",
                    "id": "alghamdi-2019",
                    "pmid": "30289775",
                    "source": "Eur J Emerg Med. 2019;26(5):356-361",
                    "title": "Enhanced triage for patients with suspected cardiac chest pain: the History and Electrocardiogram-only Manchester Acute Coronary Syndromes decision aid"
                  },
                  "current_smoker": 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": "he_macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.426*a + 1.838*b + 0.734*c + 0.996*d + 1.353*e + 0.675*f + 0.024*g + 0.462*h - 4.416; a sweating observed 0/1; b acute ECG ischaemia 0/1; c pain radiating to right arm or shoulder 0/1; d vomiting associated with pain 0/1; e systolic BP <100 mmHg 0/1; f current tobacco smoker 0/1; g age in years (continuous); h male sex 1, female 0 (Alghamdi 2019 Table 2 printed values)",
                  "hypotension": false,
                  "linear_predictor": -3.456,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.0306,
                  "sex": "female",
                  "sweating_observed": false,
                  "vomiting": false
                },
                {
                  "acute_ecg_ischaemia": false,
                  "age": 40,
                  "citation": {
                    "authors": "Alghamdi A, Howard L, Reynard C, et al.",
                    "doi": "10.1097/MEJ.0000000000000575",
                    "id": "alghamdi-2019",
                    "pmid": "30289775",
                    "source": "Eur J Emerg Med. 2019;26(5):356-361",
                    "title": "Enhanced triage for patients with suspected cardiac chest pain: the History and Electrocardiogram-only Manchester Acute Coronary Syndromes decision aid"
                  },
                  "current_smoker": 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": "he_macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.426*a + 1.838*b + 0.734*c + 0.996*d + 1.353*e + 0.675*f + 0.024*g + 0.462*h - 4.416; a sweating observed 0/1; b acute ECG ischaemia 0/1; c pain radiating to right arm or shoulder 0/1; d vomiting associated with pain 0/1; e systolic BP <100 mmHg 0/1; f current tobacco smoker 0/1; g age in years (continuous); h male sex 1, female 0 (Alghamdi 2019 Table 2 printed values)",
                  "hypotension": false,
                  "linear_predictor": -3.456,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.0306,
                  "sex": "female",
                  "sweating_observed": false,
                  "vomiting": false
                }
              ],
              "path": "/api/calc/he_macs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "acute_ecg_ischaemia": {
                            "description": "Caller-assigned acute ECG ischaemia as used in Alghamdi 2019 (b): ST-deviation or abnormal T inversion (1 if true, 0 if false). magent does not interpret an ECG.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years as a continuous linear predictor (g; 18-100, implementation clamp). Alghamdi 2019 Table 2. magent does not read an identity document.",
                            "type": "number"
                          },
                          "current_smoker": {
                            "description": "Current tobacco smoker as assigned by the caller (f; Alghamdi 2019). true or false. magent does not take a smoking history.",
                            "type": "boolean"
                          },
                          "hypotension": {
                            "description": "Hypotension as assigned by the caller (e): systolic BP <100 mm Hg (Alghamdi 2019, dichotomised as in that paper). true or false.",
                            "type": "boolean"
                          },
                          "pain_radiation_right_arm_or_shoulder": {
                            "description": "Pain radiating to the right arm or shoulder as assigned by the caller (c; Alghamdi 2019). true or false. magent does not take a pain history.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "Sex used as h in Alghamdi 2019 Table 2 (male = 1, female = 0). male or female, case-insensitive. magent does not examine the patient.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "sweating_observed": {
                            "description": "Sweating observed by the treating clinician as assigned by the caller (a; 1 if true, 0 if false). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "vomiting": {
                            "description": "Vomiting associated with the pain as assigned by the caller (d; Alghamdi 2019). true or false.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "sweating_observed",
                          "acute_ecg_ischaemia",
                          "pain_radiation_right_arm_or_shoulder",
                          "vomiting",
                          "hypotension",
                          "current_smoker"
                        ],
                        "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"
  }
}