Importing medical conditions ( ICD tables)

We want to view relationships between microbiome and various medical conditions. There is also a need to know the impact of various probiotics on various conditions.

The International Classification of Disease (ICD) is the equivalent as taxon numbers for bacteria and is a well defined comprehensive list of medical conditions. We may need to add alternative names for some of the conditions to match common usage.

If something is not there (it should be), we can always add our own codes and diagnosis. For example there is no “SIBO” or ” Small intestine bacterial overgrowth” item, scanning on like we see that the code of A04.9 is often used. We would insert that into the ICDAltName table (likely two rows, one for each variation).

First we need to download some files as shown below.

https://www.cms.gov/medicare/coding/icd10/2019-icd-10-cm.html

The file that we wish to use is shown below.

This file is the parameter to pass to the C# console application that will upload and populate the table. Most of the magic happens in SQL.

We end up with tables as shown below. In the next posts we look at connecting conditions to probiotics to studies, and conditions to microbiomes to studies.

Example of the data after uploading is shown below. There are around 44 thousand IDC codes – fortunately, they are in a hierarchy.

The source code is at: https://github.com/Lassesen/Microbiome2/tree/master/UploadICD

You just need to give the location of the two files downloaded above

uploadICD.exe D:\Downloads\2019-ICD-10-CM-Tables-and-Index\icd10cm_index_2019.xml D:\Downloads\2019-ICD-10-CM-Tables-and-Index\icd10cm_tabular_2019.xml

Homework Item

We have some 44 thousand items which are in a hierarchy if you use the code. There are many ways to handle that on a web site — what approach will you do?

Published by

lassesen

B.Sc., M.Sc. In Statistics with thesis topic doing medical statistics. ex-High School General Science Teacher . Berg Science Seminar gifted child program in High School, so reading medical journals since 15 y.o. combined with weekly lectures from Professors. Done Statistics , Artificial Intelligence and machine learning professionally -- including for Microsoft and Amazon. Due to family and personal experience with autoimmune and microbiome, have expanded my knowledge in that area.

One thought on “Importing medical conditions ( ICD tables)”

Leave a comment