Sha256: 9ee757ed9160338cefedc691d923425d53e8171466f7db6d726d991de1fcb5a4
Contents?: true
Size: 636 Bytes
Versions: 25
Compression:
Stored size: 636 Bytes
Contents
module Clinical module Outcome def self.included(base) base.send(:include, InstanceMethods) base.class_eval do include InstanceMethods include HappyMapper element :measure, String element :time_frame, String element :safety_issue, String end end module InstanceMethods def primary? self.class.tag_name == "primary_outcome" end def to_s val = "#{measure}" val << ", TIME FRAME: #{time_frame}" if time_frame val << ",SAFETY ISSUE: #{safety_issue}" if safety_issue val end end end end
Version data entries
25 entries across 25 versions & 2 rubygems