Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class DicomDatasetExtensions

    DicomDataset extension methods.

    Inheritance
    System.Object
    DicomDatasetExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FellowOakDicom
    Assembly: fo-dicom.core.dll
    Syntax
    public static class DicomDatasetExtensions

    Methods

    Clone(DicomDataset)

    Clone a dataset.

    Declaration
    public static DicomDataset Clone(this DicomDataset dataset)
    Parameters
    Type Name Description
    DicomDataset dataset

    Dataset to be cloned.

    Returns
    Type Description
    DicomDataset

    Clone of dataset.

    EnumerateGroup(DicomDataset, UInt16)

    Enumerates DICOM items for specified group.

    Declaration
    public static IEnumerable<DicomItem> EnumerateGroup(this DicomDataset dataset, ushort group)
    Parameters
    Type Name Description
    DicomDataset dataset

    Dataset from which group items should be retrieved.

    System.UInt16 group

    Requested group.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<DicomItem>

    Enumeration of DICOM items for specified group.

    EnumerateMasked(DicomDataset, DicomMaskedTag)

    Enumerates DICOM items matching mask.

    Declaration
    public static IEnumerable<DicomItem> EnumerateMasked(this DicomDataset dataset, DicomMaskedTag mask)
    Parameters
    Type Name Description
    DicomDataset dataset

    Dataset from which masked items should be retrieved.

    DicomMaskedTag mask

    Requested mask.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<DicomItem>

    Enumeration of masked DICOM items.

    GetDateTime(DicomDataset, DicomTag, DicomTag)

    Get a composite System.DateTime instance based on date and time values.

    Declaration
    public static DateTime GetDateTime(this DicomDataset dataset, DicomTag date, DicomTag time)
    Parameters
    Type Name Description
    DicomDataset dataset

    Dataset from which data should be retrieved.

    DicomTag date

    Tag associated with date value.

    DicomTag time

    Tag associated with time value.

    Returns
    Type Description
    System.DateTime

    Composite System.DateTime.

    GetDateTimeOffset(DicomDataset, DicomTag, DicomTag, DicomDataset)

    Get a composite System.DateTimeOffset instance based on date and time values. This will take any time zone information specified in the dataset into account. If the dataset is a child sequence item, the topLevelDataset must be specified to find time zone information.

    Declaration
    public static DateTimeOffset GetDateTimeOffset(this DicomDataset dataset, DicomTag date, DicomTag time, DicomDataset topLevelDataset = null)
    Parameters
    Type Name Description
    DicomDataset dataset

    Dataset from which data should be retrieved.

    DicomTag date

    Tag associated with date value.

    DicomTag time

    Tag associated with time value.

    DicomDataset topLevelDataset

    The top-level dataset (if different from the current dataset). This is where the time zone information will be located

    Returns
    Type Description
    System.DateTimeOffset

    Composite System.DateTimeOffset.

    NotValidated(DicomDataset)

    Turns off validation on the passed DicomDataset and returns this Dataset

    Declaration
    public static DicomDataset NotValidated(this DicomDataset dataset)
    Parameters
    Type Name Description
    DicomDataset dataset
    Returns
    Type Description
    DicomDataset

    Validated(DicomDataset)

    Turns on validation on the passed DicomDataset and returns this Dataset

    Declaration
    public static DicomDataset Validated(this DicomDataset dataset)
    Parameters
    Type Name Description
    DicomDataset dataset
    Returns
    Type Description
    DicomDataset
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors