Skip to content

Commit

Permalink
Added check for JSON data protocolSection in the study_data method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier-Jimenez-18 committed Dec 12, 2023
1 parent 1935422 commit 1232d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/study_json_record/processor_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def parsed_data
end

def study_data
return unless protocol_section

ident = protocol_section['identificationModule']
nct_id = ident['nctId']
status = protocol_section['statusModule']
Expand Down

0 comments on commit 1232d6c

Please sign in to comment.