I have one question please, but first I will introduce the context.
So I need to loop all cases to send emails depending on some conditions in an activity.
One of these conditions is to not send an email to the same patient that had another case for which he had received the same email in at leat one year.
I am thinking to use a report definition to get all cases by patient for the current year but I have a doubt about the possibility to do that and how to use it in the activity.
Could anyone help me to solve this kind of issue?
Thanks in advance,
You can apply the filter condition in Report definition in many ways like, getting all the cases and filter out by comparing with dates and/or also remove the duplicates. From this, we can get the cases which are related to current year and invoke this report definition in Activity and loop it.
We ca use pxRetrieveReportData activity from class Rule-Obj-Report-Definition by passing required parameters we get the data. please refer the below link to understand