{"uid":"cap_VHmfBR8E5A2c5sivVwj43","slug":"absolute-lymphocyte-count-alc-calculator-shapiro-1998-0f133bed","name":"Absolute Lymphocyte Count (ALC) Calculator — Shapiro 1998","description":"Absolute lymphocyte count from WBC and lymphocyte percent (Shapiro 1998). ALC < 1000 cells/mm3 predicts CD4 < 200; ALC >= 2000 predicts CD4 >= 200. Deterministic published arithmetic with citation. Not a CD4 measurement or HIV diagnosis. magent does not measure the CBC.","url":"https://api.magentlab.com/api/calc/alc","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":["lymphocyte_percent"],"properties":{"wbc_ul":{"type":"number","description":"WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000."},"wbc_k_ul":{"type":"number","description":"WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500."},"lymphocyte_percent":{"type":"number","description":"Lymphocytes as a percent of WBC (0.1-99). Shapiro 1998 uses the CBC lymphocyte percentage."}}}},"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_WSTpVkKF_EGItyCMJlw01","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 absolute lymphocyte count from WBC and lymphocyte percentage, and predicts CD4 count category using the Shapiro 1998 rule (ALC <1000 → CD4 <200; ALC ≥2000 → CD4 ≥200).","exampleAgentPrompt":"Calculate the absolute lymphocyte count for a patient with a WBC of 4.5 k/µL and 28% lymphocytes, and tell me what CD4 category Shapiro 1998 predicts.","exampleUseCases":[{"title":"CD4 surrogate estimate in resource-limited setting","prompt":"I have a patient with WBC 3.2 k/µL and lymphocytes at 18%. Use the Shapiro 1998 ALC rule to figure out whether their CD4 is likely below or above 200."},{"title":"HIV monitoring without CD4 test","prompt":"Our clinic doesn't have CD4 testing available — can you calculate the ALC from a WBC of 5800 cells/µL and 22% lymphocytes and tell me if the Shapiro rule predicts CD4 deficiency?"},{"title":"Automated CBC result enrichment","prompt":"For a patient whose CBC shows WBC 7.1 k/uL and 35% lymphocytes, compute the ALC and apply the Shapiro 1998 formula to predict their CD4 count category."}],"resultDescription":"Returns the computed absolute lymphocyte count (ALC) in cells/mm³, along with the Shapiro 1998 CD4 prediction category (CD4 <200, indeterminate, or CD4 ≥200) based on ALC thresholds of 1000 and 2000 cells/mm³.","failureModes":["Missing required lymphocyte_percent parameter returns a validation error","WBC value out of range (e.g. wbc_ul not between 10–500000) may return an error or unexpected result","Neither wbc_ul nor wbc_k_ul provided results in a missing-parameter error","lymphocyte_percent out of range (0.1–99) may cause a validation error","x402 payment failure if insufficient USDC balance prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic ALC calculation and CD4 category prediction based on the peer-reviewed Shapiro 1998 formula, especially in workflows processing CBC results where CD4 testing is unavailable. Prefer it over manual arithmetic or general-purpose calculators when you need a citable, published clinical decision rule with clear ALC thresholds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:57:28.395Z","isFirstParty":false}