@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_visit_dashboard);

    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);

    if (toolbar != null) {
      setSupportActionBar(toolbar);
    }

    Intent intent = getIntent();

    mVisit =
        new VisitDAO()
            .getVisitsByID(intent.getLongExtra(ApplicationConstants.BundleKeys.VISIT_ID, 0));
    mPatient = new PatientDAO().findPatientByID(String.valueOf(mVisit.getPatientID()));

    mPatientName = intent.getStringExtra(ApplicationConstants.BundleKeys.PATIENT_NAME);
    mVisitEncounters = mVisit.getEncounters();

    mEmptyListView = (TextView) findViewById(R.id.visitDashboardEmpty);
    FontsUtil.setFont(mEmptyListView, FontsUtil.OpenFonts.OPEN_SANS_BOLD);
    mExpandableListView = (ExpandableListView) findViewById(R.id.visitDashboardExpList);
    mExpandableListView.setEmptyView(mEmptyListView);
  }
 @Override
 public void updateEncounterList() {
   mVisitEncounters.clear();
   mExpandableListAdapter.notifyDataSetChanged();
   mVisit.setEncounters(new EncounterDAO().findEncountersByVisitID(mVisit.getId()));
   mVisitEncounters.addAll(mVisit.getEncounters());
   mExpandableListAdapter.notifyDataSetChanged();
 }