Clinical Trials Python Client  1.0
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
clinicaltrials.trial.TrialLocation Class Reference

An object representing a trial location. More...

Inheritance diagram for clinicaltrials.trial.TrialLocation:

Public Member Functions

def __init__
 
def address_parts
 
def best_contact
 Tries to find the best contact data for this location, starting with "contact", then "contact_backup", then the trial's "overall_contact". More...
 
def is_open
 Checks the receiver's status and determines whether this location is (or will be) recruiting patients. More...
 
def city
 
def km_distance_from
 Calculates the distance in kilometers between the location and the given lat/long pair using the Haversine formula. More...
 
def json
 

Public Attributes

 trial
 
 status
 
 contact
 
 contact_backup
 
 facility
 
 pi
 
 geo
 

Detailed Description

An object representing a trial location.

Constructor & Destructor Documentation

def clinicaltrials.trial.TrialLocation.__init__ (   self,
  trial,
  json_loc = None 
)

Member Function Documentation

def clinicaltrials.trial.TrialLocation.address_parts (   self)
def clinicaltrials.trial.TrialLocation.best_contact (   self)

Tries to find the best contact data for this location, starting with "contact", then "contact_backup", then the trial's "overall_contact".

def clinicaltrials.trial.TrialLocation.city (   self)
def clinicaltrials.trial.TrialLocation.is_open (   self)

Checks the receiver's status and determines whether this location is (or will be) recruiting patients.

:returns: A bool indicating whether this location is or will be recruiting

def clinicaltrials.trial.TrialLocation.json (   self)
def clinicaltrials.trial.TrialLocation.km_distance_from (   self,
  lat,
  lng 
)

Calculates the distance in kilometers between the location and the given lat/long pair using the Haversine formula.

Member Data Documentation

clinicaltrials.trial.TrialLocation.contact
clinicaltrials.trial.TrialLocation.contact_backup
clinicaltrials.trial.TrialLocation.facility
clinicaltrials.trial.TrialLocation.geo
clinicaltrials.trial.TrialLocation.pi
clinicaltrials.trial.TrialLocation.status
clinicaltrials.trial.TrialLocation.trial

The documentation for this class was generated from the following file: