Below is an example of a trigger to use when you want a notification for when you have more than one patient on a waypoint and at least one of them are infectious.
This example is from a dropdown box called infectious_dropdwn, you will have to make a modification here to match the way you are tracking infectious patients.
Description |
Event |
Condition |
|---|---|---|
| This will trigger an action when you have more than one patient on a waypoint traveling together, and also at least one of those patients is infectious. Don’t forget to change the text that is red to account for how you are tracking infectious patients. | Assign patient to request (request) | CASE WHEN (SELECT COUNT() FROM RequestPlan WHERE CASE WHEN (SELECT COUNT() FROM transferitem WHERE PatientIsAboardLeaving(requestplan.id, transferitem.id) AND withTransferItem(transferitem.id, 'dropdown(''infectious_drpdwn'')') = 'Yes') > 0 AND (SELECT COUNT(*) FROM transferitem WHERE PatientIsAboardLeaving(requestplan.id, transferitem.id)) > 1 THEN 1 ELSE 0 END) > 0 THEN 1 ELSE 0 END |
Comments
0 comments
Please sign in to leave a comment.