A framework for calculating clinical rules in OpenMRS and making them available for other modules