Template talk:ICD10

From Wikipedia, the free encyclopedia

Protected Template:ICD10 has been protected indefinitely. Use {{editprotected}} on this page to request an edit.

Contents

[edit] Explanation of template prior to Oct'06

NB See the template page itself for current explanation of use

This template is a little more complicated than others, so an explanation of its use is provided below.

The goal of the template is to directly link to the World Health Organization's ICD-10 website. Unfortunately, the design of that website and the design of MediaWiki mean that certain compromises had to be made in the template.

[edit] Capitalization

The ICD10 code R03 is for "Abnormal blood-pressure reading, without diagnosis". The WHO website uses lowercase letters for the chapter, as follows:

Attempts to see if upper case letters succeeded yielded the following results

So we need to present lower-case letters to the WHO website. But we have to present upper-cases letters to the wikipedia page, and there is no "upper(x)" function available. So, for now, the parameters are presented redundantly, with both a lower and upper-case version passed. The lower-case version is the second-to-last parameter, so that if someone else can solve this technical challenge, the final parameter could be eliminated in future use without breaking already deployed uses of the template.

[edit] Determining the page

To add further complexity, compare the following three entries:

From this, we know that there is an additional parameter that needs to be passed, to identify which page the code is on. There isn't any predictable relationship, but if you go to the WHO site and search on the condition, and then scroll to the top, you can identify what the first code on the page is, and use that to identify the last parameter.

[edit] Examples of use

All of the above may seem confusing, but examples should make it clearer:

  • A03: {{ICD10|A|03||a|00}}: A03.
  • A38: {{ICD10|A|38||a|30}}: A38.
  • A60: {{ICD10|A|60||a|50}}: A60.
  • G08: {{ICD10|G|08||g|00}}: G08.
  • M83.2: {{ICD10|M|83|2|m|80}}: M83.2
  • P04.1: {{ICD10|P|04|1|p|00}}: P04.1
  • R03: {{ICD10|R|03||r|00}}: R03.

Note that there is no period inside "P04.1" when presented by the template. There doesn't appear to be any way to make the period optional. However, the presentation of the ICD code without the period is also commonly found on the web (for example, at this site) so the confusion caused by the omission of the period should be minimal.

Suggestions and feedback are welcome. Despite the limitations of the template, it still should be useful in making the classification of medical articles easier to validate against external sources. --Arcadian 20:15, 22 December 2005 (UTC)

[edit] Updates

(for reference, this is a copy of this message left at User talk:Cwray:)

Per your recent changes to the template at Template:ICD10 -- I understand your goals, but your changes are breaking a lot of links. Your first change broke the links completely, which is why I reverted. Your second change appears intended to support a new format, where a decimal is included explicitly in the third parameter. Unfortunately, that is breaking the decimal-level linking for the thousands of pages where the template is already used.

I'm not opposed to changes to the template as long as they don't harm the existing links. It appears that your goal is to get the decimal to be optionally visible, depending upon the parameters provided. Perhaps there is a way to achieve that in MediaWiki, or if there isn't today, there may be a way to do so in the future as the software improves. But I ask that you please be more careful when editing these templates. Also, please leave a Edit summary when making changes. Thanks!

I know there are a lot of technical challenges when working with these templates, so if you have any questions, feel free to ask me questions on my talk page, and I'll be happy to answer the best I can.

Happy editing, and thank you for your contributions to Wikipedia. --Arcadian 10:55, 29 June 2006 (UTC)

[edit] Oct 2006 changes to WHO website

ICD10 codes links nolonger seem to work today because the WHO has reconfigured its web site. Hence K22.7 for Barrett's oesophagus previously marked up as ({{ICD10|K|22|7|k|20}}) was converted by this template to the URL http://www3.who.int/icd/currentversion/gk20.htm#k227

Now however the template needs to point to http://www.who.int/classifications/apps/icd/icd10online/?gk20.htm+k227

Note I initially tried using the link provided by the WHO's own search page http://www.who.int/classifications/apps/icd/icd10online/gK20.htm#k227 but this fails to work. Whilst one is initially taken to the top of the right web page, one is then immediately jumped to a bad link within the page, thus showing just an error message - presumably due to some programming action within the web page? So for now I've changed the template to be the URL that searches for the ICD10 code, rather than being a true URL address - still it seems to work well enough for now. David Ruben Talk 14:17, 24 October 2006 (UTC)

I've copied across above explanation to be displayed on the template page itself (by use of a /doc subpage as is commonly being applied to template explainations) and adjusted the descriptions for:

  • The relocated URLs for the WHO website
  • Given my switch to use the new WHO website seems to use a search (see '?' in the generated URL addresses), capitalisation seems permitted. However internally the WHO website continues to prefer lower-case (i.e. this is what its own search function generates) and users of this template should therefore continue to provide the lower-case version of the ICD10 group letter. David Ruben Talk 00:48, 25 October 2006 (UTC)
Thanks for fixing it. --Arcadian 02:28, 25 October 2006 (UTC)