Skip to content

Commit

Permalink
Merge pull request #157 from gluneau/patient-name_vs_DICOM_header_and…
Browse files Browse the repository at this point in the history
…more

Allows Dicom PatientName to have extra text after the visit label
  • Loading branch information
MounaSafiHarab committed Oct 14, 2016
2 parents eb0910e + 9848ab3 commit ab47dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uploadNeuroDB/NeuroDB/ImagingUpload.pm
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ sub PatientNameMatch {
exit 1;
}
my ($l,$pname,$t) = split /\[(.*?)\]/, $patient_name_string;
if ($pname ne $this->{'pname'}) {
if ($pname !~ /^$this->{'pname'}/) {
my $message = "\nThe patient-name $pname read ".
"from the DICOM header does not match " .
"from the DICOM header does not start with " .
$this->{'pname'} .
" from the mri_upload table\n";
$this->spool($message, 'Y', $notify_notsummary);
Expand Down

0 comments on commit ab47dd1

Please sign in to comment.