How to include core's findPatient addPatient in a custom module?

i am developing an outpatient module and would like to include add and find patient core functionalities of OpenMRS without redirect to admin page.would like all this to take place in the Outpatient module