Class RelativeTime

  • All Implemented Interfaces:
    org.dcm4che.typeddicom.AttributesWrapper, org.dcm4che.typeddicom.DataElementWrapper, org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper, org.dcm4che.typeddicom.valuerepresentations.IntDataElementMultiWrapper, UnsignedShortMultiWrapper

    public class RelativeTime
    extends org.dcm4che.typeddicom.AbstractDataElementWrapper
    implements UnsignedShortMultiWrapper
    Name: Relative Time
    Keyword: RelativeTime
    Tag: (0072,0038)
    Value Representation: UnsignedShort
    Value Multiplicity: 2
    • Described in the contexts: as follows:
      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 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
      1. 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".

      2. The VR of this Attribute is unsigned, hence future time cannot be represented.


    • Constructor Summary

      Constructors 
      Constructor Description
      RelativeTime()
      Creates a new Relative Time object which wraps a new and empty Attributes object.
      RelativeTime​(org.dcm4che3.data.Attributes attributes)
      Creates a new Relative Time object which wraps the provided attributes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RelativeTime copy()
      Returns a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time.
      java.lang.String getPrivateCreator()  
      int getTag()  
      • Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper

        equals, exists, getValue, hashCode, toString
      • Methods inherited from class org.dcm4che.typeddicom.AbstractAttributesWrapper

        getAttributes
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper

        copy, getAttributes, isEmpty
      • Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper

        getBytes, getSafeBytes, setBytes
      • Methods inherited from interface org.dcm4che.typeddicom.DataElementWrapper

        exists, getValue
      • Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementMultiWrapper

        getInt, getInts, setInts
    • Constructor Detail

      • RelativeTime

        public RelativeTime​(org.dcm4che3.data.Attributes attributes)
        Creates a new Relative Time object which wraps the provided attributes.
        Parameters:
        attributes - the Attributes object to be wrapped.
      • RelativeTime

        public RelativeTime()
        Creates a new Relative Time object which wraps a new and empty Attributes object.
    • Method Detail

      • copy

        public RelativeTime copy()
        Returns a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time. (see Attributes(Attributes)
        Returns:
        a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time.
      • getPrivateCreator

        public java.lang.String getPrivateCreator()
        Specified by:
        getPrivateCreator in interface org.dcm4che.typeddicom.DataElementWrapper
      • getTag

        public int getTag()
        Specified by:
        getTag in interface org.dcm4che.typeddicom.DataElementWrapper