Comments (3)
"Location" is a complex lookup system in the webinterface of CTGOV2
. For example, it maps user entries to combinations of facility name, city, state, country. The translation by ctrdata
of a search URL to an API call for this register may not readily work for all cases. An update will be provided to cover more use cases.
from ctrdata.
Implemented with further user information. Closed with 3b90892.
# example showing that an error will be raised when a user's search
# in CTGOV2 does not have have relevant details for an API query:
q <- "https://clinicaltrials.gov/search?locStr=Gustave%20Roussy,%20Rue%20Edouard%20Vaillant,%20Villejuif,%20France&lat=48.7955043&lng=2.3485255&distance=50"
ctrLoadQueryIntoDb(queryterm = q, verbose = F, only.count = TRUE)
# Error: Parameter 'locStr' provided, but no 'country', 'state' or 'city';
# please check in CTGOV; e.g., the name of a trial site should go into
# Facility Name in the webinterface or parameter 'locn' in the search URL.
# series of examples showing correct translation:
q <- "https://clinicaltrials.gov/search?locStr=Portugal&country=Portugal"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 3203
q <- "https://clinicaltrials.gov/search?country=Portugal"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 3203
q <- "https://clinicaltrials.gov/search?locStr=Lissabon,%20Portugal&country=Portugal&state=Lisbon&city=Lisbon"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 497
q <- "https://clinicaltrials.gov/search?country=Portugal&state=Lisbon&city=Lisbon"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 497
q <- "https://clinicaltrials.gov/search?country=Portugal&city=Lisbon"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 497
q <- "https://clinicaltrials.gov/search?country=Portugal&state=Lisbon"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 21 noting there is no such state
q <- "https://clinicaltrials.gov/search?locStr=Bavaria,%20Germany&country=Germany&state=Bavaria"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 911 but CTGOV2 webinterface erroneously shows 25632 trials for all of the country
q <- "https://clinicaltrials.gov/search?locStr=Maine&country=United%20States&state=Maine"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 2273
q <- "https://clinicaltrials.gov/search?locStr=Paris,%20France&country=France&state=%C3%8Ele-de-France&city=Paris"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# only 104 returned by API but CTGOV2 webinterface shows 12647 trials
# for the same parameters, indicating that state is not useful here with API
q <- "https://clinicaltrials.gov/search?locStr=Paris,%20France&country=France&city=Paris"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 12654
q <- "https://clinicaltrials.gov/search?locn=Charité Campus Virchow Klinikum"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 207
q <- "https://clinicaltrials.gov/search?locn=Gustave%20Roussy"
ctrLoadQueryIntoDb(queryterm = q, verbose = TRUE, only.count = TRUE)
# 1643
from ctrdata.
Great work!
from ctrdata.
Related Issues (20)
- Error message printed with ctrLoadQueryIntoDb() HOT 1
- Trial records not imported into database - stack error
- CTGOV changed website layout HOT 9
- Manual input of trial IDs instead of search functions HOT 5
- Feature request: extract EUCTR results data HOT 1
- Variable fields in EUCTR are not always retrieved HOT 14
- When downloading results from EUCTR, sometimes fails due to error with invalid argument HOT 2
- When downloading result PDFs from EUCTR, sometimes get error of file not found HOT 1
- Certain result documents are causing an error: "No such file or directory" HOT 3
- invalid numeric literal when accumulating information in database HOT 1
- CTGOV2 API call does not filter by study sponsor HOT 7
- Shiny app HOT 4
- Invalid numeric literal HOT 6
- How to cite this package? HOT 3
- Error: Invalid numeric literal at line 1, column 913610 HOT 2
- Recruitment fields for trial on ClinicalTrials.Gov not available through ctrdata? HOT 2
- Incorrect number of trials found with date variables in query URLs for ClinicalTrials.gov HOT 3
- Not working with relaunched CTIS HOT 2
- CTIS query seems not to function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctrdata.