From: jpr Date: Wed, 12 Apr 2006 13:57:32 +0000 (+0000) Subject: Some clinical softwares *demand* Patient ID (0x0010,0x0020) X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9690256307cb2a7b7a452610eadc666b66dd0f57;p=gdcm.git Some clinical softwares *demand* Patient ID (0x0010,0x0020) although it's a 'type 2' entry. Use a default value //CheckMandatoryEntry(0x0010,0x0020,"gdcm ID","LO"); --- diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index 12bfe7cf..175afc02 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2006/04/11 16:03:26 $ - Version: $Revision: 1.99 $ + Date: $Date: 2006/04/12 13:57:32 $ + Version: $Revision: 1.100 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1671,8 +1671,8 @@ void FileHelper::CheckMandatoryElements() // Patient's Name : if missing, we set it to 'GDCM^Patient' CheckMandatoryEntry(0x0010,0x0010,"GDCM^Patient","PN"); - // Patient ID - CheckMandatoryEntry(0x0010,0x0020,"","LO"); + // Patient ID : some clinical softwares *demand* it although it's a 'type 2' entry. + CheckMandatoryEntry(0x0010,0x0020,"gdcm ID","LO"); // Patient's Birth Date : 'type 2' entry -> must exist, value not mandatory CheckMandatoryEntry(0x0010,0x0030,"","DA");