Using wikidata to link to an article about a disease on wikipedia by ICD-10 code coded as property on wikidata

Wikidata is a sister project to Wikipedia that encodes much of the information on Wikipedia into discrete data values that can be queried.

I needed to document some ICD10 diagnoses and wanted to add links to Wikipedia as part of that. I did not know the actual names of the articles on Wikipedia, though. Manually, I could have found them using a search, but that would be a lot of work for >1700 diagnoses.

Turns out that Resolver will do this.  The following link will resolve the ICD10 code (P4229) with value K37 (corresponding to appendicitis) to send me to the Wikipedia article for appendicitis:
https://tools.wmflabs.org/wikidata-todo/resolver.php?prop=P4229&value=K37&project=enwiki

You could use similar code to link to a city by postal code or an animal by its taxonomic name, or using any of the thousands of properties available on wikidata.

See here for an example on how to use this with semantic mediawiki.

Leave a Reply

Your email address will not be published. Required fields are marked *
https://www.tenbergen.ca/making_things_work_my_way/using-wikidata-to-link-to-an-article-about-a-disease-on-wikipedia-by-icd-10-code-coded-as-property-on-wikidata/
www.tenbergen.ca
crawl=CC-MAIN-2021-31
23465
application/http; msgtype=response
sha1:V4TH6CPYNWGIZUKCYHZXE7XRVWNPOBCU
<urn:uuid:945c2348-51f5-4805-94d3-d17fa346349e>
2021-07-31T11:41:43Z
67.205.14.150
text/html
sha1:FNK4TLCL6IAI5BTVFV3RHTP7ZHCGPSJQ
<urn:uuid:c093d018-8fdd-4473-a99f-070dda305bd5>
https://www.tenbergen.ca/making_things_work_my_way/using-wikidata-to-link-to-an-article-about-a-disease-on-wikipedia-by-icd-10-code-coded-as-property-on-wikidata/
response
<urn:uuid:8166df34-1bc7-4fb8-99d8-b050d00e9fae>
isPartOf: CC-MAIN-2021-31
publisher: Common Crawl
description: Wide crawl of the web for July/August 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-15.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/