Creating a doctor's schedule

Discussion in 'Documentation & Training Resources' started by Graham, May 7, 2006.

  1. Graham

    Graham Developer Staff Member

    <table border="0" cellpadding="4" cellspacing="0" width="660">
    <tbody><tr height="10"><td></td></tr>
    <tr><td><h1>Creating A Doctor's Schedule</h1>
    <h2>Contents:</h2>
    1. Introduction



    2. Keywords


    2.1 Working


    2.2 Block


    2.3 Finish


    2.4 Away


    3. Example



    4. Implementation


    <h2 id="section-1">1. Introduction</h2>
    <blockquote>

    Synapse-EMR uses what is known as a dialect, or domain specific language, to specify a doctor's schedule. Although this sounds very formidable, it in fact a very simple way of defining schedules that can be easily copied to other doctors in your practise.


    However, it does require that the "program" you write must be syntactically correct or otherwise Synapse-EMR will not be able to understand what is being asked. Computers are very literal and do what you say, not what you want.


    The dialect understands dates, days of the week, times in 24 hour clock, and time periods.
    <pre> working Monday period 20 start 9:30</pre>


    simply means, that this staff member is working Mondays, he sees patients in 20 min blocs, and starts work at 9:30 Am.

    </blockquote>
    <h2 id="section-2">2. Keywords</h2>
    <blockquote></blockquote>
    <h3 id="section-2.1">2.1 Working</h3>
    <blockquote>

    As we have seen above, "working" defines a working day. It also requires the keywords "period" which specifies the standard time allocated for each patient, and "start" which specifies what time that day starts.
    <h4 id="section-2.1.1">2.1.1 period</h4>


    Takes an integer
    <pre> period 30</pre>
    <h4 id="section-2.1.2">2.1.2 start</h4>



    Takes a time
    <pre> start 9:00</pre>
    </blockquote>
    <h3 id="section-2.2">2.2 Block</h3>
    <blockquote>

    "Block" is used to close off a time period during the working day. It takes a start time, a finish time, and optionally a reason
    <pre> block 12:00 to 13:00 for lunch
    block 10:00 to 10:20 for "morning tea"
    block 15:00 to 15:30</pre>


    The first means to block one hour for lunch, the second blocks 20 mins for morning tea ( note that quote marks are required when there is a space in the reason), and the last blocks 30 mins off starting at 3 pm.


    Although these periods are blocked off visually, appointments can still be scheduled in these periods - the person doing the booking will just receive a warning.

    </blockquote>
    <h3 id="section-2.3">2.3 Finish</h3>
    <blockquote>

    "Finish" just takes a time at which the day finishes.
    <pre> finish 19:30</pre>
    </blockquote>
    <h3 id="section-2.4">2.4 Away</h3>
    <blockquote>

    Away blocks off days of the week, a particular day, or a range of dates.
    <pre> away every Wednesday at "Beverley Hills Golf Club"
    away from 24-Dec-2006 to 7-Jan-2007 on "Xmas Holidays"
    away 8-Aug-2006 on Conference
    away 9-Aug-2006 at "Palm Beach"</pre>
    <h4 id="section-2.4.1">2.4.1 Every</h4>



    "Every" is used to specify recurring weekly events
    <pre> every Wednesday</pre>
    <h4 id="section-2.4.2">2.4.2 From To On</h4>


    "From" "To" "On" are used to specify a range of dates
    </blockquote>
    <h2 id="section-3">3. Example</h2>
    <blockquote><pre> working Tuesday period 30 start 9:30
    block 10:00 to 10:15 for "morning tea"
    block 12:00 to 13:00 for lunch
    finish 17:30
    away every Wednesday at "Beverley Hills Golf"
    away from 25-Dec-2006 to 4-Jan-2007 on "Xmas Holidays"</pre>


    Here's an example for Tuesday. The doctor starts work at 9:30, sees patients in 30 min periods, has a 15 minute break at 10:00Am for morning tea, a break at 12:00 for one hour for lunch, and then works thru to finish at 17:30. On Wednesday he always has an important business meeting with colleagues. And he ha
  2. Jason

    Jason Developer / Handyman Staff Member

    It is a very interesting method of generating schedules.

  3. Graham

    Graham Developer Staff Member

    But once you understand it, it is supremely easy to manage scheduling [:D]

Share This Page