{"uid":"cap_-TIHDuD3kUZiobLmgVqY3","slug":"bap-65-copd-exacerbation-risk-classifier-16d66eb2","name":"BAP-65 COPD Exacerbation Risk Classifier","description":"BAP-65 (Tabak 2009) class I–V for acute exacerbation of COPD. Three caller-assigned main factors: BUN >25 mg/dL, altered mental status (GCS <14 or disoriented/stupor/coma), and pulse >109/min. Age >65 splits class I from II only when zero main factors are present; age is not a fourth additive point. magent does not compute GCS, BUN, or pulse. Not a medical device and not a ventilation or ICU-admission order.","url":"https://api.magentlab.com/api/calc/bap_65","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":["bun_gt_25","altered_mental_status","pulse_gt_109","age_gt_65"],"properties":{"age_gt_65":{"type":"boolean","description":"Age >65 years (strict greater than). Used only when zero of the three main factors are present, to split class I from II. true or false as assigned by the caller. magent does not compute age."},"bun_gt_25":{"type":"boolean","description":"BUN >25 mg/dL (strict greater than; 25 does not meet). true or false as assigned by the caller. magent does not compute BUN."},"pulse_gt_109":{"type":"boolean","description":"Pulse >109/min (strict greater than; 109 does not meet). true or false as assigned by the caller. magent does not compute pulse."},"altered_mental_status":{"type":"boolean","description":"GCS <14 or physician designation of disoriented, stupor, or coma (Tabak 2009). true or false as assigned by the caller. magent does not compute GCS."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/bap_65","count":2,"items":[{"formula":"bap_65","citation":{"id":"tabak-2009","doi":"10.1001/archinternmed.2009.270","pmid":"19786679","title":"Mortality and need for mechanical ventilation in acute exacerbations of chronic obstructive pulmonary disease: development and validation of a simple risk score","source":"Arch Intern Med. 2009;169(17):1595-1602","authors":"Tabak YP, Sun X, Johannes RS, Gupta V, Shorr AF"},"criteria":[{"met":false,"factor":"bun_gt_25"},{"met":false,"factor":"altered_mental_status"},{"met":false,"factor":"pulse_gt_109"},{"met":false,"factor":"age_gt_65"}],"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.","bap65_class":"I","main_factor_count":0,"formula_expression":"class I = 0 main factors and age ≤65; II = 0 main factors and age >65; III = 1 main factor; IV = 2 main factors; V = 3 main factors (BUN >25 mg/dL, GCS <14 or disoriented/stupor/coma, pulse >109/min); age is not a 4th additive point"},{"formula":"bap_65","citation":{"id":"tabak-2009","doi":"10.1001/archinternmed.2009.270","pmid":"19786679","title":"Mortality and need for mechanical ventilation in acute exacerbations of chronic obstructive pulmonary disease: development and validation of a simple risk score","source":"Arch Intern Med. 2009;169(17):1595-1602","authors":"Tabak YP, Sun X, Johannes RS, Gupta V, Shorr AF"},"criteria":[{"met":false,"factor":"bun_gt_25"},{"met":false,"factor":"altered_mental_status"},{"met":false,"factor":"pulse_gt_109"},{"met":false,"factor":"age_gt_65"}],"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.","bap65_class":"I","main_factor_count":0,"formula_expression":"class I = 0 main factors and age ≤65; II = 0 main factors and age >65; III = 1 main factor; IV = 2 main factors; V = 3 main factors (BUN >25 mg/dL, GCS <14 or disoriented/stupor/coma, pulse >109/min); age is not a 4th additive point"}]}},"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_jTEyknNIcbT9ejSrjUC3K","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 BAP-65 class (I–V) for acute exacerbation of COPD using three binary clinical flags and age","exampleAgentPrompt":"Calculate the BAP-65 class for my COPD patient: BUN is not above 25, no altered mental status, pulse is not above 109, and the patient is 68 years old.","exampleUseCases":[{"title":"ED triage for COPD exacerbation","prompt":"I have a COPD patient in the ED with an acute exacerbation — BUN is 30 so above 25, pulse is 115 so above 109, and no altered mental status. Patient is 72. What is their BAP-65 class?"},{"title":"Low-risk elderly COPD discharge decision","prompt":"My COPD patient is 70 years old, presenting with an exacerbation. BUN is 20, pulse is 88, no signs of altered mental status. Can you get me the BAP-65 score to support a discharge decision?"},{"title":"High-acuity COPD with altered mental status","prompt":"COPD exacerbation patient, altered mental status present, BUN over 25, pulse over 109, age is 58. Run the BAP-65 and tell me what class they fall into."}],"resultDescription":"Returns the BAP-65 class (I through V) based on the three main factors (BUN >25, altered mental status, pulse >109) and age >65. Class I is lowest risk; class V is highest. Age >65 is used only to differentiate class I from II when all three main factors are absent.","failureModes":["Missing required boolean query parameters returns a validation error","Passing numeric values instead of booleans for flags causes schema rejection","Misinterpreting the age flag as an additive fourth factor (it is not) leads to incorrect class assignment by the caller","Expecting the API to compute GCS, BUN, or pulse values — it only accepts caller-supplied boolean flags"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless BAP-65 risk class for an acute COPD exacerbation and have already determined the three main clinical flags and patient age. Prefer it over manual lookup when automating triage workflows or embedding clinical scoring in agent pipelines. Not a substitute for physician judgment or a ventilation/ICU-admission order.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:20:16.024Z","isFirstParty":false}