{
  "x402Version": 2,
  "id": 38926,
  "slug": "38926",
  "resource": "https://api.magentlab.com/api/calc/reach_b",
  "description": "Yang 2011 REACH-B 17-point HCC risk (non-cirrhotic REVEAL-HBV). Sex female 0, male 2; age 30-65 (30-34 0 through 60-65 6); ALT U/L <15 0, 15-44 1, >=45 2; HBeAg positive 2; HBV DNA copies/mL <10000 0, 10000-99999 3, 100000-999999 5, >=1000000 4. Returns score 0-17 and published 3/5/10-year percents. Not a diagnosis, not a biopsy, not for cirrhosis. magent does not assay ALT or HBV DNA.",
  "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": [
              {
                "age": 30,
                "alt_u_l": 14,
                "hbeag_positive": false,
                "hbv_dna_copies_per_ml": 200,
                "sex": "female"
              },
              {
                "age": 30,
                "alt_u_l": 14,
                "hbeag_positive": false,
                "hbv_dna_copies_per_ml": 200,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 30,
                "alt_u_l": 14,
                "citation": {
                  "authors": "Yang HI, Yuen MF, Chan HL, et al",
                  "doi": "10.1016/S1470-2045(11)70077-8",
                  "id": "yang-2011",
                  "pmid": "21497551",
                  "source": "Lancet Oncol. 2011;12(6):568-574",
                  "title": "Risk estimation for hepatocellular carcinoma in chronic hepatitis B (REACH-B): development and validation of a predictive score"
                },
                "components": [
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 30
                  },
                  {
                    "factor": "alt",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "hbeag",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hbv_dna",
                    "points": 0,
                    "present": false,
                    "value": 200
                  }
                ],
                "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": "reach_b",
                "formula_expression": "REACH-B = sex + age + ALT + HBeAg + HBV DNA copies/mL; female 0, male 2; age 30-34 -> 0, 35-39 -> 1, 40-44 -> 2, 45-49 -> 3, 50-54 -> 4, 55-59 -> 5, 60-65 -> 6; ALT <15 -> 0, 15-44 -> 1, >=45 -> 2; HBeAg positive 2; HBV DNA copies/mL <300 -> 0, 300-9999 -> 0, 10000-99999 -> 3, 100000-999999 -> 5, >=1000000 -> 4; max 17; 3/5/10-year HCC percent from Yang 2011 score table",
                "hbeag_positive": false,
                "hbv_dna_copies_per_ml": 200,
                "max_score": 17,
                "risk_10y_percent": 0,
                "risk_3y_percent": 0,
                "risk_5y_percent": 0,
                "score": 0,
                "sex": "female"
              },
              {
                "age_years": 30,
                "alt_u_l": 14,
                "citation": {
                  "authors": "Yang HI, Yuen MF, Chan HL, et al",
                  "doi": "10.1016/S1470-2045(11)70077-8",
                  "id": "yang-2011",
                  "pmid": "21497551",
                  "source": "Lancet Oncol. 2011;12(6):568-574",
                  "title": "Risk estimation for hepatocellular carcinoma in chronic hepatitis B (REACH-B): development and validation of a predictive score"
                },
                "components": [
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 30
                  },
                  {
                    "factor": "alt",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "hbeag",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hbv_dna",
                    "points": 0,
                    "present": false,
                    "value": 200
                  }
                ],
                "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": "reach_b",
                "formula_expression": "REACH-B = sex + age + ALT + HBeAg + HBV DNA copies/mL; female 0, male 2; age 30-34 -> 0, 35-39 -> 1, 40-44 -> 2, 45-49 -> 3, 50-54 -> 4, 55-59 -> 5, 60-65 -> 6; ALT <15 -> 0, 15-44 -> 1, >=45 -> 2; HBeAg positive 2; HBV DNA copies/mL <300 -> 0, 300-9999 -> 0, 10000-99999 -> 3, 100000-999999 -> 5, >=1000000 -> 4; max 17; 3/5/10-year HCC percent from Yang 2011 score table",
                "hbeag_positive": false,
                "hbv_dna_copies_per_ml": 200,
                "max_score": 17,
                "risk_10y_percent": 0,
                "risk_3y_percent": 0,
                "risk_5y_percent": 0,
                "score": 0,
                "sex": "female"
              }
            ],
            "path": "/api/calc/reach_b"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years. Yang 2011 derivation 30-65 only: 30-34 scores 0; 35-39 scores 1; 40-44 scores 2; 45-49 scores 3; 50-54 scores 4; 55-59 scores 5; 60-65 scores 6. Age 34 scores 0; 35 scores 1; 65 scores 6. Age outside 30-65 is rejected. This tool does not score age >=65 as 7.",
                          "type": "integer"
                        },
                        "alt_u_l": {
                          "description": "Alanine aminotransferase in U/L (1-10000). Caller-assigned; magent does not assay ALT. Yang 2011: <15 scores 0; 15-44 scores 1; >=45 scores 2. ALT 14 scores 0; 15 and 44 score 1; 45 scores 2.",
                          "type": "number"
                        },
                        "hbeag_positive": {
                          "description": "HBeAg positive as assigned by the caller (Yang 2011). true scores 2; false scores 0. magent does not assay HBeAg.",
                          "type": "boolean"
                        },
                        "hbv_dna_copies_per_ml": {
                          "description": "HBV DNA in copies/mL (integer 0-10000000000). Yang 2011 uses copies/mL, not IU/mL. magent does not assay HBV DNA and does not convert units. <300 scores 0; 300-9999 scores 0; 10000-99999 scores 3; 100000-999999 scores 5; >=1000000 scores 4 (non-monotonic: 10^6 scores 4, 10^5 to 10^6-1 scores 5).",
                          "type": "integer"
                        },
                        "sex": {
                          "description": "female or male. Yang 2011: female scores 0; male scores 2.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "age",
                        "alt_u_l",
                        "hbeag_positive",
                        "hbv_dna_copies_per_ml"
                      ],
                      "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": [
    "reach-b",
    "hcc",
    "hepatitis-b",
    "liver",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:06:48.036Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T12:06:47.764Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 30,
                  "alt_u_l": 14,
                  "hbeag_positive": false,
                  "hbv_dna_copies_per_ml": 200,
                  "sex": "female"
                },
                {
                  "age": 30,
                  "alt_u_l": 14,
                  "hbeag_positive": false,
                  "hbv_dna_copies_per_ml": 200,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 30,
                  "alt_u_l": 14,
                  "citation": {
                    "authors": "Yang HI, Yuen MF, Chan HL, et al",
                    "doi": "10.1016/S1470-2045(11)70077-8",
                    "id": "yang-2011",
                    "pmid": "21497551",
                    "source": "Lancet Oncol. 2011;12(6):568-574",
                    "title": "Risk estimation for hepatocellular carcinoma in chronic hepatitis B (REACH-B): development and validation of a predictive score"
                  },
                  "components": [
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 30
                    },
                    {
                      "factor": "alt",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "hbeag",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hbv_dna",
                      "points": 0,
                      "present": false,
                      "value": 200
                    }
                  ],
                  "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": "reach_b",
                  "formula_expression": "REACH-B = sex + age + ALT + HBeAg + HBV DNA copies/mL; female 0, male 2; age 30-34 -> 0, 35-39 -> 1, 40-44 -> 2, 45-49 -> 3, 50-54 -> 4, 55-59 -> 5, 60-65 -> 6; ALT <15 -> 0, 15-44 -> 1, >=45 -> 2; HBeAg positive 2; HBV DNA copies/mL <300 -> 0, 300-9999 -> 0, 10000-99999 -> 3, 100000-999999 -> 5, >=1000000 -> 4; max 17; 3/5/10-year HCC percent from Yang 2011 score table",
                  "hbeag_positive": false,
                  "hbv_dna_copies_per_ml": 200,
                  "max_score": 17,
                  "risk_10y_percent": 0,
                  "risk_3y_percent": 0,
                  "risk_5y_percent": 0,
                  "score": 0,
                  "sex": "female"
                },
                {
                  "age_years": 30,
                  "alt_u_l": 14,
                  "citation": {
                    "authors": "Yang HI, Yuen MF, Chan HL, et al",
                    "doi": "10.1016/S1470-2045(11)70077-8",
                    "id": "yang-2011",
                    "pmid": "21497551",
                    "source": "Lancet Oncol. 2011;12(6):568-574",
                    "title": "Risk estimation for hepatocellular carcinoma in chronic hepatitis B (REACH-B): development and validation of a predictive score"
                  },
                  "components": [
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 30
                    },
                    {
                      "factor": "alt",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "hbeag",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hbv_dna",
                      "points": 0,
                      "present": false,
                      "value": 200
                    }
                  ],
                  "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": "reach_b",
                  "formula_expression": "REACH-B = sex + age + ALT + HBeAg + HBV DNA copies/mL; female 0, male 2; age 30-34 -> 0, 35-39 -> 1, 40-44 -> 2, 45-49 -> 3, 50-54 -> 4, 55-59 -> 5, 60-65 -> 6; ALT <15 -> 0, 15-44 -> 1, >=45 -> 2; HBeAg positive 2; HBV DNA copies/mL <300 -> 0, 300-9999 -> 0, 10000-99999 -> 3, 100000-999999 -> 5, >=1000000 -> 4; max 17; 3/5/10-year HCC percent from Yang 2011 score table",
                  "hbeag_positive": false,
                  "hbv_dna_copies_per_ml": 200,
                  "max_score": 17,
                  "risk_10y_percent": 0,
                  "risk_3y_percent": 0,
                  "risk_5y_percent": 0,
                  "score": 0,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/reach_b"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years. Yang 2011 derivation 30-65 only: 30-34 scores 0; 35-39 scores 1; 40-44 scores 2; 45-49 scores 3; 50-54 scores 4; 55-59 scores 5; 60-65 scores 6. Age 34 scores 0; 35 scores 1; 65 scores 6. Age outside 30-65 is rejected. This tool does not score age >=65 as 7.",
                            "type": "integer"
                          },
                          "alt_u_l": {
                            "description": "Alanine aminotransferase in U/L (1-10000). Caller-assigned; magent does not assay ALT. Yang 2011: <15 scores 0; 15-44 scores 1; >=45 scores 2. ALT 14 scores 0; 15 and 44 score 1; 45 scores 2.",
                            "type": "number"
                          },
                          "hbeag_positive": {
                            "description": "HBeAg positive as assigned by the caller (Yang 2011). true scores 2; false scores 0. magent does not assay HBeAg.",
                            "type": "boolean"
                          },
                          "hbv_dna_copies_per_ml": {
                            "description": "HBV DNA in copies/mL (integer 0-10000000000). Yang 2011 uses copies/mL, not IU/mL. magent does not assay HBV DNA and does not convert units. <300 scores 0; 300-9999 scores 0; 10000-99999 scores 3; 100000-999999 scores 5; >=1000000 scores 4 (non-monotonic: 10^6 scores 4, 10^5 to 10^6-1 scores 5).",
                            "type": "integer"
                          },
                          "sex": {
                            "description": "female or male. Yang 2011: female scores 0; male scores 2.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "age",
                          "alt_u_l",
                          "hbeag_positive",
                          "hbv_dna_copies_per_ml"
                        ],
                        "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"
  }
}