Module: Redox::Models

Defined in:
lib/redox/models/meta.rb,
lib/redox/models/note.rb,
lib/redox/models/media.rb,
lib/redox/models/model.rb,
lib/redox/models/notes.rb,
lib/redox/models/visit.rb,
lib/redox/models/patient.rb,
lib/redox/models/provider.rb,
lib/redox/models/component.rb,
lib/redox/models/financial.rb,
lib/redox/models/medication.rb,
lib/redox/models/scheduling.rb,
lib/redox/models/medications.rb,
lib/redox/models/transaction.rb,
lib/redox/models/media_upload.rb,
lib/redox/models/patient/p_c_p.rb,
lib/redox/models/administration.rb,
lib/redox/models/patient/contacts.rb,
lib/redox/models/ordering_provider.rb,
lib/redox/models/patient/insurance.rb,
lib/redox/models/potential_matches.rb,
lib/redox/models/media/notification.rb,
lib/redox/models/patient/identifier.rb,
lib/redox/models/patient/demographics.rb

Defined Under Namespace

Classes: AbstractModel, Administration, Component, Contact, Demographics, Financial, Identifier, Insurance, Media, MediaUpload, Medication, Medications, Meta, Model, Note, Notes, Notification, OrderingProvider, PCP, Patient, PotentialMatches, Provider, Scheduling, Transaction, Visit

Class Method Summary collapse

Class Method Details

.format_datetime(d) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/redox/models/model.rb', line 3

def self.format_datetime(d)
  if d.respond_to?(:strftime)
    d.strftime(Redox::Models::Meta::TO_DATETIME_FORMAT)
  else
    d
  end
end