{
  "x402Version": 2,
  "id": 38960,
  "slug": "38960",
  "resource": "https://api.magentlab.com/api/calc/pfib_c",
  "description": "Lefere 2025 pFIB-c logistic probability of significant (>=F2) liver fibrosis in pediatric MASLD from sex (boy/girl), hypertension, ALT (U/L), caller-assigned CDC/WHO weight Z-score, HOMA-IR, and caller-assigned Black ethnicity. Table 2 coefficients. Derivation rule-out cutoff 0.226. magent does not assign race or ethnicity and does not compute LMS Z-scores. Not a biopsy, not pFIB-6, and 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": [
              {
                "alt_u_l": 30,
                "black_ethnicity": false,
                "homa_ir": 2,
                "hypertension": false,
                "sex": "girl",
                "weight_z_score": 1
              },
              {
                "alt_u_l": 30,
                "black_ethnicity": false,
                "homa_ir": 2,
                "hypertension": false,
                "sex": "girl",
                "weight_z_score": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "alt_u_l": 30,
                "below_rule_out_cutoff": true,
                "black_ethnicity": false,
                "citation": {
                  "authors": "Lefere S, Dupont E, De Guchtenaere A, et al.",
                  "doi": "10.1097/hep.0000000000001016",
                  "id": "lefere-2025-pfib",
                  "pmid": "39028885",
                  "source": "Hepatology. 2025;81(4):1276-1287",
                  "title": "Development and validation of pFIB scores for exclusion of significant liver fibrosis in pediatric MASLD"
                },
                "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": "pfib_c",
                "formula_expression": "x = -5.155 + 1.194*sex_boy + 1.636*hypertension + 0.019*alt_u_l + 0.633*weight_z_score + 0.079*homa_ir - 2.453*black_ethnicity; probability = exp(x)/(1+exp(x)); Lefere 2025 Table 2 logistic for significant (≥F2) fibrosis; sex_boy 1 if boy, 0 if girl (paper terms); black_ethnicity caller-assigned Black ethnicity; weight_z_score caller-assigned CDC/WHO weight Z; below_rule_out_cutoff iff probability < 0.226 (derivation-cohort high NPV); not pFIB-6",
                "homa_ir": 2,
                "hypertension": false,
                "probability": 0.022,
                "sex": "girl",
                "weight_z_score": 1,
                "x": -3.794
              },
              {
                "alt_u_l": 30,
                "below_rule_out_cutoff": true,
                "black_ethnicity": false,
                "citation": {
                  "authors": "Lefere S, Dupont E, De Guchtenaere A, et al.",
                  "doi": "10.1097/hep.0000000000001016",
                  "id": "lefere-2025-pfib",
                  "pmid": "39028885",
                  "source": "Hepatology. 2025;81(4):1276-1287",
                  "title": "Development and validation of pFIB scores for exclusion of significant liver fibrosis in pediatric MASLD"
                },
                "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": "pfib_c",
                "formula_expression": "x = -5.155 + 1.194*sex_boy + 1.636*hypertension + 0.019*alt_u_l + 0.633*weight_z_score + 0.079*homa_ir - 2.453*black_ethnicity; probability = exp(x)/(1+exp(x)); Lefere 2025 Table 2 logistic for significant (≥F2) fibrosis; sex_boy 1 if boy, 0 if girl (paper terms); black_ethnicity caller-assigned Black ethnicity; weight_z_score caller-assigned CDC/WHO weight Z; below_rule_out_cutoff iff probability < 0.226 (derivation-cohort high NPV); not pFIB-6",
                "homa_ir": 2,
                "hypertension": false,
                "probability": 0.022,
                "sex": "girl",
                "weight_z_score": 1,
                "x": -3.794
              }
            ],
            "path": "/api/calc/pfib_c"
          },
          "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 (5-500). Lefere 2025 Table 2: +0.019 per U/L. magent does not convert other ALT units.",
                          "type": "number"
                        },
                        "black_ethnicity": {
                          "description": "Caller-assigned Black ethnicity as used in Lefere 2025 (true or false). Table 2: true adds -2.453. magent does not assign race or ethnicity.",
                          "type": "boolean"
                        },
                        "homa_ir": {
                          "description": "Caller-assigned HOMA-IR (0-50). Lefere 2025 Table 2: +0.079 per unit. magent does not compute HOMA-IR from glucose and insulin.",
                          "type": "number"
                        },
                        "hypertension": {
                          "description": "Hypertension as assigned by the caller (true or false). Lefere 2025 Table 2: true adds 1.636.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "Sex as Lefere 2025 Table 2 (boy or girl). boy adds 1.194 (sex_boy=1); girl adds 0. Paper terms.",
                          "enum": [
                            "boy",
                            "girl"
                          ],
                          "type": "string"
                        },
                        "weight_z_score": {
                          "description": "Caller-assigned CDC or WHO weight-for-age Z-score (-5 to 8). Lefere 2025 Table 2: +0.633 per unit. magent does not compute LMS tables from height, weight, age, or sex.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "sex",
                        "hypertension",
                        "alt_u_l",
                        "weight_z_score",
                        "homa_ir",
                        "black_ethnicity"
                      ],
                      "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": [
    "pfib-c",
    "masld",
    "pediatric",
    "fibrosis",
    "liver",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:11:53.137Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:11:52.912Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "alt_u_l": 30,
                  "black_ethnicity": false,
                  "homa_ir": 2,
                  "hypertension": false,
                  "sex": "girl",
                  "weight_z_score": 1
                },
                {
                  "alt_u_l": 30,
                  "black_ethnicity": false,
                  "homa_ir": 2,
                  "hypertension": false,
                  "sex": "girl",
                  "weight_z_score": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "alt_u_l": 30,
                  "below_rule_out_cutoff": true,
                  "black_ethnicity": false,
                  "citation": {
                    "authors": "Lefere S, Dupont E, De Guchtenaere A, et al.",
                    "doi": "10.1097/hep.0000000000001016",
                    "id": "lefere-2025-pfib",
                    "pmid": "39028885",
                    "source": "Hepatology. 2025;81(4):1276-1287",
                    "title": "Development and validation of pFIB scores for exclusion of significant liver fibrosis in pediatric MASLD"
                  },
                  "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": "pfib_c",
                  "formula_expression": "x = -5.155 + 1.194*sex_boy + 1.636*hypertension + 0.019*alt_u_l + 0.633*weight_z_score + 0.079*homa_ir - 2.453*black_ethnicity; probability = exp(x)/(1+exp(x)); Lefere 2025 Table 2 logistic for significant (≥F2) fibrosis; sex_boy 1 if boy, 0 if girl (paper terms); black_ethnicity caller-assigned Black ethnicity; weight_z_score caller-assigned CDC/WHO weight Z; below_rule_out_cutoff iff probability < 0.226 (derivation-cohort high NPV); not pFIB-6",
                  "homa_ir": 2,
                  "hypertension": false,
                  "probability": 0.022,
                  "sex": "girl",
                  "weight_z_score": 1,
                  "x": -3.794
                },
                {
                  "alt_u_l": 30,
                  "below_rule_out_cutoff": true,
                  "black_ethnicity": false,
                  "citation": {
                    "authors": "Lefere S, Dupont E, De Guchtenaere A, et al.",
                    "doi": "10.1097/hep.0000000000001016",
                    "id": "lefere-2025-pfib",
                    "pmid": "39028885",
                    "source": "Hepatology. 2025;81(4):1276-1287",
                    "title": "Development and validation of pFIB scores for exclusion of significant liver fibrosis in pediatric MASLD"
                  },
                  "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": "pfib_c",
                  "formula_expression": "x = -5.155 + 1.194*sex_boy + 1.636*hypertension + 0.019*alt_u_l + 0.633*weight_z_score + 0.079*homa_ir - 2.453*black_ethnicity; probability = exp(x)/(1+exp(x)); Lefere 2025 Table 2 logistic for significant (≥F2) fibrosis; sex_boy 1 if boy, 0 if girl (paper terms); black_ethnicity caller-assigned Black ethnicity; weight_z_score caller-assigned CDC/WHO weight Z; below_rule_out_cutoff iff probability < 0.226 (derivation-cohort high NPV); not pFIB-6",
                  "homa_ir": 2,
                  "hypertension": false,
                  "probability": 0.022,
                  "sex": "girl",
                  "weight_z_score": 1,
                  "x": -3.794
                }
              ],
              "path": "/api/calc/pfib_c"
            },
            "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 (5-500). Lefere 2025 Table 2: +0.019 per U/L. magent does not convert other ALT units.",
                            "type": "number"
                          },
                          "black_ethnicity": {
                            "description": "Caller-assigned Black ethnicity as used in Lefere 2025 (true or false). Table 2: true adds -2.453. magent does not assign race or ethnicity.",
                            "type": "boolean"
                          },
                          "homa_ir": {
                            "description": "Caller-assigned HOMA-IR (0-50). Lefere 2025 Table 2: +0.079 per unit. magent does not compute HOMA-IR from glucose and insulin.",
                            "type": "number"
                          },
                          "hypertension": {
                            "description": "Hypertension as assigned by the caller (true or false). Lefere 2025 Table 2: true adds 1.636.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "Sex as Lefere 2025 Table 2 (boy or girl). boy adds 1.194 (sex_boy=1); girl adds 0. Paper terms.",
                            "enum": [
                              "boy",
                              "girl"
                            ],
                            "type": "string"
                          },
                          "weight_z_score": {
                            "description": "Caller-assigned CDC or WHO weight-for-age Z-score (-5 to 8). Lefere 2025 Table 2: +0.633 per unit. magent does not compute LMS tables from height, weight, age, or sex.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "sex",
                          "hypertension",
                          "alt_u_l",
                          "weight_z_score",
                          "homa_ir",
                          "black_ethnicity"
                        ],
                        "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"
  }
}