{"uid":"cap_yjOAbSPkSjJvw9RVSNJc4","slug":"magent-erefs-calculator-hirano-2013-modified-f9c13521","name":"magent EREFS Calculator (Hirano 2013 Modified)","description":"Hirano 2013 modified EREFS: caller-assigned edema (absent 0, present 1), rings (none 0, mild 1, moderate 2, severe 3), exudates (none 0, mild_lt_10pct 1, severe_gt_10pct 2), furrows (absent 0, present 1; original 0-2 collapsed), stricture (absent 0, present 1). magent sums only (max 8; not later 0-9). No activity bands, inflammatory/fibrostenotic subscores, crepe-paper, or narrow-calibre. magent does not perform endoscopy. Not a diagnosis.","url":"https://api.magentlab.com/api/calc/erefs","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":["edema","rings","exudates","furrows","stricture"],"properties":{"edema":{"enum":["absent","present"],"type":"string","description":"Caller-assigned Hirano 2013 modified EREFS edema (oedema; loss of vascular markings): absent (0; vascular markings present) or present (1; decreased or absent vascular markings). magent does not perform endoscopy."},"rings":{"enum":["none","mild","moderate","severe"],"type":"string","description":"Caller-assigned Hirano 2013 EREFS rings (fixed rings): none (0), mild (1; subtle circumferential ridges), moderate (2; distinct rings that a diagnostic adult endoscope still passes), or severe (3; cannot pass a diagnostic adult endoscope). magent does not perform endoscopy."},"furrows":{"enum":["absent","present"],"type":"string","description":"Caller-assigned Hirano 2013 modified EREFS furrows (vertical lines): absent (0) or present (1). Original Hirano 2013 graded furrows 0-2 (none / mild without depth / severe with indentation); the modified good-agreement version collapses that to absent vs present. Not the later 0-9 expansion that restores furrows 0-2. magent does not perform endoscopy."},"exudates":{"enum":["none","mild_lt_10pct","severe_gt_10pct"],"type":"string","description":"Caller-assigned Hirano 2013 EREFS exudates (white plaques): none (0), mild_lt_10pct (1; lesions involving <10% of the oesophageal surface area), or severe_gt_10pct (2; lesions involving >10% of the oesophageal surface area). magent does not perform endoscopy."},"stricture":{"enum":["absent","present"],"type":"string","description":"Caller-assigned Hirano 2013 EREFS stricture: absent (0) or present (1). magent does not perform endoscopy."}}}},"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_2EdiMPY4vbOPB_eNs-pQm","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 Hirano 2013 modified EREFS endoscopic score for eosinophilic esophagitis by summing five caller-assigned endoscopic findings (edema, rings, exudates, furrows, stricture) into a total score of 0–8.","exampleAgentPrompt":"Calculate the modified EREFS score for a patient whose endoscopy showed edema present, moderate fixed rings, mild exudates (less than 10% surface area), furrows present, and no stricture.","exampleUseCases":[{"title":"Documenting EoE follow-up endoscopy","prompt":"I just reviewed the endoscopy report for my EoE patient — edema is present, rings are mild, no exudates, furrows are present, and there's no stricture. Can you give me the Hirano modified EREFS total score?"},{"title":"Baseline EREFS before treatment","prompt":"Before starting swallowed steroid therapy, I need to record a baseline EREFS. Endoscopy showed edema present, severe rings, severe exudates over 10% surface area, furrows present, stricture absent. What's the modified EREFS score?"},{"title":"Comparing treatment response scores","prompt":"Post-treatment endoscopy looks much better — edema absent, rings none, exudates none, furrows absent, stricture absent. Calculate the Hirano 2013 modified EREFS so I can compare it to the pre-treatment score."}],"resultDescription":"Returns the Hirano 2013 modified EREFS total score (integer 0–8) derived by summing the five caller-assigned component grades: edema (0–1), rings (0–3), exudates (0–2), furrows (0–1), and stricture (0–1). No activity bands, inflammatory/fibrostenotic subscores, or extended 0–9 features are included.","failureModes":["Missing required query parameter (edema, rings, exudates, furrows, or stricture) returns a 400 error","Invalid enum value for any parameter (e.g., a rings value not in none/mild/moderate/severe) returns a 400 error","Payment not provided or insufficient USDC via x402 protocol returns a 402 Payment Required","Network timeout or server unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need to programmatically compute the Hirano 2013 modified EREFS score (max 8) from caller-supplied endoscopic findings for eosinophilic esophagitis. Prefer it over manual calculation to ensure consistent application of the modified scale (collapsed furrows 0–1, not the later 0–9 expansion). Do not use for diagnosis, endoscopy performance, or if you need the later extended 0–9 EREFS variant with separate inflammatory/fibrostenotic subscores.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:39.864Z","isFirstParty":false}