Table of Contents

Class DicomVR

Namespace
FellowOakDicom
Assembly
fo-dicom.core.dll

DICOM Value Representation

public sealed class DicomVR
Inheritance
DicomVR
Inherited Members
Extension Methods

Fields

AE

Application Entity

public static readonly DicomVR AE

Field Value

DicomVR

AS

Age String

public static readonly DicomVR AS

Field Value

DicomVR

AT

Attribute Tag

public static readonly DicomVR AT

Field Value

DicomVR

CS

Code String

public static readonly DicomVR CS

Field Value

DicomVR

DA

Date

public static readonly DicomVR DA

Field Value

DicomVR

DS

Decimal String

public static readonly DicomVR DS

Field Value

DicomVR

DT

Date Time

public static readonly DicomVR DT

Field Value

DicomVR

FD

Floating Point Double

public static readonly DicomVR FD

Field Value

DicomVR

FL

Floating Point Single

public static readonly DicomVR FL

Field Value

DicomVR

IS

Integer String

public static readonly DicomVR IS

Field Value

DicomVR

LO

Long String

public static readonly DicomVR LO

Field Value

DicomVR

LT

Long Text

public static readonly DicomVR LT

Field Value

DicomVR

NONE

No VR

public static readonly DicomVR NONE

Field Value

DicomVR

OB

Other Byte

public static readonly DicomVR OB

Field Value

DicomVR

OD

Other Double

public static readonly DicomVR OD

Field Value

DicomVR

OF

Other Float

public static readonly DicomVR OF

Field Value

DicomVR

OL

Other Long

public static readonly DicomVR OL

Field Value

DicomVR

OV

Other Very Long

public static readonly DicomVR OV

Field Value

DicomVR

OW

Other Word

public static readonly DicomVR OW

Field Value

DicomVR

PN

Person Name

public static readonly DicomVR PN

Field Value

DicomVR

SH

Short String

public static readonly DicomVR SH

Field Value

DicomVR

SL

Signed Long

public static readonly DicomVR SL

Field Value

DicomVR

SQ

Sequence of Items

public static readonly DicomVR SQ

Field Value

DicomVR

SS

Signed Short

public static readonly DicomVR SS

Field Value

DicomVR

ST

Short Text

public static readonly DicomVR ST

Field Value

DicomVR

SV

Signed Very Long

public static readonly DicomVR SV

Field Value

DicomVR

TM

Time

public static readonly DicomVR TM

Field Value

DicomVR

UC

Unlimited Characters

public static readonly DicomVR UC

Field Value

DicomVR

UI

Unique Identifier

public static readonly DicomVR UI

Field Value

DicomVR

UL

Unsigned Long

public static readonly DicomVR UL

Field Value

DicomVR

UN

Unknown

public static readonly DicomVR UN

Field Value

DicomVR

UR

Universal Resource Identifier or Universal Resource Locator (URI/URL)

public static readonly DicomVR UR

Field Value

DicomVR

US

Unsigned Short

public static readonly DicomVR US

Field Value

DicomVR

UT

Unlimited Text

public static readonly DicomVR UT

Field Value

DicomVR

UV

Unsigned Very Long

public static readonly DicomVR UV

Field Value

DicomVR

Properties

ByteSwap

Number of bytes to swap when changing endian representation of value. Usually equal to the UnitSize.

public int ByteSwap { get; }

Property Value

int

Code

Code used to represent VR.

public string Code { get; }

Property Value

string

Is16bitLength

Length field of value is a 16-bit short integer.

public bool Is16bitLength { get; }

Property Value

bool

IsMultiValue

Value can contain multiple items.

public bool IsMultiValue { get; }

Property Value

bool

IsString

Value is a string.

public bool IsString { get; }

Property Value

bool

IsStringEncoded

String is encoded using the specified character set.

public bool IsStringEncoded { get; }

Property Value

bool

MaximumLength

Maximum length of a single value.

public uint MaximumLength { get; }

Property Value

uint

Name

Descriptive name of VR.

public string Name { get; }

Property Value

string

PaddingValue

Byte value used to pad value to even length.

public byte PaddingValue { get; }

Property Value

byte

UnitSize

Size of each individual value unit for fixed length value types.

public int UnitSize { get; }

Property Value

int

ValueType

Type used to represent VR value.

public Type ValueType { get; }

Property Value

Type

Methods

Parse(string)

Get VR for given string value.

public static DicomVR Parse(string vr)

Parameters

vr string

String representation of VR

Returns

DicomVR

VR

ToString()

Gets a string representation of this VR.

public override string ToString()

Returns

string

VR code

TryParse(byte[], out DicomVR)

Try to get VR for given UTF8 encoded string value.

public static bool TryParse(byte[] vr, out DicomVR result)

Parameters

vr byte[]

UTF8 encoded byte array representation of VR

result DicomVR

VR code

Returns

bool

true if VR was successfully parsed, false otherwise

TryParse(string, out DicomVR)

Try to get VR for given string value.

public static bool TryParse(string vr, out DicomVR result)

Parameters

vr string

String representation of VR

result DicomVR

VR code

Returns

bool

true if VR was successfully parsed, false otherwise

ValidateString(string)

validates a string content. Throws Dicom

public void ValidateString(string content)

Parameters

content string