app/models/qdm/attributes/identifier.rb in cqm-models-4.1.1 vs app/models/qdm/attributes/identifier.rb in cqm-models-4.2.0

- old
+ new

@@ -3,7 +3,9 @@ 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