Sha256: 6ae716db878e9e6d510ddc6fc37dde6a1c9ba3c162041a6fe1f01fba89d5373b

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

module QDM
  # app/models/qdm/entity.rb
  class Entity < Attribute
    include Mongoid::Document
    embedded_in :data_element
    field :id, type: String
    embeds_one :identifier, class_name: 'QDM::Identifier'
    field :qdmVersion, type: String, default: '5.5'
    def initialize(options = {})
      super(options)
      # default id to the mongo ObjectId for this DataElement if it isnt already defined
      self.id = _id.to_s unless id?
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cqm-models-3.1.2 app/models/qdm/attributes/entity.rb
cqm-models-3.1.1 app/models/qdm/attributes/entity.rb
cqm-models-3.1.0 app/models/qdm/attributes/entity.rb
cqm-models-3.0.6 app/models/qdm/attributes/entity.rb
cqm-models-3.0.5 app/models/qdm/attributes/entity.rb
cqm-models-3.0.4 app/models/qdm/attributes/entity.rb
cqm-models-3.0.3 app/models/qdm/attributes/entity.rb
cqm-models-3.0.2 app/models/qdm/attributes/entity.rb
cqm-models-3.0.1 app/models/qdm/attributes/entity.rb
cqm-models-3.0.0 app/models/qdm/attributes/entity.rb