Class ContainPropositions

java.lang.Object
org.ehrbase.aql.containment.ContainPropositions

public class ContainPropositions extends Object
Handles and evaluation contain proposition: Simple contain chain (e.g. CONTAINS [...] CONTAINS [...]...) are evaluated for existence of paths within defined templates Complex contain (expressed as logical expressions of Simple Contains) are evaluated as set operation (intersection, union. disjunction)
  • Constructor Details

    • ContainPropositions

      public ContainPropositions(IdentifierMapper identifierMapper)
  • Method Details

    • put

      public void put(String key, ContainsCheck containsCheck)
    • get

      public ContainsCheck get(String key)
    • evaluate

      public void evaluate(KnowledgeCacheService knowledgeCache)
      evaluate the set of proposition IN-ORDER. The results are given as: - a list of templates for which the propositions are satisfied - paths in containers for each identified template
      Parameters:
      knowledgeCache -
    • resolvedTemplates

      public Set<String> resolvedTemplates()
      returns the list of templates for the expression
      Returns:
    • requiresTemplateWhereClause

      public boolean requiresTemplateWhereClause()
      true if this expression is for a simple COMPOSITION containment (e.g. no embedded CONTAINs)
      Returns:
    • hasContains

      public boolean hasContains()