class DICOM::UID
This class handles the various UID
types (transfer syntax, SOP Class, LDAP OID, etc) found in the DICOM
Data Dictionary (Annex A: Registry of DICOM
unique identifiers, Table A-1).
Attributes
name[R]
The UID
name, e.g. 'Verification SOP Class'.
retired[R]
The UID's retired status string, i.e. an empty string or 'R'.
type[R]
The UID
type, e.g. 'SOP Class'.
value[R]
The UID
value, e.g. '1.2.840.10008.1.1'.
Public Class Methods
new(value, name, type, retired)
click to toggle source
Creates a new UID
.
@param [String] value the UID's value @param [String] name the UID's name @param [String] type the UID's type @param [String] retired the UID's retired status string
# File lib/dicom/uid.rb, line 25 def initialize(value, name, type, retired) @value = value @name = name @type = type @retired = retired end
Public Instance Methods
big_endian?()
click to toggle source
compressed_pixels?()
click to toggle source
explicit?()
click to toggle source
retired?()
click to toggle source
Converts the retired status string to a boolean.
@return [Boolean] true if the UID
is retired, and false if not
# File lib/dicom/uid.rb, line 60 def retired? @retired =~ /R/ ? true : false end
sop_class?()
click to toggle source