Example #1
0
 @Override
 public void catchElexisEvent(ElexisEvent ev) {
   switch (ev.getType()) {
     case ElexisEvent.EVENT_CREATE:
       /*
        * Konsultation k = (Konsultation) ev.getObject(); Samdas entry = k.getEntryRaw();
        * Record record = entry.getRecord(); break;
        */
   }
 }
Example #2
0
 @Override
 public void runInUi(ElexisEvent ev) {
   Episode ep = (Episode) ev.getObject();
   switch (ev.getType()) {
     case ElexisEvent.EVENT_SELECTED:
       if (ep.getStatus() == Episode.ACTIVE) {
         activateEpisodeAction.setChecked(true);
       } else {
         activateEpisodeAction.setChecked(false);
       }
       if (konsFilterAction.isChecked()) {
         episodesFilter.setProblem(ep);
       }
       break;
     case ElexisEvent.EVENT_DESELECTED:
       episodesFilter.setProblem(null);
       break;
     case ElexisEvent.EVENT_UPDATE:
       display.tvEpisodes.refresh();
       break;
   }
 }
Example #3
0
 @Override
 public void runInUi(ElexisEvent ev) {
   display.setPatient((Patient) ev.getObject());
 }