Skip to content

Commit

Permalink
Added participant_flow_data method
Browse files Browse the repository at this point in the history
  • Loading branch information
ievgend2 committed Dec 11, 2023
1 parent 56f850c commit 0fb1d09
Show file tree
Hide file tree
Showing 2 changed files with 2,708 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/models/study_json_record/processor_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ def eligibility_data
end

def participant_flow_data
participant_flow = results_section['participantFlowModule']
ident = protocol_section['identificationModule']
nct_id = ident['nctId']

{
nct_id: nct_id,
recruitment_details: participant_flow['recruitmentDetails'],
pre_assignment_details: participant_flow['preAssignmentDetails'],
# units_analyzed: participant_flow['flowTypeUnitsAnalyzed']
}
end

def baseline_measurements_data
Expand Down
Loading

0 comments on commit 0fb1d09

Please sign in to comment.