{
  "x402Version": 2,
  "id": 39572,
  "slug": "39572",
  "resource": "https://api.magentlab.com/api/calc/peld",
  "description": "McDiarmid 2002 PELD from bilirubin, INR, albumin, age under 1 year, and growth failure. Deterministic published listing arithmetic with citation; not a transplant listing recommendation.",
  "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_years": 2,
                "albumin_g_dl": 2.5,
                "albumin_g_l": 25,
                "bilirubin_mg_dl": 4,
                "bilirubin_umol_l": 68.4,
                "growth_failure": false,
                "inr": 1.5
              },
              {
                "age_years": 2,
                "albumin_g_dl": 2.5,
                "albumin_g_l": 25,
                "bilirubin_mg_dl": 4,
                "bilirubin_umol_l": 68.4,
                "growth_failure": false,
                "inr": 1.5
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_lt_1": false,
                "age_years": 2,
                "albumin_g_dl": 2.5,
                "albumin_used_g_dl": 2.5,
                "bilirubin_mg_dl": 4,
                "bilirubin_used_mg_dl": 4,
                "citation": {
                  "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group",
                  "doi": "10.1097/00007890-200207270-00006",
                  "id": "mcdiarmid-2002",
                  "source": "Transplantation. 2002;74(2):173-181",
                  "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation"
                },
                "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": "peld",
                "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
                "growth_failure": false,
                "inr": 1.5,
                "inr_used": 1.5,
                "peld": 8
              },
              {
                "age_lt_1": false,
                "age_years": 2,
                "albumin_g_dl": 2.5,
                "albumin_used_g_dl": 2.5,
                "bilirubin_mg_dl": 4,
                "bilirubin_used_mg_dl": 4,
                "citation": {
                  "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group",
                  "doi": "10.1097/00007890-200207270-00006",
                  "id": "mcdiarmid-2002",
                  "source": "Transplantation. 2002;74(2):173-181",
                  "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation"
                },
                "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": "peld",
                "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
                "growth_failure": false,
                "inr": 1.5,
                "inr_used": 1.5,
                "peld": 8
              }
            ],
            "path": "/api/calc/peld"
          },
          "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_years": {
                          "description": "Age in years (0-11 inclusive). PELD is for children under 12. Age under 1 adds 0.436 before scaling.",
                          "type": "number"
                        },
                        "albumin_g_dl": {
                          "description": "Albumin in g/dL (1-6). Provide this or albumin_g_l, not both. Floored at 1.0 before ln.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Albumin in g/L. Converted as g/dL = g/L / 10.",
                          "type": "number"
                        },
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l, not both. Floored at 1.0 before ln.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                          "type": "number"
                        },
                        "growth_failure": {
                          "description": "Growth failure as assigned by the caller. true adds 0.667 before scaling.",
                          "type": "boolean"
                        },
                        "inr": {
                          "description": "INR (0.8-10). Floored at 1.0 before ln.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age_years",
                        "inr",
                        "growth_failure"
                      ],
                      "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": [
    "peld",
    "liver",
    "pediatric",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T13:52:12.423Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T13:52:12.295Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_years": 2,
                  "albumin_g_dl": 2.5,
                  "albumin_g_l": 25,
                  "bilirubin_mg_dl": 4,
                  "bilirubin_umol_l": 68.4,
                  "growth_failure": false,
                  "inr": 1.5
                },
                {
                  "age_years": 2,
                  "albumin_g_dl": 2.5,
                  "albumin_g_l": 25,
                  "bilirubin_mg_dl": 4,
                  "bilirubin_umol_l": 68.4,
                  "growth_failure": false,
                  "inr": 1.5
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_lt_1": false,
                  "age_years": 2,
                  "albumin_g_dl": 2.5,
                  "albumin_used_g_dl": 2.5,
                  "bilirubin_mg_dl": 4,
                  "bilirubin_used_mg_dl": 4,
                  "citation": {
                    "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group",
                    "doi": "10.1097/00007890-200207270-00006",
                    "id": "mcdiarmid-2002",
                    "source": "Transplantation. 2002;74(2):173-181",
                    "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation"
                  },
                  "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": "peld",
                  "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
                  "growth_failure": false,
                  "inr": 1.5,
                  "inr_used": 1.5,
                  "peld": 8
                },
                {
                  "age_lt_1": false,
                  "age_years": 2,
                  "albumin_g_dl": 2.5,
                  "albumin_used_g_dl": 2.5,
                  "bilirubin_mg_dl": 4,
                  "bilirubin_used_mg_dl": 4,
                  "citation": {
                    "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group",
                    "doi": "10.1097/00007890-200207270-00006",
                    "id": "mcdiarmid-2002",
                    "source": "Transplantation. 2002;74(2):173-181",
                    "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation"
                  },
                  "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": "peld",
                  "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
                  "growth_failure": false,
                  "inr": 1.5,
                  "inr_used": 1.5,
                  "peld": 8
                }
              ],
              "path": "/api/calc/peld"
            },
            "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_years": {
                            "description": "Age in years (0-11 inclusive). PELD is for children under 12. Age under 1 adds 0.436 before scaling.",
                            "type": "number"
                          },
                          "albumin_g_dl": {
                            "description": "Albumin in g/dL (1-6). Provide this or albumin_g_l, not both. Floored at 1.0 before ln.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Albumin in g/L. Converted as g/dL = g/L / 10.",
                            "type": "number"
                          },
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l, not both. Floored at 1.0 before ln.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1.",
                            "type": "number"
                          },
                          "growth_failure": {
                            "description": "Growth failure as assigned by the caller. true adds 0.667 before scaling.",
                            "type": "boolean"
                          },
                          "inr": {
                            "description": "INR (0.8-10). Floored at 1.0 before ln.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age_years",
                          "inr",
                          "growth_failure"
                        ],
                        "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"
  }
}