private boolean isValidDose(
     AdherenceValidationRequest adherenceValidationRequest, Dosage dosage) {
   String doseTakenCount = adherenceValidationRequest.getDoseTakenCount();
   return StringUtils.isNumeric(doseTakenCount)
       && dosage.isValidInput(Integer.parseInt(doseTakenCount));
 }