Guest User

Untitled

a guest
Oct 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. @trial.update_attributes({:brief_description => doc.css("brief_summary textblock").text.gsub("\n", ""),
  2. :detailed_description => doc.css('detailed_description textblock').text.gsub("\n", ""),
  3. :study_type => doc.css("study_type").text,
  4. :study_design => doc.css("study_design").text,
  5. :criteria_description => doc.css("eligibility criteria textblock").text.gsub("\n", ""),
  6. :gender => doc.css("eligibility gender").text,
  7. :minimum_age => doc.css("eligibility minimum_age").text,
  8. :maximum_age => doc.css("eligibility maximum_age").text,
  9. :healthy_volunteers => doc.css("eligibility healthy_volunteers").text,
  10. :primary_completion_date => Date.parse(doc.css('primary_completion_date').text), unless doc.css('primary_completion_date').text.blank?
  11. :starts_at => Date.parse(doc.css('start_date').text),
  12. })
Add Comment
Please, Sign In to add comment