{
  "x402Version": 2,
  "id": 38864,
  "slug": "38864",
  "resource": "https://api.magentlab.com/api/calc/rhmp_30",
  "description": "de Jong 2025 Rotterdam Hip Fracture Mortality Prediction-30 Days (RHMP-30) LASSO logit from age, sex (published female coefficient, not race), albumin g/L, dementia, Katz-ADL total 0-6, ASA 4, and nursing-home residence. Returns logit and estimated_mortality_percent from the unrounded logit. Not an operative vs nonoperative order. magent does not assign ASA or Katz.",
  "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": 80,
                "albumin_g_l": 38,
                "asa_4": false,
                "dementia": false,
                "katz_adl": 6,
                "nursing_home": false,
                "sex": "female"
              },
              {
                "age": 80,
                "albumin_g_l": 38,
                "asa_4": false,
                "dementia": false,
                "katz_adl": 6,
                "nursing_home": false,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 80,
                "albumin_g_l": 38,
                "asa_4": false,
                "citation": {
                  "authors": "de Jong L, de Haan E, van Rijckevorsel VAJIM, Kuijper TM, Roukema GR",
                  "doi": "10.2106/JBJS.23.01397",
                  "id": "de-jong-2025",
                  "pmid": "39836737",
                  "source": "J Bone Joint Surg Am. 2025;107(5):459-468",
                  "title": "Multidimensional Approach for Predicting 30-Day Mortality in Patients with a Hip Fracture: Development and External Validation of the Rotterdam Hip Fracture Mortality Prediction-30 Days (RHMP-30)"
                },
                "dementia": 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.",
                "estimated_mortality_percent": 3.09,
                "formula": "rhmp_30",
                "formula_expression": "logit = -2.69 - 0.0442*albumin_g_l + 0.0306*age_years - 1.012*female + 0.360*dementia - 0.0853*katz_adl + 0.856*asa_4 + 0.726*nursing_home; estimated_mortality_percent = 100 * exp(logit)/(1+exp(logit)) from the unrounded logit, 2 decimals; displayed logit 2 decimals; female is 1 if sex is female else 0; dementia, asa_4, and nursing_home are 1 if true else 0; albumin is g/L (not g/dL); Katz-ADL total 0-6 (6 = independent)",
                "katz_adl": 6,
                "logit": -3.45,
                "nursing_home": false,
                "sex": "female"
              },
              {
                "age_years": 80,
                "albumin_g_l": 38,
                "asa_4": false,
                "citation": {
                  "authors": "de Jong L, de Haan E, van Rijckevorsel VAJIM, Kuijper TM, Roukema GR",
                  "doi": "10.2106/JBJS.23.01397",
                  "id": "de-jong-2025",
                  "pmid": "39836737",
                  "source": "J Bone Joint Surg Am. 2025;107(5):459-468",
                  "title": "Multidimensional Approach for Predicting 30-Day Mortality in Patients with a Hip Fracture: Development and External Validation of the Rotterdam Hip Fracture Mortality Prediction-30 Days (RHMP-30)"
                },
                "dementia": 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.",
                "estimated_mortality_percent": 3.09,
                "formula": "rhmp_30",
                "formula_expression": "logit = -2.69 - 0.0442*albumin_g_l + 0.0306*age_years - 1.012*female + 0.360*dementia - 0.0853*katz_adl + 0.856*asa_4 + 0.726*nursing_home; estimated_mortality_percent = 100 * exp(logit)/(1+exp(logit)) from the unrounded logit, 2 decimals; displayed logit 2 decimals; female is 1 if sex is female else 0; dementia, asa_4, and nursing_home are 1 if true else 0; albumin is g/L (not g/dL); Katz-ADL total 0-6 (6 = independent)",
                "katz_adl": 6,
                "logit": -3.45,
                "nursing_home": false,
                "sex": "female"
              }
            ],
            "path": "/api/calc/rhmp_30"
          },
          "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, integer 40-110. de Jong 2025 coefficient +0.0306 per year. magent does not read an identity document.",
                          "type": "integer"
                        },
                        "albumin_g_l": {
                          "description": "Admission serum albumin in g/L (10-60). de Jong 2025 Table I uses g/L (typical 30-45). Not g/dL. Caller-supplied; magent does not assay albumin.",
                          "type": "number"
                        },
                        "asa_4": {
                          "description": "true if the caller assigns ASA physical status 4 (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not assign ASA class.",
                          "type": "boolean"
                        },
                        "dementia": {
                          "description": "true if the caller assigns a history of dementia (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not diagnose dementia.",
                          "type": "boolean"
                        },
                        "katz_adl": {
                          "description": "Katz Index of Independence in Activities of Daily Living total, integer 0-6 (de Jong 2025). 0 = completely dependent; 6 = completely independent. Caller-assigned total; magent does not score bathing, dressing, toileting, transferring, continence, or feeding.",
                          "type": "integer"
                        },
                        "nursing_home": {
                          "description": "true if the caller assigns residence in a nursing home (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not determine residence.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "Sex used as the published de Jong 2025 female coefficient (female = 1, male = 0). Not race. magent does not examine the patient.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "albumin_g_l",
                        "dementia",
                        "katz_adl",
                        "asa_4",
                        "nursing_home"
                      ],
                      "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": [
    "rhmp-30",
    "hip-fracture",
    "mortality",
    "katz-adl",
    "albumin",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:32:04.914Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:32:04.782Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 80,
                  "albumin_g_l": 38,
                  "asa_4": false,
                  "dementia": false,
                  "katz_adl": 6,
                  "nursing_home": false,
                  "sex": "female"
                },
                {
                  "age": 80,
                  "albumin_g_l": 38,
                  "asa_4": false,
                  "dementia": false,
                  "katz_adl": 6,
                  "nursing_home": false,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 80,
                  "albumin_g_l": 38,
                  "asa_4": false,
                  "citation": {
                    "authors": "de Jong L, de Haan E, van Rijckevorsel VAJIM, Kuijper TM, Roukema GR",
                    "doi": "10.2106/JBJS.23.01397",
                    "id": "de-jong-2025",
                    "pmid": "39836737",
                    "source": "J Bone Joint Surg Am. 2025;107(5):459-468",
                    "title": "Multidimensional Approach for Predicting 30-Day Mortality in Patients with a Hip Fracture: Development and External Validation of the Rotterdam Hip Fracture Mortality Prediction-30 Days (RHMP-30)"
                  },
                  "dementia": 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.",
                  "estimated_mortality_percent": 3.09,
                  "formula": "rhmp_30",
                  "formula_expression": "logit = -2.69 - 0.0442*albumin_g_l + 0.0306*age_years - 1.012*female + 0.360*dementia - 0.0853*katz_adl + 0.856*asa_4 + 0.726*nursing_home; estimated_mortality_percent = 100 * exp(logit)/(1+exp(logit)) from the unrounded logit, 2 decimals; displayed logit 2 decimals; female is 1 if sex is female else 0; dementia, asa_4, and nursing_home are 1 if true else 0; albumin is g/L (not g/dL); Katz-ADL total 0-6 (6 = independent)",
                  "katz_adl": 6,
                  "logit": -3.45,
                  "nursing_home": false,
                  "sex": "female"
                },
                {
                  "age_years": 80,
                  "albumin_g_l": 38,
                  "asa_4": false,
                  "citation": {
                    "authors": "de Jong L, de Haan E, van Rijckevorsel VAJIM, Kuijper TM, Roukema GR",
                    "doi": "10.2106/JBJS.23.01397",
                    "id": "de-jong-2025",
                    "pmid": "39836737",
                    "source": "J Bone Joint Surg Am. 2025;107(5):459-468",
                    "title": "Multidimensional Approach for Predicting 30-Day Mortality in Patients with a Hip Fracture: Development and External Validation of the Rotterdam Hip Fracture Mortality Prediction-30 Days (RHMP-30)"
                  },
                  "dementia": 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.",
                  "estimated_mortality_percent": 3.09,
                  "formula": "rhmp_30",
                  "formula_expression": "logit = -2.69 - 0.0442*albumin_g_l + 0.0306*age_years - 1.012*female + 0.360*dementia - 0.0853*katz_adl + 0.856*asa_4 + 0.726*nursing_home; estimated_mortality_percent = 100 * exp(logit)/(1+exp(logit)) from the unrounded logit, 2 decimals; displayed logit 2 decimals; female is 1 if sex is female else 0; dementia, asa_4, and nursing_home are 1 if true else 0; albumin is g/L (not g/dL); Katz-ADL total 0-6 (6 = independent)",
                  "katz_adl": 6,
                  "logit": -3.45,
                  "nursing_home": false,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/rhmp_30"
            },
            "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, integer 40-110. de Jong 2025 coefficient +0.0306 per year. magent does not read an identity document.",
                            "type": "integer"
                          },
                          "albumin_g_l": {
                            "description": "Admission serum albumin in g/L (10-60). de Jong 2025 Table I uses g/L (typical 30-45). Not g/dL. Caller-supplied; magent does not assay albumin.",
                            "type": "number"
                          },
                          "asa_4": {
                            "description": "true if the caller assigns ASA physical status 4 (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not assign ASA class.",
                            "type": "boolean"
                          },
                          "dementia": {
                            "description": "true if the caller assigns a history of dementia (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not diagnose dementia.",
                            "type": "boolean"
                          },
                          "katz_adl": {
                            "description": "Katz Index of Independence in Activities of Daily Living total, integer 0-6 (de Jong 2025). 0 = completely dependent; 6 = completely independent. Caller-assigned total; magent does not score bathing, dressing, toileting, transferring, continence, or feeding.",
                            "type": "integer"
                          },
                          "nursing_home": {
                            "description": "true if the caller assigns residence in a nursing home (de Jong 2025). true scores 1 in the logit; false scores 0. magent does not determine residence.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "Sex used as the published de Jong 2025 female coefficient (female = 1, male = 0). Not race. magent does not examine the patient.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "albumin_g_l",
                          "dementia",
                          "katz_adl",
                          "asa_4",
                          "nursing_home"
                        ],
                        "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"
  }
}