DIAG_TABLE

This table provides helpful context and categories around ICD-10 diagnosis codes.

Queries that source from DIAG_TABLE table

What is in the DIAG_TABLE table?

Results are returned as a json, pySpark DataFrame, or pandas DataFrame (default).

featuredescriptionexample
diag_codeICD-10 diagnosis codeE512
short_diag_codeFirst three characters of the ICD-10 diagnosis code, corresponding to the diagnosis subcategoryE51
diag_subcategoryName of the ICD-10 diagnosis sub-categorythiamine deficiency
diag_categoryName of the ICD-10 diagnosis categoryendocrine, nutri, and metabolic diseases/immunity disorders
diag_descDescription of the ICD-10 diagnosis codeWernicke's encephalopathy
icd9_codeICD-9 mapping to the ICD-10 diagnosis code2651
diag_severityCMS-designated severity score from 0 to 10070

Helper Function within the CareQuery API to help understand the underlying DIAG_TABLE dataset.

# import package
from care_query.care_query import CareQuery

# instantiate and connect
cq = CareQuery(email = "your-email", 
               token = "your-api-token")

# return details 
print(cq.glossary.table_detail('DIAG_TABLE'))