Package org.ehrbase.api.knowledge
Interface KnowledgeCacheService
public interface KnowledgeCacheService
-
Method Summary
Modifier and TypeMethodDescriptionaddOperationalTemplate(org.openehr.schemas.v1.OPERATIONALTEMPLATE template) intvoiddeleteOperationalTemplate(org.openehr.schemas.v1.OPERATIONALTEMPLATE template) Deletes a given operational template physically from cache and from template storage and from cache.findTemplateIdByUuid(UUID uuid) findUuidByTemplateId(String templateId) org.ehrbase.openehr.sdk.webtemplate.model.WebTemplategetInternalTemplate(String templateId) Optional<org.openehr.schemas.v1.OPERATIONALTEMPLATE> retrieve an operational template document instance
-
Method Details
-
addOperationalTemplate
-
listAllOperationalTemplates
List<TemplateMetaData> listAllOperationalTemplates() -
findAllTemplateIds
-
retrieveOperationalTemplate
retrieve an operational template document instance- Parameters:
key- the name of the operational template- Returns:
- an OPERATIONALTEMPLATE document instance or null
- See Also:
-
getInternalTemplate
-
deleteOperationalTemplate
void deleteOperationalTemplate(org.openehr.schemas.v1.OPERATIONALTEMPLATE template) Deletes a given operational template physically from cache and from template storage and from cache. Should only be executed if the template is no longer referenced by any Composition. Make sure you check for references before deleting a template otherwise this causes inconsistencies and no longer deliverable Composition entries.- Parameters:
template- - The template instance to delete
-
findTemplateIdByUuid
-
findUuidByTemplateId
-
adminUpdateOperationalTemplate
-
deleteAllOperationalTemplates
int deleteAllOperationalTemplates()
-