{
  "x402Version": 2,
  "id": 38991,
  "slug": "38991",
  "resource": "https://api.magentlab.com/api/calc/os_mrs",
  "description": "DeMaria 2007 obesity surgery mortality risk score (OS-MRS): five caller-assigned flags (BMI ≥50 kg/m², male, hypertension, known PE risk, age ≥45), 1 point each, max 5. Class A 0–1, B 2–3, C 4–5. Deterministic published score with citation; not a surgical clearance and not a mortality percentage. magent does not weigh the patient or measure age.",
  "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_ge_45": false,
                "bmi_ge_50": false,
                "hypertension": false,
                "male": false,
                "pe_risk_factors": false
              },
              {
                "age_ge_45": false,
                "bmi_ge_50": false,
                "hypertension": false,
                "male": false,
                "pe_risk_factors": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "DeMaria EJ, Portenier D, Wolfe L",
                  "doi": "10.1016/j.soard.2007.01.005",
                  "id": "demaria-2007",
                  "pmid": "17386394",
                  "source": "Surg Obes Relat Dis. 2007;3(2):134-140",
                  "title": "Obesity surgery mortality risk score: proposal for a clinically useful score to predict mortality risk in patients undergoing gastric bypass"
                },
                "class": "A",
                "components": [
                  {
                    "factor": "bmi_ge_50",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "male",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pe_risk_factors",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_45",
                    "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": "os_mrs",
                "formula_expression": "OS-MRS = bmi_ge_50 + male + hypertension + pe_risk_factors + age_ge_45; each 1 if true; max 5; class A 0-1, B 2-3, C 4-5",
                "max_score": 5,
                "score": 0
              },
              {
                "citation": {
                  "authors": "DeMaria EJ, Portenier D, Wolfe L",
                  "doi": "10.1016/j.soard.2007.01.005",
                  "id": "demaria-2007",
                  "pmid": "17386394",
                  "source": "Surg Obes Relat Dis. 2007;3(2):134-140",
                  "title": "Obesity surgery mortality risk score: proposal for a clinically useful score to predict mortality risk in patients undergoing gastric bypass"
                },
                "class": "A",
                "components": [
                  {
                    "factor": "bmi_ge_50",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "male",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pe_risk_factors",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_45",
                    "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": "os_mrs",
                "formula_expression": "OS-MRS = bmi_ge_50 + male + hypertension + pe_risk_factors + age_ge_45; each 1 if true; max 5; class A 0-1, B 2-3, C 4-5",
                "max_score": 5,
                "score": 0
              }
            ],
            "path": "/api/calc/os_mrs"
          },
          "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_ge_45": {
                          "description": "Age ≥45 years (DeMaria 2007). true or false as assigned by the caller. magent does not measure age.",
                          "type": "boolean"
                        },
                        "bmi_ge_50": {
                          "description": "BMI ≥50 kg/m² (DeMaria 2007). true or false as assigned by the caller. magent does not weigh the patient or compute BMI.",
                          "type": "boolean"
                        },
                        "hypertension": {
                          "description": "Hypertension (DeMaria 2007). true or false as assigned by the caller. magent does not measure blood pressure.",
                          "type": "boolean"
                        },
                        "male": {
                          "description": "Male sex (DeMaria 2007). true or false as assigned by the caller. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "pe_risk_factors": {
                          "description": "Known PE risk: previous thromboembolism, preoperative vena cava filter, hypoventilation, or pulmonary hypertension (DeMaria 2007). true or false as assigned by the caller.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "bmi_ge_50",
                        "male",
                        "hypertension",
                        "pe_risk_factors",
                        "age_ge_45"
                      ],
                      "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": [
    "os-mrs",
    "bariatric",
    "preoperative",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:11:44.504Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:11:44.365Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_ge_45": false,
                  "bmi_ge_50": false,
                  "hypertension": false,
                  "male": false,
                  "pe_risk_factors": false
                },
                {
                  "age_ge_45": false,
                  "bmi_ge_50": false,
                  "hypertension": false,
                  "male": false,
                  "pe_risk_factors": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "DeMaria EJ, Portenier D, Wolfe L",
                    "doi": "10.1016/j.soard.2007.01.005",
                    "id": "demaria-2007",
                    "pmid": "17386394",
                    "source": "Surg Obes Relat Dis. 2007;3(2):134-140",
                    "title": "Obesity surgery mortality risk score: proposal for a clinically useful score to predict mortality risk in patients undergoing gastric bypass"
                  },
                  "class": "A",
                  "components": [
                    {
                      "factor": "bmi_ge_50",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "male",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pe_risk_factors",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_45",
                      "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": "os_mrs",
                  "formula_expression": "OS-MRS = bmi_ge_50 + male + hypertension + pe_risk_factors + age_ge_45; each 1 if true; max 5; class A 0-1, B 2-3, C 4-5",
                  "max_score": 5,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "DeMaria EJ, Portenier D, Wolfe L",
                    "doi": "10.1016/j.soard.2007.01.005",
                    "id": "demaria-2007",
                    "pmid": "17386394",
                    "source": "Surg Obes Relat Dis. 2007;3(2):134-140",
                    "title": "Obesity surgery mortality risk score: proposal for a clinically useful score to predict mortality risk in patients undergoing gastric bypass"
                  },
                  "class": "A",
                  "components": [
                    {
                      "factor": "bmi_ge_50",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "male",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pe_risk_factors",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_45",
                      "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": "os_mrs",
                  "formula_expression": "OS-MRS = bmi_ge_50 + male + hypertension + pe_risk_factors + age_ge_45; each 1 if true; max 5; class A 0-1, B 2-3, C 4-5",
                  "max_score": 5,
                  "score": 0
                }
              ],
              "path": "/api/calc/os_mrs"
            },
            "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_ge_45": {
                            "description": "Age ≥45 years (DeMaria 2007). true or false as assigned by the caller. magent does not measure age.",
                            "type": "boolean"
                          },
                          "bmi_ge_50": {
                            "description": "BMI ≥50 kg/m² (DeMaria 2007). true or false as assigned by the caller. magent does not weigh the patient or compute BMI.",
                            "type": "boolean"
                          },
                          "hypertension": {
                            "description": "Hypertension (DeMaria 2007). true or false as assigned by the caller. magent does not measure blood pressure.",
                            "type": "boolean"
                          },
                          "male": {
                            "description": "Male sex (DeMaria 2007). true or false as assigned by the caller. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "pe_risk_factors": {
                            "description": "Known PE risk: previous thromboembolism, preoperative vena cava filter, hypoventilation, or pulmonary hypertension (DeMaria 2007). true or false as assigned by the caller.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "bmi_ge_50",
                          "male",
                          "hypertension",
                          "pe_risk_factors",
                          "age_ge_45"
                        ],
                        "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"
  }
}