Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for ICD-11 only returns result for complete word #3

Open
LouisHart opened this issue Feb 14, 2022 · 1 comment
Open

API for ICD-11 only returns result for complete word #3

LouisHart opened this issue Feb 14, 2022 · 1 comment

Comments

@LouisHart
Copy link

I want to implement an ICD-11 search into my application.

Using the /icd/entity/search endpoint, I cannot manage to receive results for incomplete words. For example, searching for paracetamol, I get 7 results, but when searching for paracet, I get no results.

This is in opposition to the online browser which does provide hits even when the word is incomplete.

I had no more luck using the /icd/release/11/{releaseId}/{linearizationname}/search endpoint, which specifically mentions incomplete word completion in the includeKeyworkResult option. This leads me to think it is maybe an implementation error, rather than a design choice.

Any solutions or further resources would be greatly appreciated !

PS: if anyone can explain the wildcard words mentions in the q search field, I'd be very interested

@mdonada
Copy link
Collaborator

mdonada commented Feb 23, 2022

Hi LouisHart,

The wildcard character % at the end of a search text (the "q" param) returns all the words that have the search text as a prefix.

For example, searching "blood" returns this word list:
-vessels
-injury
-level
-other
-abnormal
...

Otherwise, searching "blood%" returns this word list:
-blood
-blood-alcohol
-blood-brain
-blood-clot
-blood-drug
...

Best,
Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants