Search Results for

    Show / Hide Table of Contents

    Class DicomAnonymizer

    Class for performing anonymization actions on DICOM file or dataset based on selected confidentiality profile.

    Inheritance
    Object
    DicomAnonymizer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors