Difference between revisions of "Template:ICD11/doc"

From blackwiki
Jump to navigation Jump to search
imported>Doc James
imported>RexxS
(→‎Parameters: update doc)
Line 5: Line 5:
  
 
== Parameters ==
 
== Parameters ==
The template takes 2 parameter:
+
The template displays the ICD-11 code, linked to the entry in the ICD-11 website.
 +
 
 +
The website entry is identified through a url which contains a unique linkID:
 +
: For example. in <code><nowiki>https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/</nowiki>'''123456789'''</code> the linkID is in bold.
 +
 
 +
The template takes 2 parameters:
 
<pre>
 
<pre>
<nowiki>{{ICD11|URI|code}}</nowiki>
+
<nowiki>{{ICD11|code|linkID}}</nowiki>
 
</pre>
 
</pre>
*'''URI''' - The number at the end of the url line
+
*'''code''' = The complete ICD-11 code
*'''code''' - The complete ICD-11 code
+
*'''linkID''' = The number at the end of the url line
  
 
=== Examples of use ===
 
=== Examples of use ===
 
The ICD-11 code 5B81 is for "Obesity". In that case, the WHO website URL will look as follows:
 
The ICD-11 code 5B81 is for "Obesity". In that case, the WHO website URL will look as follows:
 
 
* https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/149403041
 
* https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/149403041
  
 
Using this template, it will show the WHO website external link as follows:
 
Using this template, it will show the WHO website external link as follows:
 +
* 5B81: <code><nowiki>{{ICD11|5B81|149403041}}</nowiki></code>: {{ICD11|5B81|149403041}}
  
* 5B81: <code><nowiki>{{ICD11|149403041|5B81}}</nowiki></code>: {{ICD11|149403041|5B81}}
+
If for some reason, the linkID is not yet known, it may be omitted; then the template will display the ICD-11 code unlinked:
 +
* 5B81: <code><nowiki>{{ICD11|5B81}}</nowiki></code>: {{ICD11|5B81}}
  
 
==See also==
 
==See also==

Revision as of 13:11, 25 October 2019

The goal of the template is to directly link to the World Health Organization's online version of ICD-11.

Parameters

The template displays the ICD-11 code, linked to the entry in the ICD-11 website.

The website entry is identified through a url which contains a unique linkID:

For example. in https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/123456789 the linkID is in bold.

The template takes 2 parameters:

{{ICD11|code|linkID}}
  • code = The complete ICD-11 code
  • linkID = The number at the end of the url line

Examples of use

The ICD-11 code 5B81 is for "Obesity". In that case, the WHO website URL will look as follows:

Using this template, it will show the WHO website external link as follows:

  • 5B81: {{ICD11|5B81|149403041}}: 5B81

If for some reason, the linkID is not yet known, it may be omitted; then the template will display the ICD-11 code unlinked:

  • 5B81: {{ICD11|5B81}}: 5B81

See also