{"uid":"cap_rm-iJ0R76qI5B-agCoX3y","slug":"os-mrs-obesity-surgery-mortality-risk-score-calculator-fd5595b2","name":"OS-MRS Obesity Surgery Mortality Risk Score Calculator","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.","url":"https://api.magentlab.com/api/calc/os_mrs","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["bmi_ge_50","male","hypertension","pe_risk_factors","age_ge_45"],"properties":{"male":{"type":"boolean","description":"Male sex (DeMaria 2007). true or false as assigned by the caller. magent does not examine the patient."},"age_ge_45":{"type":"boolean","description":"Age ≥45 years (DeMaria 2007). true or false as assigned by the caller. magent does not measure age."},"bmi_ge_50":{"type":"boolean","description":"BMI ≥50 kg/m² (DeMaria 2007). true or false as assigned by the caller. magent does not weigh the patient or compute BMI."},"hypertension":{"type":"boolean","description":"Hypertension (DeMaria 2007). true or false as assigned by the caller. magent does not measure blood pressure."},"pe_risk_factors":{"type":"boolean","description":"Known PE risk: previous thromboembolism, preoperative vena cava filter, hypoventilation, or pulmonary hypertension (DeMaria 2007). true or false as assigned by the caller."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UyA652jos8t_RP2Hx--6Y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the DeMaria 2007 Obesity Surgery Mortality Risk Score (OS-MRS) from five caller-assigned boolean flags, returning a score (0–5) and risk class (A, B, or C).","exampleAgentPrompt":"Calculate the DeMaria 2007 OS-MRS for a patient who is male, age 48, BMI 52, has hypertension, and no known PE risk factors — what's their risk class?","exampleUseCases":[{"title":"Preoperative bariatric risk triage","prompt":"I have a 55-year-old female patient with a BMI of 53 and hypertension but no PE risk factors scheduled for bariatric surgery — can you calculate her OS-MRS score and tell me if she's Class A, B, or C?"},{"title":"EHR workflow risk documentation","prompt":"For a male patient aged 47 with BMI 48, hypertension, and a history of DVT, compute his obesity surgery mortality risk score using DeMaria 2007 criteria so I can document the preoperative risk class."},{"title":"Teaching case risk stratification","prompt":"I'm teaching residents about bariatric risk stratification — can you show the OS-MRS score for a 44-year-old female, BMI 51, no hypertension, no PE risk factors, to illustrate a borderline Class A case?"}],"resultDescription":"Returns the OS-MRS integer score (0–5), the corresponding risk class (A for 0–1, B for 2–3, C for 4–5), a citation to DeMaria 2007, and a disclaimer that this is not a surgical clearance and does not represent a mortality percentage.","failureModes":["Missing required boolean flags returns a validation error","Non-boolean values for flag parameters cause a 400 error","Network or payment failure results in no score returned","All flags false returns score 0, Class A (valid edge case, not an error)"],"whenToPreferThis":"Use this endpoint when you need a deterministic, validated, published clinical score for bariatric surgery mortality risk stratification per DeMaria 2007. Prefer it over manual calculation to ensure correct weighting and class boundaries. Not suitable for estimating actual mortality percentages or for surgical clearance decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:09:54.900Z","isFirstParty":false}