Interface CountCountMax<C extends FDSConfig,D>

Type Parameters:
C - The type of configuration, extending FDSConfig.
D - The type of the translated data.
All Superinterfaces:
Translator<C,D>, TranslatorTiming<C,D>
All Known Implementing Classes:
CountCountMaxR4, CountCountMaxR5

public interface CountCountMax<C extends FDSConfig,D> extends TranslatorTiming<C,D>
Interface for translating "timing.repeat.count" / "timing.repeat.countMax".
Author:
jy95
  • Method Details

    • getCountMaxMsg

      default com.ibm.icu.text.MessageFormat getCountMaxMsg(ResourceBundle bundle, Locale locale)
      MessageFormat instance used for "count" & "countMax" translation
      Parameters:
      bundle - The bundle to extract the key
      locale - The locale for the message
      Returns:
      The message template for "count" & "countMax"
    • getCountMsg

      default com.ibm.icu.text.MessageFormat getCountMsg(ResourceBundle bundle, Locale locale)
      MessageFormat instance used for "count" translation
      Parameters:
      bundle - The bundle to extract the key
      locale - The locale for the message
      Returns:
      The message template for "count"
    • hasCountMax

      boolean hasCountMax(D dosage)
      Check if "timing.repeat.countMax" exists
      Parameters:
      dosage - the dosage object to check
      Returns:
      True if it is the case, false otherwise