{"uid":"cap_INYCdeGFEFd8dY7jhvUdU","slug":"haps-harmless-acute-pancreatitis-score-calculator-6f58555c","name":"HAPS (Harmless Acute Pancreatitis Score) Calculator","description":"HAPS (Lankisch 2009). Harmless iff rebound tenderness and/or guarding is absent, hematocrit is normal, and serum creatinine is normal. The caller assigns each flag as already determined. magent does not examine the abdomen and does not measure hematocrit or creatinine. No millimetre or sex lab cutoffs. Not a medical device, not a diagnosis, and not a discharge order.","url":"https://api.magentlab.com/api/calc/haps","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":["rebound_or_guarding","hematocrit_normal","creatinine_normal"],"properties":{"creatinine_normal":{"type":"boolean","description":"Serum creatinine is normal as assigned by the caller. true means normal and the harmless criterion holds; false means not normal. magent does not measure creatinine and does not apply a millimetre or sex cutoff."},"hematocrit_normal":{"type":"boolean","description":"Hematocrit is normal as assigned by the caller. true means normal and the harmless criterion holds; false means not normal. magent does not measure hematocrit and does not apply a millimetre or sex cutoff."},"rebound_or_guarding":{"type":"boolean","description":"Rebound tenderness and/or guarding. true means present and the harmless criterion fails. true or false as assigned by the caller. magent does not examine the abdomen."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/haps","count":2,"items":[{"formula":"haps","citation":{"id":"lankisch-2009","doi":"10.1016/j.cgh.2009.02.020","pmid":"19245846","title":"The harmless acute pancreatitis score: a clinical algorithm for rapid initial stratification of nonsevere disease","source":"Clin Gastroenterol Hepatol. 2009;7(6):702-705","authors":"Lankisch PG, Weber-Dany B, Hebel K, Maisonneuve P, Lowenfels AB"},"criteria":[{"met":true,"factor":"no_rebound_or_guarding"},{"met":true,"factor":"hematocrit_normal"},{"met":true,"factor":"creatinine_normal"}],"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.","haps_harmless":true,"formula_expression":"harmless iff no rebound tenderness and/or guarding and normal hematocrit and normal serum creatinine"},{"formula":"haps","citation":{"id":"lankisch-2009","doi":"10.1016/j.cgh.2009.02.020","pmid":"19245846","title":"The harmless acute pancreatitis score: a clinical algorithm for rapid initial stratification of nonsevere disease","source":"Clin Gastroenterol Hepatol. 2009;7(6):702-705","authors":"Lankisch PG, Weber-Dany B, Hebel K, Maisonneuve P, Lowenfels AB"},"criteria":[{"met":true,"factor":"no_rebound_or_guarding"},{"met":true,"factor":"hematocrit_normal"},{"met":true,"factor":"creatinine_normal"}],"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.","haps_harmless":true,"formula_expression":"harmless iff no rebound tenderness and/or guarding and normal hematocrit and normal serum creatinine"}]}},"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_87VNholl5VGzJXpd4FXEk","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 HAPS (Lankisch 2009) harmless acute pancreatitis score from three caller-supplied boolean clinical flags: rebound tenderness/guarding, hematocrit, and serum creatinine.","exampleAgentPrompt":"Can you run the HAPS harmless acute pancreatitis score for my patient? Rebound tenderness and guarding are absent, hematocrit is normal, and serum creatinine is normal.","exampleUseCases":[{"title":"ED triage of mild pancreatitis","prompt":"I'm evaluating a patient in the ED with acute pancreatitis — no rebound tenderness or guarding, hematocrit is normal, and creatinine is normal. Can you calculate the HAPS score to see if this case qualifies as harmless?"},{"title":"Clinical documentation workflow","prompt":"For my discharge note, I need the HAPS harmless pancreatitis score: the patient has rebound tenderness present, hematocrit is normal, but creatinine is not normal."},{"title":"Pancreatitis severity screening","prompt":"Run the Lankisch 2009 HAPS score for this pancreatitis patient — guarding is absent, hematocrit is normal, and serum creatinine is also normal. Is this a harmless case?"}],"resultDescription":"Returns a structured HAPS result indicating whether the acute pancreatitis case is classified as 'harmless' per the Lankisch 2009 criteria — i.e., all three conditions met: rebound tenderness/guarding absent, hematocrit normal, and serum creatinine normal. Not a diagnosis or discharge order.","failureModes":["Missing required boolean flags (rebound_or_guarding, hematocrit_normal, creatinine_normal) returns a validation error","Non-boolean values for flag parameters cause schema rejection","Payment not provided returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically apply the HAPS (Lankisch 2009) harmless acute pancreatitis score and already have clinical determinations for rebound/guarding, hematocrit, and creatinine as boolean flags. Prefer this over manual scoring when building clinical workflows, decision-support agents, or documentation pipelines that handle pancreatitis triage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:10:42.207Z","isFirstParty":false}