{"uid":"cap_osWqbBIwVABle1xzA_ItD","slug":"light-s-criteria-pleural-fluid-calculator-b4364523","name":"Light's Criteria Pleural Fluid Calculator","description":"Light 1972 pleural fluid criteria: exudate if protein ratio > 0.5, LDH ratio > 0.6, or pleural LDH > two-thirds the laboratory LDH ULN. ULN is required; magent does not assume 200 U/L. Strictly greater than those cutoffs. Deterministic published arithmetic with citation; not a diagnosis of cause, not Heffner's abbreviated criteria, and not a chest x-ray interpretation.","url":"https://api.magentlab.com/api/calc/lights","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":["pleural_protein_g_dl","serum_protein_g_dl","pleural_ldh_u_l","serum_ldh_u_l","ldh_uln_u_l"],"properties":{"ldh_uln_u_l":{"type":"number","description":"Laboratory LDH upper limit of normal in U/L (50-2000). Required; magent does not assume 200."},"serum_ldh_u_l":{"type":"number","description":"Serum LDH in U/L (1-10000)."},"pleural_ldh_u_l":{"type":"number","description":"Pleural fluid LDH in U/L (1-10000)."},"serum_protein_g_dl":{"type":"number","description":"Serum protein in g/dL (0.1-20)."},"pleural_protein_g_dl":{"type":"number","description":"Pleural fluid protein in g/dL (0.1-20)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/lights","count":2,"items":[{"exudate":false,"formula":"lights","citation":{"id":"light-1972","doi":"10.7326/0003-4819-77-4-507","title":"Pleural effusions: the diagnostic separation of transudates and exudates","source":"Ann Intern Med. 1972;77(4):507-513","authors":"Light RW, Macgregor MI, Luchsinger PC, Ball WC Jr"},"criteria":[{"met":false,"value":0.5,"factor":"protein_ratio_gt_0_5"},{"met":false,"value":0.5,"factor":"ldh_ratio_gt_0_6"},{"met":false,"value":100,"factor":"pleural_ldh_gt_two_thirds_uln"}],"ldh_ratio":0.5,"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.","protein_ratio":0.5,"pleural_ldh_u_l":100,"formula_expression":"exudate if pleural_protein_g_dl / serum_protein_g_dl > 0.5 or pleural_ldh_u_l / serum_ldh_u_l > 0.6 or pleural_ldh_u_l > (2/3) * ldh_uln_u_l","ldh_two_thirds_uln":133.3},{"exudate":false,"formula":"lights","citation":{"id":"light-1972","doi":"10.7326/0003-4819-77-4-507","title":"Pleural effusions: the diagnostic separation of transudates and exudates","source":"Ann Intern Med. 1972;77(4):507-513","authors":"Light RW, Macgregor MI, Luchsinger PC, Ball WC Jr"},"criteria":[{"met":false,"value":0.5,"factor":"protein_ratio_gt_0_5"},{"met":false,"value":0.5,"factor":"ldh_ratio_gt_0_6"},{"met":false,"value":100,"factor":"pleural_ldh_gt_two_thirds_uln"}],"ldh_ratio":0.5,"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.","protein_ratio":0.5,"pleural_ldh_u_l":100,"formula_expression":"exudate if pleural_protein_g_dl / serum_protein_g_dl > 0.5 or pleural_ldh_u_l / serum_ldh_u_l > 0.6 or pleural_ldh_u_l > (2/3) * ldh_uln_u_l","ldh_two_thirds_uln":133.3}]}},"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_nSi9d3RfMODG5Ncwxyvo0","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":"Applies Light's 1972 criteria to classify pleural fluid as exudate or transudate using protein and LDH ratios against a caller-supplied LDH upper limit of normal","exampleAgentPrompt":"Apply Light's criteria to this pleural tap: pleural protein 4.2 g/dL, serum protein 6.8 g/dL, pleural LDH 320 U/L, serum LDH 210 U/L, and our lab's LDH upper limit of normal is 240 U/L — is it an exudate?","exampleUseCases":[{"title":"Thoracentesis result interpretation","prompt":"I just got back pleural fluid results — pleural protein is 3.9 g/dL, serum protein 7.1 g/dL, pleural LDH 180 U/L, serum LDH 190 U/L, and our lab's LDH ULN is 220 U/L. Run Light's criteria and tell me if it's an exudate or transudate."},{"title":"Automated EMR lab result triage","prompt":"For this patient's pleural fluid panel — pleural protein 1.8 g/dL, serum protein 6.5 g/dL, pleural LDH 45 U/L, serum LDH 155 U/L, lab LDH ULN is 200 U/L — apply Light's 1972 criteria and flag which of the three criteria, if any, are met."},{"title":"Medical education case review","prompt":"Walk me through Light's criteria calculation for a teaching case: pleural protein 5.1 g/dL, serum protein 6.9 g/dL, pleural LDH 410 U/L, serum LDH 250 U/L, and the lab's LDH upper limit of normal is 230 U/L — show each ratio and the final exudate or transudate conclusion."}],"resultDescription":"Returns a deterministic classification of the pleural fluid as exudate or transudate based on Light's three criteria: (1) pleural-to-serum protein ratio > 0.5, (2) pleural-to-serum LDH ratio > 0.6, (3) pleural LDH > two-thirds the caller-supplied LDH ULN. Output includes individual ratio values, which criteria are met, and the overall classification. Not a diagnosis of cause and not Heffner's abbreviated criteria.","failureModes":["Missing required parameters (pleural_protein_g_dl, serum_protein_g_dl, pleural_ldh_u_l, serum_ldh_u_l, ldh_uln_u_l) returns validation error","Values outside allowed ranges (e.g. LDH ULN outside 50–2000 U/L) return 400-level error","Payment failure or insufficient USDC balance returns 402 Payment Required","Passing 0 for any parameter may cause division-by-zero or range rejection"],"whenToPreferThis":"Use this endpoint when you need a strictly correct, citeable implementation of Light's 1972 original three-criterion rule — specifically when you must supply the laboratory's own LDH ULN rather than assuming 200 U/L. Prefer this over manual calculation to avoid arithmetic errors and to get structured, auditable output for clinical documentation or decision support pipelines. Do not use if you need Heffner's abbreviated criteria or a diagnosis of pleural disease cause.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:56:32.457Z","isFirstParty":false}