@yadamz I had the same challenge which was resolved here by adding the data to my from metadata How to add/remove fragments from dashboard & link forms
The forms are added to the patient dashboard when you are viewing a specific patient so checks #4 and #5 are not relevant
The additional checks on the UI could be added as follows:
location.id = 4 && patient.person.gender==‘M’ && patient.person.age > 16
Note the use of HTML entities for special characters & for & and > for > which