Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @trial.update_attributes({:brief_description => doc.css("brief_summary textblock").text.gsub("\n", ""),
- :detailed_description => doc.css('detailed_description textblock').text.gsub("\n", ""),
- :study_type => doc.css("study_type").text,
- :study_design => doc.css("study_design").text,
- :criteria_description => doc.css("eligibility criteria textblock").text.gsub("\n", ""),
- :gender => doc.css("eligibility gender").text,
- :minimum_age => doc.css("eligibility minimum_age").text,
- :maximum_age => doc.css("eligibility maximum_age").text,
- :healthy_volunteers => doc.css("eligibility healthy_volunteers").text,
- :primary_completion_date => Date.parse(doc.css('primary_completion_date').text), unless doc.css('primary_completion_date').text.blank?
- :starts_at => Date.parse(doc.css('start_date').text),
- })
Add Comment
Please, Sign In to add comment