- Demonstrate NIH Clinical Table Search Service API for ICD-10-CM 2020 usage within VBA framework
- Create a userform to assist in querying multiple searches
- Microsoft Excel 2010+ (OS must be able to support Regular Expression, Dictionary, and XMLHTTP objects)
- Note: I am working on translating this respository to Javascript for Google Sheets
- The ICD-10-CM API is called with the XMLHTTP object
- The XMLHTTP object returns a JSON script
- The JSON script is parsed using code found here
- The items in the parsed JSON script are added to a dictionary object
- Steps 1-4 are repeated for all search queries
- The dictionary object is written to an Excel worksheet
Download 'ICD10 API.xlsm'
The current file has one function and four macros:
getICDdesc(ICD)
is a function that returns an ICD description given an ICD codeOpenQueryForm
is a sub that opens a userform which supports searching multiple terms (combination of codes and names; see images)OpenSheetQuery
is a sub that preloads the active selection of criteria into a userform which supports searching multiple terms (combination of codes and names; see images)printICDbyCode
is a sub that searches a single ICD codeprintICDbyName
is a sub that searches a singe ICD description