Skip to content

Commit

Permalink
add section importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabbir Siddiqui committed Jun 19, 2015
1 parent 9977f1a commit c40ff57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/models/provider.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/views/provider_view.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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: ->
Expand Down
1 change: 1 addition & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 8 additions & 0 deletions lib/hds/section_importer.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c40ff57

Please sign in to comment.