Module:ICD11 explained

--ICD-11--

local p =

local icdmap =

p._code2link = function(code) local linkid = icdmap[code] if not linkid then return nil -- can have "" if preferred end return linkidend

p.code2link = function(frame) local args = frame.args if not args[1] and not args.code then args = frame:getParent.args end if not args[1] and not args.code then return "" end local code = mw.text.trim(args[1] or args.code or "") if code

"" then return "" end return p._code2link(code)end

return p