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

Accented character problem #9

Closed
sachsmc opened this issue Dec 15, 2016 · 0 comments
Closed

Accented character problem #9

sachsmc opened this issue Dec 15, 2016 · 0 comments

Comments

@sachsmc
Copy link
Owner

sachsmc commented Dec 15, 2016

Test case

If I issue the following call, I get document count == 0
clinicaltrials_count("Valérie Fonteyne")

However, if I change the "é" to a non-accented "e", I get a document count == 4
clinicaltrials_count("Valerie Fonteyne")

If I go to ClinicalTrials.gov web site and manually search for "Valérie Fonteyne", I get the correct 4 clinical trials, eg the same trials as when I download trials based on non-accented Valerie ("NCT01921803" "NCT02397434" "NCT02745587" "NCT02748200")

Same thing if I use "Véronique D'Hondt" (she has 7 documents).

Potential issue
I noticed how you call the clinicaltrials.gov API using the httr::GET() call, and I wonder if the problem is in how the call is made.

Potential fix
After some testing, I used the following call, which returns my 4 trials (it also works perfect with "Véronique D'Hondt").
The main difference is that I use the query=list....

result <- httr::GET(query_url, query=list(
term="("Valérie Fonteyne") AND cancer",
lup_s="01/1/1900",
studyxml="true"
), httr::write_disk(tmpzip, overwrite=T))

@sachsmc sachsmc closed this as completed Jan 9, 2017
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

1 participant