Class RelativeTime
java.lang.Object
org.dcm4che.typeddicom.AbstractAttributesWrapper
org.dcm4che.typeddicom.AbstractDataElementWrapper
org.dcm4che.typeddicom.dataelements.RelativeTime
- All Implemented Interfaces:
AttributesWrapper,DataElementWrapper,BytesDataElementWrapper,IntDataElementMultiWrapper,UnsignedShortMultiWrapper
Name: Relative Time
Keyword: RelativeTime
Tag: (0072,0038)
Value Representation: US
Value Multiplicity: 2
Keyword: RelativeTime
Tag: (0072,0038)
Value Representation: US
Value Multiplicity: 2
- Described in the contexts:
- Hanging Protocol Definition Module > Image Sets Sequence > Time Based Image Sets Sequence > Relative Time
Attribute Name: Relative Time
Type: 1C
Attribute Description:Exactly two numeric values, indicating the start and end values of a prior range of Instance acquisition times relative to the date and time of a current image set. The units shall be specified in Relative Time Units (0072,003A).
The value pair 0\0 shall indicate a current image set. The value pair n\n shall indicate "prior from the Instance acquisition time of a current image set by n units".
Required if the value of Image Set Selector Category (0072,0034) is RELATIVE_TIME.
Note-
A value pair "1\7" with Relative Time Units (0072,003A) of DAYS would indicate the range "prior by 1 to 7 days before a current image set".
-
The VR of this Attribute is unsigned, hence future time cannot be represented.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRelativeTime.Builder<SELF extends RelativeTime.Builder<SELF,T>, T extends RelativeTime.Holder> static interfaceA class implementing this interface can hold attributes which contain the DICOM tag "Relative Time" (seeRelativeTime)static classNested classes/interfaces inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
UnsignedShortMultiWrapper.Setter<B extends Builder<B,? extends AttributesWrapper>, D extends UnsignedShortMultiWrapper> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Private Creator associated with this class.static final intThe DICOM Tag associated with this class.Fields inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
VALUE_REPRESENTATION -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Relative Time object which wraps a new and emptyAttributesobject.RelativeTime(org.dcm4che3.data.Attributes attributes) Creates a new Relative Time object which wraps the providedattributes. -
Method Summary
Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper
equals, exists, getValue, hashCode, toStringMethods inherited from class org.dcm4che.typeddicom.AbstractAttributesWrapper
getAttributesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmptyMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper
getBytes, getSafeBytes, setBytesMethods inherited from interface org.dcm4che.typeddicom.DataElementWrapper
exists, getValueMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementMultiWrapper
getInt, getInts, setIntsMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
getValueRepresentation
-
Field Details
-
PRIVATE_CREATOR
The Private Creator associated with this class. -
TAG
public static final int TAGThe DICOM Tag associated with this class.- See Also:
-
-
Constructor Details
-
RelativeTime
public RelativeTime(org.dcm4che3.data.Attributes attributes) Creates a new Relative Time object which wraps the providedattributes.- Parameters:
attributes- TheAttributesobject to be wrapped.
-
RelativeTime
public RelativeTime()Creates a new Relative Time object which wraps a new and emptyAttributesobject.
-
-
Method Details
-
copy
Returns a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time. (seeAttributes(Attributes)- Returns:
- a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time.
-
getPrivateCreator
- Specified by:
getPrivateCreatorin interfaceDataElementWrapper- Returns:
- The DICOM Private Creator of the wrapped DICOM attributes. null if not private
-
getTag
public int getTag()- Specified by:
getTagin interfaceDataElementWrapper- Returns:
- The DICOM Tag of the wrapped DICOM attributes.
-