Template:ICD10 dx: Difference between revisions

m m
m Text replacement - "[[Category: " to "[[Category:"
 
(127 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="clear:right;">
<noinclude>
Template is used in all [[ICD10 Diagnoses]] to display standardized info and populate semantic properties.
 
==Template Use==
add <nowiki>{{ICD10 dx}}</nowiki> to the article, save, and then use the "edit ICD10 Dx infobox" link.
 
OR
<pre>{{ICD10 dx
| ICD10 Code = <enter code>
| StartDate =
| StopDate =
}}
</pre>
 
===Cargo declaration===
{{#cargo_declare:
_table = ICD10_Dx
| StartDate= Date
| StopDate = Date
| ICD10_Code = String
}}
 
 
 
[[Category:ICD10 wiki infrastructure]]
[[Category:Legacy content wiki infrastructure]]
[[Category:Quality wiki infrastructure]]
[[Category:Data Dependencies wiki infrastructure]]
 
 
 
 
 
 
----
</noinclude>{{#ifeq:
{{#expr:
{{#time: U|{{#show: {{PAGENAME}}|?Has StopDate}} }} < {{#time: U|{{CURRENTTIMESTAMP}} }}
}}
| 1
| :&nbsp;
:&nbsp;
:&nbsp;
:&nbsp;
{{LegacyContent
|explanation=This is a legacy diagnosis, its stop date is in the past.
| content=}}{{ICD10 category|Retired Code}}
<!-- this is where content for still collected dxs could go -->
}}<div style="clear:right;">
{| class="wikitable" border="1" style="float:right; width:50%"
{| class="wikitable" border="1" style="float:right; width:50%"
| style="text-align: center; background-color:#99c2ff;" colspan="2" | <span style="font-size: larger;">{{#formlink:form=ICD10 dx|link text='''edit ICD10 Dx infobox'''|target={{PAGENAME}}}}</span>
| style="text-align: center; background-color:#99c2ff;" colspan="2" | <span style="font-size: larger;">[[ICD10 Diagnosis List|ICD10 Diagnosis]]</span>
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Dx: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Dx: '''
| {{{PAGENAME}}}
| [[Has ICD10Dx::{{PAGENAME}}]]
|-
|-
| style="background:silver; color:arsenic" align="right"| '''ICD10 code: '''
| style="background:silver; color:arsenic" align="right"| '''ICD10 code: '''
| {{{ICD10 Code}}}
| {{{ICD10 Code|}}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''Bug required: '''
| style="background:silver; color:arsenic" align="right" {{!}} '''Pre-ICD10 counterpart: '''
| {{{BugRequired}}}
| {{#if: {{#show: {{PAGENAME}}|?Has ICD10OldArticleLink}}| {{#show: {{PAGENAME}}|?Has ICD10OldArticleLink}} | none  assigned }}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''[[Comorbid_Disease-General_Information#Charlson_Comorbid_Score_table | Comorbid Points]]: '''
| style="background:silver; color:arsenic" align="right" {{!}} '''[[Charlson Comorbidities in ICD10 codes|Charlson]]/[[ALERT Scale]]: '''
| {{{ComorbidPoints}}}
| {{#if: {{#ask: [[-Has subobject::Charlson Comorbidities in ICD10 codes]] [[Charlson_ICD10Description::{{PAGENAME}}]]}} | {{#ask: [[-Has subobject::Charlson Comorbidities in ICD10 codes]] [[Charlson_ICD10Description::{{PAGENAME}}]]
|?Charlson_component=
|format=list
|mainlabel=-
}} | none }}
|-
| style="background:silver; color:arsenic" align="right"{{!}} '''[[APACHE Comorbidities in ICD10 codes|APACHE Como Component]]: '''
| {{#if: {{#ask: [[-Has subobject::APACHE Comorbidities in ICD10 codes]][[APACHE_ICD10Description::{{PAGENAME}}]]}} | {{#ask: [[-Has subobject::APACHE Comorbidities in ICD10 codes]][[APACHE_ICD10Description::{{PAGENAME}}]]
|?APACHE_component=
|format=list
|mainlabel=-
}} | none }}
|-  
|-  
| style="background:silver; color:arsenic" align="right"| '''Start Date: '''
| style="background:silver; color:arsenic" align="right"{{!}} '''[[APACHE Acute Dxs in ICD10 codes|APACHE Acute Component]]: '''
| {{{StartDate}}}
| {{#if: {{#ask: [[-Has subobject::APACHE Acute Dxs in ICD10 codes]][[APACHE_ICD10Description::{{PAGENAME}}]]}} | {{#ask: [[-Has subobject::APACHE Acute Dxs in ICD10 codes]][[APACHE_ICD10Description::{{PAGENAME}}]]
{{#if:{{{StopDate|}}}|{{!}}-
|?APACHE_component=2019-0
{{!}} style="background:silver; color:arsenic" align="right"{{!}} '''Stop Date: '''
|format=list
{{!}} {{{StopDate}}} }}
|mainlabel=-
}} | none }}
|-
| style="background:silver; color:arsenic" align="right" | '''Start Date: ''' || {{{StartDate|}}}
|-
| style="background:silver; color:arsenic" align="right" | '''Stop Date: ''' || {{{StopDate|}}}
|-
| style="background:silver; color:arsenic" align="right"| {{Data Dependencies infobox label}}
|{{#cargo_query:
tables=Data_Dependencies
|fields=Derived
|where=Components HOLDS '{{urlencode:{{{PAGENAME}}}}}'
|format=ul}}
|-
| style="background:silver; color:arsenic" align="right"| '''External ICD10 Documentation'''
|
*[https://tools.wmflabs.org/wikidata-todo/resolver.php?prop=P4229&project=enwiki&value={{#show: {{PAGENAME}}| ?Has ICD10Code | link =No corresponding old article}} ICD-10 CM Wikipedia]
*[https://tools.wmflabs.org/wikidata-todo/resolver.php?prop=P494&project=enwiki&value={{#show: {{PAGENAME}}| ?Has ICD10Code | link =No corresponding old article}} ICD-10 Wikipedia]
*[https://icd.who.int/browse10/2016/en#/{{#show: {{PAGENAME}}| ?Has ICD10Code | link =No corresponding old article}} WHO ICD10 documentation]
*[http://www.icd10data.com/search?s={{#show: {{PAGENAME}}| ?Has ICD10Code | link =No corresponding old article}} ICD10data.com]
|}
|}
This diagnosis is a part of [[ICD10 collection]].{{#default_form:ICD10 dx}}
<includeonly><div style="display: none;">


<noinclude>
* SMW
 
** [[Has StartDate::{{{StartDate|2019-01-01}}}]]  
<includeonly>This diagnosis is as part of [[ICD10 collection]].
** [[Has StopDate::{{{StopDate|2999-12-31}}}]]
 
** [[Has ICD10Code::{{{ICD10 Code|}}}]]
== Related Articles ==
{{Related Articles}}
[[Category: ICD10 Diagnosis]]</includeonly>


<noinclude>
* Cargo
==Template Use==
{{#cargo_store:
add <nowiki>{{ICD10 dx}}</nowiki> to the article, save, and then use the "edit ICD10 Dx infobox" link.
_table = ICD10_Dx
 
| StartDate= {{{StartDate|2019-01-01}}}
OR, until I get to that done:
| StopDate = {{{StopDate|2999-12-31}}}
<pre>{{ICD10 dx
| ICD10_Code = {{{ICD10 Code|}}}
| ICD10 Code = <enter code>
| BugRequired = <optional, required, or no entry
| ComorbidPoints = <nr of points>
| StartDate =  
| StopDate =
}}
}}
</pre>


==Template checklist==
* Categories
The following still need to be set up
[[Category:ICD10 Diagnosis]]
* infobox like in [[:Template:DX tag]]
* accommodate multiple alternate dxs as links drawn from [[:Category: ICD10 Diagnosis]]
* encode Allan's extra columns
* encode our extra columns


[[Category:ICD10 wiki infrastructure]]
</div></includeonly>
</noinclude>