Start with the first Recipe
Begin with the Recipe from Create your first Recipe:- Status is Active
- Extraction Opt-Out is False
- Age (Years) is greater than or equal to 50
- Sex is Male

Add a Visits ingredient
1
Select Add Ingredient
Under the patient filters, select Add Ingredient.

2
Choose the relationship
In the relationship box, choose has a count of.

3
Set the count
Choose at least, then enter 3.
4
Choose the related table
Select Visits.


Limit the count to the last two years
Add a filter inside the Visits ingredient:1
Select Add Filter inside the Visits ingredient
Use the Add Filter button inside the Visits card, not the one in the Patients section.
2
Choose Visit Date
Select Visit Date.
3
Choose the date operator
Select is greater than or equal to.
4
Enter the relative date
Type 2 years ago in the value box. If PracticeMate offers a relative-date suggestion, choose it.


Read the Recipe back
Before testing, read the Recipe in plain English:Find active patients who have not opted out, are male, are aged 50 or older, and have at least 3 visits where the visit date is within the last 2 years.That read-back is a useful habit. If the sentence sounds wrong, the Recipe probably needs adjusting.
Test before saving
Select Test. If the result is unexpectedly high, check that Visit Date is inside the Visits ingredient. If the result is unexpectedly low, check that the relationship says has a count of at least 3, not has any or has no.The Visits filter belongs inside the ingredient because it controls which
visits are counted. A Visit Date filter outside the ingredient would be a
different kind of Recipe.
Save the Recipe
Use a name that explains the purpose: Active male patients aged 50+ with 3+ visits in 2 years Then select Save. Because this Recipe has more moving parts, Version history can be especially helpful. If your team later adjusts the visit count, timeframe, or ingredient, the previous saved version remains available so you can review it and restore it if needed. Older versions remain available for 365 days.What you learned
You used:- Add Ingredient to look at related records
- has a count of to count those related records
- at least 3 to set the minimum count
- Visits as the related table
- Visit Date to limit which visits are counted
- a relative date, 2 years ago