...
The logic service accomplishes these goals by defining a way in which business rules can be encapsulated within logic "rules" and by providing a mechanism for registering these rules under tokens.
Consumers of the logic service specify the token(s) to be evaluated and the patient (or cohort of patients) against which to evaluate the rule(s). The logic service evaluates the rules associated with those tokens. Rules can call other rules or read directly from data sources to fetch the data needed for their calculations. Results are returned from the logic service (to the original requester) as logic results.
...