changed naming scheme for ViewEarningByDoctor to align with other similar procedures