Class DicomAnonymizer
Class for performing anonymization actions on DICOM file or dataset based on selected confidentiality profile.
Inherited Members
Namespace: Dicom
Assembly: cs.temp.dll.dll
Syntax
public class DicomAnonymizer
Constructors
DicomAnonymizer(DicomAnonymizer.SecurityProfile)
Public constructor
Declaration
public DicomAnonymizer(DicomAnonymizer.SecurityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
DicomAnonymizer.SecurityProfile | profile | Optional. The security profile to be used in one or multiple anonymizations. If not specified or null, it will use the default/internal profile |
Properties
Profile
The security profile for this anonymizer instance
Declaration
public DicomAnonymizer.SecurityProfile Profile { get; }
Property Value
Type | Description |
---|---|
DicomAnonymizer.SecurityProfile |
ReplacedUIDs
Context/Output. Contains all the replaced UIDs.
Declaration
public Dictionary<string, string> ReplacedUIDs { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, String> |
Remarks
Useful for consistency across a file set (multiple calls to anonymization methods)
Methods
Anonymize(DicomDataset)
Clones and anonymizes a dataset
Declaration
public DicomDataset Anonymize(DicomDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | The dataset to be cloned and anonymized |
Returns
Type | Description |
---|---|
DicomDataset | Anonymized dataset. |
Anonymize(DicomFile)
Creates a new Dicom file with an anonymized dataset
Declaration
public DicomFile Anonymize(DicomFile file)
Parameters
Type | Name | Description |
---|---|---|
DicomFile | file | The file containing the original dataset |
Returns
Type | Description |
---|---|
DicomFile | Anonymized dataset. |
AnonymizeInPlace(DicomDataset)
Anonymizes a dataset witout cloning
Declaration
public void AnonymizeInPlace(DicomDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | The dataset to be altered |
AnonymizeInPlace(DicomFile)
Anonymizes the dataset of an existing Dicom file
Declaration
public void AnonymizeInPlace(DicomFile file)
Parameters
Type | Name | Description |
---|---|---|
DicomFile | file | The file containing the dataset to be altered |