client.rb

Path: app/models/client.rb
Last Update: Mon Dec 18 14:49:35 +1030 2006

Client

A client can make a Booking to see a Clinician. Currently there is only a small amount of information in the Client object. This is likely to be expanded.

Clients are mainly controlled through the ClientController

Rules

  • A client may have many Bookings
  • A client must have a first_name
  • A client must have a last_name
  • Each client must have a unique record_number
  • Client names and record numbers may only consist of letters, numbers and spaces
  • A phone number may only consist of numbers, brackets and spaces

[Validate]