@RequestMapping(
      value = "/{patientId}",
      method = RequestMethod.DELETE,
      produces = "application/json")
  public ResponseEntity<?> delete(
      @PathVariable("patientId") int patientId,
      @RequestParam(required = false) String searchFor,
      @RequestParam(required = false, defaultValue = DEFAULT_PAGE_DISPLAYED_TO_USER) int page,
      Locale locale) {

    try {
      patientService.delete(patientId);
    } catch (AccessDeniedException e) {
      return new ResponseEntity<Object>(HttpStatus.FORBIDDEN);
    }

    if (isSearchActivated(searchFor)) {
      return search(searchFor, page, locale, "message.delete.success");
    }

    return createListAllResponse(page, locale, "message.delete.success");
  }