Skip to content

Commit

Permalink
Remove medication review prototype, addresses #697.
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Mar 12, 2019
1 parent bc91391 commit 76d1474
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 203 deletions.
13 changes: 4 additions & 9 deletions app/controllers/subjects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,23 @@ class SubjectsController < ApplicationController
:index, :show, :timeline, :comments, :files, :adverse_events,
:ae_adverse_events, :events, :sheets, :event, :report, :search,
:choose_site, :autocomplete, :designs_search, :events_search,
:event_coverage, :medications
:event_coverage
]
before_action :find_editable_project_or_editable_site_or_redirect, only: [
:new, :edit, :create, :update, :destroy, :choose_date,
:data_entry, :send_url, :set_sheet_as_missing,
:set_sheet_as_shareable, :new_data_entry, :choose_event,
:launch_subject_event, :edit_event, :update_event, :destroy_event,
:edit_medications, :review_medications,
:review_medication, :review_medication_stop_date, :review_medication_something_changed,
:review_medication_when_did_change_occur, :medication_added
:launch_subject_event, :edit_event, :update_event, :destroy_event
]
before_action :find_viewable_subject_or_redirect, only: [
:show, :timeline, :comments, :files, :adverse_events, :ae_adverse_events,
:events, :sheets, :event, :event_coverage, :medications
:events, :sheets, :event, :event_coverage
]
before_action :find_editable_subject_or_redirect, only: [
:edit, :update, :destroy, :choose_date, :data_entry, :send_url,
:set_sheet_as_missing, :set_sheet_as_shareable, :new_data_entry,
:choose_event, :launch_subject_event, :edit_event, :update_event,
:destroy_event, :edit_medications, :review_medications,
:review_medication, :review_medication_stop_date, :review_medication_something_changed,
:review_medication_when_did_change_occur, :medication_added
:destroy_event
]
before_action :set_design, only: [
:new_data_entry, :set_sheet_as_missing, :set_sheet_as_shareable
Expand Down
2 changes: 0 additions & 2 deletions app/views/medications/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@

= render "forms/horizontal/show/generic", title: "Start date", content: @medication.fuzzy_pretty(:start_date_fuzzy)
= render "forms/horizontal/show/generic", title: "Stop date", content: @medication.fuzzy_pretty(:stop_date_fuzzy)

= link_to plus_or("MEDICATION CREATED PROTOTYPE"), medication_added_project_subject_path(@project, @subject, number: 1), class: "btn btn-accent btn-shadow"
22 changes: 0 additions & 22 deletions app/views/subjects/medication_added.html.haml

This file was deleted.

31 changes: 0 additions & 31 deletions app/views/subjects/medications.html.haml

This file was deleted.

28 changes: 0 additions & 28 deletions app/views/subjects/review_medication.html.haml

This file was deleted.

29 changes: 0 additions & 29 deletions app/views/subjects/review_medication_something_changed.html.haml

This file was deleted.

36 changes: 0 additions & 36 deletions app/views/subjects/review_medication_stop_date.html.haml

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -439,16 +439,6 @@
get :files
get :adverse_events, path: "adverse-events"
get :ae_adverse_events, path: "ae-adverse-events"

get :medications, path: "meds"
get :review_medications, path: "meds/review"
get :medication_added, path: "meds/:number/added"
get :review_medication, path: "meds/:number"
get :review_medication_stop_date, path: "meds/:number/stop-date"
get :review_medication_something_changed, path: "meds/:number/something-changed"
get :review_medication_when_did_change_occur, path: "meds/:number/when-did-change-occur"

get :edit_medications, path: "medications/edit"
get :sheets
get :data_entry, path: "data-entry"
get "data-entry/:design_id", action: :new_data_entry, as: :new_data_entry
Expand Down

0 comments on commit 76d1474

Please sign in to comment.