/**
   * REST service for getting all patients.
   *
   * @return list with all patients.
   */
  @GET
  @Path("getPatients")
  @Produces(MediaType.APPLICATION_JSON)
  public List<Patient> getAllPatients() {
    List<Patient> patientsList = patientService.findAll();

    return patientsList;
  }