ConfigRulesExecutor

class ConfigRulesExecutor @Inject constructor(val fhirPathDataExtractor: FhirPathDataExtractor) : RulesListener

This file executes rules to be used by configs.

NOTE: that the Facts object is not thread safe, each thread should have its own set of data to work on. When used in a multi-threaded environment it may exhibit unexpected behavior and return incorrect results when rules are fired. Use the ResourceDataRulesExecutor in the same coroutine context of the caller.

Constructors

Link copied to clipboard
@Inject
constructor(fhirPathDataExtractor: FhirPathDataExtractor)

Types

Link copied to clipboard
object Companion

Properties

Functions

Link copied to clipboard
fun Map<String, List<*>>.addToFacts(facts: Facts)
Link copied to clipboard
open override fun afterEvaluate(rule: Rule, facts: Facts, evaluationResult: Boolean)
Link copied to clipboard
open override fun beforeEvaluate(rule: Rule, facts: Facts): Boolean
Link copied to clipboard
open fun beforeExecute(p0: Rule, p1: Facts)
Link copied to clipboard
fun fireRules(rules: Rules, baseResource: Resource? = null): Map<String, Any>
Link copied to clipboard
fun generateRules(ruleConfigs: List<RuleConfig>): Rules
Link copied to clipboard
fun log(exception: Exception, message: String? = null)
Link copied to clipboard
open override fun onEvaluationError(rule: Rule, facts: Facts, exception: Exception)
Link copied to clipboard
open override fun onFailure(rule: Rule, facts: Facts, exception: Exception)
Link copied to clipboard
open override fun onSuccess(rule: Rule, facts: Facts)