[Fiware-tech-help] CEP Proton- Help with different entities and different rules

Tali Yatzkar-Haham TALI at il.ibm.com
Sun Apr 12 15:13:46 CEST 2015


Dear Ahmed,

Yes, you can use the same definition file for different patients, assuming 
you have a way to identify which patients need which rules.

There are several ways to do it.
One simple option would be to add to the current condition a condition 
over the patient identity. 

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

Tali Yatzkar Haham
Event-based Middleware & Solutions
IBM Haifa Research Lab, Israel
tali at il.ibm.com 972-4-8296320
 



From:   Ahmed Sadek <Ahmed.Sadek at acreo.se>
To:     Tali Yatzkar-Haham/Haifa/IBM at IBMIL
Cc:     Mikhail Popov <Mikhail.Popov at acreo.se>, 
"fiware-tech-help at lists.fi-ware.org" <fiware-tech-help at lists.fi-ware.org>
Date:   07/04/2015 07:37 AM
Subject:        CEP Proton- Help with different entities and different 
rules



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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150412/c9ba39fb/attachment.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy