Sha256: 2c0a1f6b25f6de158003ac50dbe0e49687fd5688fa803eb25a85d00a1a16c184

Contents?: true

Size: 406 Bytes

Versions: 17

Compression:

Stored size: 406 Bytes

Contents

class CDAIdentifier
  include Mongoid::Document

  field :root, type: String
  field :extension, type: String
  embedded_in :entry

  def ==(comparison_object)
    if comparison_object.respond_to?(:root) && comparison_object.respond_to?(:extension)
      self.root == comparison_object.root && self.extension == comparison_object.extension
    end
  end

  def hash
    "#{root}#{extension}".hash
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
health-data-standards-3.4.1 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.4.0 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.12 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.3.0 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.11 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.10 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.8 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.7 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.6 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.5 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.4 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.3 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.2 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.1 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.2.0 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.1.1 lib/health-data-standards/models/cda_identifier.rb
health-data-standards-3.1.0 lib/health-data-standards/models/cda_identifier.rb