Interface KnowledgeCacheService


public interface KnowledgeCacheService
  • Method Details

    • addOperationalTemplate

      String addOperationalTemplate(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
    • listAllOperationalTemplates

      List<TemplateMetaData> listAllOperationalTemplates()
    • findAllTemplateIds

      Map<UUID,String> findAllTemplateIds()
    • retrieveOperationalTemplate

      Optional<org.openehr.schemas.v1.OPERATIONALTEMPLATE> retrieveOperationalTemplate(String key)
      retrieve an operational template document instance
      Parameters:
      key - the name of the operational template
      Returns:
      an OPERATIONALTEMPLATE document instance or null
      See Also:
      • OPERATIONALTEMPLATE
    • getInternalTemplate

      org.ehrbase.openehr.sdk.webtemplate.model.WebTemplate getInternalTemplate(String templateId)
    • 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

      Optional<String> findTemplateIdByUuid(UUID uuid)
    • findUuidByTemplateId

      Optional<UUID> findUuidByTemplateId(String templateId)
    • adminUpdateOperationalTemplate

      String adminUpdateOperationalTemplate(InputStream content)
    • deleteAllOperationalTemplates

      int deleteAllOperationalTemplates()