public async Task <IActionResult> Get([FromRoute] int PatientId, [FromQuery] DateTime?afterDate = null)
 {
     if (await _clinicRepository.GetPatientReportsAsync(PatientId) is IEnumerable <PatientReport> reports)
     {
         return(Ok(reports));
     }
     else
     {
         return(NotFound());
     }
 }
        public async Task <IActionResult> GetReports([FromRoute] int id)
        {
            // check if the patient with that id exists


            //if they exist, check authorization of the user

            //probably then forward this request to the reports controller
            if (await _clinicRepository.GetPatientReportsAsync(id) is IEnumerable <PatientReport> reports)
            {
                return(Ok(reports));
            }
            else
            {
                return(NotFound());
            }
        }