Package org.ehrbase.api.service
Interface TemplateService
-
- All Superinterfaces:
BaseService
public interface TemplateService extends BaseService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StructuredStringbuildExample(String templateId, CompositionFormat format)Stringcreate(String content)StringfindOperationalTemplate(String templateId, OperationalTemplateFormat format)Finds and returns the given operational template as string represented in requested format.WebTemplatefindTemplate(String templateId)List<TemplateMetaDataDto>getAllTemplates()-
Methods inherited from interface org.ehrbase.api.service.BaseService
getServerConfig, getSystemUuid
-
-
-
-
Method Detail
-
getAllTemplates
List<TemplateMetaDataDto> getAllTemplates()
-
buildExample
StructuredString buildExample(String templateId, CompositionFormat format)
-
findTemplate
WebTemplate findTemplate(String templateId)
-
findOperationalTemplate
String findOperationalTemplate(String templateId, OperationalTemplateFormat format) throws RuntimeException
Finds and returns the given operational template as string represented in requested format.- Parameters:
templateId- - Unique name of operational templateformat- - As enum value fromOperationalTemplateFormat- Returns:
- Throws:
RuntimeException- When the template couldn't be found, the format isn't support or in case of another error.
-
-