public async Task <Result <Patient> > Handle(GetPatientByIdCommand request, CancellationToken cancellationToken)
        {
            using (_unitOfWork)
            {
                try
                {
                    RegisterPersonService registerPersonService = new RegisterPersonService(_unitOfWork);
                    var result = await registerPersonService.GetPatient(request.Id);

                    return(Result <Patient> .Valid(result));
                }
                catch (Exception e)
                {
                    Log.Error(e.Message + " " + e.InnerException);
                    return(Result <Patient> .Invalid(e.Message));
                }
            }
        }