diff --git a/app/assets/javascripts/models/provider.js.coffee b/app/assets/javascripts/models/provider.js.coffee index 5a25b3b72..e18df2d96 100644 --- a/app/assets/javascripts/models/provider.js.coffee +++ b/app/assets/javascripts/models/provider.js.coffee @@ -17,7 +17,7 @@ class Thorax.Models.Provider extends Thorax.Model json npi: -> if @providerType() == '2.16.840.1.113883.4.6' then @providerExtension() - + class Thorax.Collections.Providers extends Thorax.Collection url: '/api/providers' model: Thorax.Models.Provider diff --git a/app/assets/javascripts/views/provider_view.js.coffee b/app/assets/javascripts/views/provider_view.js.coffee index 42c2f8e20..803f26fda 100644 --- a/app/assets/javascripts/views/provider_view.js.coffee +++ b/app/assets/javascripts/views/provider_view.js.coffee @@ -9,7 +9,7 @@ class Thorax.Views.ProviderView extends Thorax.View providerType: @model.providerType() || "" providerExtension: @model.providerExtension() || "" npi: @model.npi() || "" - patient_count_format: PopHealth.Helpers.formatNumber(@model.get('patient_count')) + patient_count_format: PopHealth.Helpers.formatNumber(@model.test()) events: 'click .effective-date-btn' : 'setEffectiveDate' rendered: -> diff --git a/config/environment.rb b/config/environment.rb index ec3759a97..18d8708d4 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -13,3 +13,4 @@ require_relative '../lib/import_archive_job.rb' require_relative '../lib/provider_tree_importer.rb' require_relative '../lib/hds/bulk_record_importer.rb' +require_relative '../lib/hds/section_importer.rb' diff --git a/lib/hds/section_importer.rb b/lib/hds/section_importer.rb new file mode 100644 index 000000000..4503fd83a --- /dev/null +++ b/lib/hds/section_importer.rb @@ -0,0 +1,8 @@ +class SectionImporter < HealthDataStandards::Import::CDA::SectionImporter + + def initialize(entry_finder) + super + @description_xpath = "./cda:code/cda:originalText/cda:reference[@value] | ./cda:text/cda:reference[@value] | ./cda:code[@displayName]" + end +end +