{
  "x402Version": 2,
  "id": 39074,
  "slug": "39074",
  "resource": "https://api.magentlab.com/api/calc/irae_hypothyroidism",
  "description": "Brahmer 2018 ASCO Table 4.1.1 irAE primary hypothyroidism grade from tsh_miu_l (0.01-150 mIU/L) and three caller-assigned flags. First-match: grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else 2 if moderate_symptoms or TSH >= 10; else 1 if TSH < 10. Returns icpi_action continue (grade 1) or hold_until_baseline (grade 2 or 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a medical device, not a diagnosis, not a levothyroxine dose.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "AI Inference",
  "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": [
              {
                "moderate_symptoms": false,
                "severe_or_life_threatening": false,
                "tsh_miu_l": 8,
                "unable_to_perform_adl": false
              },
              {
                "moderate_symptoms": false,
                "severe_or_life_threatening": false,
                "tsh_miu_l": 8,
                "unable_to_perform_adl": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                  "doi": "10.1200/JCO.2017.77.6385",
                  "id": "brahmer-2018",
                  "pmid": "29442540",
                  "source": "J Clin Oncol. 2018;36(17):1714-1768",
                  "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                },
                "criteria": [
                  {
                    "factor": "severe_or_life_threatening",
                    "met": false
                  },
                  {
                    "factor": "unable_to_perform_adl",
                    "met": false
                  },
                  {
                    "factor": "moderate_symptoms",
                    "met": false
                  },
                  {
                    "factor": "tsh_ge_10",
                    "met": false,
                    "value": 8
                  }
                ],
                "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": "irae_hypothyroidism",
                "formula_expression": "irae hypothyroidism first-match (Brahmer 2018 Table 4.1.1 primary hypothyroidism): grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else grade 2 if moderate_symptoms or tsh_miu_l >= 10; else grade 1 if tsh_miu_l < 10. icpi_action continue (1), hold_until_baseline (2 and 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a diagnosis. Not a levothyroxine dose",
                "grade": 1,
                "icpi_action": "continue",
                "moderate_symptoms": false,
                "severe_or_life_threatening": false,
                "tsh_miu_l": 8,
                "unable_to_perform_adl": false
              },
              {
                "citation": {
                  "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                  "doi": "10.1200/JCO.2017.77.6385",
                  "id": "brahmer-2018",
                  "pmid": "29442540",
                  "source": "J Clin Oncol. 2018;36(17):1714-1768",
                  "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                },
                "criteria": [
                  {
                    "factor": "severe_or_life_threatening",
                    "met": false
                  },
                  {
                    "factor": "unable_to_perform_adl",
                    "met": false
                  },
                  {
                    "factor": "moderate_symptoms",
                    "met": false
                  },
                  {
                    "factor": "tsh_ge_10",
                    "met": false,
                    "value": 8
                  }
                ],
                "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": "irae_hypothyroidism",
                "formula_expression": "irae hypothyroidism first-match (Brahmer 2018 Table 4.1.1 primary hypothyroidism): grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else grade 2 if moderate_symptoms or tsh_miu_l >= 10; else grade 1 if tsh_miu_l < 10. icpi_action continue (1), hold_until_baseline (2 and 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a diagnosis. Not a levothyroxine dose",
                "grade": 1,
                "icpi_action": "continue",
                "moderate_symptoms": false,
                "severe_or_life_threatening": false,
                "tsh_miu_l": 8,
                "unable_to_perform_adl": false
              }
            ],
            "path": "/api/calc/irae_hypothyroidism"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "moderate_symptoms": {
                          "description": "Moderate symptoms with ability to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 2). true or false. When true and no grade 3 flag is true, grade is 2. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "severe_or_life_threatening": {
                          "description": "Severe symptoms, medically significant or life-threatening consequences as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "tsh_miu_l": {
                          "description": "TSH in mIU/L (0.01-150; Brahmer 2018 Table 4.1.1 primary hypothyroidism). Persistently TSH >10 mIU/L is grade 2 unless a grade 3 flag is true; TSH 10 is this band. TSH <10 mIU/L with no moderate or severe flags is grade 1. magent does not assay TSH.",
                          "type": "number"
                        },
                        "unable_to_perform_adl": {
                          "description": "Unable to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not assess ADL.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "tsh_miu_l",
                        "moderate_symptoms",
                        "severe_or_life_threatening",
                        "unable_to_perform_adl"
                      ],
                      "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": [
    "irae-hypothyroidism",
    "thyroid",
    "immunotherapy",
    "asco",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:11:25.7Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T07:11:25.538Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "moderate_symptoms": false,
                  "severe_or_life_threatening": false,
                  "tsh_miu_l": 8,
                  "unable_to_perform_adl": false
                },
                {
                  "moderate_symptoms": false,
                  "severe_or_life_threatening": false,
                  "tsh_miu_l": 8,
                  "unable_to_perform_adl": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                    "doi": "10.1200/JCO.2017.77.6385",
                    "id": "brahmer-2018",
                    "pmid": "29442540",
                    "source": "J Clin Oncol. 2018;36(17):1714-1768",
                    "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                  },
                  "criteria": [
                    {
                      "factor": "severe_or_life_threatening",
                      "met": false
                    },
                    {
                      "factor": "unable_to_perform_adl",
                      "met": false
                    },
                    {
                      "factor": "moderate_symptoms",
                      "met": false
                    },
                    {
                      "factor": "tsh_ge_10",
                      "met": false,
                      "value": 8
                    }
                  ],
                  "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": "irae_hypothyroidism",
                  "formula_expression": "irae hypothyroidism first-match (Brahmer 2018 Table 4.1.1 primary hypothyroidism): grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else grade 2 if moderate_symptoms or tsh_miu_l >= 10; else grade 1 if tsh_miu_l < 10. icpi_action continue (1), hold_until_baseline (2 and 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a diagnosis. Not a levothyroxine dose",
                  "grade": 1,
                  "icpi_action": "continue",
                  "moderate_symptoms": false,
                  "severe_or_life_threatening": false,
                  "tsh_miu_l": 8,
                  "unable_to_perform_adl": false
                },
                {
                  "citation": {
                    "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                    "doi": "10.1200/JCO.2017.77.6385",
                    "id": "brahmer-2018",
                    "pmid": "29442540",
                    "source": "J Clin Oncol. 2018;36(17):1714-1768",
                    "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                  },
                  "criteria": [
                    {
                      "factor": "severe_or_life_threatening",
                      "met": false
                    },
                    {
                      "factor": "unable_to_perform_adl",
                      "met": false
                    },
                    {
                      "factor": "moderate_symptoms",
                      "met": false
                    },
                    {
                      "factor": "tsh_ge_10",
                      "met": false,
                      "value": 8
                    }
                  ],
                  "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": "irae_hypothyroidism",
                  "formula_expression": "irae hypothyroidism first-match (Brahmer 2018 Table 4.1.1 primary hypothyroidism): grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else grade 2 if moderate_symptoms or tsh_miu_l >= 10; else grade 1 if tsh_miu_l < 10. icpi_action continue (1), hold_until_baseline (2 and 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a diagnosis. Not a levothyroxine dose",
                  "grade": 1,
                  "icpi_action": "continue",
                  "moderate_symptoms": false,
                  "severe_or_life_threatening": false,
                  "tsh_miu_l": 8,
                  "unable_to_perform_adl": false
                }
              ],
              "path": "/api/calc/irae_hypothyroidism"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "moderate_symptoms": {
                            "description": "Moderate symptoms with ability to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 2). true or false. When true and no grade 3 flag is true, grade is 2. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "severe_or_life_threatening": {
                            "description": "Severe symptoms, medically significant or life-threatening consequences as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "tsh_miu_l": {
                            "description": "TSH in mIU/L (0.01-150; Brahmer 2018 Table 4.1.1 primary hypothyroidism). Persistently TSH >10 mIU/L is grade 2 unless a grade 3 flag is true; TSH 10 is this band. TSH <10 mIU/L with no moderate or severe flags is grade 1. magent does not assay TSH.",
                            "type": "number"
                          },
                          "unable_to_perform_adl": {
                            "description": "Unable to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not assess ADL.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "tsh_miu_l",
                          "moderate_symptoms",
                          "severe_or_life_threatening",
                          "unable_to_perform_adl"
                        ],
                        "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"
  }
}