Skip to content

Commit

Permalink
Added result_agreement_data method
Browse files Browse the repository at this point in the history
  • Loading branch information
ievgend2 committed Dec 10, 2023
1 parent 56f850c commit 006800b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/models/study_json_record/processor_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ def responsible_party_data
end

def result_agreement_data
ident = protocol_section['identificationModule']
nct_id = ident['nctId']
certain_agreement = results_section.dig('moreInfoModule', 'certainAgreement')

{
nct_id: nct_id,
pi_employee: certain_agreement['piSponsorEmployee'],
restrictive_agreement: certain_agreement['restrictiveAgreement'],
restriction_type: certain_agreement['restrictionType'],
other_details: certain_agreement['otherDetails']
}
end

def result_contact_data
Expand Down

0 comments on commit 006800b

Please sign in to comment.