Patient and central admin control access to records

Hi, Is there a feature where patients can control access to records? If the patient visits GP/hospital/lab/… patient generates (app/web) and/or central admin can issue a code that is valid to use in a certain time frame and after that access is revoked for the GP/…

This helps the patient to visit any GP/hospital/… without providing permanent access to records except the central health system.

Any help is appreciated.

Kind regards, Mahmood