{
  "x402Version": 2,
  "id": 39524,
  "slug": "39524",
  "resource": "https://api.magentlab.com/api/calc/nhfs",
  "description": "Maxwell 2008 Nottingham hip fracture score: age <=65 0, 66-85 3, >=86 4; male 1; hemoglobin <=10 g/dL 1 (g/L / 10); caller-assigned AMTS <=6, lives in institution, >=2 comorbidities, and malignancy 1 each. Max 10. Integer score only; no predicted 30-day mortality percent. magent does not administer AMTS or clear a patient for surgery. Not the 2012 or 2015 recalibrations.",
  "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": 70,
                "amts_le_6": false,
                "comorbidities_ge_2": false,
                "hemoglobin_g_dl": 12,
                "hemoglobin_g_l": 120,
                "lives_in_institution": false,
                "malignancy": false,
                "sex": "female"
              },
              {
                "age": 70,
                "amts_le_6": false,
                "comorbidities_ge_2": false,
                "hemoglobin_g_dl": 12,
                "hemoglobin_g_l": 120,
                "lives_in_institution": false,
                "malignancy": false,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 70,
                "amts_le_6": false,
                "citation": {
                  "authors": "Maxwell MJ, Moran CG, Moppett IK",
                  "doi": "10.1093/bja/aen236",
                  "id": "maxwell-2008",
                  "pmid": "18723517",
                  "source": "Br J Anaesth. 2008;101(4):511-517",
                  "title": "Development and validation of a preoperative scoring system to predict 30 day mortality in patients undergoing hip fracture surgery"
                },
                "comorbidities_ge_2": false,
                "components": [
                  {
                    "factor": "age",
                    "points": 3,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "amts_le_6",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lives_in_institution",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "comorbidities_ge_2",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "points": 0,
                    "present": 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": "nhfs",
                "formula_expression": "NHFS = age (≤65 0, 66-85 3, ≥86 4) + male 1 + (hemoglobin ≤10 g/dL) 1 + amts_le_6 1 + lives_in_institution 1 + comorbidities_ge_2 1 + malignancy 1; Maxwell 2008 integer score; max 10",
                "hemoglobin_g_dl": 12,
                "lives_in_institution": false,
                "malignancy": false,
                "max_score": 10,
                "score": 3,
                "sex": "female"
              },
              {
                "age_years": 70,
                "amts_le_6": false,
                "citation": {
                  "authors": "Maxwell MJ, Moran CG, Moppett IK",
                  "doi": "10.1093/bja/aen236",
                  "id": "maxwell-2008",
                  "pmid": "18723517",
                  "source": "Br J Anaesth. 2008;101(4):511-517",
                  "title": "Development and validation of a preoperative scoring system to predict 30 day mortality in patients undergoing hip fracture surgery"
                },
                "comorbidities_ge_2": false,
                "components": [
                  {
                    "factor": "age",
                    "points": 3,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "female"
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "amts_le_6",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lives_in_institution",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "comorbidities_ge_2",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "points": 0,
                    "present": 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": "nhfs",
                "formula_expression": "NHFS = age (≤65 0, 66-85 3, ≥86 4) + male 1 + (hemoglobin ≤10 g/dL) 1 + amts_le_6 1 + lives_in_institution 1 + comorbidities_ge_2 1 + malignancy 1; Maxwell 2008 integer score; max 10",
                "hemoglobin_g_dl": 12,
                "lives_in_institution": false,
                "malignancy": false,
                "max_score": 10,
                "score": 3,
                "sex": "female"
              }
            ],
            "path": "/api/calc/nhfs"
          },
          "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 (18-120). ≤65 scores 0; 66-85 scores 3; ≥86 scores 4 (Maxwell 2008).",
                          "type": "integer"
                        },
                        "amts_le_6": {
                          "description": "Abbreviated Mental Test Score ≤6/10 as assigned by the caller (Maxwell 2008). true or false. magent does not administer AMTS. 1 point if true.",
                          "type": "boolean"
                        },
                        "comorbidities_ge_2": {
                          "description": "Two or more comorbidities as defined in Maxwell 2008, as assigned by the caller. true or false. magent does not enumerate comorbidities. 1 point if true.",
                          "type": "boolean"
                        },
                        "hemoglobin_g_dl": {
                          "description": "Hemoglobin in g/dL (3-22). Provide this or hemoglobin_g_l, not both. ≤10 g/dL scores 1 (10.0 scores; 10.1 does not).",
                          "type": "number"
                        },
                        "hemoglobin_g_l": {
                          "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both.",
                          "type": "number"
                        },
                        "lives_in_institution": {
                          "description": "Lives in an institution as assigned by the caller (Maxwell 2008). true or false. 1 point if true.",
                          "type": "boolean"
                        },
                        "malignancy": {
                          "description": "Active malignancy (Maxwell 2008: within 20 years) as assigned by the caller. true or false. magent does not take a cancer history. 1 point if true.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male. Male scores 1; female scores 0.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "amts_le_6",
                        "lives_in_institution",
                        "comorbidities_ge_2",
                        "malignancy"
                      ],
                      "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": [
    "nhfs",
    "hip-fracture",
    "preoperative",
    "score",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:41:23.363Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:41:23.227Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "amts_le_6": false,
                  "comorbidities_ge_2": false,
                  "hemoglobin_g_dl": 12,
                  "hemoglobin_g_l": 120,
                  "lives_in_institution": false,
                  "malignancy": false,
                  "sex": "female"
                },
                {
                  "age": 70,
                  "amts_le_6": false,
                  "comorbidities_ge_2": false,
                  "hemoglobin_g_dl": 12,
                  "hemoglobin_g_l": 120,
                  "lives_in_institution": false,
                  "malignancy": false,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 70,
                  "amts_le_6": false,
                  "citation": {
                    "authors": "Maxwell MJ, Moran CG, Moppett IK",
                    "doi": "10.1093/bja/aen236",
                    "id": "maxwell-2008",
                    "pmid": "18723517",
                    "source": "Br J Anaesth. 2008;101(4):511-517",
                    "title": "Development and validation of a preoperative scoring system to predict 30 day mortality in patients undergoing hip fracture surgery"
                  },
                  "comorbidities_ge_2": false,
                  "components": [
                    {
                      "factor": "age",
                      "points": 3,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "amts_le_6",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lives_in_institution",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "comorbidities_ge_2",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "points": 0,
                      "present": 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": "nhfs",
                  "formula_expression": "NHFS = age (≤65 0, 66-85 3, ≥86 4) + male 1 + (hemoglobin ≤10 g/dL) 1 + amts_le_6 1 + lives_in_institution 1 + comorbidities_ge_2 1 + malignancy 1; Maxwell 2008 integer score; max 10",
                  "hemoglobin_g_dl": 12,
                  "lives_in_institution": false,
                  "malignancy": false,
                  "max_score": 10,
                  "score": 3,
                  "sex": "female"
                },
                {
                  "age_years": 70,
                  "amts_le_6": false,
                  "citation": {
                    "authors": "Maxwell MJ, Moran CG, Moppett IK",
                    "doi": "10.1093/bja/aen236",
                    "id": "maxwell-2008",
                    "pmid": "18723517",
                    "source": "Br J Anaesth. 2008;101(4):511-517",
                    "title": "Development and validation of a preoperative scoring system to predict 30 day mortality in patients undergoing hip fracture surgery"
                  },
                  "comorbidities_ge_2": false,
                  "components": [
                    {
                      "factor": "age",
                      "points": 3,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "female"
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "amts_le_6",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lives_in_institution",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "comorbidities_ge_2",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "points": 0,
                      "present": 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": "nhfs",
                  "formula_expression": "NHFS = age (≤65 0, 66-85 3, ≥86 4) + male 1 + (hemoglobin ≤10 g/dL) 1 + amts_le_6 1 + lives_in_institution 1 + comorbidities_ge_2 1 + malignancy 1; Maxwell 2008 integer score; max 10",
                  "hemoglobin_g_dl": 12,
                  "lives_in_institution": false,
                  "malignancy": false,
                  "max_score": 10,
                  "score": 3,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/nhfs"
            },
            "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 (18-120). ≤65 scores 0; 66-85 scores 3; ≥86 scores 4 (Maxwell 2008).",
                            "type": "integer"
                          },
                          "amts_le_6": {
                            "description": "Abbreviated Mental Test Score ≤6/10 as assigned by the caller (Maxwell 2008). true or false. magent does not administer AMTS. 1 point if true.",
                            "type": "boolean"
                          },
                          "comorbidities_ge_2": {
                            "description": "Two or more comorbidities as defined in Maxwell 2008, as assigned by the caller. true or false. magent does not enumerate comorbidities. 1 point if true.",
                            "type": "boolean"
                          },
                          "hemoglobin_g_dl": {
                            "description": "Hemoglobin in g/dL (3-22). Provide this or hemoglobin_g_l, not both. ≤10 g/dL scores 1 (10.0 scores; 10.1 does not).",
                            "type": "number"
                          },
                          "hemoglobin_g_l": {
                            "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both.",
                            "type": "number"
                          },
                          "lives_in_institution": {
                            "description": "Lives in an institution as assigned by the caller (Maxwell 2008). true or false. 1 point if true.",
                            "type": "boolean"
                          },
                          "malignancy": {
                            "description": "Active malignancy (Maxwell 2008: within 20 years) as assigned by the caller. true or false. magent does not take a cancer history. 1 point if true.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male. Male scores 1; female scores 0.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "amts_le_6",
                          "lives_in_institution",
                          "comorbidities_ge_2",
                          "malignancy"
                        ],
                        "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"
  }
}