Class AqlFromEhrOptimisationPostProcessor

java.lang.Object
org.ehrbase.openehr.aqlengine.AqlFromEhrOptimisationPostProcessor
All Implemented Interfaces:
AqlQueryParsingPostProcessor, org.springframework.core.Ordered

@Component public class AqlFromEhrOptimisationPostProcessor extends Object implements AqlQueryParsingPostProcessor
Removes unused EHR at the start of the FROM statement of an AqlQuery for simple cases.
  • Constructor Details

    • AqlFromEhrOptimisationPostProcessor

      public AqlFromEhrOptimisationPostProcessor()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • afterParseAql

      public void afterParseAql(org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, AqlQueryRequest request, AqlQueryContext ctx)
      Description copied from interface: AqlQueryParsingPostProcessor
      Invoked after parsing the raw AQL string. The given AqlQuery object can be modified in-place. Meta information can be added through the AqlQueryContext.
      Specified by:
      afterParseAql in interface AqlQueryParsingPostProcessor
      Parameters:
      aqlQuery - object representing the parsed AQL string
      request - the request passed to the service layer
      ctx - the query context
    • isReferenced

      protected static boolean isReferenced(org.ehrbase.openehr.sdk.aql.dto.containment.ContainmentClassExpression containment, org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery)