| Class | SessionType |
| In: |
app/models/session_type.rb
|
| Parent: | ActiveRecord::Base |
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.
A shortcut for displaying the name and length of a SessionType
# File app/models/session_type.rb, line 16
16: def details
17: return "#{self.name} (#{self.default_length} mins)"
18: end