Class WebTemplateUtils

java.lang.Object
org.ehrbase.openehr.sdk.webtemplate.util.WebTemplateUtils

public class WebTemplateUtils extends Object
Convenience methods for working with Web Templates.
  • Method Details

    • isChoiceDvCodedTextAndDvText

      public static boolean isChoiceDvCodedTextAndDvText(WebTemplateNode node)
      Return whether the node is a choice between DV_CODED_TEXT and DV_TEXT.
      Parameters:
      node - the node to check
      Returns:
      true if the provided input is choice; false otherwise
    • getTrueChildrenElement

      public static List<WebTemplateNode> getTrueChildrenElement(WebTemplateNode node)
      Return the list of "true" children for the node.
      Parameters:
      node - the node to check
      Returns:
      the list of "true" children