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.
Files changed (421) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/renalware/accesses/assessments_controller.rb +2 -0
  3. data/app/controllers/renalware/accesses/base_controller.rb +2 -0
  4. data/app/controllers/renalware/accesses/dashboards_controller.rb +2 -0
  5. data/app/controllers/renalware/accesses/plans_controller.rb +2 -0
  6. data/app/controllers/renalware/accesses/procedures_controller.rb +2 -0
  7. data/app/controllers/renalware/accesses/profiles_controller.rb +2 -0
  8. data/app/controllers/renalware/admin/cache_controller.rb +2 -0
  9. data/app/controllers/renalware/admin/feeds/files_controller.rb +2 -0
  10. data/app/controllers/renalware/admin/users_controller.rb +2 -0
  11. data/app/controllers/renalware/admissions/admissions_controller.rb +2 -0
  12. data/app/controllers/renalware/admissions/consults_controller.rb +2 -0
  13. data/app/controllers/renalware/admissions/patient_admissions_controller.rb +2 -0
  14. data/app/controllers/renalware/admissions/requests_controller.rb +2 -0
  15. data/app/controllers/renalware/api/token_authenticated_api_controller.rb +2 -2
  16. data/app/controllers/renalware/api/ukrdc/patients_controller.rb +2 -0
  17. data/app/controllers/renalware/api/v1/medications/prescriptions_controller.rb +2 -0
  18. data/app/controllers/renalware/api/v1/patients/patients_controller.rb +2 -0
  19. data/app/controllers/renalware/application_controller.rb +2 -0
  20. data/app/controllers/renalware/base_controller.rb +2 -0
  21. data/app/controllers/renalware/clinical/allergies_controller.rb +2 -0
  22. data/app/controllers/renalware/clinical/allergy_statuses_controller.rb +2 -0
  23. data/app/controllers/renalware/clinical/base_controller.rb +2 -0
  24. data/app/controllers/renalware/clinical/body_compositions_controller.rb +2 -0
  25. data/app/controllers/renalware/clinical/dry_weights_controller.rb +2 -0
  26. data/app/controllers/renalware/clinical/profiles_controller.rb +2 -0
  27. data/app/controllers/renalware/clinics/appointments_controller.rb +2 -0
  28. data/app/controllers/renalware/clinics/clinic_visits_controller.rb +2 -0
  29. data/app/controllers/renalware/clinics/visits_controller.rb +2 -0
  30. data/app/controllers/renalware/concerns/cache_busting.rb +2 -0
  31. data/app/controllers/renalware/concerns/devise_controller_methods.rb +2 -0
  32. data/app/controllers/renalware/concerns/pageable.rb +2 -0
  33. data/app/controllers/renalware/concerns/pdf_renderable.rb +2 -0
  34. data/app/controllers/renalware/dashboard.rb +2 -0
  35. data/app/controllers/renalware/dashboard/dashboards_controller.rb +2 -0
  36. data/app/controllers/renalware/deaths_controller.rb +2 -0
  37. data/app/controllers/renalware/devise/passwords_controller.rb +2 -0
  38. data/app/controllers/renalware/devise/registrations_controller.rb +2 -0
  39. data/app/controllers/renalware/devise/sessions_controller.rb +2 -0
  40. data/app/controllers/renalware/directory/people_controller.rb +2 -0
  41. data/app/controllers/renalware/drugs/drugs_controller.rb +2 -0
  42. data/app/controllers/renalware/events/events_controller.rb +2 -0
  43. data/app/controllers/renalware/events/investigations_controller.rb +2 -0
  44. data/app/controllers/renalware/events/swabs_controller.rb +2 -0
  45. data/app/controllers/renalware/events/types_controller.rb +2 -0
  46. data/app/controllers/renalware/hd/base_controller.rb +2 -0
  47. data/app/controllers/renalware/hd/cannulation_types_controller.rb +2 -0
  48. data/app/controllers/renalware/hd/current_profile_controller.rb +2 -0
  49. data/app/controllers/renalware/hd/dashboards_controller.rb +2 -0
  50. data/app/controllers/renalware/hd/dialysers_controller.rb +2 -0
  51. data/app/controllers/renalware/hd/diaries_controller.rb +2 -0
  52. data/app/controllers/renalware/hd/diary_slots_controller.rb +2 -0
  53. data/app/controllers/renalware/hd/historical_profiles_controller.rb +2 -0
  54. data/app/controllers/renalware/hd/mdm_controller.rb +2 -0
  55. data/app/controllers/renalware/hd/mdm_patients_controller.rb +2 -0
  56. data/app/controllers/renalware/hd/ongoing_sessions_controller.rb +2 -0
  57. data/app/controllers/renalware/hd/patients_controller.rb +2 -0
  58. data/app/controllers/renalware/hd/preference_sets_controller.rb +2 -0
  59. data/app/controllers/renalware/hd/protocols_controller.rb +2 -0
  60. data/app/controllers/renalware/hd/sessions_controller.rb +2 -0
  61. data/app/controllers/renalware/hd/stations_controller.rb +2 -0
  62. data/app/controllers/renalware/hd/unmet_preferences_controller.rb +2 -0
  63. data/app/controllers/renalware/hospitals/units_controller.rb +2 -0
  64. data/app/controllers/renalware/hospitals/wards_controller.rb +2 -0
  65. data/app/controllers/renalware/letters/approved_letters_controller.rb +2 -0
  66. data/app/controllers/renalware/letters/base_controller.rb +2 -0
  67. data/app/controllers/renalware/letters/completed_letters_controller.rb +2 -0
  68. data/app/controllers/renalware/letters/contacts_controller.rb +2 -0
  69. data/app/controllers/renalware/letters/descriptions_controller.rb +2 -0
  70. data/app/controllers/renalware/letters/electronic_receipts_controller.rb +2 -0
  71. data/app/controllers/renalware/letters/formatted_letters_controller.rb +2 -0
  72. data/app/controllers/renalware/letters/letters_controller.rb +2 -0
  73. data/app/controllers/renalware/letters/lists_controller.rb +2 -0
  74. data/app/controllers/renalware/letters/pdf_letter_cache_controller.rb +2 -0
  75. data/app/controllers/renalware/letters/pending_review_letters_controller.rb +2 -0
  76. data/app/controllers/renalware/letters/rejected_letters_controller.rb +2 -0
  77. data/app/controllers/renalware/low_clearance/base_controller.rb +2 -0
  78. data/app/controllers/renalware/low_clearance/dashboards_controller.rb +2 -0
  79. data/app/controllers/renalware/low_clearance/mdm_controller.rb +2 -0
  80. data/app/controllers/renalware/low_clearance/mdm_patients_controller.rb +2 -0
  81. data/app/controllers/renalware/low_clearance/profiles_controller.rb +2 -0
  82. data/app/controllers/renalware/mdm_controller.rb +2 -0
  83. data/app/controllers/renalware/mdm_patients_controller.rb +2 -0
  84. data/app/controllers/renalware/medications/drug_types/prescriptions_controller.rb +2 -0
  85. data/app/controllers/renalware/medications/prescriptions_controller.rb +2 -0
  86. data/app/controllers/renalware/medications/terminations_controller.rb +2 -0
  87. data/app/controllers/renalware/messaging/internal/messages_controller.rb +2 -0
  88. data/app/controllers/renalware/messaging/internal/receipts_controller.rb +2 -0
  89. data/app/controllers/renalware/modalities/descriptions_controller.rb +2 -0
  90. data/app/controllers/renalware/modalities/modalities_controller.rb +2 -0
  91. data/app/controllers/renalware/modalities/reasons_controller.rb +2 -0
  92. data/app/controllers/renalware/pathology/base_controller.rb +2 -0
  93. data/app/controllers/renalware/pathology/current_observation_results_controller.rb +2 -0
  94. data/app/controllers/renalware/pathology/historical_observation_results_controller.rb +2 -0
  95. data/app/controllers/renalware/pathology/observation_requests_controller.rb +2 -0
  96. data/app/controllers/renalware/pathology/observations_controller.rb +2 -0
  97. data/app/controllers/renalware/pathology/patient_rules_controller.rb +2 -0
  98. data/app/controllers/renalware/pathology/recent_observation_results_controller.rb +2 -0
  99. data/app/controllers/renalware/pathology/requests/requests_controller.rb +2 -0
  100. data/app/controllers/renalware/pathology/requests/rules_controller.rb +2 -0
  101. data/app/controllers/renalware/pathology/required_observations_controller.rb +2 -0
  102. data/app/controllers/renalware/patients/alerts_controller.rb +2 -0
  103. data/app/controllers/renalware/patients/bookmarks_controller.rb +2 -0
  104. data/app/controllers/renalware/patients/clinical_summaries_controller.rb +2 -0
  105. data/app/controllers/renalware/patients/patients_controller.rb +2 -0
  106. data/app/controllers/renalware/patients/practices_controller.rb +2 -0
  107. data/app/controllers/renalware/patients/primary_care_physician_controller.rb +2 -0
  108. data/app/controllers/renalware/patients/primary_care_physicians_controller.rb +2 -0
  109. data/app/controllers/renalware/patients/worry_controller.rb +2 -0
  110. data/app/controllers/renalware/patients/worryboard_controller.rb +2 -0
  111. data/app/controllers/renalware/pd/assessments_controller.rb +2 -0
  112. data/app/controllers/renalware/pd/bag_types_controller.rb +2 -0
  113. data/app/controllers/renalware/pd/base_controller.rb +2 -0
  114. data/app/controllers/renalware/pd/dashboards_controller.rb +2 -0
  115. data/app/controllers/renalware/pd/exit_site_infections_controller.rb +2 -0
  116. data/app/controllers/renalware/pd/infection_organisms_controller.rb +2 -0
  117. data/app/controllers/renalware/pd/mdm_controller.rb +2 -0
  118. data/app/controllers/renalware/pd/mdm_patients_controller.rb +2 -0
  119. data/app/controllers/renalware/pd/peritonitis_episodes_controller.rb +2 -0
  120. data/app/controllers/renalware/pd/pet_adequacy_results_controller.rb +2 -0
  121. data/app/controllers/renalware/pd/regimes_controller.rb +2 -0
  122. data/app/controllers/renalware/pd/training_sessions_controller.rb +2 -0
  123. data/app/controllers/renalware/problems/notes_controller.rb +2 -0
  124. data/app/controllers/renalware/problems/problems_controller.rb +2 -0
  125. data/app/controllers/renalware/renal/aki_alerts_controller.rb +2 -0
  126. data/app/controllers/renalware/renal/base_controller.rb +2 -0
  127. data/app/controllers/renalware/renal/prd_descriptions_controller.rb +2 -0
  128. data/app/controllers/renalware/renal/profiles_controller.rb +2 -0
  129. data/app/controllers/renalware/renal/registry_preflight_checks_controller.rb +2 -0
  130. data/app/controllers/renalware/reporting/audit_refreshments_controller.rb +2 -0
  131. data/app/controllers/renalware/reporting/audits_controller.rb +2 -0
  132. data/app/controllers/renalware/research/studies_controller.rb +2 -0
  133. data/app/controllers/renalware/research/study_participants_controller.rb +2 -0
  134. data/app/controllers/renalware/session_timeout_controller.rb +2 -0
  135. data/app/controllers/renalware/snippets/snippet_clones_controller.rb +2 -0
  136. data/app/controllers/renalware/snippets/snippet_invocations_controller.rb +2 -0
  137. data/app/controllers/renalware/snippets/snippets_controller.rb +2 -0
  138. data/app/controllers/renalware/system/email_templates_controller.rb +2 -0
  139. data/app/controllers/renalware/system/errors_controller.rb +2 -0
  140. data/app/controllers/renalware/system/mock_errors_controller.rb +2 -0
  141. data/app/controllers/renalware/system/user_feedback_controller.rb +40 -3
  142. data/app/controllers/renalware/transplants/base_controller.rb +2 -0
  143. data/app/controllers/renalware/transplants/donations_controller.rb +2 -0
  144. data/app/controllers/renalware/transplants/donor_dashboards_controller.rb +2 -0
  145. data/app/controllers/renalware/transplants/donor_followups_controller.rb +2 -0
  146. data/app/controllers/renalware/transplants/donor_operations_controller.rb +2 -0
  147. data/app/controllers/renalware/transplants/donor_stages_controller.rb +2 -0
  148. data/app/controllers/renalware/transplants/donor_workups_controller.rb +2 -0
  149. data/app/controllers/renalware/transplants/live_donors_controller.rb +2 -0
  150. data/app/controllers/renalware/transplants/mdm_controller.rb +2 -0
  151. data/app/controllers/renalware/transplants/mdm_patients_controller.rb +2 -0
  152. data/app/controllers/renalware/transplants/recipient_dashboards_controller.rb +2 -0
  153. data/app/controllers/renalware/transplants/recipient_followups_controller.rb +2 -0
  154. data/app/controllers/renalware/transplants/recipient_operations_controller.rb +2 -0
  155. data/app/controllers/renalware/transplants/recipient_workups_controller.rb +2 -0
  156. data/app/controllers/renalware/transplants/registration_statuses_controller.rb +2 -0
  157. data/app/controllers/renalware/transplants/registrations_controller.rb +2 -0
  158. data/app/controllers/renalware/transplants/wait_lists_controller.rb +2 -0
  159. data/app/controllers/renalware/virology/dashboards_controller.rb +2 -0
  160. data/app/controllers/renalware/virology/vaccinations_controller.rb +2 -0
  161. data/app/documents/renalware/accesses/assessment_document.rb +2 -0
  162. data/app/documents/renalware/age.rb +2 -0
  163. data/app/documents/renalware/binary_marker.rb +2 -0
  164. data/app/documents/renalware/blood_group.rb +2 -0
  165. data/app/documents/renalware/blood_pressure.rb +2 -0
  166. data/app/documents/renalware/dated_confirmation.rb +2 -0
  167. data/app/documents/renalware/dated_integer.rb +2 -0
  168. data/app/documents/renalware/dated_result.rb +2 -0
  169. data/app/documents/renalware/dated_test.rb +2 -0
  170. data/app/documents/renalware/hd/profile_document.rb +2 -0
  171. data/app/documents/renalware/hd/session_document.rb +2 -0
  172. data/app/documents/renalware/infection_status.rb +2 -0
  173. data/app/documents/renalware/left_right_confirmation.rb +2 -0
  174. data/app/documents/renalware/low_clearance/profile_document.rb +2 -0
  175. data/app/documents/renalware/nested_attribute.rb +2 -0
  176. data/app/documents/renalware/patient_document.rb +2 -0
  177. data/app/documents/renalware/renal/profile_document.rb +2 -0
  178. data/app/documents/renalware/smoking_status.rb +2 -0
  179. data/app/documents/renalware/transplants/crf_dated_result.rb +2 -0
  180. data/app/documents/renalware/transplants/donor_operation_document.rb +2 -0
  181. data/app/documents/renalware/transplants/donor_workup_document.rb +2 -0
  182. data/app/documents/renalware/transplants/recipient_followup_document.rb +2 -0
  183. data/app/documents/renalware/transplants/recipient_operation_document.rb +2 -0
  184. data/app/documents/renalware/transplants/recipient_workup_document.rb +2 -0
  185. data/app/documents/renalware/transplants/registration_document.rb +2 -0
  186. data/app/documents/renalware/year_dated_confirmation.rb +2 -0
  187. data/app/drops/renalware/patients/patient_drop.rb +2 -0
  188. data/app/drops/renalware/pd/exit_site_infection_drop.rb +2 -0
  189. data/app/drops/renalware/pd/patient_drop.rb +2 -0
  190. data/app/drops/renalware/renal/patient_drop.rb +2 -0
  191. data/app/helpers/presenter_helper.rb +2 -0
  192. data/app/helpers/ransack_helper.rb +2 -0
  193. data/app/helpers/renalware/accesses_helper.rb +2 -0
  194. data/app/helpers/renalware/admin_helper.rb +2 -0
  195. data/app/helpers/renalware/application_helper.rb +2 -0
  196. data/app/helpers/renalware/article_helper.rb +2 -0
  197. data/app/helpers/renalware/attribute_name_helper.rb +2 -0
  198. data/app/helpers/renalware/bag_types_helper.rb +2 -0
  199. data/app/helpers/renalware/clinic_helper.rb +2 -0
  200. data/app/helpers/renalware/clinical_helper.rb +2 -0
  201. data/app/helpers/renalware/clipboard_helper.rb +2 -0
  202. data/app/helpers/renalware/dashboards_helper.rb +2 -0
  203. data/app/helpers/renalware/definition_list_helper.rb +2 -0
  204. data/app/helpers/renalware/devise_helper.rb +2 -0
  205. data/app/helpers/renalware/dropdown_button_helper.rb +2 -0
  206. data/app/helpers/renalware/drugs_helper.rb +2 -0
  207. data/app/helpers/renalware/flash_helper.rb +2 -0
  208. data/app/helpers/renalware/form_helper.rb +2 -0
  209. data/app/helpers/renalware/hd_helper.rb +2 -0
  210. data/app/helpers/renalware/infection_organisms_helper.rb +2 -0
  211. data/app/helpers/renalware/layout_helper.rb +2 -0
  212. data/app/helpers/renalware/letters_helper.rb +2 -0
  213. data/app/helpers/renalware/mdm_helper.rb +2 -0
  214. data/app/helpers/renalware/navigation_helper.rb +2 -0
  215. data/app/helpers/renalware/patient_helper.rb +2 -0
  216. data/app/helpers/renalware/pd_helper.rb +2 -0
  217. data/app/helpers/renalware/pd_regime_bags_helper.rb +2 -0
  218. data/app/helpers/renalware/pd_regimes_helper.rb +2 -0
  219. data/app/helpers/renalware/pdf_helper.rb +2 -0
  220. data/app/helpers/renalware/prescriptions_helper.rb +2 -0
  221. data/app/helpers/renalware/primary_care_physicians_helper.rb +2 -0
  222. data/app/helpers/renalware/problems_helper.rb +2 -0
  223. data/app/helpers/renalware/render_helper.rb +2 -0
  224. data/app/helpers/renalware/reporting_helper.rb +2 -0
  225. data/app/helpers/renalware/side_nav_helper.rb +2 -0
  226. data/app/helpers/renalware/snippets_helper.rb +2 -0
  227. data/app/helpers/renalware/toggle_helper.rb +2 -0
  228. data/app/helpers/renalware/tooltip_helper.rb +2 -0
  229. data/app/helpers/renalware/transplant_helper.rb +2 -0
  230. data/app/helpers/renalware/users_helper.rb +3 -1
  231. data/app/helpers/renalware/versions_helper.rb +2 -0
  232. data/app/helpers/renalware/xhr_helper.rb +2 -0
  233. data/app/inputs/clock_picker_input.rb +2 -0
  234. data/app/inputs/date_picker_input.rb +2 -0
  235. data/app/inputs/datetime_picker_input.rb +2 -0
  236. data/app/inputs/hidden_array_input.rb +2 -0
  237. data/app/inputs/inline_radio_buttons_input.rb +2 -0
  238. data/app/inputs/multiple_select_input.rb +2 -0
  239. data/app/inputs/select_container_input.rb +2 -0
  240. data/app/inputs/simple_time_input.rb +2 -0
  241. data/app/inputs/user_picker_input.rb +2 -0
  242. data/app/jobs/application_job.rb +2 -0
  243. data/app/jobs/feed_job.rb +2 -0
  244. data/app/jobs/renalware/hd/generate_monthly_statistics_for_patient_job.rb +2 -0
  245. data/app/jobs/renalware/hd/generate_monthly_statistics_job.rb +2 -0
  246. data/app/jobs/renalware/hd/update_rolling_patient_statistics_job.rb +2 -0
  247. data/app/jobs/renalware/letters/save_pdf_letter_to_file_job.rb +2 -0
  248. data/app/jobs/renalware/reporting/refresh_audit_data_job.rb +2 -0
  249. data/app/mailers/renalware/admin/user_mailer.rb +2 -0
  250. data/app/mailers/renalware/letters/delivery/errors.rb +2 -0
  251. data/app/mailers/renalware/letters/delivery/practice_mailer.rb +2 -0
  252. data/app/mailers/renalware/previews/user_mailer_preview.rb +2 -0
  253. data/app/models/renalware/hd/sessions/auditable_session.rb +3 -2
  254. data/app/models/renalware/low_clearance/mdm_patients_query.rb +1 -1
  255. data/app/models/renalware/medications/prescription.rb +2 -2
  256. data/app/models/renalware/pd/capd_regime.rb +33 -39
  257. data/app/models/renalware/pd/mdm_patients_query.rb +1 -1
  258. data/app/models/renalware/transplants/mdm_patients_query.rb +1 -1
  259. data/app/models/renalware/transplants/registrations/wait_list_query.rb +2 -2
  260. data/app/models/renalware/user.rb +1 -1
  261. data/app/policies/renalware/letters/letter_policy.rb +13 -1
  262. data/app/policies/renalware/system/user_feedback_policy.rb +3 -0
  263. data/app/presenters/renalware/mdm_presenter.rb +0 -1
  264. data/app/validators/concerns/renalware/numeric_range_validations.rb +2 -0
  265. data/app/validators/concerns/renalware/numeric_scale_validations.rb +2 -0
  266. data/app/validators/renalware/address_validator.rb +2 -0
  267. data/app/validators/renalware/letters/author_signature_validator.rb +2 -0
  268. data/app/validators/renalware/patients/blood_pressure_presence_validator.rb +2 -0
  269. data/app/validators/renalware/patients/blood_pressure_validator.rb +2 -0
  270. data/app/validators/renalware/patients/bm_stix_validator.rb +2 -0
  271. data/app/validators/renalware/patients/hdf_presence_validator.rb +2 -0
  272. data/app/validators/renalware/patients/height_validator.rb +2 -0
  273. data/app/validators/renalware/patients/primary_care_physicians/address_validator.rb +2 -0
  274. data/app/validators/renalware/patients/pulse_validator.rb +2 -0
  275. data/app/validators/renalware/patients/temperature_validator.rb +2 -0
  276. data/app/validators/renalware/patients/weight_validator.rb +2 -0
  277. data/app/values/renalware/address.rb +2 -0
  278. data/app/values/renalware/bmi.rb +2 -0
  279. data/app/values/renalware/duration.rb +2 -0
  280. data/app/values/renalware/gender.rb +2 -0
  281. data/app/values/renalware/time_of_day.rb +2 -0
  282. data/app/views/renalware/admissions/consults/_table.html.slim +1 -1
  283. data/app/views/renalware/hd/ongoing_sessions/_table.html.slim +2 -2
  284. data/app/views/renalware/hd/sessions/_thead.html.slim +0 -2
  285. data/app/views/renalware/navigation/_admin.html.slim +12 -0
  286. data/app/views/renalware/navigation/_menu.html.slim +3 -1
  287. data/app/views/renalware/navigation/_super_admin.html.slim +11 -0
  288. data/app/views/renalware/system/user_feedback/edit.html.slim +19 -0
  289. data/app/views/renalware/system/user_feedback/index.html.slim +18 -0
  290. data/app/views/renalware/transplants/wait_lists/show.html.slim +3 -3
  291. data/config/initializers/ahoy.rb +2 -0
  292. data/config/initializers/backtrace_silencers.rb +2 -0
  293. data/config/initializers/client_side_validations.rb +1 -0
  294. data/config/initializers/core_extensions.rb +2 -0
  295. data/config/initializers/delayed_job.rb +2 -0
  296. data/config/initializers/devise.rb +2 -0
  297. data/config/initializers/devise_security_extension.rb +2 -0
  298. data/config/initializers/inflections.rb +2 -0
  299. data/config/initializers/kaminari.rb +2 -0
  300. data/config/initializers/mailer_previews.rb +2 -0
  301. data/config/initializers/mime_types.rb +2 -0
  302. data/config/initializers/null_object.rb +2 -0
  303. data/config/initializers/paper_trail.rb +2 -0
  304. data/config/initializers/postgresql_database_tasks.rb +2 -0
  305. data/config/initializers/ransack.rb +2 -0
  306. data/config/initializers/renalware.rb +2 -0
  307. data/config/initializers/simple_form.rb +2 -0
  308. data/config/initializers/simple_form_clock_picker.rb +2 -0
  309. data/config/initializers/simple_form_datepicker.rb +2 -0
  310. data/config/initializers/simple_form_foundation.rb +2 -0
  311. data/config/initializers/validates_timeliness.rb +2 -0
  312. data/config/initializers/wicked_pdf.rb +2 -0
  313. data/config/initializers/wrap_parameters.rb +2 -0
  314. data/config/locales/renalware/hd/session.en.yml +2 -2
  315. data/config/routes.rb +5 -3
  316. data/config/spring.rb +2 -0
  317. data/db/migrate/20180326155400_add_admin_notes_to_system_user_feedback.rb +6 -0
  318. data/db/seeds.rb +2 -0
  319. data/db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb +2 -0
  320. data/db/seeds/default/accesses/access_plan_types.rb +2 -0
  321. data/db/seeds/default/accesses/access_sites.rb +2 -0
  322. data/db/seeds/default/accesses/access_types.rb +2 -0
  323. data/db/seeds/default/accesses/access_types_procedures.rb +2 -0
  324. data/db/seeds/default/accesses/seeds.rb +2 -0
  325. data/db/seeds/default/clinics/clinics.rb +2 -0
  326. data/db/seeds/default/clinics/seeds.rb +2 -0
  327. data/db/seeds/default/deaths/death_causes.rb +2 -0
  328. data/db/seeds/default/deaths/seeds.rb +2 -0
  329. data/db/seeds/default/events/event_types.rb +2 -0
  330. data/db/seeds/default/events/seeds.rb +2 -0
  331. data/db/seeds/default/feeds/import_file_types.rb +2 -0
  332. data/db/seeds/default/feeds/seeds.rb +2 -0
  333. data/db/seeds/default/hd/cannulation_types.rb +2 -0
  334. data/db/seeds/default/hd/dialysers.rb +2 -0
  335. data/db/seeds/default/hd/seeds.rb +2 -0
  336. data/db/seeds/default/housekeeping.rb +2 -0
  337. data/db/seeds/default/letters/seeds.rb +2 -0
  338. data/db/seeds/default/medications/medication_routes.rb +2 -0
  339. data/db/seeds/default/medications/seeds.rb +2 -0
  340. data/db/seeds/default/modalities/descriptions.rb +2 -0
  341. data/db/seeds/default/modalities/reasons.rb +2 -0
  342. data/db/seeds/default/modalities/seeds.rb +2 -0
  343. data/db/seeds/default/pathology/measurement_units.rb +2 -0
  344. data/db/seeds/default/pathology/seeds.rb +2 -0
  345. data/db/seeds/default/patients/patients_ethnicities.rb +2 -0
  346. data/db/seeds/default/patients/patients_languages.rb +2 -0
  347. data/db/seeds/default/patients/patients_religions.rb +2 -0
  348. data/db/seeds/default/patients/seeds.rb +2 -0
  349. data/db/seeds/default/pd/bag_types.rb +2 -0
  350. data/db/seeds/default/pd/fluid_descriptions.rb +2 -0
  351. data/db/seeds/default/pd/organisms.rb +2 -0
  352. data/db/seeds/default/pd/peritonitis_episode_type_descriptions.rb +2 -0
  353. data/db/seeds/default/pd/seeds.rb +2 -0
  354. data/db/seeds/default/pd/systems.rb +2 -0
  355. data/db/seeds/default/pd/training_sites.rb +2 -0
  356. data/db/seeds/default/pd/training_types.rb +2 -0
  357. data/db/seeds/default/practices/practices.rb +2 -0
  358. data/db/seeds/default/practices/primary_care_physicians.rb +2 -0
  359. data/db/seeds/default/practices/seeds.rb +2 -0
  360. data/db/seeds/default/renal/prd_descriptions.rb +2 -0
  361. data/db/seeds/default/renal/seeds.rb +2 -0
  362. data/db/seeds/default/reporting/audits.rb +2 -0
  363. data/db/seeds/default/reporting/seeds.rb +2 -0
  364. data/db/seeds/default/seeds.rb +2 -0
  365. data/db/seeds/default/system/countries.rb +2 -0
  366. data/db/seeds/default/system/roles.rb +2 -0
  367. data/db/seeds/default/system/seeds.rb +2 -0
  368. data/db/seeds/default/system/users.rb +2 -0
  369. data/db/seeds/default/transplants/seeds.rb +2 -0
  370. data/db/seeds/default/transplants/transplant_donor_stages.rb +2 -0
  371. data/db/seeds/default/transplants/transplant_failure_cause_descriptions.rb +2 -0
  372. data/db/seeds/default/transplants/transplant_registration_statuses.rb +2 -0
  373. data/db/seeds/seeds_helper.rb +2 -0
  374. data/lib/age_calculator.rb +2 -0
  375. data/lib/array_stringifier.rb +2 -0
  376. data/lib/breadcrumb.rb +2 -0
  377. data/lib/collection_presenter.rb +2 -0
  378. data/lib/core_extensions/active_record/migration_helpers.rb +2 -0
  379. data/lib/core_extensions/active_record/sort.rb +2 -0
  380. data/lib/core_extensions/active_support/duration.rb +2 -0
  381. data/lib/core_extensions/date.rb +2 -0
  382. data/lib/core_extensions/dumb_delegator.rb +2 -0
  383. data/lib/core_extensions/hash.rb +2 -0
  384. data/lib/core_extensions/i18n/always_cascade.rb +2 -0
  385. data/lib/core_extensions/i18n/handle_blank_value.rb +2 -0
  386. data/lib/core_extensions/scenic.rb +2 -0
  387. data/lib/document/attribute_initializer.rb +2 -0
  388. data/lib/document/attribute_initializer/active_model.rb +2 -0
  389. data/lib/document/attribute_initializer/base.rb +2 -0
  390. data/lib/document/attribute_initializer/enum.rb +2 -0
  391. data/lib/document/base.rb +2 -0
  392. data/lib/document/embedded.rb +2 -0
  393. data/lib/document/enum.rb +2 -0
  394. data/lib/dropdown_button_item.rb +2 -0
  395. data/lib/duration_calculator.rb +2 -0
  396. data/lib/git_commit_sha.rb +2 -0
  397. data/lib/hash_collection.rb +2 -0
  398. data/lib/inline_image.rb +2 -0
  399. data/lib/numeric_inclusion_validator.rb +2 -0
  400. data/lib/renalware.rb +2 -0
  401. data/lib/renalware/automatic_age_calculator.rb +2 -0
  402. data/lib/renalware/configuration.rb +2 -0
  403. data/lib/renalware/engine.rb +2 -0
  404. data/lib/renalware/failure.rb +2 -0
  405. data/lib/renalware/month_period.rb +2 -0
  406. data/lib/renalware/remembered_preferences.rb +2 -0
  407. data/lib/renalware/service_result.rb +2 -0
  408. data/lib/renalware/success.rb +2 -0
  409. data/lib/renalware/version.rb +3 -1
  410. data/lib/renalware/week_period.rb +2 -0
  411. data/lib/smart_delegator.rb +2 -0
  412. data/lib/sql/index_case_stmt.rb +2 -0
  413. data/lib/subscription_registry.rb +2 -0
  414. data/lib/test_support/ajax_helpers.rb +2 -0
  415. data/lib/test_support/autocomplete_helpers.rb +2 -0
  416. data/lib/test_support/text_editor_helpers.rb +2 -0
  417. data/spec/factories/system/feedback.rb +10 -0
  418. data/spec/factories/transplants/donor_stage_position.rb +1 -1
  419. data/spec/factories/transplants/donor_stage_status.rb +1 -1
  420. metadata +26 -21
  421. data/app/views/renalware/navigation/_renalware_admin.html.slim +0 -23
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  class Duration
3
5
  attr_reader :seconds
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  class Gender
3
5
  include ActiveModel::Model
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  class TimeOfDay < SimpleDelegator
3
5
  end
