private function getDateConstraint($query, $from, $to)
 {
     $to2 = $this->reportUtility->getTo($from, $to);
     $constDate[] = $query->logicalAnd($query->greaterThanOrEqual('actions.date', $from), $query->lessThan('actions.date', $to2));
     //$constDate[]=$query->logicalAnd($query->greaterThanOrEqual('treatments.startDate',$from),$query->lessThan('treatments.startDate',$to2));
     return $query->logicalOr($constDate);
 }