Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 3 commits
  • 21 files changed
  • 0 commit comments
  • 2 contributors
Commits on May 08, 2012
@jletourneau80 jletourneau80 adding diff file and baseline 225 results for versioning 46ff5eb
@jletourneau80 jletourneau80 merge conflict d672f3a
Commits on May 09, 2012
@timbrown01886 moved proctor metadata from vendor to product_test
changed failing measure results to be bold as well as red for 508c compliance
c292f67
View
1  Gemfile
@@ -3,7 +3,6 @@ source 'http://rubygems.org'
gem 'rails', '3.2.2'
gem 'jquery-rails'
gem 'rake'
-
gem 'quality-measure-engine', :git => 'https://github.com/pophealth/quality-measure-engine.git', :branch => 'develop'
#gem 'quality-measure-engine', '1.1.1'
gem 'health-data-standards', :git => 'https://github.com/projectcypress/health-data-standards.git', :branch => 'develop'
View
12 app/assets/stylesheets/cypress.css.scss
@@ -494,9 +494,9 @@ section#quality_measures {
tr th:first-child {text-align:left;}
tr th:nth-child(5) {text-align:left;}
}
- tbody.fail td:nth-child(2) a {color:red}
+ tbody.fail td:nth-child(2) a {color:red;font-weight:bold;}
tbody.pass td:nth-child(2) a {color:green}
- tbody.fail span.f {color:red}
+ tbody.fail span.f {color:red;font-weight:bold;}
td:first-child {width:1em;}
td:nth-child(-n+5) {text-align:center}
td:nth-child(-n+2) {text-align:left}
@@ -536,7 +536,7 @@ section.measure {
td,th {padding:0 8px 0 0;}
th {font-style:italic;text-align:right;color:#000}
span.r {font-weight:bold}
- span.fail {color:red}
+ span.fail {color:red;font-weight:bold;}
}
}
dd.pass {background:url(/assets/pass.png) 0 50% no-repeat;padding-left:20px;color:green}
@@ -836,7 +836,7 @@ section#ehr_results {
tr td:nth-child(5) {width: 100px; text-align:center}
tr td:nth-child(6) {text-align:center}
tr td:nth-child(7) {text-align:right}
- td.fail, td.fail a {color:red}
+ td.fail, td.fail a {color:red;}
td.pass, td.pass a {color:green}
td.incomplete, td.incomplete a {color:#666}
td.na, td.na a {color: #666}
@@ -844,7 +844,7 @@ section#ehr_results {
tbody td:nth-child(7) { text-align: right }
}
td span.pass {color:black}
- td span.fail {color:red}
+ td span.fail {color:red;}
td span.na {font-style:normal}
th.failing {
color:red;
@@ -860,7 +860,7 @@ section#ehr_results {
display: none;
td:nth-child(2).na {color:#666;background:url(/assets/insufficient.png) 0% 50% no-repeat;}
td:nth-child(2).pass {color:green;background:url(/assets/pass.png) 0 50% no-repeat;}
- td:nth-child(2).fail {color:red; background:url(/assets/fail.png) 0% 50% no-repeat;}
+ td:nth-child(2).fail {color:red; background:url(/assets/fail.png) 0% 50% no-repeat;font-weight:bold;}
td:nth-child(2).incomplete {color:#666; background:url(/assets/insufficient.png) 0% 50% no-repeat;}
}
}
View
7 app/models/product_test.rb
@@ -6,6 +6,11 @@ class ProductTest
has_many :test_executions, dependent: :delete
embeds_many :notes, inverse_of: :product_test
+ # Proctor Details
+ field :proctor, type: String
+ field :proctor_tel, type: String
+ field :proctor_email, type: String
+
# Test Details
field :name, type: String
field :description, type: String
@@ -14,7 +19,7 @@ class ProductTest
field :population_creation_job, type: String
field :result_calculation_jobs, type: Hash
field :download_filename, type: String
-
+
validates_presence_of :name
validates_presence_of :effective_date
View
8 app/models/vendor.rb
@@ -24,13 +24,7 @@ class Vendor
field :tech_tel, type: String
field :press_poc, type: String
field :press_email, type: String
- field :press_tel, type: String
-
- # Proctor Details
- field :proctor, type: String
- field :proctor_tel, type: String
- field :proctor_email, type: String
-
+ field :press_tel, type: String
validates_presence_of :name
# Get the products owned by this vendor that are failing
View
8 app/views/product_tests/_product_test_details.html.erb
@@ -9,6 +9,14 @@
<dt>Description:</dt>
<dd><%= f.text_field :description, :size=>"20", :class=>"req" %></dd>
</dl>
+ <dl>
+ <dt>Proctor:</dt>
+ <dd><%= f.text_field :proctor, :size=>"20", :class=>"req" %></dd>
+ <dt>Email:</dt>
+ <dd><%= f.text_field :proctor_email, :size=>"20", :class=>"req" %></dd>
+ <dt>Phone:</dt>
+ <dd><%= f.text_field :proctor_tel, :size=>"20", :class=>"req" %></dd>
+ </dl>
</section>
View
5 app/views/product_tests/show.html.erb
@@ -149,6 +149,11 @@
<dt>Product Version:</dt> <dd><%= @current_execution.product_version %></dd>
</dl>
<dl>
+ <dt>Proctor:</dt> <dd><%= @test.proctor %></dd>
+ <dt>E-mail:</dt> <dd><%= @test.proctor_email %></dd>
+ <dt>Phone:</dt> <dd><%= @test.proctor_tel %></dd>
+ </dl>
+ <dl>
<dt>Description:</dt> <dd><%= @test.description %></dd>
<% if !@never_executed_before %>
<dt>Run on:</dt> <dd><%= @current_execution.pretty_date %></dd>
View
6 app/views/product_tests/show.pdf.prawn
@@ -5,9 +5,9 @@ pdf.text "EHR POC: #{@vendor.poc}"
pdf.text "E-mail: #{@vendor.email}"
pdf.text "Phone: #{@vendor.tel}\n\n"
-pdf.text "Proctor: #{@vendor.proctor}"
-pdf.text "E-mail: #{@vendor.proctor_email}"
-pdf.text "Phone: #{@vendor.proctor_tel}\n\n"
+pdf.text "Proctor: #{@test.proctor}"
+pdf.text "E-mail: #{@test.proctor_email}"
+pdf.text "Phone: #{@test.proctor_tel}\n\n"
pdf.text "Product: #{@product.name}"
pdf.text "Product Version: #{@product.version}"
View
7 app/views/product_tests/wizard_screens/_home.html.erb
@@ -23,5 +23,12 @@
<dd>
<%= f.text_area :description, :cols => 75, :rows => 3 %>
</dd>
+ <dt>Proctor:</dt>
+ <dd><%= f.text_field :proctor, :size=>"20", :class=>"req" %></dd>
+ <dt>Email:</dt>
+ <dd><%= f.text_field :proctor_email, :size=>"20", :class=>"req" %></dd>
+ <dt>Phone:</dt>
+ <dd><%= f.text_field :proctor_tel, :size=>"20", :class=>"req" %></dd>
</dl>
+
</section>
View
8 app/views/vendors/_vendor_details.html.erb
@@ -26,14 +26,6 @@
<dt>Fax:</dt>
<dd><%= f.text_field :fax, :size=>"20", :class=>"req" %></dd>
</dl>
- <dl>
- <dt>Proctor:</dt>
- <dd><%= f.text_field :proctor, :size=>"20", :class=>"req" %></dd>
- <dt>Email:</dt>
- <dd><%= f.text_field :proctor_email, :size=>"20", :class=>"req" %></dd>
- <dt>Phone:</dt>
- <dd><%= f.text_field :proctor_tel, :size=>"20", :class=>"req" %></dd>
- </dl>
</section>
<h2>alternate POCs</h2>
View
1  app/views/vendors/index.html.erb
@@ -49,7 +49,6 @@
<td class="<%= result_status %>"><a href="<%= vendor_path(vendor.id) %>"><%= vendor.name %></a></td>
<td><span class="<%= dot_color %>"><%= vendor.count_passing %></span> <span class="q">/ <%= vendor.products.size %></span></td>
<td><%= vendor.poc %></td>
- <td><%= vendor.proctor %></td>
<td><%= link_to 'delete', { :action => 'destroy', :id => vendor }, :class => 'cmd', :method => :delete, :confirm => 'Are you sure?' %></td>
</tr>
<% if !vendor.products.empty?
View
5 app/views/vendors/show.html.erb
@@ -26,11 +26,6 @@
<dt>E-mail:</dt> <dd><%= @vendor.email %></dd>
<dt>Phone:</dt> <dd><%= @vendor.tel %></dd>
</dl>
- <dl>
- <dt>Proctor:</dt> <dd><%= @vendor.proctor %></dd>
- <dt>E-mail:</dt> <dd><%= @vendor.proctor_email %></dd>
- <dt>Phone:</dt> <dd><%= @vendor.proctor_tel %></dd>
- </dl>
</section>
<section id="ehr_results">
View
12 lib/tasks/mpl.rake
@@ -55,6 +55,18 @@ namespace :mpl do
end
end
+ desc 'Evaluate all measures for the entire master patient list and dumps results to text file for diffing'
+ task :eval_diff_file => :environment do
+ db = loader.get_db
+ current_results = File.new(Rails.root.join("public","current_mpl_results.txt"), "w+")
+ Measure.installed.each do |measure|
+ result = evaluator.eval_for_static_records(measure)
+ current_results.puts measure['id'] + (measure['sub_id'] ? measure['sub_id'] : '') + '["numerator"]:' + result['numerator'].to_s
+ current_results.puts measure['id'] + (measure['sub_id'] ? measure['sub_id'] : '') + '["denominator"]:' + result['denominator'].to_s
+ current_results.puts measure['id'] + (measure['sub_id'] ? measure['sub_id'] : '') + '["exclusions"]:' + result['exclusions'].to_s
+ end
+ end
+
desc 'Perform all tasks necessary for initializing a newly installed system'
task :initialize => :environment do
Rake::Task['mpl:clear'].invoke()
View
33 public/mpl_diff.txt
@@ -0,0 +1,33 @@
+--- /Users/letourneau/Code/cypress/public/mpl_results_baseline.txt Tue May 8 12:01:10 2012
++++ /Users/letourneau/Code/cypress/public/current_mpl_results.txt Tue May 8 13:15:30 2012
+@@ -61,7 +61,7 @@
+ 0024i["numerator"]:3
+ 0024i["denominator"]:8
+ 0024i["exclusions"]:0
+-0027a["numerator"]:0
++0027a["numerator"]:66
+ 0027a["denominator"]:199
+ 0027a["exclusions"]:0
+ 0027b["numerator"]:62
+
+
+--- /Users/letourneau/Code/cypress/public/current_mpl_results.txt Tue May 8 13:35:16 2012
++++ /Users/letourneau/Code/cypress/public/mpl_results_baseline.txt Tue May 8 12:01:10 2012
+@@ -151,7 +151,7 @@
+ 0055["numerator"]:34
+ 0055["denominator"]:48
+ 0055["exclusions"]:7
+-0056["numerator"]:0
++0056["numerator"]:45
+ 0056["denominator"]:48
+ 0056["exclusions"]:7
+ 0059["numerator"]:3
+@@ -202,7 +202,7 @@
+ 0086["numerator"]:11
+ 0086["denominator"]:19
+ 0086["exclusions"]:0
+-0088["numerator"]:4
++0088["numerator"]:8
+ 0088["denominator"]:14
+ 0088["exclusions"]:0
+ 0089["numerator"]:8
View
234 public/mpl_results_baseline.txt
@@ -0,0 +1,234 @@
+0001["numerator"]:44
+0001["denominator"]:48
+0001["exclusions"]:0
+0002["numerator"]:13
+0002["denominator"]:15
+0002["exclusions"]:0
+0004a["numerator"]:0
+0004a["denominator"]:0
+0004a["exclusions"]:0
+0004b["numerator"]:0
+0004b["denominator"]:0
+0004b["exclusions"]:0
+0004c["numerator"]:0
+0004c["denominator"]:0
+0004c["exclusions"]:0
+0004d["numerator"]:0
+0004d["denominator"]:0
+0004d["exclusions"]:0
+0004e["numerator"]:0
+0004e["denominator"]:0
+0004e["exclusions"]:0
+0004f["numerator"]:0
+0004f["denominator"]:0
+0004f["exclusions"]:0
+0012["numerator"]:13
+0012["denominator"]:17
+0012["exclusions"]:1
+0013["numerator"]:108
+0013["denominator"]:111
+0013["exclusions"]:0
+0014["numerator"]:2
+0014["denominator"]:9
+0014["exclusions"]:0
+0018["numerator"]:44
+0018["denominator"]:85
+0018["exclusions"]:0
+0024a["numerator"]:14
+0024a["denominator"]:14
+0024a["exclusions"]:0
+0024b["numerator"]:8
+0024b["denominator"]:14
+0024b["exclusions"]:0
+0024c["numerator"]:8
+0024c["denominator"]:14
+0024c["exclusions"]:0
+0024d["numerator"]:6
+0024d["denominator"]:6
+0024d["exclusions"]:0
+0024e["numerator"]:5
+0024e["denominator"]:6
+0024e["exclusions"]:0
+0024f["numerator"]:5
+0024f["denominator"]:6
+0024f["exclusions"]:0
+0024g["numerator"]:8
+0024g["denominator"]:8
+0024g["exclusions"]:0
+0024h["numerator"]:3
+0024h["denominator"]:8
+0024h["exclusions"]:0
+0024i["numerator"]:3
+0024i["denominator"]:8
+0024i["exclusions"]:0
+0027a["numerator"]:66
+0027a["denominator"]:199
+0027a["exclusions"]:0
+0027b["numerator"]:62
+0027b["denominator"]:199
+0027b["exclusions"]:0
+0028a["numerator"]:174
+0028a["denominator"]:180
+0028a["exclusions"]:0
+0028b["numerator"]:57
+0028b["denominator"]:62
+0028b["exclusions"]:0
+0031["numerator"]:29
+0031["denominator"]:112
+0031["exclusions"]:0
+0032["numerator"]:6
+0032["denominator"]:8
+0032["exclusions"]:0
+0033a["numerator"]:10
+0033a["denominator"]:14
+0033a["exclusions"]:0
+0033b["numerator"]:5
+0033b["denominator"]:7
+0033b["exclusions"]:0
+0033c["numerator"]:5
+0033c["denominator"]:7
+0033c["exclusions"]:0
+0034["numerator"]:45
+0034["denominator"]:108
+0034["exclusions"]:0
+0036a["numerator"]:1
+0036a["denominator"]:3
+0036a["exclusions"]:1
+0036b["numerator"]:9
+0036b["denominator"]:32
+0036b["exclusions"]:1
+0036c["numerator"]:10
+0036c["denominator"]:35
+0036c["exclusions"]:2
+0038a["numerator"]:4
+0038a["denominator"]:5
+0038a["exclusions"]:0
+0038b["numerator"]:0
+0038b["denominator"]:5
+0038b["exclusions"]:0
+0038c["numerator"]:4
+0038c["denominator"]:5
+0038c["exclusions"]:0
+0038d["numerator"]:0
+0038d["denominator"]:5
+0038d["exclusions"]:0
+0038e["numerator"]:2
+0038e["denominator"]:5
+0038e["exclusions"]:0
+0038f["numerator"]:4
+0038f["denominator"]:5
+0038f["exclusions"]:0
+0038g["numerator"]:4
+0038g["denominator"]:5
+0038g["exclusions"]:0
+0038h["numerator"]:1
+0038h["denominator"]:5
+0038h["exclusions"]:0
+0038i["numerator"]:3
+0038i["denominator"]:4
+0038i["exclusions"]:1
+0038j["numerator"]:4
+0038j["denominator"]:5
+0038j["exclusions"]:0
+0038k["numerator"]:0
+0038k["denominator"]:5
+0038k["exclusions"]:0
+0038l["numerator"]:0
+0038l["denominator"]:5
+0038l["exclusions"]:0
+0041["numerator"]:75
+0041["denominator"]:94
+0041["exclusions"]:3
+0043["numerator"]:45
+0043["denominator"]:67
+0043["exclusions"]:0
+0047["numerator"]:40
+0047["denominator"]:49
+0047["exclusions"]:0
+0052["numerator"]:8
+0052["denominator"]:14
+0052["exclusions"]:0
+0055["numerator"]:34
+0055["denominator"]:48
+0055["exclusions"]:7
+0056["numerator"]:45
+0056["denominator"]:48
+0056["exclusions"]:7
+0059["numerator"]:3
+0059["denominator"]:48
+0059["exclusions"]:7
+0061["numerator"]:30
+0061["denominator"]:50
+0061["exclusions"]:5
+0062["numerator"]:30
+0062["denominator"]:49
+0062["exclusions"]:6
+0064a["numerator"]:39
+0064a["denominator"]:48
+0064a["exclusions"]:7
+0064b["numerator"]:35
+0064b["denominator"]:48
+0064b["exclusions"]:7
+0067["numerator"]:21
+0067["denominator"]:28
+0067["exclusions"]:1
+0068["numerator"]:11
+0068["denominator"]:15
+0068["exclusions"]:0
+0070["numerator"]:9
+0070["denominator"]:9
+0070["exclusions"]:1
+0073["numerator"]:0
+0073["denominator"]:15
+0073["exclusions"]:0
+0074["numerator"]:18
+0074["denominator"]:28
+0074["exclusions"]:0
+0075a["numerator"]:14
+0075a["denominator"]:15
+0075a["exclusions"]:0
+0075b["numerator"]:13
+0075b["denominator"]:15
+0075b["exclusions"]:0
+0081["numerator"]:0
+0081["denominator"]:0
+0081["exclusions"]:0
+0083["numerator"]:0
+0083["denominator"]:0
+0083["exclusions"]:0
+0084["numerator"]:11
+0084["denominator"]:14
+0084["exclusions"]:2
+0086["numerator"]:11
+0086["denominator"]:19
+0086["exclusions"]:0
+0088["numerator"]:8
+0088["denominator"]:14
+0088["exclusions"]:0
+0089["numerator"]:8
+0089["denominator"]:10
+0089["exclusions"]:0
+0105a["numerator"]:0
+0105a["denominator"]:0
+0105a["exclusions"]:0
+0105b["numerator"]:0
+0105b["denominator"]:0
+0105b["exclusions"]:0
+0385["numerator"]:4
+0385["denominator"]:8
+0385["exclusions"]:1
+0387["numerator"]:5
+0387["denominator"]:8
+0387["exclusions"]:4
+0389["numerator"]:6
+0389["denominator"]:8
+0389["exclusions"]:0
+0421a["numerator"]:52
+0421a["denominator"]:55
+0421a["exclusions"]:0
+0421b["numerator"]:113
+0421b["denominator"]:126
+0421b["exclusions"]:4
+0575["numerator"]:38
+0575["denominator"]:50
+0575["exclusions"]:5
View
5 test/fixtures/product_tests/product_test1.json
@@ -19,7 +19,10 @@
"name" : "vendor1 product1 test1",
"population_creation_job" : "92949a404b79012f0262000c297b3103",
"product_id" : "4f57a88a1d41c851eb000004",
- "result_calculation_jobs" : {
+ "proctor" : "Fred Bloggs",
+ "proctor_email" : "fred@example.com",
+ "proctor_tel" : "555-555-5555",
+ "result_calculation_jobs" : {
},
"notes" : [],
View
5 test/fixtures/product_tests/product_test2.json
@@ -19,7 +19,10 @@
"name" : "vendor1 product1 test2",
"population_creation_job" : "92949a404b79012f0262000c297b3103",
"product_id" : "4f57a88a1d41c851eb000004",
- "result_calculation_jobs" : {
+ "proctor" : "Fred Bloggs",
+ "proctor_email" : "fred@example.com",
+ "proctor_tel" : "555-555-5555",
+ "result_calculation_jobs" : {
},
"notes" : [],
View
3  test/fixtures/product_tests/product_test3.json
@@ -19,6 +19,9 @@
"name" : "vendor2 product1 test1",
"population_creation_job" : "a04a92d051b3012f0262000c297b3103",
"product_id" : "4f636ae01d41c851eb00048e",
+ "proctor" : "Fred Bloggs",
+ "proctor_email" : "fred@example.com",
+ "proctor_tel" : "555-555-5555",
"result_calculation_jobs" : {
},
View
3  test/fixtures/product_tests/product_test4.json
@@ -19,6 +19,9 @@
"name" : "vendor1 product2 test1",
"population_creation_job" : "a04a92d051b3012f0262000c297b3103",
"product_id" : "4f6b77831d41c851eb0004a5",
+ "proctor" : "Fred Bloggs",
+ "proctor_email" : "fred@example.com",
+ "proctor_tel" : "555-555-5555",
"result_calculation_jobs" : {
},
View
3  test/fixtures/product_tests/product_test5.json
@@ -12,6 +12,9 @@
"name" : "vendor1 product2 test2",
"population_creation_job" : "a04a92d051b3012f0262000c297b3103",
"product_id" : "4fa3041c3a8ff329d6000006",
+ "proctor" : "Fred Bloggs",
+ "proctor_email" : "fred@example.com",
+ "proctor_tel" : "555-555-5555",
"result_calculation_jobs" : {
},
View
3  test/fixtures/vendors/ehr1.json
@@ -12,9 +12,6 @@
"email" : "john@texample.com",
"tel" : "555-555-5555",
"fax" : "555-555-5555",
- "proctor" : "Fred Bloggs",
- "proctor_email" : "fred@example.com",
- "proctor_tel" : "555-555-5555",
"accounts_poc" : "Bill Smith",
"accounts_email" : "bill@example.com",
"accounts_tel" : "555-555-5555",
View
3  test/fixtures/vendors/ehr2.json
@@ -11,9 +11,6 @@
"email" : "john@texample.com",
"tel" : "555-555-5555",
"fax" : "555-555-5555",
- "proctor" : "Fred Bloggs",
- "proctor_email" : "fred@example.com",
- "proctor_tel" : "555-555-5555",
"accounts_poc" : "Bill Smith",
"accounts_email" : "bill@example.com",
"accounts_tel" : "555-555-5555",

No commit comments for this range

Something went wrong with that request. Please try again.