{"uid":"cap_5KS5OdRjF1TUl0lrQ4Wop","slug":"gupta-2011-postoperative-respiratory-failure-risk-calculator-e2b88ed0","name":"Gupta 2011 Postoperative Respiratory Failure Risk Calculator","description":"Gupta 2011 Chest logistic probability of postoperative respiratory failure (mechanical ventilation >48 h after surgery or unplanned intubation within 30 days) from ASA class, functional status, preoperative sepsis, emergency case, and surgery type (hernia reference). Returns logit and estimated_probability_percent. Not a medical device, not a diagnosis, not a ventilator order, and not ARISCAT. Gupta 2011 publishes no low/high cutoff.","url":"https://api.magentlab.com/api/calc/gupta_prf","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":["functional_status","asa_class","sepsis","emergency","surgery"],"properties":{"sepsis":{"enum":["none","sirs","sepsis","septic_shock"],"type":"string","description":"Gupta 2011 Chest preoperative sepsis category as assigned by the caller: none (-0.7840), sirs (reference, 0), sepsis (+0.2752), or septic_shock (+0.9035). magent does not diagnose sepsis."},"surgery":{"enum":["hernia","anorectal","aortic","bariatric","brain","breast","cardiac","ent","foregut_hpb","gbaas","intestinal","neck","obstetric_gynecologic","orthopedic","other_abdomen","peripheral_vascular","skin","spine","thoracic","vein","urology"],"type":"string","description":"Gupta 2011 Chest procedure category as assigned by the caller. hernia (ventral, inguinal, or femoral) is the reference (0). gbaas is gallbladder, appendix, adrenal, or spleen. thoracic is non-esophageal thoracic. orthopedic is orthopedic or non-vascular extremity. ent excludes thyroid/parathyroid (neck). magent does not classify a CPT code."},"asa_class":{"type":"integer","description":"ASA physical status 1-5 (Gupta 2011 Chest logistic table; class 5 is the reference). class 1 -3.5265, class 2 -2.0008, class 3 -0.6201, class 4 +0.2441, class 5 adds 0. Caller-assigned integer."},"emergency":{"type":"boolean","description":"Gupta 2011 Chest emergency case as assigned by the caller: true (reference, 0) or false (elective, -0.5739)."},"functional_status":{"enum":["independent","partially_dependent","totally_dependent"],"type":"string","description":"Gupta 2011 Chest functional status as assigned by the caller: independent (reference, 0), partially_dependent (+0.7678), or totally_dependent (+1.4046). magent does not examine the patient."}}}},"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_-fu4azqLt_Gj6Zqj3RYko","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":"Calculates Gupta 2011 Chest logistic probability of postoperative respiratory failure (mechanical ventilation >48h or unplanned intubation within 30 days) from ASA class, functional status, sepsis status, emergency status, and surgery type.","exampleAgentPrompt":"Using the Gupta 2011 Chest model, what's the estimated postoperative respiratory failure probability for a patient who is ASA class 3, independent functional status, no preoperative sepsis, having an elective intestinal surgery (not an emergency)?","exampleUseCases":[{"title":"Preoperative risk counseling for elective surgery","prompt":"Can you calculate the Gupta 2011 postoperative respiratory failure risk for a patient who is ASA class 2, functionally independent, no sepsis, elective bariatric surgery, not an emergency case?"},{"title":"High-risk emergency case assessment","prompt":"Run the Gupta PRF model for an ASA class 4 patient with septic shock, totally dependent functional status, undergoing an emergency aortic surgery — what's the probability of respiratory failure needing mechanical ventilation?"},{"title":"Comparing respiratory failure risk across surgery types","prompt":"What does the Gupta 2011 model give for postoperative respiratory failure probability for an ASA class 3, partially dependent patient with SIRS who needs elective thoracic surgery versus hernia repair?"}],"resultDescription":"Returns a JSON object with two fields: 'logit' (the raw log-odds from the Gupta 2011 Chest logistic regression model) and 'estimated_probability_percent' (the corresponding probability of postoperative respiratory failure — defined as mechanical ventilation >48h after surgery or unplanned intubation within 30 days — expressed as a percentage).","failureModes":["Missing required query parameters (functional_status, asa_class, sepsis, emergency, surgery) returns a 4xx error","Invalid enum value for sepsis, surgery, or functional_status returns a validation error","ASA class integer outside 1-5 may return an error or unexpected result","Payment not included or insufficient USDC via x402 protocol returns 402 Payment Required","No interpretation cutoff provided — model outputs probability only, no low/high risk classification"],"whenToPreferThis":"Use this endpoint when you need the specific Gupta 2011 Chest logistic regression probability for postoperative respiratory failure using the published five-variable model (ASA class, functional status, sepsis, emergency, surgery type). Prefer this over ARISCAT or other respiratory risk tools when the clinical context specifically calls for the Gupta 2011 model, when inputs are already classified per Gupta 2011 categories, or when you need a validated logit output for downstream computation. Not a substitute for clinical judgment or a medical device.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:21:16.722Z","isFirstParty":false}