{
  "x402Version": 2,
  "id": 39292,
  "slug": "39292",
  "resource": "https://api.magentlab.com/api/calc/bard",
  "description": "Harrison 2008 BARD score for NAFLD advanced fibrosis: BMI ≥28 kg/m² (1), AST/ALT ≥0.8 (2), diabetes mellitus (1); max 4. Low 0–1, high 2–4 (paper 2–4 vs 0–1 split). Not a NASH diagnosis; magent does not interpret a biopsy or compute BMI. Not FIB-4, APRI, or the NAFLD fibrosis 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": [
              {
                "alt_u_l": 40,
                "ast_u_l": 20,
                "bmi": 25,
                "diabetes": false
              },
              {
                "alt_u_l": 40,
                "ast_u_l": 20,
                "bmi": 25,
                "diabetes": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "alt_u_l": 40,
                "ast_alt_ratio": 0.5,
                "ast_u_l": 20,
                "bmi": 25,
                "citation": {
                  "authors": "Harrison SA, Oliver D, Arnold HL, Gogia S, Neuschwander-Tetri BA",
                  "doi": "10.1136/gut.2007.146019",
                  "id": "harrison-2008",
                  "pmid": "18390575",
                  "source": "Gut. 2008;57(10):1441-1447",
                  "title": "Development and validation of a simple NAFLD clinical scoring system for identifying patients without advanced disease"
                },
                "components": [
                  {
                    "factor": "bmi_ge_28",
                    "points": 0,
                    "present": false,
                    "value": 25
                  },
                  {
                    "factor": "ast_alt_ratio_ge_0_8",
                    "points": 0,
                    "present": false,
                    "value": 0.5
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  }
                ],
                "diabetes": 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": "bard",
                "formula_expression": "BARD = 1 if BMI >= 28 + 2 if AST/ALT >= 0.8 + 1 if diabetes; Harrison 2008; max 4; risk_group low 0-1, high 2-4. Not a biopsy. Not F0-F4.",
                "max_score": 4,
                "risk_group": "low",
                "score": 0
              },
              {
                "alt_u_l": 40,
                "ast_alt_ratio": 0.5,
                "ast_u_l": 20,
                "bmi": 25,
                "citation": {
                  "authors": "Harrison SA, Oliver D, Arnold HL, Gogia S, Neuschwander-Tetri BA",
                  "doi": "10.1136/gut.2007.146019",
                  "id": "harrison-2008",
                  "pmid": "18390575",
                  "source": "Gut. 2008;57(10):1441-1447",
                  "title": "Development and validation of a simple NAFLD clinical scoring system for identifying patients without advanced disease"
                },
                "components": [
                  {
                    "factor": "bmi_ge_28",
                    "points": 0,
                    "present": false,
                    "value": 25
                  },
                  {
                    "factor": "ast_alt_ratio_ge_0_8",
                    "points": 0,
                    "present": false,
                    "value": 0.5
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  }
                ],
                "diabetes": 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": "bard",
                "formula_expression": "BARD = 1 if BMI >= 28 + 2 if AST/ALT >= 0.8 + 1 if diabetes; Harrison 2008; max 4; risk_group low 0-1, high 2-4. Not a biopsy. Not F0-F4.",
                "max_score": 4,
                "risk_group": "low",
                "score": 0
              }
            ],
            "path": "/api/calc/bard"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "alt_u_l": {
                          "description": "Alanine aminotransferase in U/L (1-10000). AST/ALT >= 0.8 scores 2 (Harrison 2008). 0.799 scores 0. ALT must be >0.",
                          "type": "number"
                        },
                        "ast_u_l": {
                          "description": "Aspartate aminotransferase in U/L (1-10000). Used with ALT for the AAR.",
                          "type": "number"
                        },
                        "bmi": {
                          "description": "Body-mass index in kg/m^2 (10-80). >=28 scores 1 (Harrison 2008). 27.9 scores 0. Caller-supplied; magent does not compute BMI from height and weight.",
                          "type": "number"
                        },
                        "diabetes": {
                          "description": "Diabetes mellitus as assigned by the caller (Harrison 2008). true scores 1. magent does not diagnose diabetes.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "bmi",
                        "ast_u_l",
                        "alt_u_l",
                        "diabetes"
                      ],
                      "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": [
    "bard",
    "nafld",
    "fibrosis",
    "liver",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T00:16:29.93Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T00:16:29.787Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "alt_u_l": 40,
                  "ast_u_l": 20,
                  "bmi": 25,
                  "diabetes": false
                },
                {
                  "alt_u_l": 40,
                  "ast_u_l": 20,
                  "bmi": 25,
                  "diabetes": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "alt_u_l": 40,
                  "ast_alt_ratio": 0.5,
                  "ast_u_l": 20,
                  "bmi": 25,
                  "citation": {
                    "authors": "Harrison SA, Oliver D, Arnold HL, Gogia S, Neuschwander-Tetri BA",
                    "doi": "10.1136/gut.2007.146019",
                    "id": "harrison-2008",
                    "pmid": "18390575",
                    "source": "Gut. 2008;57(10):1441-1447",
                    "title": "Development and validation of a simple NAFLD clinical scoring system for identifying patients without advanced disease"
                  },
                  "components": [
                    {
                      "factor": "bmi_ge_28",
                      "points": 0,
                      "present": false,
                      "value": 25
                    },
                    {
                      "factor": "ast_alt_ratio_ge_0_8",
                      "points": 0,
                      "present": false,
                      "value": 0.5
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "diabetes": 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": "bard",
                  "formula_expression": "BARD = 1 if BMI >= 28 + 2 if AST/ALT >= 0.8 + 1 if diabetes; Harrison 2008; max 4; risk_group low 0-1, high 2-4. Not a biopsy. Not F0-F4.",
                  "max_score": 4,
                  "risk_group": "low",
                  "score": 0
                },
                {
                  "alt_u_l": 40,
                  "ast_alt_ratio": 0.5,
                  "ast_u_l": 20,
                  "bmi": 25,
                  "citation": {
                    "authors": "Harrison SA, Oliver D, Arnold HL, Gogia S, Neuschwander-Tetri BA",
                    "doi": "10.1136/gut.2007.146019",
                    "id": "harrison-2008",
                    "pmid": "18390575",
                    "source": "Gut. 2008;57(10):1441-1447",
                    "title": "Development and validation of a simple NAFLD clinical scoring system for identifying patients without advanced disease"
                  },
                  "components": [
                    {
                      "factor": "bmi_ge_28",
                      "points": 0,
                      "present": false,
                      "value": 25
                    },
                    {
                      "factor": "ast_alt_ratio_ge_0_8",
                      "points": 0,
                      "present": false,
                      "value": 0.5
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "diabetes": 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": "bard",
                  "formula_expression": "BARD = 1 if BMI >= 28 + 2 if AST/ALT >= 0.8 + 1 if diabetes; Harrison 2008; max 4; risk_group low 0-1, high 2-4. Not a biopsy. Not F0-F4.",
                  "max_score": 4,
                  "risk_group": "low",
                  "score": 0
                }
              ],
              "path": "/api/calc/bard"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "alt_u_l": {
                            "description": "Alanine aminotransferase in U/L (1-10000). AST/ALT >= 0.8 scores 2 (Harrison 2008). 0.799 scores 0. ALT must be >0.",
                            "type": "number"
                          },
                          "ast_u_l": {
                            "description": "Aspartate aminotransferase in U/L (1-10000). Used with ALT for the AAR.",
                            "type": "number"
                          },
                          "bmi": {
                            "description": "Body-mass index in kg/m^2 (10-80). >=28 scores 1 (Harrison 2008). 27.9 scores 0. Caller-supplied; magent does not compute BMI from height and weight.",
                            "type": "number"
                          },
                          "diabetes": {
                            "description": "Diabetes mellitus as assigned by the caller (Harrison 2008). true scores 1. magent does not diagnose diabetes.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "bmi",
                          "ast_u_l",
                          "alt_u_l",
                          "diabetes"
                        ],
                        "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"
  }
}