On different software I’ve developed Use Case diagrams with ‘Extends’ with a constraint which you can easily see on the diagram itself rather than hidden information.
E.g. view appointments might lead to view patient medical records, but only if the end user is a doctor.