src/conv/vdicom/i2o_dcm.cpp
// a new 'patientName' will be added if needed, or returned if already listed
a new 'patientName' will be added if needed, or returned if already listed
a new ' patientName ' will be added if needed or returned if already listed
DicomPatient*
AddOrGetPatient( list<DicomPatient>& patList, string patientName )
{
  for( auto& patient : patList )
    if( patient.patientName == patientName )
      {
	return &patient;
      }
  patList.push_back( patientName );
  return &patList.back();
}
DicomPatient * AddOrGetPatient ( list < DicomPatient > & patList , string patientName ) { for ( auto & patient : patList ) if ( patient . patientName == patientName ) { return & patient ; } patList . push_back ( patientName ) ; return & patList . back ( ) ; }
a new 'patientName' will be added if needed, or returned if already listed
a new ' patientName ' will be added if needed or returned if already listed