14 #ifndef GDCMANONYMIZER_H
15 #define GDCMANONYMIZER_H
28 class CryptographicMessageSyntax;
85 bool Empty(
Tag const &t );
91 bool Remove(
Tag const &t );
97 bool Replace(
Tag const &t,
const char *value );
101 bool Replace(
Tag const &t,
const char *value,
VL const & vl );
106 bool RemovePrivateTags();
109 bool RemoveGroupLength();
112 bool RemoveRetired();
126 bool BasicApplicationLevelConfidentialityProfile(
bool deidentify =
true);
136 static std::vector<Tag> GetBasicApplicationLevelConfidentialityProfileAttributes();
140 static void ClearInternalUIDs();
144 bool BALCPProtect(
DataSet &ds,
Tag const & tag,
const IOD &iod);
145 bool CanEmptyTag(
Tag const &tag,
const IOD &iod)
const;
146 void RecurseDataSet(
DataSet & ds );
149 bool BasicApplicationLevelConfidentialityProfile1();
150 bool BasicApplicationLevelConfidentialityProfile2();
151 bool CheckIfSequenceContainsAttributeToAnonymize(
File const &file,
SequenceOfItems* sqi)
const;
158 typedef std::pair< Tag, std::string > TagValueKey;
159 typedef std::map< TagValueKey, std::string > DummyMapNonUIDTags;
160 typedef std::map< std::string, std::string > DummyMapUIDTags;
161 static DummyMapNonUIDTags dummyMapNonUIDTags;
162 static DummyMapUIDTags dummyMapUIDTags;
173 #endif //GDCMANONYMIZER_H
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
File & GetFile()
Definition: gdcmAnonymizer.h:120
Class to represent a Sequence Of Items (value representation : SQ)
Definition: gdcmSequenceOfItems.h:39
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Anonymizer()
Definition: gdcmAnonymizer.h:80
Value Length.
Definition: gdcmVL.h:29
static SmartPointer< Anonymizer > New()
for wrapped language: instantiate a reference counted object
Definition: gdcmAnonymizer.h:133
Anonymizer This class is a multi purpose anonymizer. It can work in 2 mode:
Definition: gdcmAnonymizer.h:77
Subject.
Definition: gdcmSubject.h:28
Class for Smart Pointer.
Definition: gdcmObject.h:26
a DICOM File See PS 3.10 File: A File is an ordered string of zero or more bytes, where the first byt...
Definition: gdcmFile.h:33
void SetFile(const File &f)
Set/Get File.
Definition: gdcmAnonymizer.h:118
Class for representing a IOD.
Definition: gdcmIOD.h:34
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Definition: gdcmCryptographicMessageSyntax.h:22
Definition: gdcmASN1.h:20