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 ) ) ; } } }
Returns notifications for the current user .