Package org.ehrbase.client.openehrclient
Interface TemplateEndpoint
-
- All Known Implementing Classes:
DefaultRestTemplateEndpoint
public interface TemplateEndpoint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidensureExistence(String templateId)Ensure that the Template withtemplateIdexists in the remote system.TemplatesResponseDatafindAllTemplates()Retrieves a list of templatesOptional<OPERATIONALTEMPLATE>findTemplate(String templateId)Find a template by templateId
-
-
-
Method Detail
-
findTemplate
Optional<OPERATIONALTEMPLATE> findTemplate(String templateId)
Find a template by templateId- Parameters:
templateId-- Returns:
OPERATIONALTEMPLATE- Throws:
ClientExceptionWrongStatusCodeException
-
findAllTemplates
TemplatesResponseData findAllTemplates()
Retrieves a list of templates- Returns:
-
ensureExistence
void ensureExistence(String templateId)
Ensure that the Template withtemplateIdexists in the remote system.- Parameters:
templateId- Id of the template to check- Throws:
ClientExceptionWrongStatusCodeException
-
-