RulesFactory
class RulesFactory @Inject constructor(val context: Context, val configurationRegistry: ConfigurationRegistry, val fhirPathDataExtractor: FhirPathDataExtractor, val dispatcherProvider: DispatcherProvider, val locationService: LocationService, val fhirContext: FhirContext, val defaultRepository: DefaultRepository) : RulesListener
Constructors
Link copied to clipboard
@Inject
Types
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard