Class TemplateUtils

java.lang.Object
org.ehrbase.util.TemplateUtils

public class TemplateUtils extends Object
Utility class that implements basic operations for OPT template.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getTemplateId(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
    Retrieves the template ID from the given OPT template.
    static boolean
    isSupported(org.ehrbase.openehr.sdk.webtemplate.model.WebTemplate template)
    Check whether the given WebTemplate is supported.
    static boolean
    isSupported(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
    Check whether the given OPT template is supported.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • UNSUPPORTED_RM_TYPES

      public static final List<String> UNSUPPORTED_RM_TYPES
  • Method Details

    • isSupported

      public static boolean isSupported(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
      Check whether the given OPT template is supported.
      Parameters:
      template - the candidate template
      Returns:
      true if the template is supported
    • isSupported

      public static boolean isSupported(org.ehrbase.openehr.sdk.webtemplate.model.WebTemplate template)
      Check whether the given WebTemplate is supported.
      Parameters:
      template - the candidate template
      Returns:
      true if the template is supported
    • getTemplateId

      public static String getTemplateId(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
      Retrieves the template ID from the given OPT template.
      Parameters:
      template - the template
      Returns:
      template ID