Class TemplateUtils


  • public class TemplateUtils
    extends Object
    Utility class that implements basic operations for OPT template.
    Since:
    1.0.0
    Author:
    Renaud Subiger
    • Field Detail

      • UNSUPPORTED_RM_TYPES

        public static final List<String> UNSUPPORTED_RM_TYPES
    • Method Detail

      • 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.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
      • getUid

        public static UUID getUid​(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
        Retrieves the template unique ID from the given OPT template.
        Parameters:
        template - the template
        Returns:
        template unique ID