Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Dear Tali,
We are working with a medical project involves the usage of CEP to check patient data against certain rules and produce an event when this rules are satisfied.
The question is for different patients , Do we need to have multiple rule files (one definition file for each patient) and upload them and activate them each time we need to check one patient data or there are better solution that would allow us to check different patients for different rules in the same definition file ?
Example:
Patient A, Heart rate >100 ---> CEP --> Produce event
Patient B, Blood pressure >120 ---> CEP --> Produce event
Best Regards,
Ahmed Sadek
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Ahmed Sadek <Ahmed.Sadek@acreo.se>]
Activity
- All
- Comments
- History
- Activity
- Transitions
Dear Ahmed,
Yes, you can use the same definition file for different patients.
There are several ways to do it.
One simple option would be to add to the current condition a condition over the patient identity. This assumes, you have a way to identify which patients need which rules.
Example:
Rule1: e1.HeartRate >100 && e1.patientName="A" ---> CEP --> Produce event
Rule2: e1.BloodPressure >120 && e1.patientName="B" ---> CEP --> Produce event
Or:
Rule1: e1.HeartRate >100 && e1.group="A" ---> CEP --> Produce event
Rule2: e1.BloodPressure >120 && e1.group="B" ---> CEP --> Produce event
Hope that helped,
Best regards,
Tali