private void fillRecordBrowser() {
    form.recbrOPDMedicalNotes().clear();

    OPDGenNotesShortVoCollection voGenNotesColl =
        domain.listOPDGenNotesByEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    voGenNotesColl = isCareContextPresent(voGenNotesColl);
    if (voGenNotesColl != null) {
      for (int i = 0; i < voGenNotesColl.size(); i++) {
        OPDGenNotesShortVo voOPDGenNotes = voGenNotesColl.get(i);
        CareContextShortVo voCareContext = voOPDGenNotes.getCareContext();
        loadCareContextDetails(voCareContext);
      }
    }

    browseRecord();
  }
  private OPDGenNotesShortVoCollection isCareContextPresent(
      OPDGenNotesShortVoCollection voGenNotesColl) {
    boolean currentCareContextFound = false;
    if (voGenNotesColl != null) {
      for (int i = 0; i < voGenNotesColl.size(); i++) {
        CareContextShortVo voNotesCareContext = voGenNotesColl.get(i).getCareContext();
        if (voNotesCareContext
            .getID_CareContext()
            .equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
          currentCareContextFound = true;
      }
    }

    if (!currentCareContextFound) {
      OPDGenNotesShortVo voOPDGenNotesShortVo = new OPDGenNotesShortVo();
      voOPDGenNotesShortVo.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
      if (voGenNotesColl == null) voGenNotesColl = new OPDGenNotesShortVoCollection();
      voGenNotesColl.add(voOPDGenNotesShortVo);
      voGenNotesColl.sort(SortOrder.DESCENDING);
    }
    return voGenNotesColl;
  }