Skip to content

Commit

Permalink
wth - (SPARCCatalog) Add Order Code In Epic Interface Box
Browse files Browse the repository at this point in the history
Background: The order codes are used for lab orders in Epic as unique identifiers. We have previously added the "Order Code" column into the SPARCDashboard Coverage Analysis report, without a place to enter the codes into the system.

Please:
1). Add a order_code column into the services table;
2). In SPARCCatalog services "Epic Interface" box, add the "Order Code" field for users to enter the codes;
3). Link the SPARCDashboard Coverage Analysis report "Order Code" column to pull in corresponding data.

[#151065150]

Story - https://www.pivotaltracker.com/story/show/151065150
  • Loading branch information
William Holt committed Sep 25, 2017
1 parent 5de4514 commit 6cb3f23
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/catalog_manager/services_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def service_params
:cpt_code,
:eap_id,
:charge_code,
:order_code,
:revenue_code,
:organization_id,
:send_to_epic,
Expand Down
3 changes: 3 additions & 0 deletions app/views/catalog_manager/services/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
%tr
%th= f.label :revenue_code, t(:organization_form)[:revenue_code]
%td= f.text_field :revenue_code
%tr
%th= f.label :order_code, t(:organization_form)[:order_code]
%td= f.text_field :order_code
%tr
%th= f.label :send_to_epic, t(:organization_form)[:send_to_epic]
%td= f.check_box :send_to_epic
Expand Down
3 changes: 3 additions & 0 deletions app/views/catalog_manager/services/_new_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
%tr
%th= f.label :revenue_code, t(:organization_form)[:revenue_code]
%td= f.text_field :revenue_code
%tr
%th= f.label :order_code, t(:organization_form)[:order_code]
%td= f.text_field :order_code
%tr
%th= f.label :send_to_epic, t(:organization_form)[:send_to_epic]
%td= f.check_box :send_to_epic
Expand Down
2 changes: 1 addition & 1 deletion app/views/service_requests/show.xlsx.axlsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ wb.add_worksheet(name: "Review") do |sheet|
next if value[:line_items].exclude?(line_item) || (@sub_service_request.present? && line_item.sub_service_request_id != @sub_service_request.id)

totals_hash = line_items_visit.try(:per_subject_rt_indicated)
service_row = [line_item.service.name, line_item.service.cpt_code, ""]
service_row = [line_item.service.name, line_item.service.cpt_code, line_item.service.order_code]

if line_items_visit.notes.empty?
service_row += [""]
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ en:
new_sp: "New Service Provider"
one_time_fee: "Non-clinical (Non-Per </br> Patient/Visit) Services"
order: "Order"
order_code: "Order Code"
otf_field_errors: "If the Pricing Map is a non-clinical service (the box is checked), Quantity Type, Quantity Minimum, Unit Type, and Unit Maximum are required."
per_patient_errors: "Clinical Quantity Type, Unit Factor, and Units Per Qty Maximum are required on all Per Patient Pricing Maps."
pricing_maps: "Pricing Maps"
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20170922153853_add_order_code_to_services.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddOrderCodeToServices < ActiveRecord::Migration[5.1]
def change
add_column :services, :order_code, :string, after: :organization_id
end
end

0 comments on commit 6cb3f23

Please sign in to comment.