<gh_stars>0
package org.opencds.cqf.cql.elm.execution;

import org.opencds.cqf.cql.execution.Context;
import java.util.HashMap;

public class TupleEvaluator extends org.cqframework.cql.elm.execution.Tuple {

  @Override
  protected Object internalEvaluate(Context context) {
    HashMap<String, Object> ret = new HashMap<>();
    for (org.cqframework.cql.elm.execution.TupleElement element : this.getElement()) {
      ret.put(element.getName(), element.getValue().evaluate(context));
    }
    return new org.opencds.cqf.cql.runtime.Tuple().withElements(ret);
  }
}
