14#ifndef GDCMANONYMIZER_H
15#define GDCMANONYMIZER_H
28class CryptographicMessageSyntax;
157 bool BasicApplicationLevelConfidentialityProfile1();
158 bool BasicApplicationLevelConfidentialityProfile2();
159 bool CheckIfSequenceContainsAttributeToAnonymize(
File const &file,
SequenceOfItems* sqi)
const;
166 typedef std::pair< Tag, std::string > TagValueKey;
167 typedef std::map< TagValueKey, std::string > DummyMapNonUIDTags;
168 typedef std::map< std::string, std::string > DummyMapUIDTags;
169 static DummyMapNonUIDTags dummyMapNonUIDTags;
170 static DummyMapUIDTags dummyMapUIDTags;
Anonymizer.
Definition gdcmAnonymizer.h:78
bool RemoveRetired()
Main function that loop over all elements and remove retired element.
bool Remove(Tag const &t)
remove a tag (even a SQ can be removed)
bool RemovePrivateTags()
Main function that loop over all elements and remove private tags.
bool Empty(PrivateTag const &pt)
void SetFile(const File &f)
Set/Get File.
Definition gdcmAnonymizer.h:126
void RecurseDataSet(DataSet &ds)
bool Empty(Tag const &t)
Make Tag t empty (if not found tag will be created)
File & GetFile()
Definition gdcmAnonymizer.h:128
Anonymizer()
Definition gdcmAnonymizer.h:80
bool Clear(PrivateTag const &pt)
void SetCryptographicMessageSyntax(CryptographicMessageSyntax *cms)
Set/Get CMS key that will be used to encrypt the dataset within BasicApplicationLevelConfidentialityP...
static void ClearInternalUIDs()
bool BasicApplicationLevelConfidentialityProfile(bool deidentify=true)
bool BALCPProtect(DataSet &ds, Tag const &tag, const IOD &iod)
bool Replace(Tag const &t, const char *value)
bool Replace(PrivateTag const &t, const char *value, VL const &vl)
static std::vector< Tag > GetBasicApplicationLevelConfidentialityProfileAttributes()
Return the list of Tag that will be considered when anonymizing a DICOM file.
bool Replace(Tag const &t, const char *value, VL const &vl)
bool CanEmptyTag(Tag const &tag, const IOD &iod) const
bool Replace(PrivateTag const &t, const char *value)
static SmartPointer< Anonymizer > New()
for wrapped language: instantiate a reference counted object
Definition gdcmAnonymizer.h:141
bool Clear(Tag const &t)
Identical to 'Empty' except no action is done when tag is not present.
bool Remove(PrivateTag const &pt)
const CryptographicMessageSyntax * GetCryptographicMessageSyntax() const
bool RemoveGroupLength()
Main function that loop over all elements and remove group length.
Definition gdcmCryptographicMessageSyntax.h:23
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
a DICOM File
Definition gdcmFile.h:34
Class for representing a IOD.
Definition gdcmIOD.h:35
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner)
Definition gdcmPrivateTag.h:39
Class to represent a Sequence Of Items.
Definition gdcmSequenceOfItems.h:40
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Subject.
Definition gdcmSubject.h:29
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
Value Length.
Definition gdcmVL.h:30
#define GDCM_EXPORT
Definition gdcmWin32.h:34