clinical 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +8 -0
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/Rakefile +87 -0
- data/VERSION +1 -0
- data/clinical.gemspec +81 -0
- data/features/finding_clinical_trials.feature +52 -0
- data/features/getting_keywords_and_categories.feature +9 -0
- data/features/step_definitions/clinical_steps.rb +74 -0
- data/features/support/env.rb +6 -0
- data/lib/clinical/address.rb +10 -0
- data/lib/clinical/agency.rb +6 -0
- data/lib/clinical/collaborator.rb +6 -0
- data/lib/clinical/collection.rb +24 -0
- data/lib/clinical/condition.rb +20 -0
- data/lib/clinical/contact.rb +13 -0
- data/lib/clinical/extensions.rb +28 -0
- data/lib/clinical/intervention.rb +13 -0
- data/lib/clinical/lead_sponsor.rb +6 -0
- data/lib/clinical/location.rb +10 -0
- data/lib/clinical/outcome.rb +29 -0
- data/lib/clinical/primary_outcome.rb +6 -0
- data/lib/clinical/secondary_outcome.rb +6 -0
- data/lib/clinical/sponsor.rb +27 -0
- data/lib/clinical/status.rb +42 -0
- data/lib/clinical/trial.rb +181 -0
- data/lib/clinical.rb +29 -0
- data/test/clinical/trial_test.rb +48 -0
- data/test/fixtures/lupus_single.xml +171 -0
- data/test/fixtures/open_set.xml +212 -0
- data/test/test_helper.rb +23 -0
- metadata +127 -0
@@ -0,0 +1,181 @@
|
|
1
|
+
module Clinical
|
2
|
+
class Trial
|
3
|
+
include HappyMapper
|
4
|
+
include HTTParty
|
5
|
+
|
6
|
+
base_uri "http://clinicaltrials.gov"
|
7
|
+
default_params :displayxml => true
|
8
|
+
|
9
|
+
tag "clinical_study"
|
10
|
+
element :nct_id, String, :deep => true
|
11
|
+
element :read_status, Clinical::Status, :tag => "status", :parser => :parse
|
12
|
+
element :overall_status, Clinical::Status, :parser => :parse
|
13
|
+
element :url, String
|
14
|
+
element :short_title, String, :tag => "title"
|
15
|
+
element :official_title, String
|
16
|
+
element :condition_summary, String
|
17
|
+
has_many :condition_items, Clinical::Condition, :tag => "condition", :raw => true
|
18
|
+
|
19
|
+
element :text_phase, String, :tag => "phase"
|
20
|
+
element :study_type, String
|
21
|
+
element :study_design, String
|
22
|
+
|
23
|
+
has_one :lead_sponsor, Clinical::LeadSponsor
|
24
|
+
has_many :collaborators, Clinical::Collaborator
|
25
|
+
has_many :agencies, Clinical::Agency
|
26
|
+
|
27
|
+
has_many :interventions, Intervention, :tag => "intervention"
|
28
|
+
has_many :primary_outcomes, PrimaryOutcome
|
29
|
+
has_many :secondary_outcomes, SecondaryOutcome
|
30
|
+
|
31
|
+
has_many :locations, Location, :tag => "location"
|
32
|
+
element :start_date, Date
|
33
|
+
element :end_date, Date
|
34
|
+
|
35
|
+
element :last_changed_at, Date, :tag => "lastchanged_date"
|
36
|
+
|
37
|
+
element :minimum_age, String, :tag => "eligibility/minimum_age"
|
38
|
+
element :maximum_age, String, :tag => "eligibility/maximum_age"
|
39
|
+
element :gender, String, :tag => "eligibility/gender"
|
40
|
+
element :healthy_volunteers, String, :tag => "eligibility/healthy_volunteers"
|
41
|
+
|
42
|
+
element :participant_quantity, Integer, :tag => "enrollment"
|
43
|
+
|
44
|
+
element :url, String, :tag => "required_header/url"
|
45
|
+
element :eligibility_criteria, String, :tag => "eligibility/criteria/textblock"
|
46
|
+
|
47
|
+
element :brief_summary, String, :tag => "brief_summary/textblock"
|
48
|
+
element :detailed_description, String, :tag => "brief_summary/textblock"
|
49
|
+
|
50
|
+
attr_reader :keywords
|
51
|
+
attr_reader :categories
|
52
|
+
attr_reader :terms
|
53
|
+
|
54
|
+
def id
|
55
|
+
self.nct_id
|
56
|
+
end
|
57
|
+
|
58
|
+
def open?
|
59
|
+
self.status && self.status.open?
|
60
|
+
end
|
61
|
+
|
62
|
+
def sponsors
|
63
|
+
@sponsors ||= [lead_sponsor, (collaborators || []), (agencies || [])].flatten
|
64
|
+
end
|
65
|
+
|
66
|
+
def outcomes
|
67
|
+
@outcomes ||= [primary_outcomes, secondary_outcomes].flatten
|
68
|
+
end
|
69
|
+
|
70
|
+
def status
|
71
|
+
self.read_status || self.overall_status
|
72
|
+
end
|
73
|
+
|
74
|
+
def conditions
|
75
|
+
if condition_items.nil? || condition_items.empty?
|
76
|
+
condition_summary.nil? ? nil : condition_summary.split(";")
|
77
|
+
else
|
78
|
+
condition_items
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def phase
|
83
|
+
self.text_phase.gsub(/phase /i, "").to_i
|
84
|
+
end
|
85
|
+
|
86
|
+
#this metadata is not accessible in the feed so crawl the html page
|
87
|
+
#to get keywords, categories, and terms
|
88
|
+
def get_metadata
|
89
|
+
response = self.class.get("/show/#{id}", :query => {:displayxml => false})
|
90
|
+
html = Nokogiri::HTML(response.body)
|
91
|
+
|
92
|
+
metadata = {}
|
93
|
+
|
94
|
+
{
|
95
|
+
:terms => 0,
|
96
|
+
:categories => 1,
|
97
|
+
:keywords => 2
|
98
|
+
}.each do |key, value|
|
99
|
+
|
100
|
+
metadata[key] = []
|
101
|
+
html.search("div.indent3:nth-last-child(#{value}) td").each do |td|
|
102
|
+
metadata[key] += td.inner_html.split(/\<br\>/).collect{|i| i.strip}
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
@terms, @categories, @keywords = metadata[:terms], metadata[:categories], metadata[:keywords]
|
108
|
+
metadata
|
109
|
+
end
|
110
|
+
|
111
|
+
class << self
|
112
|
+
def find_by_id(id)
|
113
|
+
response = get("/show/#{id}")
|
114
|
+
if response.code == 400
|
115
|
+
nil
|
116
|
+
else
|
117
|
+
begin
|
118
|
+
parse(response.body)
|
119
|
+
rescue LibXML::XML::Error
|
120
|
+
return nil
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
def find(*args)
|
126
|
+
options = args.extract_options!
|
127
|
+
|
128
|
+
options[:page] ||= 1
|
129
|
+
options[:per_page] ||= 20
|
130
|
+
|
131
|
+
query = query_hash_for(*[args, options])
|
132
|
+
response = get("/search", :query => query)
|
133
|
+
trials = Collection.create_from_results(options[:page],
|
134
|
+
options[:per_page],
|
135
|
+
response.body)
|
136
|
+
|
137
|
+
if options[:extended]
|
138
|
+
fetch_more_details(trials)
|
139
|
+
else
|
140
|
+
trials
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
def query_hash_for(*args)
|
145
|
+
query = {}
|
146
|
+
options = args.extract_options! || {}
|
147
|
+
|
148
|
+
conditions = options[:conditions] || {}
|
149
|
+
query["start"] = (options[:per_page] * options[:page]) - (options[:per_page] - 1)
|
150
|
+
unless conditions[:recruiting].nil?
|
151
|
+
query["recr"] = conditions[:recruiting] ? "open" : "closed"
|
152
|
+
end
|
153
|
+
query["term"] = args.first if args.first.is_a?(String)
|
154
|
+
|
155
|
+
{
|
156
|
+
:condition => "cond",
|
157
|
+
:sponsor => "spons",
|
158
|
+
:intervention => "intr",
|
159
|
+
:outcome => "outc",
|
160
|
+
:sponsor => "spons"
|
161
|
+
}.each do |key,value|
|
162
|
+
query[value] = conditions[key] unless conditions[key].nil?
|
163
|
+
end
|
164
|
+
|
165
|
+
query
|
166
|
+
end
|
167
|
+
|
168
|
+
def extract_options!
|
169
|
+
last.is_a?(Hash) ? pop : { }
|
170
|
+
end
|
171
|
+
|
172
|
+
private
|
173
|
+
def fetch_more_details(trials)
|
174
|
+
detailed_trials = trials.collect {|i| find_by_id(i.id)}
|
175
|
+
Collection.create(trials.current_page, trials.per_page, trials.count || 0) do |pager|
|
176
|
+
pager.replace(detailed_trials)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
data/lib/clinical.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
|
3
|
+
require "will_paginate"
|
4
|
+
require "httparty"
|
5
|
+
require "happymapper"
|
6
|
+
require "nokogiri"
|
7
|
+
|
8
|
+
require "clinical/extensions"
|
9
|
+
|
10
|
+
require "clinical/status"
|
11
|
+
require "clinical/intervention"
|
12
|
+
require "clinical/outcome"
|
13
|
+
require "clinical/primary_outcome"
|
14
|
+
require "clinical/secondary_outcome"
|
15
|
+
|
16
|
+
require "clinical/condition"
|
17
|
+
|
18
|
+
require "clinical/sponsor"
|
19
|
+
require "clinical/lead_sponsor"
|
20
|
+
require "clinical/agency"
|
21
|
+
require "clinical/collaborator"
|
22
|
+
|
23
|
+
require "clinical/address"
|
24
|
+
require "clinical/contact"
|
25
|
+
require "clinical/location"
|
26
|
+
|
27
|
+
require "clinical/trial"
|
28
|
+
|
29
|
+
require "clinical/collection"
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class Clinical::TrialTest < Test::Unit::TestCase
|
4
|
+
context "when finding based on a hash of conditions" do
|
5
|
+
setup do
|
6
|
+
register_response("/search?displayxml=true&start=1&recr=open", "open_set")
|
7
|
+
end
|
8
|
+
|
9
|
+
should "return a paginated list of trials" do
|
10
|
+
@trials = Clinical::Trial.find({:conditions => {:recruiting => true}})
|
11
|
+
assert_instance_of Clinical::Collection, @trials
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
context "a trial" do
|
16
|
+
setup do
|
17
|
+
@npi_id = "NPI5245"
|
18
|
+
register_response("/show/NPI5245?displayxml=true", "lupus_single")
|
19
|
+
@trial = Clinical::Trial.find_by_id(@npi_id)
|
20
|
+
end
|
21
|
+
|
22
|
+
should "have a status" do
|
23
|
+
assert_not_nil @trial.status
|
24
|
+
end
|
25
|
+
|
26
|
+
should "indicate whether the trial is open" do
|
27
|
+
assert_equal @trial.open?, @trial.status.open?
|
28
|
+
end
|
29
|
+
|
30
|
+
should "have a location" do
|
31
|
+
assert_not_nil @trial.locations
|
32
|
+
assert !@trial.locations.empty?
|
33
|
+
end
|
34
|
+
|
35
|
+
should "have a start date" do
|
36
|
+
assert_not_nil @trial.start_date
|
37
|
+
end
|
38
|
+
|
39
|
+
should "have a location with an address" do
|
40
|
+
assert !@trial.locations[0].address.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
should "have a study type" do
|
44
|
+
assert_not_nil @trial.study_type
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,171 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Date: Sat, 27 Jun 2009 19:11:20 GMT
|
3
|
+
Set-Cookie: CTOpts=6ihzm6CLRiWguT0gEyUgzw-R98Ly0RGHhgE; Path=/ct2/
|
4
|
+
Expires: Sat, 27 Jun 2009 19:11:21 GMT
|
5
|
+
Content-Type: text/xml;charset=UTF-8
|
6
|
+
Content-Length: 7971
|
7
|
+
Set-Cookie: BIGipServerctgov-http-pool=290524802.22610.0000; path=/
|
8
|
+
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<clinical_study>
|
11
|
+
<required_header>
|
12
|
+
<download_date>Information obtained from ClinicalTrials.gov on June 26, 2009</download_date>
|
13
|
+
<link_text>Link to the current ClinicalTrials.gov record.</link_text>
|
14
|
+
<url>http://clinicaltrials.gov/show/NCT00001372</url>
|
15
|
+
</required_header>
|
16
|
+
<id_info>
|
17
|
+
<org_study_id>940066</org_study_id>
|
18
|
+
<secondary_id>94-AR-0066</secondary_id>
|
19
|
+
<nct_id>NCT00001372</nct_id>
|
20
|
+
</id_info>
|
21
|
+
<brief_title>Study of Systemic Lupus Erythematosus</brief_title>
|
22
|
+
<official_title>Studies of the Pathogenesis and Natural History of Systemic Lupus Erythematosus (SLE)</official_title>
|
23
|
+
<sponsors>
|
24
|
+
<lead_sponsor>
|
25
|
+
<agency>National Institute of Arthritis and Musculoskeletal and Skin Diseases (NIAMS)</agency>
|
26
|
+
</lead_sponsor>
|
27
|
+
</sponsors>
|
28
|
+
<source>National Institutes of Health Clinical Center (CC)</source>
|
29
|
+
<oversight_info>
|
30
|
+
<authority>United States: Federal Government</authority>
|
31
|
+
</oversight_info>
|
32
|
+
<brief_summary>
|
33
|
+
<textblock>
|
34
|
+
This protocol will evaluate patients with systemic lupus erythematosus (SLE) and their
|
35
|
+
relatives to learn more about how the disease develops and changes over time. It will also
|
36
|
+
study genetic factors that make a person susceptible to SLE.
|
37
|
+
|
38
|
+
Patients 10 years of age and older with known or suspected SLE and their relatives may be
|
39
|
+
eligible for this study. Patients will be evaluated with a medical history and physical
|
40
|
+
examination, blood and urine tests. Other procedures may include:
|
41
|
+
|
42
|
+
1. Electrocardiogram
|
43
|
+
|
44
|
+
2. 24-hour urine collection
|
45
|
+
|
46
|
+
3. Imaging studies, such as chest and joint X-rays, magnetic resonance imaging (MRI) scans,
|
47
|
+
bone scans, and bone densitometry.
|
48
|
+
|
49
|
+
4. Questionnaire about the degree of disease activity, and survey of risk factors for
|
50
|
+
disease complications.
|
51
|
+
|
52
|
+
5. Apheresis-Collection of plasma (fluid portion of blood) or blood cells for analysis.
|
53
|
+
Whole blood is collected through a needle in an arm vein. The blood circulates through
|
54
|
+
a machine that separates it into its components. The required component (plasma or
|
55
|
+
cells) is removed and the rest of the blood is returned to the body through the same
|
56
|
+
needle or through a second needle in the other arm.
|
57
|
+
|
58
|
+
6. Skin biopsy-Removal of a small skin sample for microscopic analysis. An area of skin is
|
59
|
+
numbed with an anesthetic and a small circular portion (about 1/4 inch in diameter) is
|
60
|
+
removed, using a sharp cookie cutter-type instrument.
|
61
|
+
|
62
|
+
7. Kidney, bone marrow or other organ biopsy-Removal of a small sample of organ tissue.
|
63
|
+
These biopsies are done only if they can provide information useful in better
|
64
|
+
understanding the disease or making treatment decisions.
|
65
|
+
|
66
|
+
8. Genetic studies-Collection of a blood sample for gene testing.
|
67
|
+
|
68
|
+
Patients will be followed at least once a year with a brief history and physical examination
|
69
|
+
and routine blood and urine tests. Some patients may be seen more often. Treatment
|
70
|
+
recommendations will be offered to patients' physicians, and patients who are eligible for
|
71
|
+
other research treatment studies will be invited to enroll.
|
72
|
+
|
73
|
+
Participating relatives of patients will fill out a brief medical history questionnaire and
|
74
|
+
provide a DNA sample (either a blood sample or tissue swab from the inside of the cheek) for
|
75
|
+
genetic testing.
|
76
|
+
</textblock>
|
77
|
+
</brief_summary>
|
78
|
+
<detailed_description>
|
79
|
+
<textblock>
|
80
|
+
This research protocol will evaluate subjects with systemic lupus erythematosus (SLE) and
|
81
|
+
their relatives to study the pathogenesis and natural history of the disease. Patients will
|
82
|
+
be evaluated by a history and physical examination and routine laboratory studies will be
|
83
|
+
obtained as needed to assess disease activity or complications of the disease and to monitor
|
84
|
+
for drug-related toxicities. Blood, skin or urine specimens may be requested for
|
85
|
+
laboratory-based research investigations. DNA will be isolated from eligible subjects for
|
86
|
+
genetic studies. Patients who are eligible for other research protocols will be offered the
|
87
|
+
opportunity to participate in these studies by signed informed consent. Any medical care
|
88
|
+
recommended or provided to the patient will be consistent with routine standards of practice
|
89
|
+
and provided in consultation with the patient's referring physician.
|
90
|
+
</textblock>
|
91
|
+
</detailed_description>
|
92
|
+
<overall_status>Recruiting</overall_status>
|
93
|
+
<start_date>February 1994</start_date>
|
94
|
+
<phase>N/A</phase>
|
95
|
+
<study_type>Observational</study_type>
|
96
|
+
<study_design>N/A</study_design>
|
97
|
+
<condition>Lupus Nephritis</condition>
|
98
|
+
<condition>Systemic Lupus Erythematosus</condition>
|
99
|
+
<eligibility>
|
100
|
+
<criteria>
|
101
|
+
<textblock>
|
102
|
+
- INCLUSION CRITERIA
|
103
|
+
|
104
|
+
SLE or suspected SLE established by ARA criteria.
|
105
|
+
|
106
|
+
Ability to give informed consent .
|
107
|
+
|
108
|
+
Adult and minor relatives (first and second degree) of individuals included in III-A-1
|
109
|
+
(only for genetic studies) .
|
110
|
+
|
111
|
+
Willingness of the patient's or minor relative's parents to give informed consent (only for
|
112
|
+
genetic studies).
|
113
|
+
|
114
|
+
Adult healthy volunteers (for punch biopsy of the skin and bone marrow biopsy).
|
115
|
+
|
116
|
+
EXCLUSION CRITERIA:
|
117
|
+
|
118
|
+
Concomitant medical problems which would confound the interpretation of studies gathered by
|
119
|
+
this protocol. Included in this is the presence of HIV in the blood if it interferes with
|
120
|
+
interpretation of some lupus studies.
|
121
|
+
|
122
|
+
Concomitant medical, surgical or other conditions for which inadequate facilities are
|
123
|
+
available to support their care at the NIH .
|
124
|
+
</textblock>
|
125
|
+
</criteria>
|
126
|
+
<gender>Both</gender>
|
127
|
+
<minimum_age>N/A</minimum_age>
|
128
|
+
<maximum_age>N/A</maximum_age>
|
129
|
+
<healthy_volunteers>Accepts Healthy Volunteers</healthy_volunteers>
|
130
|
+
</eligibility>
|
131
|
+
<overall_contact>
|
132
|
+
<last_name>Patient Recruitment and Public Liaison Office</last_name>
|
133
|
+
<phone>(800) 411-1222</phone>
|
134
|
+
<email>prpl@mail.cc.nih.gov</email>
|
135
|
+
</overall_contact>
|
136
|
+
<overall_contact_backup>
|
137
|
+
<last_name>TTY</last_name>
|
138
|
+
<phone>1-866-411-1010</phone>
|
139
|
+
</overall_contact_backup>
|
140
|
+
<location>
|
141
|
+
<facility>
|
142
|
+
<name>National Institutes of Health Clinical Center, 9000 Rockville Pike</name>
|
143
|
+
<address>
|
144
|
+
<city>Bethesda</city>
|
145
|
+
<state>Maryland</state>
|
146
|
+
<zip>20892</zip>
|
147
|
+
<country>United States</country>
|
148
|
+
</address>
|
149
|
+
</facility>
|
150
|
+
<status>Recruiting</status>
|
151
|
+
</location>
|
152
|
+
<link>
|
153
|
+
<url>http://clinicalstudies.info.nih.gov/detail/A_1994-AR-0066.html</url>
|
154
|
+
<description>NIH Clinical Center Detailed Web Page</description>
|
155
|
+
</link>
|
156
|
+
<reference>
|
157
|
+
<citation>Boumpas DT, Fessler BJ, Austin HA 3rd, Balow JE, Klippel JH, Lockshin MD. Systemic lupus erythematosus: emerging concepts. Part 2: Dermatologic and joint disease, the antiphospholipid antibody syndrome, pregnancy and hormonal therapy, morbidity and mortality, and pathogenesis. Ann Intern Med. 1995 Jul 1;123(1):42-53. Review.</citation>
|
158
|
+
<PMID>7762914</PMID>
|
159
|
+
</reference>
|
160
|
+
<reference>
|
161
|
+
<citation>Emlen W, Niebur J, Kadera R. Accelerated in vitro apoptosis of lymphocytes from patients with systemic lupus erythematosus. J Immunol. 1994 Apr 1;152(7):3685-92.</citation>
|
162
|
+
<PMID>8144943</PMID>
|
163
|
+
</reference>
|
164
|
+
<reference>
|
165
|
+
<citation>Casciola-Rosen LA, Anhalt G, Rosen A. Autoantigens targeted in systemic lupus erythematosus are clustered in two populations of surface structures on apoptotic keratinocytes. J Exp Med. 1994 Apr 1;179(4):1317-30.</citation>
|
166
|
+
<PMID>7511686</PMID>
|
167
|
+
</reference>
|
168
|
+
<verification_date>October 2008</verification_date>
|
169
|
+
<lastchanged_date>November 25, 2008</lastchanged_date>
|
170
|
+
<firstreceived_date>November 3, 1999</firstreceived_date>
|
171
|
+
</clinical_study>
|
@@ -0,0 +1,212 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Date: Fri, 26 Jun 2009 21:40:41 GMT
|
3
|
+
Set-Cookie: CTOpts=6ihzm6CLRiFiQRcyCyUgzw-R98LyNR4i-CE; Path=/ct2/
|
4
|
+
Expires: Fri, 26 Jun 2009 21:40:42 GMT
|
5
|
+
Content-Type: text/xml;charset=UTF-8
|
6
|
+
Content-Length: 9221
|
7
|
+
Set-Cookie: BIGipServerctgov-http-pool=189861506.22610.0000; path=/
|
8
|
+
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<search_results count="28928">
|
11
|
+
<query>( "Recruiting" OR "Not yet recruiting" OR "Available" ) [SUMMARY-STATUS]</query>
|
12
|
+
<clinical_study>
|
13
|
+
<order>1</order>
|
14
|
+
<score>0.9801</score>
|
15
|
+
<nct_id>NCT00004400</nct_id>
|
16
|
+
<url>http://ClinicalTrials.gov/show/NCT00004400</url>
|
17
|
+
<title>Phase II Randomized Study of Physiologic Testosterone Replacement in Premenopausal, HIV-Positive Women</title>
|
18
|
+
<status open="Y">Recruiting</status>
|
19
|
+
<condition_summary>HIV Infections; Cachexia</condition_summary>
|
20
|
+
<last_changed>June 23, 2005</last_changed>
|
21
|
+
</clinical_study>
|
22
|
+
<clinical_study>
|
23
|
+
<order>2</order>
|
24
|
+
<score>0.9801</score>
|
25
|
+
<nct_id>NCT00005100</nct_id>
|
26
|
+
<url>http://ClinicalTrials.gov/show/NCT00005100</url>
|
27
|
+
<title>Measurement of Outcome of Surgical Treatment in Patients With Acromegaly</title>
|
28
|
+
<status open="Y">Recruiting</status>
|
29
|
+
<condition_summary>Acromegaly</condition_summary>
|
30
|
+
<last_changed>June 23, 2005</last_changed>
|
31
|
+
</clinical_study>
|
32
|
+
<clinical_study>
|
33
|
+
<order>3</order>
|
34
|
+
<score>0.9801</score>
|
35
|
+
<nct_id>NCT00011700</nct_id>
|
36
|
+
<url>http://ClinicalTrials.gov/show/NCT00011700</url>
|
37
|
+
<title>Stachybotrys Induced Hemorrhage in the Developing Lung</title>
|
38
|
+
<status open="Y">Recruiting</status>
|
39
|
+
<condition_summary>Idiopathic Pulmonary Hemorrhage</condition_summary>
|
40
|
+
<last_changed>December 1, 2006</last_changed>
|
41
|
+
</clinical_study>
|
42
|
+
<clinical_study>
|
43
|
+
<order>4</order>
|
44
|
+
<score>0.9801</score>
|
45
|
+
<nct_id>NCT00041600</nct_id>
|
46
|
+
<url>http://ClinicalTrials.gov/show/NCT00041600</url>
|
47
|
+
<title>Human Epilepsy Genetics--Neuronal Migration Disorders Study</title>
|
48
|
+
<status open="Y">Recruiting</status>
|
49
|
+
<condition_summary>Epilepsy; Seizures; Cognition Disorders; Neuronal Migration Disorders</condition_summary>
|
50
|
+
<last_changed>February 3, 2009</last_changed>
|
51
|
+
</clinical_study>
|
52
|
+
<clinical_study>
|
53
|
+
<order>5</order>
|
54
|
+
<score>0.9801</score>
|
55
|
+
<nct_id>NCT00044200</nct_id>
|
56
|
+
<url>http://ClinicalTrials.gov/show/NCT00044200</url>
|
57
|
+
<title>Positron Emission Tomography (PET) to Study Brain Signaling</title>
|
58
|
+
<status open="Y">Recruiting</status>
|
59
|
+
<condition_summary>Healthy</condition_summary>
|
60
|
+
<last_changed>June 9, 2009</last_changed>
|
61
|
+
</clinical_study>
|
62
|
+
<clinical_study>
|
63
|
+
<order>6</order>
|
64
|
+
<score>0.9801</score>
|
65
|
+
<nct_id>NCT00050700</nct_id>
|
66
|
+
<url>http://ClinicalTrials.gov/show/NCT00050700</url>
|
67
|
+
<title>Brain Imaging in Depression</title>
|
68
|
+
<status open="Y">Recruiting</status>
|
69
|
+
<condition_summary>Depression; Bipolar Disorder</condition_summary>
|
70
|
+
<last_changed>June 9, 2009</last_changed>
|
71
|
+
</clinical_study>
|
72
|
+
<clinical_study>
|
73
|
+
<order>7</order>
|
74
|
+
<score>0.9801</score>
|
75
|
+
<nct_id>NCT00062400</nct_id>
|
76
|
+
<url>http://ClinicalTrials.gov/show/NCT00062400</url>
|
77
|
+
<title>Assessing Women's Attitudes About the Risk of Infertility Related to Adjuvant Therapy for Early Breast Cancer</title>
|
78
|
+
<status open="Y">Recruiting</status>
|
79
|
+
<condition_summary>Breast Cancer; Psychosocial Effects/Treatment; Sexual Dysfunction and Infertility; Sexuality and Reproductive Issues</condition_summary>
|
80
|
+
<last_changed>June 16, 2009</last_changed>
|
81
|
+
</clinical_study>
|
82
|
+
<clinical_study>
|
83
|
+
<order>8</order>
|
84
|
+
<score>0.9801</score>
|
85
|
+
<nct_id>NCT00083200</nct_id>
|
86
|
+
<url>http://ClinicalTrials.gov/show/NCT00083200</url>
|
87
|
+
<title>Two Dose Levels of Capecitabine With Docetaxel in Treating Women With Locally Advanced or Metastatic Breast Cancer That Has Not Responded to Previous Anthracycline-Based Chemotherapy</title>
|
88
|
+
<status open="Y">Recruiting</status>
|
89
|
+
<condition_summary>Breast Cancer</condition_summary>
|
90
|
+
<last_changed>February 26, 2009</last_changed>
|
91
|
+
</clinical_study>
|
92
|
+
<clinical_study>
|
93
|
+
<order>9</order>
|
94
|
+
<score>0.9801</score>
|
95
|
+
<nct_id>NCT00096200</nct_id>
|
96
|
+
<url>http://ClinicalTrials.gov/show/NCT00096200</url>
|
97
|
+
<title>Sorafenib With or Without Paclitaxel and Carboplatin in Treating Patients With Recurrent Ovarian Cancer, Primary Peritoneal Cancer, or Fallopian Tube Cancer</title>
|
98
|
+
<status open="Y">Recruiting</status>
|
99
|
+
<condition_summary>Fallopian Tube Cancer; Ovarian Cancer; Peritoneal Cavity Cancer</condition_summary>
|
100
|
+
<last_changed>May 5, 2009</last_changed>
|
101
|
+
</clinical_study>
|
102
|
+
<clinical_study>
|
103
|
+
<order>10</order>
|
104
|
+
<score>0.9801</score>
|
105
|
+
<nct_id>NCT00115700</nct_id>
|
106
|
+
<url>http://ClinicalTrials.gov/show/NCT00115700</url>
|
107
|
+
<title>Radiotherapy Versus Radiotherapy Plus Chemotherapy in Early Stage Follicular Lymphoma</title>
|
108
|
+
<status open="Y">Recruiting</status>
|
109
|
+
<condition_summary>Follicular Lymphoma</condition_summary>
|
110
|
+
<last_changed>May 6, 2009</last_changed>
|
111
|
+
</clinical_study>
|
112
|
+
<clinical_study>
|
113
|
+
<order>11</order>
|
114
|
+
<score>0.9801</score>
|
115
|
+
<nct_id>NCT00124800</nct_id>
|
116
|
+
<url>http://ClinicalTrials.gov/show/NCT00124800</url>
|
117
|
+
<title>The Effect of Tinnitus Retraining Therapy on Subjective and Objective Measures of Chronic Tinnitus</title>
|
118
|
+
<status open="Y">Recruiting</status>
|
119
|
+
<condition_summary>Tinnitus</condition_summary>
|
120
|
+
<last_changed>February 10, 2009</last_changed>
|
121
|
+
</clinical_study>
|
122
|
+
<clinical_study>
|
123
|
+
<order>12</order>
|
124
|
+
<score>0.9801</score>
|
125
|
+
<nct_id>NCT00136500</nct_id>
|
126
|
+
<url>http://ClinicalTrials.gov/show/NCT00136500</url>
|
127
|
+
<title>Familial Amyotrophic Lateral Sclerosis (FALS) Study</title>
|
128
|
+
<status open="Y">Recruiting</status>
|
129
|
+
<condition_summary>Amyotrophic Lateral Sclerosis</condition_summary>
|
130
|
+
<last_changed>February 16, 2009</last_changed>
|
131
|
+
</clinical_study>
|
132
|
+
<clinical_study>
|
133
|
+
<order>13</order>
|
134
|
+
<score>0.9801</score>
|
135
|
+
<nct_id>NCT00135200</nct_id>
|
136
|
+
<url>http://ClinicalTrials.gov/show/NCT00135200</url>
|
137
|
+
<title>Clinical Trial of Consolidation Treatment With Iodine I 131 Tositumomab for Multiple Myeloma</title>
|
138
|
+
<status open="Y">Recruiting</status>
|
139
|
+
<condition_summary>Multiple Myeloma</condition_summary>
|
140
|
+
<last_changed>March 7, 2009</last_changed>
|
141
|
+
</clinical_study>
|
142
|
+
<clinical_study>
|
143
|
+
<order>14</order>
|
144
|
+
<score>0.9801</score>
|
145
|
+
<nct_id>NCT00153400</nct_id>
|
146
|
+
<url>http://ClinicalTrials.gov/show/NCT00153400</url>
|
147
|
+
<title>California WISEWOMAN Project</title>
|
148
|
+
<status open="Y">Not yet recruiting</status>
|
149
|
+
<condition_summary>Cardiovascular Diseases; Chronic Diseases</condition_summary>
|
150
|
+
<last_changed>February 10, 2006</last_changed>
|
151
|
+
</clinical_study>
|
152
|
+
<clinical_study>
|
153
|
+
<order>15</order>
|
154
|
+
<score>0.9801</score>
|
155
|
+
<nct_id>NCT00157300</nct_id>
|
156
|
+
<url>http://ClinicalTrials.gov/show/NCT00157300</url>
|
157
|
+
<title>PROTECT: Prospective Trial on Erythropoietin in Clinical Transplantation</title>
|
158
|
+
<status open="Y">Recruiting</status>
|
159
|
+
<condition_summary>Patients Receiving a Kidney From a Non-Heart-Beating Donor</condition_summary>
|
160
|
+
<last_changed>September 19, 2007</last_changed>
|
161
|
+
</clinical_study>
|
162
|
+
<clinical_study>
|
163
|
+
<order>16</order>
|
164
|
+
<score>0.9801</score>
|
165
|
+
<nct_id>NCT00162500</nct_id>
|
166
|
+
<url>http://ClinicalTrials.gov/show/NCT00162500</url>
|
167
|
+
<title>A Novel Vaccine for the Treatment of MUC1-Expressing Tumor Malignancies</title>
|
168
|
+
<status open="Y">Not yet recruiting</status>
|
169
|
+
<condition_summary>Multiple Myeloma; Tumors</condition_summary>
|
170
|
+
<last_changed>January 9, 2007</last_changed>
|
171
|
+
</clinical_study>
|
172
|
+
<clinical_study>
|
173
|
+
<order>17</order>
|
174
|
+
<score>0.9801</score>
|
175
|
+
<nct_id>NCT00172900</nct_id>
|
176
|
+
<url>http://ClinicalTrials.gov/show/NCT00172900</url>
|
177
|
+
<title>MRS and DTI of White Matter in Alzheimer's Disease</title>
|
178
|
+
<status open="Y">Recruiting</status>
|
179
|
+
<condition_summary>Alzheimer's Disease; Vascular Dementia</condition_summary>
|
180
|
+
<last_changed>December 20, 2005</last_changed>
|
181
|
+
</clinical_study>
|
182
|
+
<clinical_study>
|
183
|
+
<order>18</order>
|
184
|
+
<score>0.9801</score>
|
185
|
+
<nct_id>NCT00167700</nct_id>
|
186
|
+
<url>http://ClinicalTrials.gov/show/NCT00167700</url>
|
187
|
+
<title>The Effects of Maternal Nutrition During Pregnancy and Breast Feeding on the Risk of Allergic Disease in Child</title>
|
188
|
+
<status open="Y">Recruiting</status>
|
189
|
+
<condition_summary>Atopic Eczema; Rhinitis; Asthma</condition_summary>
|
190
|
+
<last_changed>June 9, 2008</last_changed>
|
191
|
+
</clinical_study>
|
192
|
+
<clinical_study>
|
193
|
+
<order>19</order>
|
194
|
+
<score>0.9801</score>
|
195
|
+
<nct_id>NCT00179400</nct_id>
|
196
|
+
<url>http://ClinicalTrials.gov/show/NCT00179400</url>
|
197
|
+
<title>Insulin Action in Individuals With Type 2 Diabetes by Natural Fatty Acids or the Medication Pioglitazone</title>
|
198
|
+
<status open="Y">Recruiting</status>
|
199
|
+
<condition_summary>Type 2 Diabetes Mellitus</condition_summary>
|
200
|
+
<last_changed>September 13, 2005</last_changed>
|
201
|
+
</clinical_study>
|
202
|
+
<clinical_study>
|
203
|
+
<order>20</order>
|
204
|
+
<score>0.9801</score>
|
205
|
+
<nct_id>NCT00182000</nct_id>
|
206
|
+
<url>http://ClinicalTrials.gov/show/NCT00182000</url>
|
207
|
+
<title>Effectiveness of D-Cycloserine as an Aid to Enhance Learning for Individuals With OCD Receiving Behavior Therapy</title>
|
208
|
+
<status open="Y">Recruiting</status>
|
209
|
+
<condition_summary>Obsessive-Compulsive Disorder</condition_summary>
|
210
|
+
<last_changed>September 7, 2007</last_changed>
|
211
|
+
</clinical_study>
|
212
|
+
</search_results>
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'test/unit'
|
3
|
+
require 'shoulda'
|
4
|
+
require 'fakeweb'
|
5
|
+
|
6
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
7
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
8
|
+
require 'clinical'
|
9
|
+
|
10
|
+
begin require "redgreen" rescue Exceptions; end
|
11
|
+
|
12
|
+
FakeWeb.allow_net_connect = false
|
13
|
+
|
14
|
+
class Test::Unit::TestCase
|
15
|
+
def register_response(path, fixture)
|
16
|
+
FakeWeb.register_uri("http://clinicaltrials.gov:80#{path}",
|
17
|
+
:response => xml_fixture_path(fixture))
|
18
|
+
end
|
19
|
+
|
20
|
+
def xml_fixture_path(fixture)
|
21
|
+
File.join(File.dirname(__FILE__), "fixtures", "#{fixture}.xml")
|
22
|
+
end
|
23
|
+
end
|