What if the patient is unknown?

I already found a way to disable the other mandatory fields like date of birth, age, and last name. However, I am stuck in finding a way to disable the first name mandatory and gender mandatory. Please help. Thanks