dot-base / icd-10-api

Rest API to search the 10th revision of the International Statistical Classification of Diseases Database.
GNU General Public License v3.0
18 stars 4 forks source link

ICD-10 API times out when searching long results #38

Closed andreakreichgauer closed 2 years ago

andreakreichgauer commented 2 years ago

Searching icd codes with "longer" queries (> 6 terms), leads to endless searches. This is due to the way icd10 API is designed, since it searches for all possible combinations of terms.

Thus, max. amount of terms will be restricted by setting a env var MAX_SEARCH_TERMS