Handling appointments with emacs org mode

  • install emacs, org-mode, emacsclient
  • add to check-prereqs.sh
  • add org-mode to Debian Rec:
  • gnumed.py: create ~/gnumed/appointments/

GNUmed config

  • option Emacs org-mode appointments file
    • default to ~/gnumed/appointments/gnumed-emacs_appointments.org
    • create if not exists ?
    • touch filename.org or emacsclient filename.org ?
  • option org-mode tag for GNUmed appointment
    • default to GNUmed

creating appointment

  • run emacsclient filename.org
  • detect "server not running" error and start server
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: No socket or alternate editor.  Please use:

        --server-file      (or environment variable EMACS_SERVER_FILE)
        --alternate-editor (or environment variable ALTERNATE_EDITOR)
  • better ways ?
  • pass in name/dob of patient
    • how to retrieve inside emacs ?
    • by pre-setting a buffer ?

viewing appointments

  • export agenda view
  • export as CSV, format is (from file mygtd.org):
    • mygtd,example of GNUmed appointment,timestamp,,,2008-7-31,1100,,,1000,2008-7-31
     category     The category of the item
     head         The headline, without TODO kwd, TAGS and PRIORITY
     type         The type of the agenda entry, can be
                     todo               selected in TODO match
                     tagsmatch          selected in tags match
                     diary              imported from diary
                     deadline           a deadline
                     scheduled          scheduled
                     timestamp          appointment, selected by timestamp
                     closed             entry was closed on date
                     upcoming-deadline  warning about nearing deadline
                     past-scheduled     forwarded scheduled item
                     block              entry has date block including date
     todo         The TODO keyword, if any
     tags         All tags including inherited ones, separated by colons
     date         The relevant date, like 2007-2-14
     time         The time, like 15:00-16:50
     extra        String with extra planning info
     priority-l   The priority letter if any was given
     priority-n   The computed numerical priority
  • parse for tag GNUmed or parse for category gnumed-emacs_appointments (given the above file is used)
    • I think this is the right thing to do, like the example in org-mode manual using Perl script to process the *.CSV file.
  • how to pre-select export time range ?
    • afaik, it's not possible, it's only possible to select date-range. Otoh, if we require that all the appointments are tagged with GNUmed tag, then it will be easy to parse only what we need.
  • display in KOrganizer viewer
  • use "extra" for patient ID ?
Topic revision: 30 Jul 2008, GourD
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Powered by Olark