Sha256: 15101b66ac186f7dfe6a19a5b161d2de257fc10c439d473c8ee32cc61ba433dd
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 Bytes
Contents
class Record include Mongoid::Document field :first, type: String field :last, type: String field :gender, type: String field :birthdate, type: Integer field :race, type: String field :ethnicity, type: String field :test_id, type: BSON::ObjectId field :medical_record_number, type: String [:allergies, :care_goals, :conditions, :encounters, :immunizations, :medical_equipment, :medications, :procedures, :results, :social_history, :vital_signs].each do |section| embeds_many section, as: :entry_list, class_name: "Entry" end def over_18? Time.at(birthdate) < Time.now.years_ago(18) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-0.5.0 | lib/health-data-standards/models/record.rb |