Sha256: 5e7d14c818beb373b74b492700ad915767728f6c56fc44ec2a4000ea3c269dff

Contents?: true

Size: 851 Bytes

Versions: 43

Compression:

Stored size: 851 Bytes

Contents

module Extensions
  module HL7
    module Segments
      module EVN

        def self.included base
          base.send :include, InstanceMethods
          base.extend ClassMethods
        end
        
        module InstanceMethods
          def event_datetime
            self.event_occurred || self.recorded_date
          end  
        end
        
        module ClassMethods
          def description
            "Event Type"
          end
          
          def field_description(field_index)
            [
              "Event Type Code",
              "Recorded Date/Time",
              "Date/Time Planned Event",
              "Event Reason Code",
              "Operator Id",
              "Event Occurred",
              "Event Facility"
              ][field_index-1]
          end
        end
        
      end
    end
  end
end
    

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ruby-hl7-extensions-0.4.8 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.7 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.6 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.5 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.4 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.3 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.2 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.1 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.4.0 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.3.6 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.3.4 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.3.3 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.3.2 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.3.1 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.2.2 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.2.1 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.2.0 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.1.9 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.1.8 lib/core_ext/segments/evn.rb
ruby-hl7-extensions-0.1.7 lib/core_ext/segments/evn.rb