Package org.openmrs.logic

Examples of org.openmrs.logic.LogicCriteria


     * @should return a correct boolean value for logic test string
     */
    protected boolean processLogicIncludeLogic(FormEntrySession session, String testStr) throws BadFormDesignException {

        LogicService ls = Context.getLogicService();
        LogicCriteria logicCriteria = null;
        try {
            logicCriteria = ls.parse(testStr);
        } catch (Exception ex) {
            throw new BadFormDesignException(ex.getMessage());
        }
View Full Code Here


 
  public Result logic(String expression) {
    if (session.getPatient() == null)
      return new EmptyResult();
    cannotBePreviewed();
    LogicCriteria lc = getLogicService().parse(expression);
    return getLogicService().eval(session.getPatient(), lc);
  }
View Full Code Here

TOP

Related Classes of org.openmrs.logic.LogicCriteria

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.