Branch Coverage

lib/Convert/Pheno/REDCap.pm
Criterion Covered Total %
branch 78 98 79.5


line true false branch
59 0 180 if defined $self->{'debug'} and $self->{'debug'} > 4
61 0 180 if defined $self->{'debug'} and $self->{'debug'} > 4
77 40 140 if (defined $participant->{$sex_field})
87 0 180 unless defined $participant->{$studyId_field} and $participant->{$sex_field}
142 17885 11455 if defined $participant->{$field}
164 40 140 if exists $mapping->{'map'}{'ageOfOnset'} and defined $$participant{$mapping->{'map'}{'ageOfOnset'}}
176 40 140 if exists $mapping->{'map'}{'familyHistory'} and defined $$participant{$mapping->{'map'}{'familyHistory'}}
183 180 0 if defined $disease->{'diseaseCode'}
193 40 140 if defined $participant->{$ethnicity_field}
205 995 85 unless defined $participant->{$field}
212 0 85 exists $mapping->{'map'}{'ageAtExposure'} && defined $$participant{$mapping->{'map'}{'ageAtExposure'}} ? :
216 0 85 exists $mapping->{'map'}{'date'} ? :
220 0 85 exists $mapping->{'map'}{'duration'} ? :
225 85 0 exists $mapping->{'dict'}{$field} ? :
240 80 5 exists $mapping->{'radio'}{$field} ? :
253 80 5 $subkey ne 'dummy' ? :
259 85 0 if defined $exposure->{'exposureCode'}
284 725 2155 if (defined $participant->{$field})
287 725 0 if ($project_id eq '3tr_ibd') { }
295 280 405 $field =~ /^consent/ ? :
40 685 $field eq 'age' ? :
304 180 0 $self->{'test'} ? :
316 415 2465 if ($participant->{$field})
321 85 330 if exists $mapping->{'map'}{'dateOfProcedure'} and $field eq $mapping->{'map'}{'dateOfProcedure'}
329 0 330 exists $mapping->{'map'}{'ageAtProcedure'} && defined $mapping->{'map'}{'ageAtProcedure'} ? :
332 330 0 if $project_id eq "3tr_ibd"
340 330 0 exists $mapping->{'map'}{'dateOfProcedure'} && defined $mapping->{'map'}{'dateOfProcedure'} ? :
349 15 315 exists $mapping->{'dict'}{$field} ? :
330 0 if defined $field
353 330 0 if defined $intervention->{'procedureCode'}
373 1355 2785 unless defined $participant->{$field}
383 2650 135 exists $mapping->{'dict'}{$field} ? :
400 90 2695 if ($participant->{$field} =~ / \- /)
414 2650 135 exists $mapping->{'dict'}{$tmp_str} ? :
442 90 2680 $field =~ /^nancy/ ? :
15 2770 $field eq 'calprotectin' ? :
449 2785 0 if defined $measure->{'assayCode'}
485 410 2650 if (defined $participant->{$field} and $participant->{$field} ne "")
492 195 215 if ($project_id eq "3tr_ibd" and $field =~ /comorb/i)
501 10 225 $participant->{$field} ? :
235 175 if &looks_like_number($participant->{$field})
512 115 295 exists $mapping->{'dict'}{$tmp_var} ? :
530 410 0 if defined $phenotypicFeature->{'featureType'}
560 720 360 exists $mapping->{'dict'}{$field} ? :
568 2160 0 if ($project_id eq "3tr_ibd")
574 720 1440 if $route eq "rectal" and not &any(sub {
578 720 720 $field eq 'budesonide' || $field eq 'asa' ? :
583 1120 320 unless defined $participant->{$tmp_var}
623 320 0 if defined $treatment->{'treatmentCode'}