{"uid":"cap_whk-repGQkLEi_FBNQg6R","slug":"forrest-1974-endoscopic-ulcer-classification-lookup-5d5ba43d","name":"Forrest 1974 Endoscopic Ulcer Classification Lookup","description":"Forrest 1974 endoscopic ulcer class as assigned by the caller: ia active spurting haemorrhage, ib active oozing, iia non-bleeding visible vessel, iib adherent clot, iic flat pigmented haematin / coffee-ground base, iii clean ulcer base. Returns the canonical class and 1974 lesion description. magent does not interpret endoscopy images or invent rebleeding percentages. Not a medical device.","url":"https://api.magentlab.com/api/calc/forrest","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":["forrest"],"properties":{"forrest":{"type":"string","description":"Forrest 1974 endoscopic lesion class as assigned by the caller: ia (active spurting hemorrhage), ib (active oozing hemorrhage), iia (non-bleeding visible vessel), iib (adherent clot), iic (flat pigmented haematin / coffee-ground base), or iii (clean ulcer base / no signs of recent hemorrhage). Case-insensitive. magent does not interpret endoscopy images."}}}},"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_UHysCgMVIZFITP66sIt8w","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":"Returns the canonical Forrest 1974 class label and lesion description for a caller-supplied endoscopic ulcer classification code (Ia through III).","exampleAgentPrompt":"Look up Forrest class iia for me — I need the canonical 1974 label and lesion description for a non-bleeding visible vessel finding.","exampleUseCases":[{"title":"Endoscopy report documentation assistant","prompt":"I just scoped a patient and found an active oozing ulcer — look up Forrest class ib and give me the official 1974 description so I can include it in my report."},{"title":"Clinical coding validation workflow","prompt":"We're coding an endoscopy procedure and need to confirm that Forrest class iib corresponds to adherent clot — can you retrieve the canonical label and description for iib?"},{"title":"Medical education flashcard generation","prompt":"I'm building a study guide on peptic ulcer stigmata. Look up each Forrest class — starting with iii — and give me the official 1974 lesion description for a clean ulcer base."}],"resultDescription":"Returns the canonical Forrest 1974 class identifier and its associated 1974 lesion description (e.g. 'Forrest Ib – active oozing haemorrhage'). Does not include rebleeding risk percentages or image interpretation.","failureModes":["Invalid or unrecognized Forrest class code returns an error","Missing 'forrest' query parameter results in a bad request response","Passing a free-text description instead of a class code (e.g. 'active bleeding' instead of 'ia') may not be recognized"],"whenToPreferThis":"Use this endpoint when you need to programmatically validate, normalize, or retrieve the canonical label and description for a Forrest 1974 endoscopic ulcer class code. It is authoritative for the classification text itself but does not provide rebleeding risk estimates or interpret endoscopy images.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:42.476Z","isFirstParty":false}