Skip to content

Commit

Permalink
Siemens version details (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Aug 11, 2024
1 parent 6a01168 commit ba03669
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,20 @@ void siemensCsaAscii(const char *filename, TCsaAscii *csaAscii, int csaOffset, i
char keyStrCoil[] = "sCoilElementID.tCoilID";
readKeyStr(keyStrCoil, keyPos, csaLengthTrim, coilID);
char keyStrCI[] = "sProtConsistencyInfo.tMeasuredBaselineString";
// issue848 VE11 reports N4_VE11C_LATEST_20160120
readKeyStr(keyStrCI, keyPos, csaLengthTrim, consistencyInfo);
// issue848 VB17 reports N4_VB17A_LATEST_20090307
if (strlen(consistencyInfo) < 1) {
char keyStrCI2[] = "sProtConsistencyInfo.tBaselineString";
readKeyStr(keyStrCI2, keyPos, csaLengthTrim, consistencyInfo);
}
// issue848 XA30 reports 63010001
if (strlen(consistencyInfo) < 1) {
char keyStrCI3[] = "sProtConsistencyInfo.ulConvFromVersion";
int vers = readKey(keyStrCI3, keyPos, csaLengthTrim);
if (vers > 0)
snprintf(consistencyInfo, 16, "%d", vers);
}
char keyStrCS[] = "sCoilSelectMeas.sCoilStringForConversion";
readKeyStr(keyStrCS, keyPos, csaLengthTrim, coilElements);
char keyStrSeq[] = "tSequenceFileName";
Expand Down

0 comments on commit ba03669

Please sign in to comment.