Skip to content

Commit

Permalink
wth - show EPIC EMR Access column
Browse files Browse the repository at this point in the history
Added columns to Authorized User tables in SPARCRequest Steps 1 & 4,
also in Dashboard. [#134878077]
  • Loading branch information
William Holt committed Nov 30, 2016
1 parent 946eaea commit c3758cc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/associated_users/_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
= t(:authorized_users)[:table_fields][:phone]
%th{ data: { field: 'proxy_rights', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:rights]
- if protocol.selected_for_epic?
%th{ data: { field: 'epic_emr_access', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:epic_emr_access]
%th{ data: { field: 'edit', align: 'center', sortable: 'false' } }
= t(:actions)[:edit]
%th{ data: { field: 'delete', align: 'center', sortable: 'false' } }
Expand Down
1 change: 1 addition & 0 deletions app/views/associated_users/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ json.(@protocol_roles) do |pr|
json.name "#{pr.identity.full_name} #{(pr.identity_id == @protocol.requester_id) ? '(Requester)' : ''}"
json.role USER_ROLES.detect { |_, v| v == pr.role }.first
json.proxy_rights PROXY_RIGHTS.key(pr.project_rights)
json.epic_emr_access pr.epic_access
json.email pr.identity.email
json.phone pr.identity.phone
json.protocol_id pr.protocol_id
Expand Down
3 changes: 3 additions & 0 deletions app/views/dashboard/associated_users/_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
= t(:authorized_users)[:table_fields][:phone]
%th{ data: { field: 'proxy_rights', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:rights]
- if protocol.selected_for_epic?
%th{ data: { field: 'epic_emr_access', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:epic_emr_access]
%th{ data: { field: 'edit', align: 'center', sortable: 'false' } }
= t(:actions)[:edit]
%th{ data: { field: 'delete', align: 'center', sortable: 'false' } }
Expand Down
1 change: 1 addition & 0 deletions app/views/dashboard/associated_users/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ json.(@protocol_roles) do |pr|
json.name "#{pr.identity.full_name} #{(pr.identity_id == @protocol.requester_id) ? '(Requester)' : ''}"
json.role USER_ROLES.detect { |_, v| v == pr.role }.first
json.proxy_rights PROXY_RIGHTS.key(pr.project_rights)
json.epic_emr_access pr.epic_access
json.email pr.identity.email
json.phone pr.identity.phone
json.protocol_id pr.protocol_id
Expand Down
3 changes: 3 additions & 0 deletions app/views/service_requests/review/_authorized_users.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
= t(:authorized_users)[:table_fields][:phone]
%th{ data: { field: 'proxy_rights', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:rights]
- if protocol.selected_for_epic?
%th{ data: { field: 'epic_emr_access', align: 'left', sortable: 'true' } }
= t(:authorized_users)[:table_fields][:epic_emr_access]
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ en:
email: "Email"
phone: "Phone"
rights: "Proxy Rights"
epic_emr_access: 'EPIC EMR Access'

#############
# CALENDARS #
Expand Down

0 comments on commit c3758cc

Please sign in to comment.