fireRules

fun fireRules(rules: Rules, repositoryResourceData: RepositoryResourceData?, params: Map<String, String>): Map<String, Any>

This function executes the actions defined in the Rule s generated from the provided list of RuleConfig against the Facts populated by the provided FHIR Resource s available in the RepositoryResourceData.resource, RepositoryResourceData.relatedResourcesMap and RepositoryResourceData.relatedResourcesCountMap. All related resources of same type are flattened in a map for ease of usage in the rule engine.