Sha256: f741513160a4e102b16b345630113fe7366ba32d249e37686a2ff1beeaae818d

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module QDM
  # app/models/qdm/identifier.rb
  class Identifier < Attribute
    include Mongoid::Document
    field :namingSystem, type: String
    field :value, type: String
    field :qdmVersion, type: String, default: '5.6'

    validates_uniqueness_of :value, conditions: -> { where(namingSystem: CQM::Provider::NPI_OID) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/models/qdm/attributes/identifier.rb