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.org.ehrbase.response.openehr.TemplatesResponseDatafindAllTemplates()Retrieves a list of templatesOptional<org.openehr.schemas.v1.OPERATIONALTEMPLATE>findTemplate(String templateId)Find a template by templateId
-
-
-
Method Detail
-
findTemplate
Optional<org.openehr.schemas.v1.OPERATIONALTEMPLATE> findTemplate(String templateId)
Find a template by templateId- Parameters:
templateId-- Returns:
OPERATIONALTEMPLATE- Throws:
ClientExceptionWrongStatusCodeException
-
findAllTemplates
org.ehrbase.response.openehr.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
-
-