Class DataTypeUtil

java.lang.Object
ca.uhn.hl7v2.model.DataTypeUtil

public class DataTypeUtil extends Object
This class is used to provide utility functions for other datatype classes and methods.
  • Constructor Details

  • Method Details

    • preAppendZeroes

      public static String preAppendZeroes(int num, int totalDigitLength)
      Preappend the zeros to the beginning of num such that the total length equals totalDigitLength and return the string representation of the new number
      Parameters:
      num - number
      totalDigitLength - number of digits
      Returns:
      string representation of the new number
    • getLocalGMTOffset

      public static int getLocalGMTOffset()
      Return a signed four digit integer indicating the local GMT offset. This is the HL7 Offset format in integer representation.
      Returns:
      a signed four digit integer indicating the local GMT offset