@@ -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, "Signed On By")
15
- td= sort_link([:renalware, query], :signed_off_by_family_name, "Signed Off By")
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
@@ -37,5 +37,3 @@ thead
37
37
  th= t(".post")
38
38
  th= t(".post")
39
39
  th= t(".post")
40
- / th.col-width-medium= t(".sign_on")
41
- / th.col-width-medium= t(".sign_off")
@@ -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/renalware_admin"
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= sort_link([:renalware, q], :patient_sex, "Sex")
27
- th Modal
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-date= sort_link([:renalware, q], :crf_highest_value, "CRF high")
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ahoy::Store < Ahoy::DatabaseStore
2
4
  def visit_model
3
5
  Renalware::System::Visit
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  SHOULDA_NOISE = %w(shoulda).freeze
2
4
  FACTORY_GIRL_NOISE = %w(factory_bot).freeze
3
5
  RENALWARE_NOISE = SHOULDA_NOISE + FACTORY_GIRL_NOISE
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # ClientSideValidations Initializer
3
4
 
4
5
  # Disabled validators
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "core_extensions/i18n/handle_blank_value"
2
4
  require "core_extensions/i18n/always_cascade"
3
5
  require "core_extensions/dumb_delegator"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Delayed::Worker.logger = Logger.new(Rails.root.join("log", "delayed_job.log"))
