renalware-core 2.0.16 → 2.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/renalware/accesses/assessments_controller.rb +2 -0
- data/app/controllers/renalware/accesses/base_controller.rb +2 -0
- data/app/controllers/renalware/accesses/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/accesses/plans_controller.rb +2 -0
- data/app/controllers/renalware/accesses/procedures_controller.rb +2 -0
- data/app/controllers/renalware/accesses/profiles_controller.rb +2 -0
- data/app/controllers/renalware/admin/cache_controller.rb +2 -0
- data/app/controllers/renalware/admin/feeds/files_controller.rb +2 -0
- data/app/controllers/renalware/admin/users_controller.rb +2 -0
- data/app/controllers/renalware/admissions/admissions_controller.rb +2 -0
- data/app/controllers/renalware/admissions/consults_controller.rb +2 -0
- data/app/controllers/renalware/admissions/patient_admissions_controller.rb +2 -0
- data/app/controllers/renalware/admissions/requests_controller.rb +2 -0
- data/app/controllers/renalware/api/token_authenticated_api_controller.rb +2 -2
- data/app/controllers/renalware/api/ukrdc/patients_controller.rb +2 -0
- data/app/controllers/renalware/api/v1/medications/prescriptions_controller.rb +2 -0
- data/app/controllers/renalware/api/v1/patients/patients_controller.rb +2 -0
- data/app/controllers/renalware/application_controller.rb +2 -0
- data/app/controllers/renalware/base_controller.rb +2 -0
- data/app/controllers/renalware/clinical/allergies_controller.rb +2 -0
- data/app/controllers/renalware/clinical/allergy_statuses_controller.rb +2 -0
- data/app/controllers/renalware/clinical/base_controller.rb +2 -0
- data/app/controllers/renalware/clinical/body_compositions_controller.rb +2 -0
- data/app/controllers/renalware/clinical/dry_weights_controller.rb +2 -0
- data/app/controllers/renalware/clinical/profiles_controller.rb +2 -0
- data/app/controllers/renalware/clinics/appointments_controller.rb +2 -0
- data/app/controllers/renalware/clinics/clinic_visits_controller.rb +2 -0
- data/app/controllers/renalware/clinics/visits_controller.rb +2 -0
- data/app/controllers/renalware/concerns/cache_busting.rb +2 -0
- data/app/controllers/renalware/concerns/devise_controller_methods.rb +2 -0
- data/app/controllers/renalware/concerns/pageable.rb +2 -0
- data/app/controllers/renalware/concerns/pdf_renderable.rb +2 -0
- data/app/controllers/renalware/dashboard.rb +2 -0
- data/app/controllers/renalware/dashboard/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/deaths_controller.rb +2 -0
- data/app/controllers/renalware/devise/passwords_controller.rb +2 -0
- data/app/controllers/renalware/devise/registrations_controller.rb +2 -0
- data/app/controllers/renalware/devise/sessions_controller.rb +2 -0
- data/app/controllers/renalware/directory/people_controller.rb +2 -0
- data/app/controllers/renalware/drugs/drugs_controller.rb +2 -0
- data/app/controllers/renalware/events/events_controller.rb +2 -0
- data/app/controllers/renalware/events/investigations_controller.rb +2 -0
- data/app/controllers/renalware/events/swabs_controller.rb +2 -0
- data/app/controllers/renalware/events/types_controller.rb +2 -0
- data/app/controllers/renalware/hd/base_controller.rb +2 -0
- data/app/controllers/renalware/hd/cannulation_types_controller.rb +2 -0
- data/app/controllers/renalware/hd/current_profile_controller.rb +2 -0
- data/app/controllers/renalware/hd/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/hd/dialysers_controller.rb +2 -0
- data/app/controllers/renalware/hd/diaries_controller.rb +2 -0
- data/app/controllers/renalware/hd/diary_slots_controller.rb +2 -0
- data/app/controllers/renalware/hd/historical_profiles_controller.rb +2 -0
- data/app/controllers/renalware/hd/mdm_controller.rb +2 -0
- data/app/controllers/renalware/hd/mdm_patients_controller.rb +2 -0
- data/app/controllers/renalware/hd/ongoing_sessions_controller.rb +2 -0
- data/app/controllers/renalware/hd/patients_controller.rb +2 -0
- data/app/controllers/renalware/hd/preference_sets_controller.rb +2 -0
- data/app/controllers/renalware/hd/protocols_controller.rb +2 -0
- data/app/controllers/renalware/hd/sessions_controller.rb +2 -0
- data/app/controllers/renalware/hd/stations_controller.rb +2 -0
- data/app/controllers/renalware/hd/unmet_preferences_controller.rb +2 -0
- data/app/controllers/renalware/hospitals/units_controller.rb +2 -0
- data/app/controllers/renalware/hospitals/wards_controller.rb +2 -0
- data/app/controllers/renalware/letters/approved_letters_controller.rb +2 -0
- data/app/controllers/renalware/letters/base_controller.rb +2 -0
- data/app/controllers/renalware/letters/completed_letters_controller.rb +2 -0
- data/app/controllers/renalware/letters/contacts_controller.rb +2 -0
- data/app/controllers/renalware/letters/descriptions_controller.rb +2 -0
- data/app/controllers/renalware/letters/electronic_receipts_controller.rb +2 -0
- data/app/controllers/renalware/letters/formatted_letters_controller.rb +2 -0
- data/app/controllers/renalware/letters/letters_controller.rb +2 -0
- data/app/controllers/renalware/letters/lists_controller.rb +2 -0
- data/app/controllers/renalware/letters/pdf_letter_cache_controller.rb +2 -0
- data/app/controllers/renalware/letters/pending_review_letters_controller.rb +2 -0
- data/app/controllers/renalware/letters/rejected_letters_controller.rb +2 -0
- data/app/controllers/renalware/low_clearance/base_controller.rb +2 -0
- data/app/controllers/renalware/low_clearance/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/low_clearance/mdm_controller.rb +2 -0
- data/app/controllers/renalware/low_clearance/mdm_patients_controller.rb +2 -0
- data/app/controllers/renalware/low_clearance/profiles_controller.rb +2 -0
- data/app/controllers/renalware/mdm_controller.rb +2 -0
- data/app/controllers/renalware/mdm_patients_controller.rb +2 -0
- data/app/controllers/renalware/medications/drug_types/prescriptions_controller.rb +2 -0
- data/app/controllers/renalware/medications/prescriptions_controller.rb +2 -0
- data/app/controllers/renalware/medications/terminations_controller.rb +2 -0
- data/app/controllers/renalware/messaging/internal/messages_controller.rb +2 -0
- data/app/controllers/renalware/messaging/internal/receipts_controller.rb +2 -0
- data/app/controllers/renalware/modalities/descriptions_controller.rb +2 -0
- data/app/controllers/renalware/modalities/modalities_controller.rb +2 -0
- data/app/controllers/renalware/modalities/reasons_controller.rb +2 -0
- data/app/controllers/renalware/pathology/base_controller.rb +2 -0
- data/app/controllers/renalware/pathology/current_observation_results_controller.rb +2 -0
- data/app/controllers/renalware/pathology/historical_observation_results_controller.rb +2 -0
- data/app/controllers/renalware/pathology/observation_requests_controller.rb +2 -0
- data/app/controllers/renalware/pathology/observations_controller.rb +2 -0
- data/app/controllers/renalware/pathology/patient_rules_controller.rb +2 -0
- data/app/controllers/renalware/pathology/recent_observation_results_controller.rb +2 -0
- data/app/controllers/renalware/pathology/requests/requests_controller.rb +2 -0
- data/app/controllers/renalware/pathology/requests/rules_controller.rb +2 -0
- data/app/controllers/renalware/pathology/required_observations_controller.rb +2 -0
- data/app/controllers/renalware/patients/alerts_controller.rb +2 -0
- data/app/controllers/renalware/patients/bookmarks_controller.rb +2 -0
- data/app/controllers/renalware/patients/clinical_summaries_controller.rb +2 -0
- data/app/controllers/renalware/patients/patients_controller.rb +2 -0
- data/app/controllers/renalware/patients/practices_controller.rb +2 -0
- data/app/controllers/renalware/patients/primary_care_physician_controller.rb +2 -0
- data/app/controllers/renalware/patients/primary_care_physicians_controller.rb +2 -0
- data/app/controllers/renalware/patients/worry_controller.rb +2 -0
- data/app/controllers/renalware/patients/worryboard_controller.rb +2 -0
- data/app/controllers/renalware/pd/assessments_controller.rb +2 -0
- data/app/controllers/renalware/pd/bag_types_controller.rb +2 -0
- data/app/controllers/renalware/pd/base_controller.rb +2 -0
- data/app/controllers/renalware/pd/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/pd/exit_site_infections_controller.rb +2 -0
- data/app/controllers/renalware/pd/infection_organisms_controller.rb +2 -0
- data/app/controllers/renalware/pd/mdm_controller.rb +2 -0
- data/app/controllers/renalware/pd/mdm_patients_controller.rb +2 -0
- data/app/controllers/renalware/pd/peritonitis_episodes_controller.rb +2 -0
- data/app/controllers/renalware/pd/pet_adequacy_results_controller.rb +2 -0
- data/app/controllers/renalware/pd/regimes_controller.rb +2 -0
- data/app/controllers/renalware/pd/training_sessions_controller.rb +2 -0
- data/app/controllers/renalware/problems/notes_controller.rb +2 -0
- data/app/controllers/renalware/problems/problems_controller.rb +2 -0
- data/app/controllers/renalware/renal/aki_alerts_controller.rb +2 -0
- data/app/controllers/renalware/renal/base_controller.rb +2 -0
- data/app/controllers/renalware/renal/prd_descriptions_controller.rb +2 -0
- data/app/controllers/renalware/renal/profiles_controller.rb +2 -0
- data/app/controllers/renalware/renal/registry_preflight_checks_controller.rb +2 -0
- data/app/controllers/renalware/reporting/audit_refreshments_controller.rb +2 -0
- data/app/controllers/renalware/reporting/audits_controller.rb +2 -0
- data/app/controllers/renalware/research/studies_controller.rb +2 -0
- data/app/controllers/renalware/research/study_participants_controller.rb +2 -0
- data/app/controllers/renalware/session_timeout_controller.rb +2 -0
- data/app/controllers/renalware/snippets/snippet_clones_controller.rb +2 -0
- data/app/controllers/renalware/snippets/snippet_invocations_controller.rb +2 -0
- data/app/controllers/renalware/snippets/snippets_controller.rb +2 -0
- data/app/controllers/renalware/system/email_templates_controller.rb +2 -0
- data/app/controllers/renalware/system/errors_controller.rb +2 -0
- data/app/controllers/renalware/system/mock_errors_controller.rb +2 -0
- data/app/controllers/renalware/system/user_feedback_controller.rb +40 -3
- data/app/controllers/renalware/transplants/base_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donations_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donor_dashboards_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donor_followups_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donor_operations_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donor_stages_controller.rb +2 -0
- data/app/controllers/renalware/transplants/donor_workups_controller.rb +2 -0
- data/app/controllers/renalware/transplants/live_donors_controller.rb +2 -0
- data/app/controllers/renalware/transplants/mdm_controller.rb +2 -0
- data/app/controllers/renalware/transplants/mdm_patients_controller.rb +2 -0
- data/app/controllers/renalware/transplants/recipient_dashboards_controller.rb +2 -0
- data/app/controllers/renalware/transplants/recipient_followups_controller.rb +2 -0
- data/app/controllers/renalware/transplants/recipient_operations_controller.rb +2 -0
- data/app/controllers/renalware/transplants/recipient_workups_controller.rb +2 -0
- data/app/controllers/renalware/transplants/registration_statuses_controller.rb +2 -0
- data/app/controllers/renalware/transplants/registrations_controller.rb +2 -0
- data/app/controllers/renalware/transplants/wait_lists_controller.rb +2 -0
- data/app/controllers/renalware/virology/dashboards_controller.rb +2 -0
- data/app/controllers/renalware/virology/vaccinations_controller.rb +2 -0
- data/app/documents/renalware/accesses/assessment_document.rb +2 -0
- data/app/documents/renalware/age.rb +2 -0
- data/app/documents/renalware/binary_marker.rb +2 -0
- data/app/documents/renalware/blood_group.rb +2 -0
- data/app/documents/renalware/blood_pressure.rb +2 -0
- data/app/documents/renalware/dated_confirmation.rb +2 -0
- data/app/documents/renalware/dated_integer.rb +2 -0
- data/app/documents/renalware/dated_result.rb +2 -0
- data/app/documents/renalware/dated_test.rb +2 -0
- data/app/documents/renalware/hd/profile_document.rb +2 -0
- data/app/documents/renalware/hd/session_document.rb +2 -0
- data/app/documents/renalware/infection_status.rb +2 -0
- data/app/documents/renalware/left_right_confirmation.rb +2 -0
- data/app/documents/renalware/low_clearance/profile_document.rb +2 -0
- data/app/documents/renalware/nested_attribute.rb +2 -0
- data/app/documents/renalware/patient_document.rb +2 -0
- data/app/documents/renalware/renal/profile_document.rb +2 -0
- data/app/documents/renalware/smoking_status.rb +2 -0
- data/app/documents/renalware/transplants/crf_dated_result.rb +2 -0
- data/app/documents/renalware/transplants/donor_operation_document.rb +2 -0
- data/app/documents/renalware/transplants/donor_workup_document.rb +2 -0
- data/app/documents/renalware/transplants/recipient_followup_document.rb +2 -0
- data/app/documents/renalware/transplants/recipient_operation_document.rb +2 -0
- data/app/documents/renalware/transplants/recipient_workup_document.rb +2 -0
- data/app/documents/renalware/transplants/registration_document.rb +2 -0
- data/app/documents/renalware/year_dated_confirmation.rb +2 -0
- data/app/drops/renalware/patients/patient_drop.rb +2 -0
- data/app/drops/renalware/pd/exit_site_infection_drop.rb +2 -0
- data/app/drops/renalware/pd/patient_drop.rb +2 -0
- data/app/drops/renalware/renal/patient_drop.rb +2 -0
- data/app/helpers/presenter_helper.rb +2 -0
- data/app/helpers/ransack_helper.rb +2 -0
- data/app/helpers/renalware/accesses_helper.rb +2 -0
- data/app/helpers/renalware/admin_helper.rb +2 -0
- data/app/helpers/renalware/application_helper.rb +2 -0
- data/app/helpers/renalware/article_helper.rb +2 -0
- data/app/helpers/renalware/attribute_name_helper.rb +2 -0
- data/app/helpers/renalware/bag_types_helper.rb +2 -0
- data/app/helpers/renalware/clinic_helper.rb +2 -0
- data/app/helpers/renalware/clinical_helper.rb +2 -0
- data/app/helpers/renalware/clipboard_helper.rb +2 -0
- data/app/helpers/renalware/dashboards_helper.rb +2 -0
- data/app/helpers/renalware/definition_list_helper.rb +2 -0
- data/app/helpers/renalware/devise_helper.rb +2 -0
- data/app/helpers/renalware/dropdown_button_helper.rb +2 -0
- data/app/helpers/renalware/drugs_helper.rb +2 -0
- data/app/helpers/renalware/flash_helper.rb +2 -0
- data/app/helpers/renalware/form_helper.rb +2 -0
- data/app/helpers/renalware/hd_helper.rb +2 -0
- data/app/helpers/renalware/infection_organisms_helper.rb +2 -0
- data/app/helpers/renalware/layout_helper.rb +2 -0
- data/app/helpers/renalware/letters_helper.rb +2 -0
- data/app/helpers/renalware/mdm_helper.rb +2 -0
- data/app/helpers/renalware/navigation_helper.rb +2 -0
- data/app/helpers/renalware/patient_helper.rb +2 -0
- data/app/helpers/renalware/pd_helper.rb +2 -0
- data/app/helpers/renalware/pd_regime_bags_helper.rb +2 -0
- data/app/helpers/renalware/pd_regimes_helper.rb +2 -0
- data/app/helpers/renalware/pdf_helper.rb +2 -0
- data/app/helpers/renalware/prescriptions_helper.rb +2 -0
- data/app/helpers/renalware/primary_care_physicians_helper.rb +2 -0
- data/app/helpers/renalware/problems_helper.rb +2 -0
- data/app/helpers/renalware/render_helper.rb +2 -0
- data/app/helpers/renalware/reporting_helper.rb +2 -0
- data/app/helpers/renalware/side_nav_helper.rb +2 -0
- data/app/helpers/renalware/snippets_helper.rb +2 -0
- data/app/helpers/renalware/toggle_helper.rb +2 -0
- data/app/helpers/renalware/tooltip_helper.rb +2 -0
- data/app/helpers/renalware/transplant_helper.rb +2 -0
- data/app/helpers/renalware/users_helper.rb +3 -1
- data/app/helpers/renalware/versions_helper.rb +2 -0
- data/app/helpers/renalware/xhr_helper.rb +2 -0
- data/app/inputs/clock_picker_input.rb +2 -0
- data/app/inputs/date_picker_input.rb +2 -0
- data/app/inputs/datetime_picker_input.rb +2 -0
- data/app/inputs/hidden_array_input.rb +2 -0
- data/app/inputs/inline_radio_buttons_input.rb +2 -0
- data/app/inputs/multiple_select_input.rb +2 -0
- data/app/inputs/select_container_input.rb +2 -0
- data/app/inputs/simple_time_input.rb +2 -0
- data/app/inputs/user_picker_input.rb +2 -0
- data/app/jobs/application_job.rb +2 -0
- data/app/jobs/feed_job.rb +2 -0
- data/app/jobs/renalware/hd/generate_monthly_statistics_for_patient_job.rb +2 -0
- data/app/jobs/renalware/hd/generate_monthly_statistics_job.rb +2 -0
- data/app/jobs/renalware/hd/update_rolling_patient_statistics_job.rb +2 -0
- data/app/jobs/renalware/letters/save_pdf_letter_to_file_job.rb +2 -0
- data/app/jobs/renalware/reporting/refresh_audit_data_job.rb +2 -0
- data/app/mailers/renalware/admin/user_mailer.rb +2 -0
- data/app/mailers/renalware/letters/delivery/errors.rb +2 -0
- data/app/mailers/renalware/letters/delivery/practice_mailer.rb +2 -0
- data/app/mailers/renalware/previews/user_mailer_preview.rb +2 -0
- data/app/models/renalware/hd/sessions/auditable_session.rb +3 -2
- data/app/models/renalware/low_clearance/mdm_patients_query.rb +1 -1
- data/app/models/renalware/medications/prescription.rb +2 -2
- data/app/models/renalware/pd/capd_regime.rb +33 -39
- data/app/models/renalware/pd/mdm_patients_query.rb +1 -1
- data/app/models/renalware/transplants/mdm_patients_query.rb +1 -1
- data/app/models/renalware/transplants/registrations/wait_list_query.rb +2 -2
- data/app/models/renalware/user.rb +1 -1
- data/app/policies/renalware/letters/letter_policy.rb +13 -1
- data/app/policies/renalware/system/user_feedback_policy.rb +3 -0
- data/app/presenters/renalware/mdm_presenter.rb +0 -1
- data/app/validators/concerns/renalware/numeric_range_validations.rb +2 -0
- data/app/validators/concerns/renalware/numeric_scale_validations.rb +2 -0
- data/app/validators/renalware/address_validator.rb +2 -0
- data/app/validators/renalware/letters/author_signature_validator.rb +2 -0
- data/app/validators/renalware/patients/blood_pressure_presence_validator.rb +2 -0
- data/app/validators/renalware/patients/blood_pressure_validator.rb +2 -0
- data/app/validators/renalware/patients/bm_stix_validator.rb +2 -0
- data/app/validators/renalware/patients/hdf_presence_validator.rb +2 -0
- data/app/validators/renalware/patients/height_validator.rb +2 -0
- data/app/validators/renalware/patients/primary_care_physicians/address_validator.rb +2 -0
- data/app/validators/renalware/patients/pulse_validator.rb +2 -0
- data/app/validators/renalware/patients/temperature_validator.rb +2 -0
- data/app/validators/renalware/patients/weight_validator.rb +2 -0
- data/app/values/renalware/address.rb +2 -0
- data/app/values/renalware/bmi.rb +2 -0
- data/app/values/renalware/duration.rb +2 -0
- data/app/values/renalware/gender.rb +2 -0
- data/app/values/renalware/time_of_day.rb +2 -0
- data/app/views/renalware/admissions/consults/_table.html.slim +1 -1
- data/app/views/renalware/hd/ongoing_sessions/_table.html.slim +2 -2
- data/app/views/renalware/hd/sessions/_thead.html.slim +0 -2
- data/app/views/renalware/navigation/_admin.html.slim +12 -0
- data/app/views/renalware/navigation/_menu.html.slim +3 -1
- data/app/views/renalware/navigation/_super_admin.html.slim +11 -0
- data/app/views/renalware/system/user_feedback/edit.html.slim +19 -0
- data/app/views/renalware/system/user_feedback/index.html.slim +18 -0
- data/app/views/renalware/transplants/wait_lists/show.html.slim +3 -3
- data/config/initializers/ahoy.rb +2 -0
- data/config/initializers/backtrace_silencers.rb +2 -0
- data/config/initializers/client_side_validations.rb +1 -0
- data/config/initializers/core_extensions.rb +2 -0
- data/config/initializers/delayed_job.rb +2 -0
- data/config/initializers/devise.rb +2 -0
- data/config/initializers/devise_security_extension.rb +2 -0
- data/config/initializers/inflections.rb +2 -0
- data/config/initializers/kaminari.rb +2 -0
- data/config/initializers/mailer_previews.rb +2 -0
- data/config/initializers/mime_types.rb +2 -0
- data/config/initializers/null_object.rb +2 -0
- data/config/initializers/paper_trail.rb +2 -0
- data/config/initializers/postgresql_database_tasks.rb +2 -0
- data/config/initializers/ransack.rb +2 -0
- data/config/initializers/renalware.rb +2 -0
- data/config/initializers/simple_form.rb +2 -0
- data/config/initializers/simple_form_clock_picker.rb +2 -0
- data/config/initializers/simple_form_datepicker.rb +2 -0
- data/config/initializers/simple_form_foundation.rb +2 -0
- data/config/initializers/validates_timeliness.rb +2 -0
- data/config/initializers/wicked_pdf.rb +2 -0
- data/config/initializers/wrap_parameters.rb +2 -0
- data/config/locales/renalware/hd/session.en.yml +2 -2
- data/config/routes.rb +5 -3
- data/config/spring.rb +2 -0
- data/db/migrate/20180326155400_add_admin_notes_to_system_user_feedback.rb +6 -0
- data/db/seeds.rb +2 -0
- data/db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb +2 -0
- data/db/seeds/default/accesses/access_plan_types.rb +2 -0
- data/db/seeds/default/accesses/access_sites.rb +2 -0
- data/db/seeds/default/accesses/access_types.rb +2 -0
- data/db/seeds/default/accesses/access_types_procedures.rb +2 -0
- data/db/seeds/default/accesses/seeds.rb +2 -0
- data/db/seeds/default/clinics/clinics.rb +2 -0
- data/db/seeds/default/clinics/seeds.rb +2 -0
- data/db/seeds/default/deaths/death_causes.rb +2 -0
- data/db/seeds/default/deaths/seeds.rb +2 -0
- data/db/seeds/default/events/event_types.rb +2 -0
- data/db/seeds/default/events/seeds.rb +2 -0
- data/db/seeds/default/feeds/import_file_types.rb +2 -0
- data/db/seeds/default/feeds/seeds.rb +2 -0
- data/db/seeds/default/hd/cannulation_types.rb +2 -0
- data/db/seeds/default/hd/dialysers.rb +2 -0
- data/db/seeds/default/hd/seeds.rb +2 -0
- data/db/seeds/default/housekeeping.rb +2 -0
- data/db/seeds/default/letters/seeds.rb +2 -0
- data/db/seeds/default/medications/medication_routes.rb +2 -0
- data/db/seeds/default/medications/seeds.rb +2 -0
- data/db/seeds/default/modalities/descriptions.rb +2 -0
- data/db/seeds/default/modalities/reasons.rb +2 -0
- data/db/seeds/default/modalities/seeds.rb +2 -0
- data/db/seeds/default/pathology/measurement_units.rb +2 -0
- data/db/seeds/default/pathology/seeds.rb +2 -0
- data/db/seeds/default/patients/patients_ethnicities.rb +2 -0
- data/db/seeds/default/patients/patients_languages.rb +2 -0
- data/db/seeds/default/patients/patients_religions.rb +2 -0
- data/db/seeds/default/patients/seeds.rb +2 -0
- data/db/seeds/default/pd/bag_types.rb +2 -0
- data/db/seeds/default/pd/fluid_descriptions.rb +2 -0
- data/db/seeds/default/pd/organisms.rb +2 -0
- data/db/seeds/default/pd/peritonitis_episode_type_descriptions.rb +2 -0
- data/db/seeds/default/pd/seeds.rb +2 -0
- data/db/seeds/default/pd/systems.rb +2 -0
- data/db/seeds/default/pd/training_sites.rb +2 -0
- data/db/seeds/default/pd/training_types.rb +2 -0
- data/db/seeds/default/practices/practices.rb +2 -0
- data/db/seeds/default/practices/primary_care_physicians.rb +2 -0
- data/db/seeds/default/practices/seeds.rb +2 -0
- data/db/seeds/default/renal/prd_descriptions.rb +2 -0
- data/db/seeds/default/renal/seeds.rb +2 -0
- data/db/seeds/default/reporting/audits.rb +2 -0
- data/db/seeds/default/reporting/seeds.rb +2 -0
- data/db/seeds/default/seeds.rb +2 -0
- data/db/seeds/default/system/countries.rb +2 -0
- data/db/seeds/default/system/roles.rb +2 -0
- data/db/seeds/default/system/seeds.rb +2 -0
- data/db/seeds/default/system/users.rb +2 -0
- data/db/seeds/default/transplants/seeds.rb +2 -0
- data/db/seeds/default/transplants/transplant_donor_stages.rb +2 -0
- data/db/seeds/default/transplants/transplant_failure_cause_descriptions.rb +2 -0
- data/db/seeds/default/transplants/transplant_registration_statuses.rb +2 -0
- data/db/seeds/seeds_helper.rb +2 -0
- data/lib/age_calculator.rb +2 -0
- data/lib/array_stringifier.rb +2 -0
- data/lib/breadcrumb.rb +2 -0
- data/lib/collection_presenter.rb +2 -0
- data/lib/core_extensions/active_record/migration_helpers.rb +2 -0
- data/lib/core_extensions/active_record/sort.rb +2 -0
- data/lib/core_extensions/active_support/duration.rb +2 -0
- data/lib/core_extensions/date.rb +2 -0
- data/lib/core_extensions/dumb_delegator.rb +2 -0
- data/lib/core_extensions/hash.rb +2 -0
- data/lib/core_extensions/i18n/always_cascade.rb +2 -0
- data/lib/core_extensions/i18n/handle_blank_value.rb +2 -0
- data/lib/core_extensions/scenic.rb +2 -0
- data/lib/document/attribute_initializer.rb +2 -0
- data/lib/document/attribute_initializer/active_model.rb +2 -0
- data/lib/document/attribute_initializer/base.rb +2 -0
- data/lib/document/attribute_initializer/enum.rb +2 -0
- data/lib/document/base.rb +2 -0
- data/lib/document/embedded.rb +2 -0
- data/lib/document/enum.rb +2 -0
- data/lib/dropdown_button_item.rb +2 -0
- data/lib/duration_calculator.rb +2 -0
- data/lib/git_commit_sha.rb +2 -0
- data/lib/hash_collection.rb +2 -0
- data/lib/inline_image.rb +2 -0
- data/lib/numeric_inclusion_validator.rb +2 -0
- data/lib/renalware.rb +2 -0
- data/lib/renalware/automatic_age_calculator.rb +2 -0
- data/lib/renalware/configuration.rb +2 -0
- data/lib/renalware/engine.rb +2 -0
- data/lib/renalware/failure.rb +2 -0
- data/lib/renalware/month_period.rb +2 -0
- data/lib/renalware/remembered_preferences.rb +2 -0
- data/lib/renalware/service_result.rb +2 -0
- data/lib/renalware/success.rb +2 -0
- data/lib/renalware/version.rb +3 -1
- data/lib/renalware/week_period.rb +2 -0
- data/lib/smart_delegator.rb +2 -0
- data/lib/sql/index_case_stmt.rb +2 -0
- data/lib/subscription_registry.rb +2 -0
- data/lib/test_support/ajax_helpers.rb +2 -0
- data/lib/test_support/autocomplete_helpers.rb +2 -0
- data/lib/test_support/text_editor_helpers.rb +2 -0
- data/spec/factories/system/feedback.rb +10 -0
- data/spec/factories/transplants/donor_stage_position.rb +1 -1
- data/spec/factories/transplants/donor_stage_status.rb +1 -1
- metadata +26 -21
- data/app/views/renalware/navigation/_renalware_admin.html.slim +0 -23
@@ -65,7 +65,7 @@
|
|
65
65
|
td= consult.location
|
66
66
|
td.noprint= l(consult.started_on)
|
67
67
|
td.noprint= l(consult.ended_on)
|
68
|
-
td.show-for-large-up= consult.patient_current_modality
|
68
|
+
td.show-for-large-up.col-width-medium-with-ellipsis= consult.patient_current_modality
|
69
69
|
td.show-for-large-up= consult.patient_sex
|
70
70
|
td.show-for-large-up= l(consult.patient.born_on)
|
71
71
|
td.show-for-large-up.noprint= consult.patient_age
|
@@ -11,8 +11,8 @@ table.report
|
|
11
11
|
th.col-width-date= sort_link([:renalware, query], :performed_on, "Date")
|
12
12
|
th.col-width-time= sort_link([:renalware, query], :start_time, "Start Time")
|
13
13
|
th.col-width-time= sort_link([:renalware, query], :end_time, "End Time")
|
14
|
-
td= sort_link([:renalware, query], :signed_on_by_family_name, "
|
15
|
-
td= sort_link([:renalware, query], :signed_off_by_family_name, "
|
14
|
+
td= sort_link([:renalware, query], :signed_on_by_family_name, "Put On By")
|
15
|
+
td= sort_link([:renalware, query], :signed_off_by_family_name, "Taken Off By")
|
16
16
|
|
17
17
|
tbody
|
18
18
|
= render partial: "session", collection: sessions
|
@@ -0,0 +1,12 @@
|
|
1
|
+
li.has-dropdown
|
2
|
+
= link_to "Admin", "#"
|
3
|
+
ul.dropdown
|
4
|
+
li= link_to "Users", admin_users_path
|
5
|
+
li= link_to "Hospital Units", hospitals_units_path
|
6
|
+
li= link_to "HD Cannulation Types", hd_cannulation_types_path
|
7
|
+
li= link_to "HD Dialysers", hd_dialysers_path
|
8
|
+
li= link_to "Request Form Print History", pathology_requests_requests_path
|
9
|
+
li= link_to "Pathology Requesting Configuration", pathology_requests_rules_path
|
10
|
+
- unless Rails.env.production?
|
11
|
+
li
|
12
|
+
= link_to "Email Templates", system_email_templates_path
|
@@ -9,7 +9,9 @@ section.top-bar-section
|
|
9
9
|
= render "renalware/navigation/patients_admin"
|
10
10
|
= render "renalware/navigation/directory"
|
11
11
|
- if current_user_is_admin?
|
12
|
-
= render "renalware/navigation/
|
12
|
+
= render "renalware/navigation/admin"
|
13
|
+
- if current_user_is_super_admin?
|
14
|
+
= render "renalware/navigation/super_admin"
|
13
15
|
li.divider
|
14
16
|
= render "renalware/navigation/sign_out"
|
15
17
|
li.divider
|
@@ -0,0 +1,11 @@
|
|
1
|
+
li.has-dropdown
|
2
|
+
= link_to "Super Admin", "#"
|
3
|
+
ul.dropdown
|
4
|
+
li= link_to "Event Types", events_types_path
|
5
|
+
li= link_to "Drugs", drugs_drugs_path
|
6
|
+
li= link_to "Modalities", modalities_descriptions_path
|
7
|
+
li= link_to "PD Bags", pd_bag_types_path
|
8
|
+
li= link_to "Primary Care Physicians", patients_primary_care_physicians_path
|
9
|
+
li= link_to "Cache", admin_cache_path
|
10
|
+
li= link_to "File Imports", admin_feeds_files_path
|
11
|
+
li= link_to "User Feedback", system_user_feedback_index_path
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= within_admin_layout( \
|
2
|
+
title: "Edit",
|
3
|
+
breadcrumbs: breadcrumb_for("User Feedback", system_user_feedback_index_path) \
|
4
|
+
) do
|
5
|
+
|
6
|
+
dl.dl-horizontal
|
7
|
+
dt From
|
8
|
+
dd= feedback.author
|
9
|
+
dt Email
|
10
|
+
dd= mail_to(feedback.author.email)
|
11
|
+
dt Created at
|
12
|
+
dd= l(feedback.created_at)
|
13
|
+
dt Message
|
14
|
+
dd= feedback.comment
|
15
|
+
|
16
|
+
= simple_form_for(feedback, as: :feedback) do |f|
|
17
|
+
= f.input :admin_notes, input_html: { rows: 5 }
|
18
|
+
= f.input :acknowledged, as: :boolean, boolean_style: :inline
|
19
|
+
= f.submit "Save", class: :button
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= within_admin_layout(title: "User Feedback") do
|
2
|
+
table.feedback
|
3
|
+
thead
|
4
|
+
th.col-width-tiny
|
5
|
+
th.col-width-date-time= sort_link(search, :created_at, "Date")
|
6
|
+
th.col-width-large= sort_link(search, :author_family_name, "Author")
|
7
|
+
th.col-width-mediumish-with-ellipsis Comment
|
8
|
+
th.col-width-mediumish-with-ellipsis= sort_link(search, :acknowledged, "Acknowledged")
|
9
|
+
tbody
|
10
|
+
- feedback_msgs.each do |feedback|
|
11
|
+
tr
|
12
|
+
td= link_to("Edit", edit_system_user_feedback_path(feedback))
|
13
|
+
td= l(feedback.created_at)
|
14
|
+
td= feedback.author
|
15
|
+
td.col-width-mediumish-with-ellipsis= feedback.comment
|
16
|
+
td.col-width-tiny= yes_no(feedback.acknowledged)
|
17
|
+
|
18
|
+
= paginate feedback_msgs
|
@@ -23,8 +23,8 @@
|
|
23
23
|
th= sort_link([:renalware, q], :patient_family_name, "Patient")
|
24
24
|
th Hosp No
|
25
25
|
th= sort_link([:renalware, q], :patient_born_on, "Age")
|
26
|
-
th
|
27
|
-
th
|
26
|
+
th Sex
|
27
|
+
th= sort_link([:renalware, q], :patient_current_modality_description_name, "Modality")
|
28
28
|
th= sort_link([:renalware, q], :hd_site, "HD Site")
|
29
29
|
th Status
|
30
30
|
th UKT Status
|
@@ -32,7 +32,7 @@
|
|
32
32
|
th.col-width-date= sort_link([:renalware, q], :entered_on, "Entry Date")
|
33
33
|
th DOL
|
34
34
|
th Bld Grp
|
35
|
-
th.col-width-
|
35
|
+
th.col-width-tiny= sort_link([:renalware, q], :crf_highest_value, "CRF high")
|
36
36
|
th.col-width-date CRF high date
|
37
37
|
th= sort_link([:renalware, q], :crf_latest_value, "CRF latest")
|
38
38
|
th.col-width-date CRF latest date
|
data/config/initializers/ahoy.rb
CHANGED
@@ -5,8 +5,8 @@ en:
|
|
5
5
|
performed_on: Session Date
|
6
6
|
hospital_unit: Hospital Unit
|
7
7
|
hospital_centre: Hospital Centre
|
8
|
-
signed_on_by:
|
9
|
-
signed_off_by:
|
8
|
+
signed_on_by: Put On By
|
9
|
+
signed_off_by: Taken Off By
|
10
10
|
start_time: Session Start Time
|
11
11
|
end_time: Session End Time
|
12
12
|
hd_type: HD Type
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Renalware::Engine.routes.draw do
|
2
4
|
match "/404", to: "system/errors#not_found", via: :all
|
3
5
|
match "/500", to: "system/errors#internal_server_error", via: :all
|
@@ -19,8 +21,8 @@ Renalware::Engine.routes.draw do
|
|
19
21
|
get "/session_timed_out" => "session_timeout#has_user_timed_out", as: "session_timed_out"
|
20
22
|
|
21
23
|
super_admin_constraint = lambda do |request|
|
22
|
-
current_user = request.env["warden"].user
|
23
|
-
current_user
|
24
|
+
current_user = request.env["warden"].user || NullObject.instance
|
25
|
+
current_user.has_role?(:super_admin)
|
24
26
|
end
|
25
27
|
|
26
28
|
constraints super_admin_constraint do
|
@@ -264,7 +266,7 @@ Renalware::Engine.routes.draw do
|
|
264
266
|
|
265
267
|
namespace :system do
|
266
268
|
resources :email_templates, only: :index
|
267
|
-
resources :user_feedback,
|
269
|
+
resources :user_feedback, except: :destroy, controller: "user_feedback"
|
268
270
|
end
|
269
271
|
|
270
272
|
namespace :transplants do
|
data/config/spring.rb
CHANGED
data/db/seeds.rb
CHANGED