Data Display Based on Position or Medical Department

There are two use cases, If anyone can help how to show data for both use cases

Use case 1: I am manager and there are two technicians working in Lab. Each technician should be able to view only those lab tests which are assigned to them and shouldn’t be able to view each others lab tests. Where as manager can view all the lab tests conducted by both technicians.

Use Case 2: Department1 is assigned to technician1 and department2 is assigned to technician2. we have two lab tests lab_text_1 assigned to department1 and lab_test_2 assigned to department2. How can we enable technician1 to see only those lab tests which are created under his department and similarly for technician2.

You can set role based permissions to restrict access.

You can read these for more details. https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/users-and-permissions/user-permissions