Enum Class UbCodeType

java.lang.Object
java.lang.Enum<UbCodeType>
hdi.model.enumtype.UbCodeType
All Implemented Interfaces:
EdiQualifier, Serializable, Comparable<UbCodeType>, Constable

public enum UbCodeType extends Enum<UbCodeType> implements EdiQualifier
  • Enum Constant Details

    • OCCURRENCE_SPAN

      public static final UbCodeType OCCURRENCE_SPAN
    • OCCURRENCE

      public static final UbCodeType OCCURRENCE
    • CONDITION

      public static final UbCodeType CONDITION
    • VALUE

      public static final UbCodeType VALUE
    • DRG

      public static final UbCodeType DRG
    • REVENUE_CODE

      public static final UbCodeType REVENUE_CODE
    • TYPE_OF_BILL

      public static final UbCodeType TYPE_OF_BILL
    • FREQUENCY_CODE

      public static final UbCodeType FREQUENCY_CODE
    • FACILITY_TYPE

      public static final UbCodeType FACILITY_TYPE
  • Method Details

    • values

      public static UbCodeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UbCodeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromEdi

      public static UbCodeType fromEdi(String ediCode)
    • isMedicalCode

      public boolean isMedicalCode()
      Specified by:
      isMedicalCode in interface EdiQualifier
    • fromFile

      public static UbCodeType fromFile(@NotNull File file)
    • normalize

      public String normalize(String code)
    • normalizeUbCode

      public static String normalizeUbCode(String code, int maxLength)
    • ediValue

      public String ediValue()
      Specified by:
      ediValue in interface EdiQualifier
    • desc

      public String desc()
      Specified by:
      desc in interface EdiQualifier
    • longDesc

      public String longDesc()
    • fileNameFragment

      public String fileNameFragment()
    • primaryCodeType

      public PrimaryCodeType primaryCodeType()