Class SessionType
In: app/models/session_type.rb
Parent: ActiveRecord::Base

Session Type

Each clinical session (from version 1.1) has a type. The type is a label which defines the default length and can be searched on.

Each Discipline has it‘s own list of sessions types and default values.

Methods

details  

Public Instance methods

A shortcut for displaying the name and length of a SessionType

[Source]

    # File app/models/session_type.rb, line 16
16:   def details
17:     return "#{self.name} (#{self.default_length} mins)"
18:   end

[Validate]