lib/health-data-standards/models/provider.rb in health-data-standards-3.4.6 vs lib/health-data-standards/models/provider.rb in health-data-standards-3.5.0

- old
+ new

@@ -1,8 +1,9 @@ class Provider include Personable include Mongoid::Tree + include Mongoid::Attributes::Dynamic NPI_OID = '2.16.840.1.113883.4.6' TAX_ID_OID = '2.16.840.1.113883.4.2' field :specialty , type: String @@ -82,9 +83,9 @@ # this how they see fit by redefining this method. The default implementation # is to return an orphan parent (the singular provider without an NPI) if one # exists. If this method call return nil an attempt will be made to discover # the Provider by name matching and if that fails a Provider will be created # in the db based on the information in the parsed hash. - def self.resolve_provider(provider_hash) + def self.resolve_provider(provider_hash, patient=nil) Provider.where(:npi => nil).first end end