-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ct.gov connector and parser for ct.gov API v2
Refactor to use v2 API and update URLs that referenced "classic" site for study pages. Connector changes: 1. Recurse over its pages of results -- no longer an option to return more than 100 studies at once when searching with location etc. criteria. 2. Show status messages for both current "page" and overall. 3. Fix #clear, which had not been updated to delete TrialSubgroups when those were added (hence was failing to delete Trials with a reference error). Parser changes: 1. Major changes to switch from XML/xpath to the new JSON format for API responses. 2. Don't re-fetch data for each study individually, data for studies loads in each "page" in the connector and that data for each study is included in the parser object initialization (each parser instance represents handling of data for a single study). 3. Change location matching from exact to substring (via regex). This fixes an issue where e.g. a location of "University of Minnesota/Cancer Center" would not match if the location in the site settings is "University of Minnesota". This was causing data for studies to be incorrectly omitted. 4. New contacts algorithm, V2 API no longer has "contact" and "backup contact". 5. Misc. updates for API changes to case in enumerated values, naming and nesting, etc. Spec changes: Added many tests and updated existing ones for ct.gov parser. Rake task changes: Update for new private connector API. README changes: Include update notes.
- Loading branch information
1 parent
0a17cbe
commit 4c704de
Showing
6 changed files
with
723 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,11 @@ Contact the StudyFinder team at [email protected] if you: | |
- Have any questions about StudyFinder, or | ||
- Want to learn more about updates or enhancements of the tool. | ||
|
||
## Upgrade notes for 2.1 | ||
## Upgrade notes for 2.2 | ||
The built-in clinicaltrials.gov connector has been transitioned fully to the clinicaltrials.gov V2 API. This includes two breaking changes in the private API for the ctgov connector. | ||
|
||
The main page carousel/video feature was an accessibility and usability issue, and has been replaced with a three-wide panel of "featured studies". These can be configured in the admin panel, where the carousel configuration formerly was. | ||
1. In `Connectors::Ctgov#load(start_date,end_date)` the start and end dates must now be in ISO format YYYY-MM-DD (the old format was MM/DD/YYYY). Any custom tasks that directly call this method should be updated. | ||
2. `Connectors::Ctgov#load(start_date,end_date)` now calls `Connectors::Ctgov#process` itself to recurse through the V2 API's paged results. Formerly, `load` and `process` had to be called separately in that order. Remove any direct calls to `process` in order to avoid a redundant re-processing of the last "page" of data from the API. | ||
|
||
## Development | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.