clinical_session.rb

Path: app/models/clinical_session.rb
Last Update: Wed Dec 13 13:23:25 +1030 2006

Clinical Session

A ClinicalSession is a designated time slot that any number of Client can be booked into (up to max_bookings).

Clinical sessions are controller through the SessionController

Rules

  • Each ClinicalSession belongs to one Clinician
  • A clinician can only have 1 session running at a particular moment in time.
  • A session must have a start and finish time
  • A clinical session must start and finish between 0700 and 1900
  • A session must be at least 15 minutes long

Recurring Sessions

As of Version 1.09, recurring sessions can be created. That is, sessions which are repeated.

The implementation of recursion is ad-hoc, meaning that recurring sessions are created as independant sessions. Any consecutive session that occurs for the same clinician at the same time and is the same type is considered to be a reoccurence.

Group Sessions

As of Version 1.10, sessions may have multiple bookings, up to max_bookings.

Required files

event  

[Validate]