2
4
  Delayed::Worker.destroy_failed_jobs = false
3
5
  Delayed::Worker.max_attempts = 10
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Use this hook to configure devise mailer, warden hooks and so forth.
2
4
  # Many of these configuration options can be set straight in your model.
3
5
  Devise.setup do |config|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Devise.setup do |config|
2
4
  # ==> Security Extension
3
5
  # Configure security extension for devise
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new inflection rules using the following format. Inflections
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Kaminari.configure do |config|
2
4
  # config.default_per_page = 25
3
5
  # config.max_per_page = nil
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Enable mailer previews in Staging
2
4
  #
3
5
  if Rails.env.staging?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new mime types for use in respond_to blocks:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  NullObject = Naught.build do |config|
3
5
  config.black_hole
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  PaperTrail.config.track_associations = false
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveRecord
2
4
  module Tasks
3
5
  class PostgreSQLDatabaseTasks
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Ransack.configure do |config|
2
4
  # Change default search parameter key name.
3
5
  # Default key name is :q
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_dependency "renalware"
2
4
 
3
5
  # New subscription registry - previous implementation does not work across threads
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Use this setup block to configure all options available in SimpleForm.
2
4
  SimpleForm.setup do |config|
3
5
  # Wrappers are used by the form builder to generate a
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  SimpleForm.setup do |config|
2
4
  config.wrappers :horizontal_clockpicker,
