Difference between revisions of "Template:ICD10PCS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Cydebot
m (Robot - Speedily moving category Medical external link templates‎ to Category:Medicine external link templates per CFDS.)
imported>Little pob
(Documentation rewritten as both parameters are needed as ICD10data has changed its subfolder structure.)
Line 5: Line 5:
 
There are two parameters to this template. The first parameter sets the code, the second helps parse the link for the lookup site.
 
There are two parameters to this template. The first parameter sets the code, the second helps parse the link for the lookup site.
 
===Full code===
 
===Full code===
When pointing to a complete 7 character code; the second parameter is optional:  
+
When pointing to a complete 7 character code; the second parameter is mandatory:  
 
<pre><nowiki>{{ICD10PCS|code|character1/character2/character3/character4}}</nowiki></pre>  
 
<pre><nowiki>{{ICD10PCS|code|character1/character2/character3/character4}}</nowiki></pre>  
and
+
 
<pre><nowiki>{{ICD10PCS|code}}</nowiki></pre>
 
will both work, as the ICD10data.com website will correctly parse the link from the full code.
 
  
 
===Partial code===
 
===Partial code===
If only characters 1 through 4 are needed to be linked to; only one parameter is needed:
+
The ICD10data.com website no longer correctly parses the link from partial codes.
<pre><nowiki>{{ICD10PCS|code}}</nowiki></pre>
 
as the ICD10data.com website will correctly parse the link from this set of partial codes.
 
  
However, it is not possible to link directly to 5th and 6th level of characters. To display codes at these levels in the medical intervention infobox, both parameters are needed:
+
Both parameters must be present:
 
<pre><nowiki>{{ICD10PCS|code|character1/character2/character3/character4}}</nowiki></pre>
 
<pre><nowiki>{{ICD10PCS|code|character1/character2/character3/character4}}</nowiki></pre>
(This effectively links to the 4th character level.)
 
  
 
== Examples of use ==
 
== Examples of use ==
Line 25: Line 20:
 
* http://www.icd10data.com/ICD10PCS/Codes/F/1/3/Z/F13Z00Z
 
* http://www.icd10data.com/ICD10PCS/Codes/F/1/3/Z/F13Z00Z
  
Using this, see how the external link handles the data sent by the template in the following examples:
+
Using this, see how the external link handles the data sent by the template in the following example:
 
 
* F13Z00Z: <code><nowiki>{{ICD10PCS|F13Z00Z}}</nowiki></code>: {{ICD10PCS|F13Z00Z}}
 
 
* F13Z00Z: <code><nowiki>{{ICD10PCS|F13Z00Z|F/1/3/Z}}</nowiki></code>: {{ICD10PCS|F13Z00Z|F/1/3/Z}}
 
* F13Z00Z: <code><nowiki>{{ICD10PCS|F13Z00Z|F/1/3/Z}}</nowiki></code>: {{ICD10PCS|F13Z00Z|F/1/3/Z}}
 
Other examples:
 
 
* B845ZZZ: <code><nowiki>{{ICD10PCS|B845ZZZ }}</nowiki></code>: {{ICD10PCS|B845ZZZ}}
 
* 0213: <code><nowiki>{{ICD10PCS|0213}}</nowiki></code>: {{ICD10PCS|0213}}
 
* 0213: <code><nowiki>{{ICD10PCS|0213|0/2/1/3}}</nowiki></code>: {{ICD10PCS|0213|0/2/1/3}}
 
* 0TF3: <code><nowiki>{{ICD10PCS|0TF3}}</nowiki></code>: {{ICD10PCS|0TF3}}
 
* 0TF3: <code><nowiki>{{ICD10PCS|0TF3|0/T/F/3}}</nowiki></code>: {{ICD10PCS|0TF3|0/T/F/3}}
 
* 0TF30ZZ: <code><nowiki>{{ICD10PCS|0TF30ZZ}}</nowiki></code>: {{ICD10PCS|0TF30ZZ}}
 
  
 
==See also==
 
==See also==

Revision as of 13:45, 22 May 2018

The goal of the template is to directly link the ICD-10-PCS lookup service on the ICD10data.com website with the medical intervention infobox.

Parameters

There are two parameters to this template. The first parameter sets the code, the second helps parse the link for the lookup site.

Full code

When pointing to a complete 7 character code; the second parameter is mandatory:

{{ICD10PCS|code|character1/character2/character3/character4}}


Partial code

The ICD10data.com website no longer correctly parses the link from partial codes.

Both parameters must be present:

{{ICD10PCS|code|character1/character2/character3/character4}}

Examples of use

The ICD-10-PCS code F13Z00Z is for "Hearing Screening Assessment using Occupational Hearing Equipment". In that case, the ICD10data.com website URL will look as follows:

Using this, see how the external link handles the data sent by the template in the following example:

  • F13Z00Z: {{ICD10PCS|F13Z00Z|F/1/3/Z}}: F13Z00Z

See also

  • WP:MED for WikiProject Medicine