Skip to content

Commit

Permalink
wth - (SPARCRequest & SPARCDashboard) Update/Pull Pro# for Validated …
Browse files Browse the repository at this point in the history
…Protocols

Background: Once a protocol has a RMID associated, and that RMID is validated (because its eIRB record is one of the validated states), the short title and long title has now being updated via a cronjob, and the "Updated to corresponding Research Master ID record...." label next to the fields to indicate.

Please add the functionality of updating Pro# according to the eIRB Pro# associated with a validated eIRB record via RMID of the protocol, and display the validation visual cue.

[#151209478]

Story - https://www.pivotaltracker.com/story/show/151209478

added cue
  • Loading branch information
William Holt committed Sep 22, 2017
1 parent 5de4514 commit 7470019
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
= t(:protocols)[:studies][:research_involving][:humans][:pro_number]
.col-lg-8
= human_info.pro_number
= display_rmid_validated_protocol(human_info.protocol, 'Pro Number')

%tr
%td
%label.col-lg-4
Expand Down
5 changes: 5 additions & 0 deletions lib/tasks/update_protocol_with_validated_rm.rake
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ namespace :data do
title: vrm['long_title'],
rmid_validated: true
)
if protocol_to_update.has_human_subject_info?
protocol_to_update
.human_subjects_info
.update_attribute(:pro_number, vrm['pro_number'])
end
end
progress_bar.increment!
end
Expand Down

0 comments on commit 7470019

Please sign in to comment.