3
5
  tag: :div,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  SimpleForm.setup do |config|
2
4
  config.wrappers :horizontal_datepicker,
3
5
  tag: :div,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Use this setup block to configure all options available in SimpleForm.
2
4
  SimpleForm.setup do |config|
3
5
  # Don't forget to edit this file to adapt it to your needs (specially
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ValidatesTimeliness.setup do |config|
2
4
  # Extend ORM/ODMs for full support (:active_record, :mongoid).
3
5
  # config.extend_orms = [ :active_record ]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WickedPDF Global Configuration
2
4
  #
3
5
  # Use this to set up shared configuration options for your entire application.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # This file contains settings for ActionController::ParamsWrapper which
@@ -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: Signed On By
9
- signed_off_by: 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&.respond_to?(:has_role?) && current_user&.has_role?(:super_admin)
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, only: [:new, :create]
269
+ resources :user_feedback, except: :destroy, controller: "user_feedback"
268
270
  end
269
271
 
270
272
  namespace :transplants do
data/config/spring.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spring.application_root = "./spec/dummy"
2
4
 
3
5
  %w(
@@ -0,0 +1,6 @@
1
+ class AddAdminNotesToSystemUserFeedback < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :system_user_feedback, :admin_notes, :text
4
+ add_column :system_user_feedback, :acknowledged, :boolean
5
+ end
6
+ end
data/db/seeds.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "csv"
2
4
  require_relative "./seeds/seeds_helper.rb"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Access Catheter Insertion Techniques" do
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Access Plan Types" do
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Access Sites" do
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Access Types" do
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Access Types & Procedures" do
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "./access_sites"
2
4
  require_relative "./access_types_procedures"
3
5
  require_relative "./access_plan_types"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Clinics" do
3
5
 
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "./clinics"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Renalware
2
4
  log "Adding Renal Reg Cause of Death codes" do
3
5
 
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "./death_causes"