lib/metamri/raw_image_file.rb in metamri-0.2.4 vs lib/metamri/raw_image_file.rb in metamri-0.2.5

- old
+ new

@@ -575,10 +575,12 @@ series_description_pat = /Series Description: ([[:graph:] \t]+)/i recon_diam_pat = /Display field of view \- X \(mm\): ([0-9]+)/i rmr_number_pat = /Patient ID for this exam: ([[:graph:]]+)/i bold_reps_pat = /Number of excitations: ([0-9]+)/i rep_time_pat = /Pulse repetition time \(usec\): ([0-9]+)/i + study_uid_pat = /Study entity unique ID: ([[:graph:]]+)/i + series_uid_pat = /Series entity unique ID: ([[:graph:]]+)/i rmr_number_pat =~ @hdr_data @rmr_number = ($1).nil? ? "rmr not found" : ($1).strip.chomp source_pat =~ @hdr_data @@ -613,8 +615,14 @@ bold_reps_pat =~ @hdr_data @bold_reps = ($1).to_i rep_time_pat =~ @hdr_data @rep_time = ($1).to_f / 1000000 + + study_uid_pat =~ @hdr_data + @dicom_study_uid = ($1).strip.chomp + + series_uid_pat =~ @hdr_data + @dicom_series_uid = ($1).strip.chomp end end \ No newline at end of file