Describes a trial found on ClinicalTrials.gov. More...
Public Member Functions | |
| def | __init__ |
| def | nct |
| def | title |
| Construct the best title possible. More... | |
| def | title |
| def | entered |
| How many years ago was the trial entered into ClinicalTrials.gov. More... | |
| def | last_updated |
| How many years ago was the trial last updated. More... | |
| def | interventions |
| Returns a set of intervention types of the receiver. More... | |
| def | phases |
| Returns a set of phases in drug trials. More... | |
| def | date |
| Returns a tuple of the string date and the parsed Date object for the requested JSON object. More... | |
| def | js |
| The JSON to return for a JSON API call. More... | |
| def | locations_closest_to |
| Returns a list of tuples, containing the trial location and their distance to the provided latitude and longitude. More... | |
| def | cleanup_keywords |
| Cleanup keywords. More... | |
Describes a trial found on ClinicalTrials.gov.
| def clinicaltrials.trial.Trial.__init__ | ( | self, | |
nct = None, |
|||
json = None |
|||
| ) |
| def clinicaltrials.trial.Trial.cleanup_keywords | ( | self, | |
| keywords | |||
| ) |
Cleanup keywords.
| def clinicaltrials.trial.Trial.date | ( | self, | |
| dt | |||
| ) |
Returns a tuple of the string date and the parsed Date object for the requested JSON object.
| def clinicaltrials.trial.Trial.entered | ( | self | ) |
How many years ago was the trial entered into ClinicalTrials.gov.
| def clinicaltrials.trial.Trial.interventions | ( | self | ) |
Returns a set of intervention types of the receiver.
| def clinicaltrials.trial.Trial.js | ( | self | ) |
The JSON to return for a JSON API call.
| def clinicaltrials.trial.Trial.last_updated | ( | self | ) |
How many years ago was the trial last updated.
| def clinicaltrials.trial.Trial.locations_closest_to | ( | self, | |
| lat, | |||
| lng, | |||
limit = 0, |
|||
open_only = True |
|||
| ) |
Returns a list of tuples, containing the trial location and their distance to the provided latitude and longitude.
If limit is > 0 then only the closest x locations are being returned. If open_only is True, only (not yet) recruiting locations are considered.
| def clinicaltrials.trial.Trial.nct | ( | self | ) |
| def clinicaltrials.trial.Trial.phases | ( | self | ) |
Returns a set of phases in drug trials.
Non-drug trials might still declare trial phases, we don't filter those.
| def clinicaltrials.trial.Trial.title | ( | self | ) |
Construct the best title possible.
| def clinicaltrials.trial.Trial.title | ( | self, | |
| value | |||
| ) |
1.8.8