code: public void getNotifications(Patient patient, Collection<Notification> result) {
          List<String> lst = null;
          result.clear();
  
          if (patient == null) {
              lst = broker.callRPCList("RGCWXQ ALRLIST", null);
          } else if (patient != null) {
              lst = broker.callRPCList("RGCWXQ ALRLIST", null, patient.getIdElement().getIdPart());
          }
  
          if (lst != null) {
              for (String item : lst) {
                  result.add(new Notification(item));
              }
          }
      }
docs: Returns notifications for the current user.
  
  @param patient If not null, only notifications associated with the current user are returned.
  Otherwise, all notifications for the current user are returned.
  @param result The list to receive the results.