Diagnosis control by Number of Visits

The Bahmni document shows that number of diagnosis displayed on patient dashboard can be configured through number of visits. But that doesn’t seem to be working. Here’s my config

"diagnosis": {
                "translationKey": "DASHBOARD_TITLE_DIAGNOSIS_KEY",
                "type": "diagnosis",
                "showCertainty": true,
                "showOrder": true,
                "showDetailsButton": true,
                "displayOrder": 2,
                "numberOfVisits": 1,
                "dashboardConfig": {
                    "numberOfVisits": 1,
                    "title": null,
                    "groupByVisits": true

Also, I looked into controller, there seems to be no parameter like numberOfVisits like other controllers. Am I missing something?