renalware-core 2.0.167 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/renalware/rollup_compiled.css +0 -5
- data/app/assets/javascripts/renalware/rollup_compiled.js +32 -0
- data/app/assets/stylesheets/renalware/modules/_letters.scss +2 -4
- data/app/assets/stylesheets/renalware/partials/_layout.scss +5 -1
- data/app/assets/stylesheets/renalware/partials/_patient_search.scss +1 -0
- data/app/components/renalware/events/event_list_component.html.slim +1 -1
- data/app/components/renalware/letters/letters_in_progress_component.en.yml +7 -0
- data/app/components/renalware/letters/letters_in_progress_component.html.slim +2 -2
- data/app/components/renalware/letters/letters_in_progress_component.pt.yml +7 -0
- data/app/components/renalware/letters/unread_electronic_ccs_component.en.yml +7 -0
- data/app/components/renalware/letters/unread_electronic_ccs_component.html.slim +2 -2
- data/app/components/renalware/letters/unread_electronic_ccs_component.pt.yml +7 -0
- data/app/components/renalware/messaging/unread_messages_component.en.yml +7 -0
- data/app/components/renalware/messaging/unread_messages_component.html.slim +2 -2
- data/app/components/renalware/messaging/unread_messages_component.pt.yml +7 -0
- data/app/components/renalware/patients/bookmarks_component.en.yml +7 -0
- data/app/components/renalware/patients/bookmarks_component.html.slim +3 -3
- data/app/components/renalware/patients/bookmarks_component.pt.yml +7 -0
- data/app/components/renalware/patients/messages_component.en.yml +5 -0
- data/app/components/renalware/patients/messages_component.html.slim +5 -5
- data/app/components/renalware/patients/messages_component.pt.yml +5 -0
- data/app/components/renalware/patients/messages_component.rb +3 -4
- data/app/components/renalware/pd/adequacy_results_component.html.slim +2 -2
- data/app/components/renalware/pd/pet_results_component.html.slim +2 -2
- data/app/components/renalware/system/admin_menu_component.html.slim +26 -14
- data/app/components/renalware/system/users_awaiting_approval_component.en.yml +7 -0
- data/app/components/renalware/system/users_awaiting_approval_component.html.slim +2 -2
- data/app/components/renalware/system/users_awaiting_approval_component.pt.yml +7 -0
- data/app/components/renalware/system/users_awaiting_approval_component.rb +0 -8
- data/app/components/renalware/users/last_signin_component.en.yml +6 -0
- data/app/components/renalware/users/last_signin_component.html.slim +1 -1
- data/app/components/renalware/users/last_signin_component.pt.yml +6 -0
- data/app/controllers/renalware/accesses/assessments_controller.rb +4 -4
- data/app/controllers/renalware/accesses/procedures_controller.rb +2 -2
- data/app/controllers/renalware/accesses/profiles_controller.rb +4 -4
- data/app/controllers/renalware/admin/users_controller.rb +2 -2
- data/app/controllers/renalware/base_controller.rb +2 -2
- data/app/controllers/renalware/clinical/body_compositions_controller.rb +2 -2
- data/app/controllers/renalware/clinical/dry_weights_controller.rb +2 -2
- data/app/controllers/renalware/clinical/profiles_controller.rb +3 -2
- data/app/controllers/renalware/clinics/appointments_controller.rb +1 -1
- data/app/controllers/renalware/clinics/clinic_visits_controller.rb +3 -3
- data/app/controllers/renalware/concerns/devise_controller_methods.rb +1 -0
- data/app/controllers/renalware/deaths_controller.rb +2 -2
- data/app/controllers/renalware/directory/people_controller.rb +4 -4
- data/app/controllers/renalware/drugs/drugs_controller.rb +5 -5
- data/app/controllers/renalware/events/events_controller.rb +3 -3
- data/app/controllers/renalware/events/types_controller.rb +1 -1
- data/app/controllers/renalware/hd/cannulation_types_controller.rb +5 -5
- data/app/controllers/renalware/hd/current_profile_controller.rb +19 -3
- data/app/controllers/renalware/hd/preference_sets_controller.rb +2 -2
- data/app/controllers/renalware/hd/sessions_controller.rb +3 -3
- data/app/controllers/renalware/letters/batches_controller.rb +1 -0
- data/app/controllers/renalware/letters/letters_controller.rb +3 -3
- data/app/controllers/renalware/letters/lists_controller.rb +3 -0
- data/app/controllers/renalware/low_clearance/profiles_controller.rb +1 -1
- data/app/controllers/renalware/messaging/internal/messages_controller.rb +3 -3
- data/app/controllers/renalware/modalities/descriptions_controller.rb +5 -5
- data/app/controllers/renalware/modalities/modalities_controller.rb +2 -2
- data/app/controllers/renalware/pathology/observation_descriptions_controller.rb +1 -1
- data/app/controllers/renalware/pathology/patient_rules_controller.rb +5 -5
- data/app/controllers/renalware/patients/patients_controller.rb +1 -1
- data/app/controllers/renalware/patients/primary_care_physicians_controller.rb +5 -5
- data/app/controllers/renalware/pd/bag_types_controller.rb +5 -5
- data/app/controllers/renalware/pd/exit_site_infections_controller.rb +4 -4
- data/app/controllers/renalware/pd/peritonitis_episodes_controller.rb +2 -2
- data/app/controllers/renalware/pd/regimes_controller.rb +2 -2
- data/app/controllers/renalware/renal/profiles_controller.rb +1 -1
- data/app/controllers/renalware/snippets/snippets_controller.rb +2 -2
- data/app/controllers/renalware/system/downloads_controller.rb +1 -1
- data/app/controllers/renalware/transplants/donations_controller.rb +4 -4
- data/app/controllers/renalware/transplants/donor_operations_controller.rb +4 -4
- data/app/controllers/renalware/transplants/donor_stages_controller.rb +1 -1
- data/app/controllers/renalware/transplants/donor_workups_controller.rb +2 -2
- data/app/controllers/renalware/transplants/recipient_operations_controller.rb +4 -4
- data/app/controllers/renalware/transplants/recipient_workups_controller.rb +2 -2
- data/app/controllers/renalware/transplants/registration_statuses_controller.rb +5 -5
- data/app/controllers/renalware/transplants/registrations_controller.rb +2 -2
- data/app/helpers/renalware/form_helper.rb +7 -2
- data/app/javascript/renalware/controllers/collapsible_controller.js +36 -0
- data/app/javascript/renalware/index.js +2 -0
- data/app/models/renalware/events/category.rb +21 -0
- data/app/models/renalware/events/type.rb +2 -0
- data/app/models/renalware/hd/mdm_patients_form.rb +1 -1
- data/app/models/renalware/hd/patient_listener.rb +1 -1
- data/app/models/renalware/hd/profile.rb +4 -1
- data/app/models/renalware/letters/batch.rb +1 -0
- data/app/models/renalware/letters/letter.rb +10 -1
- data/app/models/renalware/letters/lists/form.rb +6 -1
- data/app/models/renalware/letters/mailshots/mailshot.rb +0 -1
- data/app/models/renalware/letters/printing/batch_compile_pdfs.rb +15 -4
- data/app/models/renalware/letters/remembered_letter_preferences.rb +1 -1
- data/app/models/renalware/patient.rb +1 -0
- data/app/models/renalware/ukrdc/outgoing/rendering/document.rb +1 -1
- data/app/models/renalware/ukrdc/outgoing/rendering/patient.rb +2 -2
- data/app/models/renalware/ukrdc/outgoing/rendering/primary_language.rb +2 -2
- data/app/presenters/renalware/events/events_presenter.rb +10 -5
- data/app/presenters/renalware/letters/practice_email_meta_data.rb +4 -4
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/email_changed.html.erb +7 -0
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +27 -0
- data/app/views/{renalware/devise/passwords/edit.html.erb → devise/passwords/edit.html.erb.old} +0 -0
- data/app/views/{renalware/devise → devise}/passwords/new.html.erb +2 -2
- data/app/views/devise/passwords/new.html.erb.new +18 -0
- data/app/views/devise/registrations/edit.html.erb.pt +35 -0
- data/app/views/{renalware/devise → devise}/registrations/edit.html.slim +14 -7
- data/app/views/devise/registrations/new.html.erb.pt +25 -0
- data/app/views/{renalware/devise → devise}/registrations/new.html.slim +3 -3
- data/app/views/{renalware/devise → devise}/sessions/_signup_help.html.slim +0 -0
- data/app/views/{renalware/devise → devise}/sessions/_warning.html.slim +0 -0
- data/app/views/{renalware/devise → devise}/sessions/new.html.slim +2 -2
- data/app/views/devise/shared/_links.html.erb +26 -0
- data/app/views/devise/unlocks/new.html.erb +19 -0
- data/app/views/renalware/accesses/assessments/_form.html.slim +2 -2
- data/app/views/renalware/accesses/assessments/_list.html.slim +2 -2
- data/app/views/renalware/accesses/assessments/show.html.slim +1 -1
- data/app/views/renalware/accesses/dashboards/_page_actions.html.slim +1 -1
- data/app/views/renalware/accesses/plans/_list.html.slim +1 -1
- data/app/views/renalware/accesses/plans/_summary.html.slim +2 -2
- data/app/views/renalware/accesses/plans/new.html.slim +2 -2
- data/app/views/renalware/accesses/procedures/_form.html.slim +2 -2
- data/app/views/renalware/accesses/procedures/_list.html.slim +2 -2
- data/app/views/renalware/accesses/procedures/show.html.slim +1 -1
- data/app/views/renalware/accesses/profiles/_current_profile.html.slim +2 -2
- data/app/views/renalware/accesses/profiles/_form.html.slim +2 -2
- data/app/views/renalware/accesses/profiles/_list.html.slim +2 -2
- data/app/views/renalware/accesses/profiles/show.html.slim +1 -1
- data/app/views/renalware/admin/feeds/files/index.html.slim +1 -1
- data/app/views/renalware/admin/users/_filters.html.slim +3 -3
- data/app/views/renalware/admin/users/_tabs.html.slim +1 -1
- data/app/views/renalware/admin/users/edit.html.slim +1 -1
- data/app/views/renalware/admin/users/index.html.slim +1 -1
- data/app/views/renalware/admissions/_summary_part.html.slim +2 -2
- data/app/views/renalware/admissions/admissions/_filters.html.slim +2 -2
- data/app/views/renalware/admissions/admissions/_form.html.slim +1 -1
- data/app/views/renalware/admissions/admissions/_table.html.slim +3 -3
- data/app/views/renalware/admissions/admissions/index.html.slim +1 -1
- data/app/views/renalware/admissions/consults/_filters.html.slim +2 -2
- data/app/views/renalware/admissions/consults/_form.html.slim +1 -1
- data/app/views/renalware/admissions/consults/_summary_part.html.slim +2 -2
- data/app/views/renalware/admissions/consults/index.html.slim +1 -1
- data/app/views/renalware/admissions/patient_admissions/index.html.slim +1 -1
- data/app/views/renalware/admissions/requests/_form.html.slim +1 -1
- data/app/views/renalware/admissions/requests/_request.html.slim +1 -1
- data/app/views/renalware/clinical/allergies/_list.html.slim +3 -3
- data/app/views/renalware/clinical/body_compositions/_form.html.slim +1 -1
- data/app/views/renalware/clinical/body_compositions/_list.html.slim +2 -2
- data/app/views/renalware/clinical/body_compositions/_table.html.slim +3 -3
- data/app/views/renalware/clinical/body_compositions/show.html.slim +1 -1
- data/app/views/renalware/clinical/dry_weights/_form.html.slim +1 -1
- data/app/views/renalware/clinical/dry_weights/_list.html.slim +2 -2
- data/app/views/renalware/clinical/dry_weights/_table.html.slim +3 -3
- data/app/views/renalware/clinical/profiles/edit.html.slim +5 -1
- data/app/views/renalware/clinical/profiles/show.html.slim +3 -2
- data/app/views/renalware/clinics/appointments/index.html.slim +3 -3
- data/app/views/renalware/clinics/clinic_visits/_table_row.html.slim +2 -2
- data/app/views/renalware/clinics/clinic_visits/edit.html.slim +1 -1
- data/app/views/renalware/clinics/clinic_visits/index.html.slim +1 -1
- data/app/views/renalware/clinics/clinic_visits/new.html.slim +2 -2
- data/app/views/renalware/clinics/visits/_filters.html.slim +2 -2
- data/app/views/renalware/clinics/visits/_table.html.slim +1 -1
- data/app/views/renalware/dashboard/bookmarks/_bookmark.html.slim +1 -1
- data/app/views/renalware/dashboard/bookmarks/_table.html.slim +10 -10
- data/app/views/renalware/dashboard/dashboards/show.html.slim +1 -1
- data/app/views/renalware/dashboard/letters/_letter.html.slim +3 -8
- data/app/views/renalware/dashboard/letters/_table.html.slim +5 -5
- data/app/views/renalware/deaths/edit.html.slim +1 -1
- data/app/views/renalware/deaths/index.html.slim +3 -3
- data/app/views/renalware/directory/people/_filters.html.slim +2 -2
- data/app/views/renalware/directory/people/_form.html.slim +1 -1
- data/app/views/renalware/directory/people/_person.html.slim +2 -2
- data/app/views/renalware/directory/people/show.html.slim +1 -1
- data/app/views/renalware/drugs/drugs/_filters.html.slim +3 -3
- data/app/views/renalware/drugs/drugs/_form.html.slim +1 -1
- data/app/views/renalware/drugs/drugs/edit.html.slim +1 -1
- data/app/views/renalware/drugs/drugs/index.html.slim +3 -3
- data/app/views/renalware/drugs/drugs/new.html.slim +1 -1
- data/app/views/renalware/events/events/_event.html.slim +2 -2
- data/app/views/renalware/events/events/_filters.html.slim +10 -4
- data/app/views/renalware/events/events/_form.html.slim +1 -1
- data/app/views/renalware/events/events/_summary_part.html.slim +3 -5
- data/app/views/renalware/events/events/_table.html.slim +5 -5
- data/app/views/renalware/events/events/index.html.slim +1 -1
- data/app/views/renalware/events/events/simple/_event.html.slim +1 -1
- data/app/views/renalware/events/events/simple/_table.html.slim +3 -3
- data/app/views/renalware/events/investigations/_list.html.slim +1 -1
- data/app/views/renalware/events/lists/_filters.html.slim +2 -2
- data/app/views/renalware/events/swabs/_list.html.slim +7 -7
- data/app/views/renalware/events/types/_form.html.slim +2 -1
- data/app/views/renalware/events/types/_table.html.slim +2 -2
- data/app/views/renalware/events/types/edit.html.slim +1 -1
- data/app/views/renalware/events/types/index.html.slim +1 -1
- data/app/views/renalware/feeds/hl7_test_messages/new.slim +1 -1
- data/app/views/renalware/hd/accesses/_summary.html.slim +1 -1
- data/app/views/renalware/hd/cannulation_types/_form.html.slim +1 -1
- data/app/views/renalware/hd/cannulation_types/index.html.slim +3 -3
- data/app/views/renalware/hd/current_profile/_form.html.slim +7 -6
- data/app/views/renalware/hd/current_profile/_show.html.slim +1 -2
- data/app/views/renalware/hd/current_profile/_summary.html.slim +3 -3
- data/app/views/renalware/hd/current_profile/show.html.slim +1 -1
- data/app/views/renalware/hd/dashboards/_page_actions.html.slim +1 -1
- data/app/views/renalware/hd/dialysates/_form.html.slim +1 -1
- data/app/views/renalware/hd/dialysates/index.html.slim +3 -3
- data/app/views/renalware/hd/dialysers/_form.html.slim +1 -1
- data/app/views/renalware/hd/dialysers/index.html.slim +3 -3
- data/app/views/renalware/hd/historical_profiles/_summary.html.slim +1 -1
- data/app/views/renalware/hd/historical_profiles/_table.html.slim +1 -1
- data/app/views/renalware/hd/mdm/_sessions.html.slim +1 -1
- data/app/views/renalware/hd/mdm_patients/_filters.html.slim +2 -2
- data/app/views/renalware/hd/mdm_patients/_table.html.slim +23 -23
- data/app/views/renalware/hd/ongoing_sessions/_filters.html.slim +2 -2
- data/app/views/renalware/hd/preference_sets/_form.html.slim +1 -1
- data/app/views/renalware/hd/preference_sets/_summary.html.slim +1 -1
- data/app/views/renalware/hd/prescription_administrations/_form.html.slim +2 -2
- data/app/views/renalware/hd/protocols/_profile.html.slim +1 -1
- data/app/views/renalware/hd/scheduling/diaries/_page_actions.html.slim +1 -1
- data/app/views/renalware/hd/scheduling/diaries/_weekly_diary.html.slim +1 -1
- data/app/views/renalware/hd/scheduling/diary_slots/_form.html.slim +1 -1
- data/app/views/renalware/hd/scheduling/diary_slots/_slot.html.slim +1 -1
- data/app/views/renalware/hd/scheduling/diary_slots/_tab.html.slim +1 -1
- data/app/views/renalware/hd/session_forms/batches/_create.html.slim +1 -1
- data/app/views/renalware/hd/sessions/_form_actions.html.slim +2 -2
- data/app/views/renalware/hd/sessions/_index_tabs.html.slim +1 -1
- data/app/views/renalware/hd/sessions/_list.html.slim +2 -2
- data/app/views/renalware/hd/sessions/_session_nav.html.slim +2 -2
- data/app/views/renalware/hd/sessions/_thead.html.slim +3 -3
- data/app/views/renalware/hd/sessions/dna/_form.html.slim +2 -2
- data/app/views/renalware/hd/sessions/edit.html.slim +1 -1
- data/app/views/renalware/hd/sessions/new.html.slim +1 -1
- data/app/views/renalware/hd/sessions/show.html.slim +1 -1
- data/app/views/renalware/hd/stations/_form.html.slim +2 -2
- data/app/views/renalware/hd/stations/_station.html.slim +1 -1
- data/app/views/renalware/hd/stations/index.html.slim +1 -1
- data/app/views/renalware/hd/transmission_logs/index.html.slim +1 -1
- data/app/views/renalware/hd/unmet_preferences/_filters.html.slim +2 -2
- data/app/views/renalware/hd/unmet_preferences/_table.html.slim +1 -1
- data/app/views/renalware/hd/witnesses/_form.html.slim +1 -1
- data/app/views/renalware/hospitals/units/_form.html.slim +1 -1
- data/app/views/renalware/hospitals/units/index.html.slim +3 -3
- data/app/views/renalware/hospitals/wards/index.html.slim +3 -3
- data/app/views/renalware/letters/_summary_part.html.slim +3 -5
- data/app/views/renalware/letters/batches/_create.html.slim +1 -1
- data/app/views/renalware/letters/completed_batches/new.html.slim +0 -9
- data/app/views/renalware/letters/completed_letters/new.html.slim +1 -1
- data/app/views/renalware/letters/contacts/_contact.html.slim +1 -1
- data/app/views/renalware/letters/contacts/_edit.html.slim +1 -1
- data/app/views/renalware/letters/contacts/index.html.slim +1 -1
- data/app/views/renalware/letters/electronic_receipts/_table.html.slim +9 -9
- data/app/views/renalware/letters/electronic_receipts/sent.html.slim +6 -6
- data/app/views/renalware/letters/formatted_letters/_letter.html.slim +1 -1
- data/app/views/renalware/letters/letters/_actions.html.slim +1 -1
- data/app/views/renalware/letters/letters/_create_letter_button_dropdown.html.slim +1 -1
- data/app/views/renalware/letters/letters/_form.html.slim +2 -3
- data/app/views/renalware/letters/letters/_letter.html.slim +9 -7
- data/app/views/renalware/letters/letters/_preview.html.slim +1 -1
- data/app/views/renalware/letters/letters/_problems_prescriptions.html.slim +1 -1
- data/app/views/renalware/letters/letters/_table.html.slim +8 -6
- data/app/views/renalware/letters/letters/_toggled_body.html.slim +15 -0
- data/app/views/renalware/letters/letters/edit.html.slim +1 -1
- data/app/views/renalware/letters/lists/_letter.html.slim +57 -52
- data/app/views/renalware/letters/lists/_table.html.slim +7 -6
- data/app/views/renalware/letters/lists/show.html.slim +10 -4
- data/app/views/renalware/letters/mailshots/mailshots/index.html.slim +1 -1
- data/app/views/renalware/low_clearance/dashboards/_page_actions.html.slim +1 -1
- data/app/views/renalware/low_clearance/mdm/_low_clearance_profile.html.slim +1 -1
- data/app/views/renalware/low_clearance/profiles/_summary.html.slim +1 -81
- data/app/views/renalware/low_clearance/profiles/edit.html.slim +3 -9
- data/app/views/renalware/mdm/_clinic_visits.html.slim +2 -2
- data/app/views/renalware/mdm/_events.html.slim +1 -1
- data/app/views/renalware/mdm/_letters.html.slim +1 -1
- data/app/views/renalware/mdm/_pathology.html.slim +1 -1
- data/app/views/renalware/mdm/_prescription_buttons.html.slim +2 -2
- data/app/views/renalware/mdm/_problems.html.slim +2 -2
- data/app/views/renalware/mdm_patients/_table.html.slim +6 -6
- data/app/views/renalware/medications/_summary_part.html.slim +2 -3
- data/app/views/renalware/medications/drug_types/prescriptions/_filters.html.slim +1 -3
- data/app/views/renalware/medications/drug_types/prescriptions/_table.html.slim +1 -1
- data/app/views/renalware/medications/home_delivery/events/_edit.html.slim +1 -1
- data/app/views/renalware/medications/prescriptions/_filter_form.html.slim +2 -2
- data/app/views/renalware/medications/prescriptions/_form.html.slim +2 -2
- data/app/views/renalware/medications/prescriptions/_options.html.slim +2 -2
- data/app/views/renalware/medications/prescriptions/index.html.slim +1 -1
- data/app/views/renalware/medications/terminations/_form.html.slim +1 -1
- data/app/views/renalware/messaging/internal/receipts/_receipt.html.slim +1 -1
- data/app/views/renalware/messaging/internal/receipts/_sent_receipt.html.slim +1 -1
- data/app/views/renalware/messaging/internal/receipts/_sent_table.html.slim +7 -7
- data/app/views/renalware/messaging/internal/receipts/_table.html.slim +8 -8
- data/app/views/renalware/messaging/shared/_key.html.slim +1 -2
- data/app/views/renalware/modalities/descriptions/_form.html.slim +1 -1
- data/app/views/renalware/modalities/descriptions/index.html.slim +3 -3
- data/app/views/renalware/modalities/modalities/index.html.slim +1 -1
- data/app/views/renalware/modalities/modalities/new.html.slim +2 -2
- data/app/views/renalware/navigation/_branding.html.slim +1 -2
- data/app/views/renalware/navigation/_directory.html.slim +1 -1
- data/app/views/renalware/navigation/_help_items.html.slim +1 -1
- data/app/views/renalware/navigation/_patient_search.html.slim +1 -1
- data/app/views/renalware/navigation/_patients_admin.html.slim +1 -1
- data/app/views/renalware/navigation/_sign_out.html.slim +1 -1
- data/app/views/renalware/navigation/_user.html.slim +1 -1
- data/app/views/renalware/pathology/code_groups/edit.html.slim +2 -2
- data/app/views/renalware/pathology/code_groups/index.html.slim +2 -2
- data/app/views/renalware/pathology/code_groups/show.html.slim +1 -1
- data/app/views/renalware/pathology/observation_descriptions/_filters.html.slim +2 -2
- data/app/views/renalware/pathology/observation_descriptions/edit.html.slim +1 -1
- data/app/views/renalware/pathology/observation_requests/_filters.html.slim +2 -2
- data/app/views/renalware/pathology/patient_rules/_form.html.slim +1 -1
- data/app/views/renalware/pathology/requests/requests/index.html.slim +3 -3
- data/app/views/renalware/pathology/required_observations/index.html.slim +4 -4
- data/app/views/renalware/patients/_header.html.slim +4 -4
- data/app/views/renalware/patients/_index_header.html.slim +1 -1
- data/app/views/renalware/patients/_search_form.html.slim +1 -1
- data/app/views/renalware/patients/_summary_part.html.slim +3 -3
- data/app/views/renalware/patients/bookmarks/_table.html.slim +10 -10
- data/app/views/renalware/patients/clinical_summaries/show.html.slim +1 -1
- data/app/views/renalware/patients/mdms/_filters.html.slim +2 -2
- data/app/views/renalware/patients/patients/index.html.slim +1 -1
- data/app/views/renalware/patients/patients/show.html.slim +2 -2
- data/app/views/renalware/patients/patients/show/_primary_care_physician.html.slim +2 -2
- data/app/views/renalware/patients/primary_care_physician/_form.html.slim +2 -2
- data/app/views/renalware/patients/primary_care_physicians/_form.html.slim +1 -1
- data/app/views/renalware/patients/primary_care_physicians/_primary_care_physician.html.slim +2 -2
- data/app/views/renalware/patients/primary_care_physicians/index.html.slim +1 -1
- data/app/views/renalware/patients/worryboard/_filters.html.slim +2 -2
- data/app/views/renalware/patients/worryboard/_table.html.slim +2 -2
- data/app/views/renalware/pd/_exit_site_infections.html.slim +2 -2
- data/app/views/renalware/pd/_peritonitis_episodes.html.slim +2 -2
- data/app/views/renalware/pd/_pet_adequacies.html.slim +3 -3
- data/app/views/renalware/pd/_regimes.html.slim +2 -2
- data/app/views/renalware/pd/adequacy_completions/_filters.html.slim +2 -2
- data/app/views/renalware/pd/adequacy_results/_table.html.slim +4 -4
- data/app/views/renalware/pd/adequacy_results/edit.html.slim +2 -2
- data/app/views/renalware/pd/adequacy_results/new.html.slim +2 -2
- data/app/views/renalware/pd/assessments/_form.html.slim +2 -2
- data/app/views/renalware/pd/assessments/_list.html.slim +2 -2
- data/app/views/renalware/pd/assessments/show.html.slim +1 -1
- data/app/views/renalware/pd/bag_types/_form.html.slim +2 -2
- data/app/views/renalware/pd/bag_types/_header.html.slim +1 -1
- data/app/views/renalware/pd/bag_types/index.html.slim +4 -4
- data/app/views/renalware/pd/dashboards/show/_apd_regimes.html.slim +1 -1
- data/app/views/renalware/pd/dashboards/show/_capd_regimes.html.slim +1 -1
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +1 -1
- data/app/views/renalware/pd/exit_site_infections/_details.html.slim +1 -1
- data/app/views/renalware/pd/exit_site_infections/_form.html.slim +2 -2
- data/app/views/renalware/pd/exit_site_infections/edit.html.slim +1 -1
- data/app/views/renalware/pd/exit_site_infections/new.html.slim +1 -1
- data/app/views/renalware/pd/infection_organisms/_form.html.slim +2 -2
- data/app/views/renalware/pd/infection_organisms/_table.html.slim +6 -3
- data/app/views/renalware/pd/peritonitis_episodes/_details.html.slim +1 -1
- data/app/views/renalware/pd/peritonitis_episodes/_form.html.slim +2 -2
- data/app/views/renalware/pd/peritonitis_episodes/edit.html.slim +1 -1
- data/app/views/renalware/pd/peritonitis_episodes/new.html.slim +1 -1
- data/app/views/renalware/pd/pet_adequacy_results/_form.html.slim +2 -2
- data/app/views/renalware/pd/pet_completions/_filters.html.slim +2 -2
- data/app/views/renalware/pd/pet_results/_table.html.slim +4 -4
- data/app/views/renalware/pd/pet_results/edit.html.slim +2 -2
- data/app/views/renalware/pd/pet_results/new.html.slim +2 -2
- data/app/views/renalware/pd/regimes/edit.html.slim +2 -2
- data/app/views/renalware/pd/regimes/new.html.slim +2 -2
- data/app/views/renalware/pd/training_sessions/_form.html.slim +2 -2
- data/app/views/renalware/pd/training_sessions/_list.html.slim +2 -2
- data/app/views/renalware/pd/training_sessions/show.html.slim +1 -1
- data/app/views/renalware/pd/unified_pet_adequacies/_form.html.slim +1 -1
- data/app/views/renalware/problems/notes/_form.html.slim +1 -1
- data/app/views/renalware/problems/notes/_table.html.slim +3 -3
- data/app/views/renalware/problems/problems/_archived_table.html.slim +2 -2
- data/app/views/renalware/problems/problems/_current_list.html.slim +1 -1
- data/app/views/renalware/problems/problems/_current_table.html.slim +3 -3
- data/app/views/renalware/problems/problems/_details.html.slim +1 -1
- data/app/views/renalware/problems/problems/_history.html.slim +1 -1
- data/app/views/renalware/problems/problems/_summary_part.html.slim +5 -5
- data/app/views/renalware/problems/problems/edit.html.slim +2 -2
- data/app/views/renalware/problems/problems/index.html.slim +1 -1
- data/app/views/renalware/problems/problems/new.html.slim +1 -1
- data/app/views/renalware/renal/aki_alerts/_aki_alert.html.slim +1 -1
- data/app/views/renalware/renal/aki_alerts/_filters.html.slim +2 -2
- data/app/views/renalware/renal/aki_alerts/edit.html.slim +1 -1
- data/app/views/renalware/renal/profiles/edit.html.slim +2 -2
- data/app/views/renalware/renal/profiles/show.html.slim +1 -1
- data/app/views/renalware/renal/registry_preflight_checks/_filters.html.slim +2 -2
- data/app/views/renalware/renal/registry_preflight_checks/_table.html.slim +1 -1
- data/app/views/renalware/reporting/audits/edit.html.slim +1 -1
- data/app/views/renalware/reporting/audits/index.html.slim +2 -2
- data/app/views/renalware/research/studies/_filters.html.slim +2 -2
- data/app/views/renalware/research/studies/index.html.slim +3 -3
- data/app/views/renalware/research/study_participants/_filters.html.slim +2 -2
- data/app/views/renalware/research/study_participants/_table.html.slim +2 -2
- data/app/views/renalware/research/study_participants/index.html.slim +1 -1
- data/app/views/renalware/snippets/snippets/_form.html.slim +2 -2
- data/app/views/renalware/snippets/snippets/_row.html.slim +2 -2
- data/app/views/renalware/snippets/snippets/_search_form.html.slim +1 -0
- data/app/views/renalware/snippets/snippets/_table.html.slim +1 -1
- data/app/views/renalware/system/downloads/_form.html.slim +1 -1
- data/app/views/renalware/system/downloads/index.html.slim +3 -3
- data/app/views/renalware/system/messages/_form.html.slim +1 -1
- data/app/views/renalware/system/messages/index.html.slim +3 -3
- data/app/views/renalware/system/user_feedback/edit.html.slim +1 -1
- data/app/views/renalware/system/user_feedback/index.html.slim +1 -1
- data/app/views/renalware/system/user_feedback/new.html.slim +1 -1
- data/app/views/renalware/system/view_metadata/edit.html.slim +2 -2
- data/app/views/renalware/transplants/donations/_form.html.slim +4 -4
- data/app/views/renalware/transplants/donations/_summary.html.slim +2 -2
- data/app/views/renalware/transplants/donations/show.html.slim +1 -1
- data/app/views/renalware/transplants/donor_dashboards/show.html.slim +1 -1
- data/app/views/renalware/transplants/donor_followups/_form.html.slim +4 -4
- data/app/views/renalware/transplants/donor_followups/show.html.slim +1 -1
- data/app/views/renalware/transplants/donor_operations/_form.html.slim +4 -4
- data/app/views/renalware/transplants/donor_operations/_list.html.slim +3 -3
- data/app/views/renalware/transplants/donor_operations/edit.html.slim +1 -1
- data/app/views/renalware/transplants/donor_operations/new.html.slim +1 -1
- data/app/views/renalware/transplants/donor_operations/show.html.slim +1 -1
- data/app/views/renalware/transplants/donor_stages/_list.html.slim +1 -1
- data/app/views/renalware/transplants/donor_stages/new.html.slim +2 -2
- data/app/views/renalware/transplants/donor_workups/_form.html.slim +4 -4
- data/app/views/renalware/transplants/donor_workups/_summary.html.slim +2 -2
- data/app/views/renalware/transplants/donor_workups/show.html.slim +1 -1
- data/app/views/renalware/transplants/live_donors/_filters.html.slim +2 -1
- data/app/views/renalware/transplants/live_donors/_index.html.slim +5 -5
- data/app/views/renalware/transplants/mdm_patients/_table.html.slim +6 -6
- data/app/views/renalware/transplants/recipient_dashboards/_page_actions.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_followups/_form.html.slim +4 -4
- data/app/views/renalware/transplants/recipient_followups/show.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_operations/_form.html.slim +4 -4
- data/app/views/renalware/transplants/recipient_operations/_list.html.slim +4 -4
- data/app/views/renalware/transplants/recipient_operations/_mdm_list.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_operations/show.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_workups/_form.html.slim +4 -4
- data/app/views/renalware/transplants/recipient_workups/_summary.html.slim +2 -2
- data/app/views/renalware/transplants/recipient_workups/show.html.slim +1 -1
- data/app/views/renalware/transplants/registration_statuses/_form.html.slim +2 -2
- data/app/views/renalware/transplants/registration_statuses/_list.html.slim +1 -1
- data/app/views/renalware/transplants/registrations/_form.html.slim +4 -4
- data/app/views/renalware/transplants/registrations/_summary.html.slim +2 -2
- data/app/views/renalware/transplants/registrations/show.html.slim +1 -1
- data/app/views/renalware/users/_filters.html.slim +3 -3
- data/app/views/renalware/virology/dashboards/_actions.html.slim +1 -1
- data/app/views/renalware/virology/profiles/_summary.html.slim +1 -1
- data/app/views/renalware/virology/profiles/edit.html.slim +2 -2
- data/app/views/renalware/virology/vaccination_types/index.html.slim +1 -1
- data/app/views/renalware/virology/vaccinations/_list.html.slim +1 -1
- data/config/i18n-tasks.yml +154 -0
- data/config/initializers/inflections.rb +1 -0
- data/config/initializers/simple_form.rb +1 -1
- data/config/locales/{custom.yml → custom.en.yml} +12 -10
- data/config/locales/devise.en.yml +130 -42
- data/config/locales/devise.pt.yml +148 -0
- data/config/locales/devise.security_extension.en.yml +1 -0
- data/config/locales/en-GB.yml +0 -2
- data/config/locales/en.yml +79 -5
- data/config/locales/faker.en.yml +1 -1
- data/config/locales/{loinc_codes.yml → loinc_codes.en.yml} +1 -0
- data/config/locales/page_titles.en.yml +4 -3
- data/config/locales/pt.yml +305 -0
- data/config/locales/renalware/accesses/{assessment.yml → assessment.en.yml} +1 -0
- data/config/locales/renalware/accesses/plan.en.yml +1 -0
- data/config/locales/renalware/accesses/{procedure.yml → procedure.en.yml} +1 -0
- data/config/locales/renalware/accesses/{profile.yml → profile.en.yml} +1 -0
- data/config/locales/renalware/{address.yml → address.en.yml} +1 -0
- data/config/locales/renalware/admissions/{admissions.yml → admissions.en.yml} +1 -0
- data/config/locales/renalware/admissions/consults.en.yml +1 -0
- data/config/locales/renalware/admissions/requests.en.yml +1 -0
- data/config/locales/renalware/{age.yml → age.en.yml} +1 -0
- data/config/locales/renalware/blood_group.en.yml +1 -0
- data/config/locales/renalware/blood_pressure.en.yml +1 -0
- data/config/locales/renalware/clinical/allergies.en.yml +1 -2
- data/config/locales/renalware/clinical/{body_composition.yml → body_composition.en.yml} +1 -3
- data/config/locales/renalware/clinical/dry_weight.en.yml +4 -4
- data/config/locales/renalware/clinical/header.en.yml +1 -0
- data/config/locales/renalware/clinics/{visit.yml → visit.en.yml} +1 -0
- data/config/locales/renalware/dashboard/{dashboard.yml → dashboard.en.yml} +6 -10
- data/config/locales/renalware/dashboard/dashboard.pt.yml +7 -0
- data/config/locales/renalware/{dates_test.yml → dates_test.en.yml} +1 -0
- data/config/locales/renalware/directory/{person.yml → person.en.yml} +1 -0
- data/config/locales/renalware/errors.en.yml +1 -0
- data/config/locales/renalware/events/advanced_care_plan.en.yml +1 -0
- data/config/locales/renalware/events/biopsy.en.yml +1 -0
- data/config/locales/renalware/events/clinical_frailty_score.en.yml +1 -0
- data/config/locales/renalware/events/clinical_frailty_score_component.en.yml +1 -0
- data/config/locales/renalware/events/{events.yml → events.en.yml} +3 -6
- data/config/locales/renalware/events/investigation.en.yml +1 -0
- data/config/locales/renalware/events/swab.en.yml +5 -6
- data/config/locales/renalware/feeds/file.en.yml +1 -0
- data/config/locales/renalware/hd/accesses.en.yml +1 -0
- data/config/locales/renalware/hd/dashboards.en.yml +1 -0
- data/config/locales/renalware/hd/diary_slots.en.yml +1 -0
- data/config/locales/renalware/hd/mdm.en.yml +1 -0
- data/config/locales/renalware/hd/mdm_patients.en.yml +39 -0
- data/config/locales/renalware/hd/{preference_set.yml → preference_set.en.yml} +1 -0
- data/config/locales/renalware/hd/prescription_administration.en.yml +1 -0
- data/config/locales/renalware/hd/{profile.yml → profile.en.yml} +2 -1
- data/config/locales/renalware/hd/protocol.en.yml +2 -1
- data/config/locales/renalware/hd/session.en.yml +3 -1
- data/config/locales/renalware/hospitals/{unit.yml → unit.en.yml} +1 -0
- data/config/locales/renalware/letters/contact.en.yml +9 -7
- data/config/locales/renalware/letters/letter.en.yml +10 -0
- data/config/locales/renalware/letters/letter.pt.yml +7 -0
- data/config/locales/renalware/letters/recipient.en.yml +2 -1
- data/config/locales/renalware/low_clearance/dashboard.en.yml +3 -2
- data/config/locales/renalware/low_clearance/low_clearance.en.yml +9 -1
- data/config/locales/renalware/low_clearance/profile.en.yml +3 -2
- data/config/locales/renalware/{mdm.yml → mdm.en.yml} +1 -5
- data/config/locales/renalware/medications/drug_types/esa_prescriptions.en.yml +1 -0
- data/config/locales/renalware/medications/{prescription.yml → prescription.en.yml} +1 -0
- data/config/locales/renalware/medications/prescriptions/drug_select.en.yml +1 -0
- data/config/locales/renalware/medications/{route.yml → route.en.yml} +1 -0
- data/config/locales/renalware/medications/{tabbed_prescriptions_list_component.yml → tabbed_prescriptions_list_component.en.yml} +1 -1
- data/config/locales/renalware/messaging/internal/messages.en.yml +1 -15
- data/config/locales/renalware/modalities/modalities.en.yml +1 -0
- data/config/locales/renalware/navigation/menu.en.yml +13 -0
- data/config/locales/renalware/navigation/menu.pt.yml +14 -0
- data/config/locales/renalware/navigation/patient_search.en.yml +1 -0
- data/config/locales/renalware/navigation/renal.en.yml +2 -1
- data/config/locales/renalware/nhs_number.en.yml +1 -0
- data/config/locales/renalware/page_titles.pt.yml +20 -0
- data/config/locales/renalware/pathology/{requests.yml → requests.en.yml} +1 -0
- data/config/locales/renalware/{patient.yml → patient.en.yml} +1 -0
- data/config/locales/renalware/patients/alerts.en.yml +1 -0
- data/config/locales/renalware/patients/bookmarks.en.yml +1 -0
- data/config/locales/renalware/patients/patients.en.yml +1 -0
- data/config/locales/renalware/patients/search_form.en.yml +1 -0
- data/config/locales/renalware/patients/side_menu.en.yml +2 -1
- data/config/locales/renalware/patients/side_menu.pt.yml +40 -0
- data/config/locales/renalware/patients/worries.en.yml +1 -0
- data/config/locales/renalware/pd/adequacy_result.en.yml +1 -0
- data/config/locales/renalware/pd/assessments.en.yml +1 -0
- data/config/locales/renalware/pd/assistance_types.en.yml +1 -0
- data/config/locales/renalware/pd/{bag_types.yml → bag_types.en.yml} +1 -0
- data/config/locales/renalware/pd/dashboard.en.yml +1 -0
- data/config/locales/renalware/pd/exit_site_infection.en.yml +1 -0
- data/config/locales/renalware/pd/mdm.en.yml +1 -0
- data/config/locales/renalware/pd/{peritonitis_episodes.yml → peritonitis_episodes.en.yml} +1 -0
- data/config/locales/renalware/pd/pet_adequacy_result.en.yml +1 -0
- data/config/locales/renalware/pd/pet_result.en.yml +1 -0
- data/config/locales/renalware/pd/regime.en.yml +1 -0
- data/config/locales/renalware/pd/training_sessions.en.yml +1 -0
- data/config/locales/renalware/pd/treatments.en.yml +1 -0
- data/config/locales/renalware/problems/{note.yml → problems.en.yml} +1 -0
- data/config/locales/renalware/renal/aki_alerts.en.yml +1 -0
- data/config/locales/renalware/renal/profile.en.yml +1 -0
- data/config/locales/renalware/renal/registry.en.yml +1 -0
- data/config/locales/renalware/reporting/audit.en.yml +1 -0
- data/config/locales/renalware/research/study_participant.en.yml +1 -0
- data/config/locales/renalware/{shared.yml → shared.en.yml} +1 -0
- data/config/locales/renalware/snippets/snippets.en.yml +1 -0
- data/config/locales/renalware/transplants/{donation.yml → donation.en.yml} +1 -0
- data/config/locales/renalware/transplants/donor_dashboard.en.yml +1 -0
- data/config/locales/renalware/transplants/{donor_followup.yml → donor_followup.en.yml} +1 -0
- data/config/locales/renalware/transplants/{donor_operation.yml → donor_operation.en.yml} +1 -0
- data/config/locales/renalware/transplants/{donor_workup.yml → donor_workup.en.yml} +1 -0
- data/config/locales/renalware/transplants/live_donors.en.yml +1 -0
- data/config/locales/renalware/transplants/mdm.en.yml +1 -0
- data/config/locales/renalware/transplants/recipient_dashboards.en.yml +1 -0
- data/config/locales/renalware/transplants/{recipient_followup.yml → recipient_followup.en.yml} +1 -0
- data/config/locales/renalware/transplants/{recipient_operation.yml → recipient_operation.en.yml} +1 -0
- data/config/locales/renalware/transplants/{recipient_workup.yml → recipient_workup.en.yml} +1 -0
- data/config/locales/renalware/transplants/{registration.yml → registration.en.yml} +1 -0
- data/config/locales/renalware/transplants/rejection_episode.en.yml +1 -0
- data/config/locales/renalware/virology/virology.en.yml +1 -1
- data/config/locales/simple_form.en.yml +1 -0
- data/config/locales/validates_timeliness.en.yml +1 -0
- data/db/migrate/20180112151706_create_low_clearance_profiles.rb +1 -1
- data/db/migrate/20190131152758_create_event_categories.rb +33 -0
- data/db/migrate/20201217154345_update_reporting_anaemia_audit.rb +7 -0
- data/db/migrate/20201217155107_update_reporting_bone_audit.rb +7 -0
- data/db/migrate/20201229174653_add_language_to_users.rb +5 -0
- data/db/migrate/20210305100015_add_named_nurse_to_patients.rb +33 -0
- data/db/migrate/20210305105830_update_mdm_views_for_named_nurse_changes.rb +7 -0
- data/db/migrate/20210305181345_deprecate_issued_on_in_letters.rb +8 -0
- data/db/migrate/20210305191214_update_reporting_daily_letters_view.rb +11 -0
- data/db/migrate/20210310154134_create_akcc_mdm_patients_view.rb +7 -0
- data/db/seeds/default/clinics/clinics.rb +1 -1
- data/db/seeds/default/events/event_categories.rb +9 -0
- data/db/seeds/default/events/event_types.csv +10 -10
- data/db/seeds/default/events/event_types.rb +6 -3
- data/db/seeds/default/events/seeds.rb +1 -0
- data/db/seeds/default/modalities/descriptions.rb +18 -6
- data/db/seeds/default/system/view_metadata.rb +2 -2
- data/db/views/akcc_mdm_patients_v01.sql +39 -0
- data/db/views/hd_mdm_patients_v03.sql +70 -0
- data/db/views/reporting_anaemia_audit_v02.sql +39 -0
- data/db/views/reporting_bone_audit_v02.sql +31 -0
- data/db/views/reporting_daily_letters_v03.sql +4 -0
- data/lib/collection_presenter.rb +1 -1
- data/lib/core_extensions/i18n/always_cascade.rb +17 -1
- data/lib/core_extensions/i18n/handle_blank_value.rb +1 -1
- data/lib/renalware/engine.rb +4 -2
- data/lib/renalware/version_number.rb +1 -1
- data/lib/tasks/demo_data.rake +0 -1
- data/spec/factories/events/categories.rb +8 -0
- data/spec/factories/events/{events_types.rb → types.rb} +9 -1
- data/spec/factories/letters/letters.rb +1 -1
- data/spec/factories/low_clearance/modality_descriptions.rb +1 -1
- data/spec/factories/modalities/modality_descriptions.rb +1 -1
- data/spec/support/date_helpers.rb +2 -2
- data/spec/support/letters_spec_helper.rb +1 -1
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +153 -148
- metadata +111 -58
- data/config/locales/renalware/hd/mdm_patients.yml +0 -43
@@ -61,7 +61,7 @@ module Renalware
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def draft_letter_failed(letter)
|
64
|
-
flash.now[:error] =
|
64
|
+
flash.now[:error] = failed_msg_for("Letter")
|
65
65
|
render_form(letter, :new)
|
66
66
|
end
|
67
67
|
|
@@ -84,7 +84,7 @@ module Renalware
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def revise_letter_failed(letter)
|
87
|
-
flash.now[:error] =
|
87
|
+
flash.now[:error] = failed_msg_for("Letter")
|
88
88
|
render_form(letter, :edit)
|
89
89
|
end
|
90
90
|
|
@@ -191,7 +191,7 @@ module Renalware
|
|
191
191
|
def attributes
|
192
192
|
[
|
193
193
|
:event_type, :event_id, :clinical,
|
194
|
-
:letterhead_id, :author_id, :description, :
|
194
|
+
:letterhead_id, :author_id, :description, :enclosures,
|
195
195
|
:salutation, :body, :notes, :pathology_timestamp,
|
196
196
|
main_recipient_attributes: main_recipient_attributes,
|
197
197
|
cc_recipients_attributes: cc_recipients_attributes,
|
@@ -61,6 +61,7 @@ module Renalware
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# These are used also when creating a batch.
|
64
|
+
# rubocop:disable Metrics/MethodLength
|
64
65
|
def filter_parameters
|
65
66
|
return {} unless params.key?(:q)
|
66
67
|
|
@@ -68,6 +69,7 @@ module Renalware
|
|
68
69
|
.require(:q)
|
69
70
|
.permit(
|
70
71
|
:enclosures_present,
|
72
|
+
:notes_present,
|
71
73
|
:state_eq,
|
72
74
|
:author_id_eq,
|
73
75
|
:created_by_id_eq,
|
@@ -76,6 +78,7 @@ module Renalware
|
|
76
78
|
:s
|
77
79
|
)
|
78
80
|
end
|
81
|
+
# rubocop:enable Metrics/MethodLength
|
79
82
|
end
|
80
83
|
end
|
81
84
|
end
|
@@ -13,7 +13,7 @@ module Renalware
|
|
13
13
|
profile = find_and_authorize_profile
|
14
14
|
if profile.update_by(current_user, profile_params)
|
15
15
|
redirect_to patient_low_clearance_dashboard_path,
|
16
|
-
notice:
|
16
|
+
notice: success_msg_for("profile")
|
17
17
|
else
|
18
18
|
flash.now[:error] = failed_msg_for("profile")
|
19
19
|
render_edit(profile)
|
@@ -11,13 +11,13 @@ module Renalware
|
|
11
11
|
include Pagy::Backend
|
12
12
|
|
13
13
|
def new
|
14
|
-
authorize Message, :new?
|
14
|
+
authorize Messaging::Internal::Message, :new?
|
15
15
|
form = MessageFormBuilder.new(patient: patient, params: params).call
|
16
16
|
render_new(form)
|
17
17
|
end
|
18
18
|
|
19
19
|
def create
|
20
|
-
authorize Message, :create?
|
20
|
+
authorize Messaging::Internal::Message, :create?
|
21
21
|
form = MessageForm.new(message_params)
|
22
22
|
|
23
23
|
if form.valid?
|
@@ -31,7 +31,7 @@ module Renalware
|
|
31
31
|
|
32
32
|
# Display all public message for a patient
|
33
33
|
def index
|
34
|
-
authorize Message, :index?
|
34
|
+
authorize Messaging::Internal::Message, :index?
|
35
35
|
scope = patient.messages.where(public: true).order(created_at: :desc)
|
36
36
|
pagination, messages = pagy(scope, items: 20)
|
37
37
|
render locals: { patient: patient, messages: messages, pagination: pagination }
|
@@ -17,9 +17,9 @@ module Renalware
|
|
17
17
|
|
18
18
|
if modality_description.save
|
19
19
|
redirect_to modalities_descriptions_path,
|
20
|
-
notice:
|
20
|
+
notice: success_msg_for("modality description")
|
21
21
|
else
|
22
|
-
flash.now[:error] =
|
22
|
+
flash.now[:error] = failed_msg_for("modality description")
|
23
23
|
render_new(modality_description)
|
24
24
|
end
|
25
25
|
end
|
@@ -38,9 +38,9 @@ module Renalware
|
|
38
38
|
modality_description = find_and_authorize_modality_description
|
39
39
|
if modality_description.update(modality_description_params)
|
40
40
|
redirect_to modalities_descriptions_path,
|
41
|
-
notice:
|
41
|
+
notice: success_msg_for("modality description")
|
42
42
|
else
|
43
|
-
flash.now[:error] =
|
43
|
+
flash.now[:error] = failed_msg_for("modality description")
|
44
44
|
render_edit(modality_description)
|
45
45
|
end
|
46
46
|
end
|
@@ -48,7 +48,7 @@ module Renalware
|
|
48
48
|
def destroy
|
49
49
|
authorize Description.destroy(params[:id])
|
50
50
|
redirect_to modalities_descriptions_path,
|
51
|
-
notice:
|
51
|
+
notice: success_msg_for("modality description")
|
52
52
|
end
|
53
53
|
|
54
54
|
private
|
@@ -25,7 +25,7 @@ module Renalware
|
|
25
25
|
if result.success?
|
26
26
|
handle_valid_modality
|
27
27
|
else
|
28
|
-
flash.now[:error] =
|
28
|
+
flash.now[:error] = failed_msg_for("modality")
|
29
29
|
render :new, locals: { patient: patient, modality: result.object }
|
30
30
|
end
|
31
31
|
end
|
@@ -62,7 +62,7 @@ module Renalware
|
|
62
62
|
}
|
63
63
|
else
|
64
64
|
redirect_to patient_modalities_path(patient),
|
65
|
-
notice:
|
65
|
+
notice: success_msg_for("modality")
|
66
66
|
end
|
67
67
|
end
|
68
68
|
# rubocop:enable Metrics/MethodLength
|
@@ -26,7 +26,7 @@ module Renalware
|
|
26
26
|
if description.update(description_params)
|
27
27
|
redirect_to(
|
28
28
|
pathology_observation_descriptions_path,
|
29
|
-
notice:
|
29
|
+
notice: success_msg_for("observation descrition")
|
30
30
|
)
|
31
31
|
else
|
32
32
|
render_edit(description)
|
@@ -18,9 +18,9 @@ module Renalware
|
|
18
18
|
|
19
19
|
if patient_rule.save
|
20
20
|
redirect_to patient_pathology_required_observations_path(@patient),
|
21
|
-
notice:
|
21
|
+
notice: success_msg_for("Patient Rule")
|
22
22
|
else
|
23
|
-
flash.now[:error] =
|
23
|
+
flash.now[:error] = failed_msg_for("Patient Rule")
|
24
24
|
render_new(patient_rule)
|
25
25
|
end
|
26
26
|
end
|
@@ -36,9 +36,9 @@ module Renalware
|
|
36
36
|
|
37
37
|
if patient_rule.update(patient_rule_params)
|
38
38
|
redirect_to patient_pathology_required_observations_path(@patient),
|
39
|
-
notice:
|
39
|
+
notice: success_msg_for("patient rule")
|
40
40
|
else
|
41
|
-
flash.now[:error] =
|
41
|
+
flash.now[:error] = failed_msg_for("patient rule")
|
42
42
|
render_edit(patient_rule)
|
43
43
|
end
|
44
44
|
end
|
@@ -47,7 +47,7 @@ module Renalware
|
|
47
47
|
Requests::PatientRule.destroy(params[:id])
|
48
48
|
|
49
49
|
redirect_to patient_pathology_required_observations_path(@patient),
|
50
|
-
notice:
|
50
|
+
notice: success_msg_for("patient rule")
|
51
51
|
end
|
52
52
|
|
53
53
|
private
|
@@ -55,7 +55,7 @@ module Renalware
|
|
55
55
|
if patient.update_by(current_user, patient_params)
|
56
56
|
redirect_to_patient_demographics(patient)
|
57
57
|
else
|
58
|
-
flash.now[:error] =
|
58
|
+
flash.now[:error] = failed_msg_for("patient")
|
59
59
|
render :edit, locals: { patient: patient }
|
60
60
|
end
|
61
61
|
end
|
@@ -37,10 +37,10 @@ module Renalware
|
|
37
37
|
|
38
38
|
if @primary_care_physician.save
|
39
39
|
redirect_to patients_primary_care_physicians_path,
|
40
|
-
notice:
|
40
|
+
notice: success_msg_for("primary_care_physician")
|
41
41
|
else
|
42
42
|
@alternative_address = alternative_address
|
43
|
-
flash.now[:error] =
|
43
|
+
flash.now[:error] = failed_msg_for("primary_care_physician")
|
44
44
|
render :new
|
45
45
|
end
|
46
46
|
end
|
@@ -57,7 +57,7 @@ module Renalware
|
|
57
57
|
authorize PrimaryCarePhysician.destroy(params[:id])
|
58
58
|
|
59
59
|
redirect_to patients_primary_care_physicians_path,
|
60
|
-
notice:
|
60
|
+
notice: success_msg_for("primary_care_physician")
|
61
61
|
end
|
62
62
|
|
63
63
|
private
|
@@ -72,13 +72,13 @@ module Renalware
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def update_primary_care_physician_failed(primary_care_physician)
|
75
|
-
flash.now[:error] =
|
75
|
+
flash.now[:error] = failed_msg_for("primary_care_physician")
|
76
76
|
render_form(primary_care_physician, :edit)
|
77
77
|
end
|
78
78
|
|
79
79
|
def redirect_to_primary_care_physicians_list
|
80
80
|
redirect_to patients_primary_care_physicians_path,
|
81
|
-
notice:
|
81
|
+
notice: success_msg_for("primary_care_physician")
|
82
82
|
end
|
83
83
|
|
84
84
|
def render_form(primary_care_physician, action)
|
@@ -17,9 +17,9 @@ module Renalware
|
|
17
17
|
|
18
18
|
if bag_type.save
|
19
19
|
redirect_to pd_bag_types_path,
|
20
|
-
notice:
|
20
|
+
notice: success_msg_for("bag type")
|
21
21
|
else
|
22
|
-
flash.now[:error] =
|
22
|
+
flash.now[:error] = failed_msg_for("bag type")
|
23
23
|
render :new, locals: { bag_type: bag_type }
|
24
24
|
end
|
25
25
|
end
|
@@ -38,9 +38,9 @@ module Renalware
|
|
38
38
|
bag_type = load_and_authorize_bag_type
|
39
39
|
if bag_type.update(bag_type_params)
|
40
40
|
redirect_to pd_bag_types_path,
|
41
|
-
notice:
|
41
|
+
notice: success_msg_for("bag type")
|
42
42
|
else
|
43
|
-
flash.now[:error] =
|
43
|
+
flash.now[:error] = failed_msg_for("bag type")
|
44
44
|
render :edit, locals: { bag_type: bag_type }
|
45
45
|
end
|
46
46
|
end
|
@@ -48,7 +48,7 @@ module Renalware
|
|
48
48
|
def destroy
|
49
49
|
bag_type = load_and_authorize_bag_type
|
50
50
|
bag_type.destroy!
|
51
|
-
redirect_to pd_bag_types_path, notice:
|
51
|
+
redirect_to pd_bag_types_path, notice: success_msg_for("bag type")
|
52
52
|
end
|
53
53
|
|
54
54
|
private
|
@@ -28,9 +28,9 @@ module Renalware
|
|
28
28
|
authorize esi
|
29
29
|
if esi.save
|
30
30
|
redirect_to patient_pd_exit_site_infection_path(patient, esi),
|
31
|
-
notice:
|
31
|
+
notice: success_msg_for("exit site infection")
|
32
32
|
else
|
33
|
-
flash.now[:error] =
|
33
|
+
flash.now[:error] = failed_msg_for("exit site infection")
|
34
34
|
render_new(esi)
|
35
35
|
end
|
36
36
|
end
|
@@ -44,9 +44,9 @@ module Renalware
|
|
44
44
|
authorize exit_site_infection
|
45
45
|
if exit_site_infection.update(exit_site_infection_params)
|
46
46
|
redirect_to patient_pd_exit_site_infection_path(patient, exit_site_infection),
|
47
|
-
notice:
|
47
|
+
notice: success_msg_for("exit site infection")
|
48
48
|
else
|
49
|
-
flash.now[:error] =
|
49
|
+
flash.now[:error] = failed_msg_for("exit site infection")
|
50
50
|
render_edit
|
51
51
|
end
|
52
52
|
end
|
@@ -56,7 +56,7 @@ module Renalware
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def save_failure(episode)
|
59
|
-
flash.now[:error] =
|
59
|
+
flash.now[:error] = failed_msg_for("peritonitis episode")
|
60
60
|
action = action_name.to_sym == :create ? :new : :edit
|
61
61
|
render action, locals: {
|
62
62
|
peritonitis_episode: episode,
|
@@ -98,7 +98,7 @@ module Renalware
|
|
98
98
|
|
99
99
|
def redirect_after_successful_save(episode)
|
100
100
|
url = patient_pd_peritonitis_episode_path(patient, episode)
|
101
|
-
message =
|
101
|
+
message = success_msg_for("peritonitis episode")
|
102
102
|
redirect_to url, notice: message
|
103
103
|
end
|
104
104
|
|
@@ -61,9 +61,9 @@ module Renalware
|
|
61
61
|
|
62
62
|
if result.success?
|
63
63
|
redirect_to patient_pd_dashboard_path(patient),
|
64
|
-
notice:
|
64
|
+
notice: success_msg_for("PD regime")
|
65
65
|
else
|
66
|
-
flash.now[:error] =
|
66
|
+
flash.now[:error] = failed_msg_for("PD regime")
|
67
67
|
render :edit, locals: {
|
68
68
|
regime: result.object,
|
69
69
|
patient: patient
|
@@ -25,7 +25,7 @@ module Renalware
|
|
25
25
|
authorize snippet
|
26
26
|
|
27
27
|
if snippet.save
|
28
|
-
redirect_to snippets_path, notice:
|
28
|
+
redirect_to snippets_path, notice: success_msg_for("snippet")
|
29
29
|
else
|
30
30
|
render :new, locals: { snippet: snippet }
|
31
31
|
end
|
@@ -39,7 +39,7 @@ module Renalware
|
|
39
39
|
def update
|
40
40
|
snippet = find_and_authorize_snippet
|
41
41
|
if snippet.update(snippet_params)
|
42
|
-
redirect_to snippets_path, notice:
|
42
|
+
redirect_to snippets_path, notice: success_msg_for("snippet")
|
43
43
|
else
|
44
44
|
render :edit, locals: { snippet: snippet }
|
45
45
|
end
|
@@ -22,9 +22,9 @@ module Renalware
|
|
22
22
|
|
23
23
|
if donation.save
|
24
24
|
redirect_to patient_transplants_donor_dashboard_path(patient),
|
25
|
-
notice:
|
25
|
+
notice: success_msg_for("donation")
|
26
26
|
else
|
27
|
-
flash.now[:error] =
|
27
|
+
flash.now[:error] = failed_msg_for("donation")
|
28
28
|
render :new, locals: { patient: patient, donation: donation }
|
29
29
|
end
|
30
30
|
end
|
@@ -40,9 +40,9 @@ module Renalware
|
|
40
40
|
|
41
41
|
if donation.save
|
42
42
|
redirect_to patient_transplants_donor_dashboard_path(patient),
|
43
|
-
notice:
|
43
|
+
notice: success_msg_for("donation")
|
44
44
|
else
|
45
|
-
flash.now[:error] =
|
45
|
+
flash.now[:error] = failed_msg_for("donation")
|
46
46
|
render :edit, locals: { patient: patient, donation: donation }
|
47
47
|
end
|
48
48
|
end
|
@@ -22,9 +22,9 @@ module Renalware
|
|
22
22
|
|
23
23
|
if operation.save
|
24
24
|
redirect_to patient_transplants_donor_dashboard_path(patient),
|
25
|
-
notice:
|
25
|
+
notice: success_msg_for("donor operation")
|
26
26
|
else
|
27
|
-
flash.now[:error] =
|
27
|
+
flash.now[:error] = failed_msg_for("donor operation")
|
28
28
|
render :new, locals: { operation: operation, patient: patient }
|
29
29
|
end
|
30
30
|
end
|
@@ -40,9 +40,9 @@ module Renalware
|
|
40
40
|
|
41
41
|
if operation.save
|
42
42
|
redirect_to patient_transplants_donor_dashboard_path(patient),
|
43
|
-
notice:
|
43
|
+
notice: success_msg_for("donor operation")
|
44
44
|
else
|
45
|
-
flash.now[:error] =
|
45
|
+
flash.now[:error] = failed_msg_for("donor operation")
|
46
46
|
render :edit, locals: { operation: operation, patient: patient }
|
47
47
|
end
|
48
48
|
end
|
@@ -20,7 +20,7 @@ module Renalware
|
|
20
20
|
result = CreateDonorStage.new(patient: patient, options: donor_stage_params).call
|
21
21
|
if result.success?
|
22
22
|
redirect_to patient_transplants_donor_dashboard_path(patient),
|
23
|
-
notice:
|
23
|
+
notice: success_msg_for("donor stage")
|
24
24
|
else
|
25
25
|
render :new, locals: {
|
26
26
|
patient: patient,
|
@@ -26,9 +26,9 @@ module Renalware
|
|
26
26
|
|
27
27
|
if workup.update(workup_params)
|
28
28
|
redirect_to patient_transplants_donor_workup_path(patient),
|
29
|
-
notice:
|
29
|
+
notice: success_msg_for("donor work up")
|
30
30
|
else
|
31
|
-
flash.now[:error] =
|
31
|
+
flash.now[:error] = failed_msg_for("donor work up")
|
32
32
|
render :edit, locals: { patient: patient, workup: workup }
|
33
33
|
end
|
34
34
|
end
|
@@ -27,9 +27,9 @@ module Renalware
|
|
27
27
|
|
28
28
|
if recipient_operation.save
|
29
29
|
redirect_to patient_transplants_recipient_dashboard_path(patient),
|
30
|
-
notice:
|
30
|
+
notice: success_msg_for("recipient operation")
|
31
31
|
else
|
32
|
-
flash.now[:error] =
|
32
|
+
flash.now[:error] = failed_msg_for("recipient operation")
|
33
33
|
render :new,
|
34
34
|
locals: {
|
35
35
|
patient: patient,
|
@@ -50,9 +50,9 @@ module Renalware
|
|
50
50
|
|
51
51
|
if operation.save
|
52
52
|
redirect_to patient_transplants_recipient_dashboard_path(patient),
|
53
|
-
notice:
|
53
|
+
notice: success_msg_for("recipient operation")
|
54
54
|
else
|
55
|
-
flash.now[:error] =
|
55
|
+
flash.now[:error] = failed_msg_for("recipient operation")
|
56
56
|
render :edit, locals: { patient: patient, recipient_operation: operation }
|
57
57
|
end
|
58
58
|
end
|