{"uid":"cap_etjzZud59n07JOgAxTvpy","slug":"wifi-clinical-staging-calculator-mills-2014-8e8e2a87","name":"WIfI Clinical Staging Calculator (Mills 2014)","description":"Mills 2014 SVS WIfI: three independent caller-assigned grades, not a summed total. Wound 0-3 (no ulcer; small shallow distal ulcer; deeper ulcer or digital gangrene; extensive ulcer or gangrene). Ischemia 0-3 (none; mild; moderate; severe). Foot infection 0-3 (none; skin/subcutaneous; deeper without SIRS; with SIRS). Label like W0-I0-fI0. Caller assigns grades. Not a medical device, not PEDIS, and not an amputation or revascularization order; magent does not inspect wounds or measure ABI.","url":"https://api.magentlab.com/api/calc/wifi","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":["wound","ischemia","foot_infection"],"properties":{"wound":{"type":"integer","description":"Wound grade 0-3 as assigned by the caller (Mills 2014): 0 no ulcer and no gangrene; 1 small, shallow ulcer(s) on the distal leg or foot without gangrene; 2 deeper ulcer with exposed bone, joint, or tendon, or gangrene limited to digits; 3 extensive deep ulcer involving forefoot and/or midfoot, full-thickness heel ulcer, or extensive gangrene. magent does not inspect wounds."},"ischemia":{"type":"integer","description":"Ischemia grade 0-3 as assigned by the caller (Mills 2014): 0 none; 1 mild; 2 moderate; 3 severe. magent does not measure ABI, ankle pressure, or toe pressure and does not compute this grade from pressures."},"foot_infection":{"type":"integer","description":"Foot infection grade 0-3 as assigned by the caller (Mills 2014): 0 no signs of infection; 1 infection involving only skin and subcutaneous tissue; 2 infection deeper than skin (abscess, osteomyelitis, septic arthritis, fasciitis) without SIRS; 3 infection with SIRS. magent does not diagnose infection."}}}},"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_RTvPRJGgidCS6KsLvN0MS","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 and labels the Mills 2014 WIfI (Wound, Ischemia, foot Infection) clinical stage from three caller-assigned integer grades (0–3 each) and returns a formatted W#-I#-fI# label.","exampleAgentPrompt":"Calculate the WIfI stage for my patient: wound grade 2 (deeper ulcer with exposed bone), ischemia grade 1 (mild), and foot infection grade 0 (no infection) — give me the W#-I#-fI# label.","exampleUseCases":[{"title":"Pre-operative vascular surgery staging","prompt":"I'm preparing a vascular surgery note — the patient has a small shallow distal ulcer (wound grade 1), moderate ischemia (grade 2), and a deeper soft tissue infection without SIRS (foot infection grade 2). What's the WIfI label?"},{"title":"Diabetic foot clinic documentation","prompt":"For our diabetic foot clinic record, calculate the Mills 2014 WIfI classification: wound grade 0 (no ulcer), ischemia grade 0 (none), foot infection grade 1 (skin and subcutaneous only)."},{"title":"Limb salvage risk stratification","prompt":"I need the WIfI stage for a patient with extensive gangrene involving the forefoot (wound grade 3), severe ischemia (grade 3), and infection with SIRS (foot infection grade 3) — give me the formatted label."}],"resultDescription":"Returns a formatted WIfI label in W#-I#-fI# notation (e.g. W2-I1-fI0) representing the three independently assigned Mills 2014 grades for wound, ischemia, and foot infection. The response encodes the caller-supplied grades into the standardized SVS WIfI clinical staging format without performing any clinical inspection, measurement, or diagnosis.","failureModes":["Grade values outside 0–3 integer range will result in a validation error","Missing any of the three required query parameters (wound, ischemia, foot_infection) returns a 400 error","Non-integer values for grade parameters cause schema validation failure","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to encode caller-assigned Mills 2014 WIfI grades into the standardized W#-I#-fI# label for vascular surgery documentation, EHR entry, or clinical staging workflows. This is not PEDIS scoring and does not interpret ABI or wound images — the caller must supply all three grades from clinical assessment. Prefer this over manual label construction to ensure correct formatting and consistent grade encoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:50.102Z","isFirstParty":false}