public async Task <IActionResult> Get([FromRoute] int id)
        {
            // check if the patient with that id exists


            //if they exist, check authorization of the user
            if (await _clinicRepository.GetPatientByIDAsync(id) is Patient patient)
            {
                return(Ok(patient));
            }
            else
            {
                return(NotFound());
            }
        }