Template talk:ICD11
Appearance
(Redirected from Module talk:ICD11)
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
question
[edit]This must be using some knowledge base. I would be curious to understand where this KB is hosted. Is it API call or a CSV file? EncycloABC (talk) 13:50, 6 February 2020 (UTC)
- WHO has an API called ICD-API; however this template uses a LUA module called Module:ICD11. As the module creator, RexxS is probably best placed for more specific questions on how the module and template interact. Little pob (talk) 16:56, 6 February 2020 (UTC)
- The WHO allows us to reproduce the mapping of ICD-11 code to the identifier it uses in the url for the corresponding page on their site. Taking obesity for example, the ICD-11 code 5B81 is linked to the url https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/149403041 (so 149403041 is the identifier). Module:ICD11 is little more than a lookup for those 32,000 or so ICD-11 codes, returning the identifier, which can then be used to create the correct external link. A module is just as capable of storing that mapping as a CSV file, but has the ability to also include the code to perform the lookup.
- In performance terms, using the template/module adds about 50 ms of processing time, of which 6 ms are Lua processing. It uses around 8 MB out of 50 MB of Lua memory, but it's cached, so that subsequent calls on the same page use only small extra amounts of memory. Unless you're using over 20 calls per page, it's about as efficient as I can get it. Cheers --RexxS (talk) 18:54, 6 February 2020 (UTC)
The WHO has changed the URL format
[edit]Last month, I noted on Talk:ICD-11 that the WHO changed the URL structure of the ICD-11 Browser. It used to be:
https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/142052508
Now it is:
https://icd.who.int/browse/2024-01/mms/en#142052508
Or:
https://icd.who.int/browse/latest-release/mms/en#142052508
This is obviously a huge improvement. I have updated the template. - Manifestation (talk) 20:15, 6 March 2024 (UTC)