Package org.ehrbase.util
Class TemplateUtils
- java.lang.Object
-
- org.ehrbase.util.TemplateUtils
-
public class TemplateUtils extends Object
Utility class that implements basic operations for OPT template.- Since:
- 1.0.0
- Author:
- Renaud Subiger
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>UNSUPPORTED_RM_TYPES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetTemplateId(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)Retrieves the template ID from the given OPT template.static UUIDgetUid(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)Retrieves the template unique ID from the given OPT template.static booleanisSupported(org.ehrbase.webtemplate.model.WebTemplate template)Check whether the given WebTemplate is supported.static booleanisSupported(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)Check whether the given OPT template is supported.
-
-
-
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:
trueif 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:
trueif 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
-
-