Package org.ehrbase.util
Class TemplateUtils
java.lang.Object
org.ehrbase.util.TemplateUtils
Utility class that implements basic operations for OPT template.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTemplateId(org.openehr.schemas.v1.OPERATIONALTEMPLATE template) Retrieves the template ID from the given OPT template.static booleanisSupported(org.ehrbase.openehr.sdk.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.
-
Field Details
-
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:
trueif 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:
trueif the template is supported
-
getTemplateId
Retrieves the template ID from the given OPT template.- Parameters:
template- the template- Returns:
- template ID
-