renalware-core 2.0.0.pre.beta9 → 2.0.0.pre.beta10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (473) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/javascripts/renalware/application.js.erb +2 -0
  4. data/app/assets/javascripts/renalware/dialogs.js.erb +17 -1
  5. data/app/assets/javascripts/renalware/patient_ajax_search.js +48 -0
  6. data/app/assets/javascripts/renalware/research.js +18 -0
  7. data/app/assets/stylesheets/renalware/application.scss +1 -0
  8. data/app/assets/stylesheets/renalware/base/_variables.scss +13 -0
  9. data/app/assets/stylesheets/renalware/hd_diary_pdf.scss +57 -0
  10. data/app/assets/stylesheets/renalware/lib/_foundation_and_overrides.scss +18 -0
  11. data/app/assets/stylesheets/renalware/modules/_admissions.scss +26 -0
  12. data/app/assets/stylesheets/renalware/modules/_hd.scss +203 -0
  13. data/app/assets/stylesheets/renalware/modules/_renal.scss +30 -0
  14. data/app/assets/stylesheets/renalware/partials/_animation.scss +8 -0
  15. data/app/assets/stylesheets/renalware/partials/_layout.scss +11 -0
  16. data/app/assets/stylesheets/renalware/partials/_tables.scss +12 -2
  17. data/app/assets/stylesheets/renalware/partials/_tabs.scss +45 -0
  18. data/app/controllers/renalware/admin/users_controller.rb +5 -4
  19. data/app/controllers/renalware/admissions/consults_controller.rb +88 -0
  20. data/app/controllers/renalware/clinical/body_compositions_controller.rb +1 -1
  21. data/app/controllers/renalware/concerns/pageable.rb +1 -1
  22. data/app/controllers/renalware/hd/current_profile_controller.rb +1 -1
  23. data/app/controllers/renalware/hd/diaries_controller.rb +87 -0
  24. data/app/controllers/renalware/hd/diary_slots_controller.rb +172 -0
  25. data/app/controllers/renalware/hd/patients_controller.rb +43 -0
  26. data/app/controllers/renalware/hd/preference_sets_controller.rb +4 -1
  27. data/app/controllers/renalware/hd/sessions_controller.rb +1 -1
  28. data/app/controllers/renalware/hd/stations_controller.rb +1 -1
  29. data/app/controllers/renalware/hospitals/units_controller.rb +1 -2
  30. data/app/controllers/renalware/hospitals/wards_controller.rb +18 -0
  31. data/app/controllers/renalware/renal/registry_preflight_checks_controller.rb +44 -0
  32. data/app/controllers/renalware/reporting/audits_controller.rb +4 -8
  33. data/app/controllers/renalware/research/studies_controller.rb +70 -0
  34. data/app/controllers/renalware/research/study_participants_controller.rb +85 -0
  35. data/app/documents/renalware/hd/profile_document.rb +0 -1
  36. data/app/documents/renalware/hd/session_document.rb +0 -1
  37. data/app/helpers/renalware/application_helper.rb +5 -1
  38. data/app/helpers/renalware/dropdown_button_helper.rb +4 -4
  39. data/app/helpers/renalware/form_helper.rb +8 -0
  40. data/app/inputs/select_container_input.rb +15 -0
  41. data/app/models/concerns/renalware/accountable.rb +5 -0
  42. data/app/models/concerns/renalware/patients_ransack_helper.rb +6 -6
  43. data/app/models/renalware/admissions/consult.rb +25 -0
  44. data/app/models/renalware/admissions/consult_query.rb +21 -0
  45. data/app/models/renalware/clinical/modality_description.rb +1 -0
  46. data/app/models/renalware/hd/archive_yesterdays_slots_job.rb +68 -0
  47. data/app/models/renalware/hd/dialysate.rb +16 -0
  48. data/app/models/renalware/hd/diary.rb +39 -0
  49. data/app/models/renalware/hd/diary_slot.rb +80 -0
  50. data/app/models/renalware/hd/diurnal_period_code.rb +5 -0
  51. data/app/models/renalware/hd/find_or_create_diary_by_week_query.rb +48 -0
  52. data/app/models/renalware/hd/find_or_create_master_diary.rb +24 -0
  53. data/app/models/renalware/hd/master_diary.rb +31 -0
  54. data/app/models/renalware/hd/patient_listener.rb +1 -1
  55. data/app/models/renalware/hd/patients_dialysing_by_day_and_period_query.rb +39 -0
  56. data/app/models/renalware/hd/patients_dialysing_by_day_query.rb +32 -0
  57. data/app/models/renalware/hd/patients_dialysing_by_schedule_query.rb +26 -0
  58. data/app/models/renalware/hd/patients_with_unmet_preferences_query.rb +2 -2
  59. data/app/models/renalware/hd/preference_set.rb +2 -2
  60. data/app/models/renalware/hd/profile.rb +3 -1
  61. data/app/models/renalware/hd/schedule_definition.rb +44 -0
  62. data/app/models/renalware/hd/session.rb +1 -0
  63. data/app/models/renalware/hd/session/closed.rb +3 -2
  64. data/app/models/renalware/hd/session_factory.rb +2 -2
  65. data/app/models/renalware/hd/station.rb +1 -10
  66. data/app/models/renalware/hd/station_location.rb +10 -0
  67. data/app/models/renalware/hd/weekly_diary.rb +43 -0
  68. data/app/models/renalware/hospitals/unit.rb +0 -1
  69. data/app/models/renalware/medications/prescriptions_by_drug_type_query.rb +1 -0
  70. data/app/models/renalware/messaging.rb +2 -0
  71. data/app/models/renalware/messaging/patient.rb +2 -2
  72. data/app/models/renalware/patient.rb +25 -23
  73. data/app/models/renalware/patients/search_query.rb +7 -3
  74. data/app/models/renalware/patients/summary.rb +1 -0
  75. data/app/models/renalware/pd/revise_regime.rb +3 -1
  76. data/app/models/renalware/renal/patient.rb +3 -0
  77. data/app/models/renalware/renal/registry/preflight_checks/deaths_query.rb +41 -0
  78. data/app/models/renalware/renal/registry/preflight_checks/patients_query.rb +65 -0
  79. data/app/models/renalware/reporting/{generate_audit_json.rb → fetch_audit_json.rb} +10 -9
  80. data/app/models/renalware/research.rb +7 -0
  81. data/app/models/renalware/research/study.rb +19 -0
  82. data/app/models/renalware/research/study_participant.rb +30 -0
  83. data/app/policies/renalware/admissions/consult_policy.rb +8 -0
  84. data/app/policies/renalware/hd/diary_policy.rb +6 -0
  85. data/app/policies/renalware/renal/registry_preflight_check_policy.rb +15 -0
  86. data/app/policies/renalware/research/study_participant_policy.rb +8 -0
  87. data/app/policies/renalware/research/study_policy.rb +8 -0
  88. data/app/presenters/false_class_presenter.rb +2 -0
  89. data/app/presenters/renalware/admissions/consult_presenter.rb +28 -0
  90. data/app/presenters/renalware/hd/diary_presenter.rb +77 -0
  91. data/app/presenters/renalware/hd/diary_slot_presenter.rb +69 -0
  92. data/app/presenters/renalware/hd/null_slot.rb +38 -0
  93. data/app/presenters/renalware/hd/patient_presenter.rb +2 -3
  94. data/app/presenters/renalware/hd/profile_presenter.rb +12 -10
  95. data/app/presenters/renalware/hd/station_presenter.rb +5 -0
  96. data/app/presenters/renalware/hd/unmet_preferences_presenter.rb +1 -1
  97. data/app/presenters/renalware/pathology/observation_presenter.rb +1 -1
  98. data/app/presenters/renalware/patient_presenter.rb +2 -2
  99. data/app/presenters/renalware/ukrdc/pathology_observation_presenter.rb +16 -0
  100. data/app/presenters/renalware/ukrdc/patient_presenter.rb +6 -1
  101. data/app/presenters/true_class_presenter.rb +2 -0
  102. data/app/views/renalware/accesses/plans/new.html.slim +0 -1
  103. data/app/views/renalware/accesses/procedures/_form.html.slim +1 -1
  104. data/app/views/renalware/accesses/profiles/_form.html.slim +0 -1
  105. data/app/views/renalware/addresses/_form.html.slim +0 -2
  106. data/app/views/renalware/admin/users/edit.html.slim +0 -1
  107. data/app/views/renalware/admin/users/index.html.slim +3 -1
  108. data/app/views/renalware/admissions/consults/_filters.html.slim +23 -0
  109. data/app/views/renalware/admissions/consults/_form.html.slim +93 -0
  110. data/app/views/renalware/admissions/consults/_table.html.slim +61 -0
  111. data/app/views/renalware/admissions/consults/edit.html.slim +6 -0
  112. data/app/views/renalware/admissions/consults/index.html.slim +12 -0
  113. data/app/views/renalware/admissions/consults/new.html.slim +6 -0
  114. data/app/views/renalware/admissions/requests/_create_request_link.html.slim +2 -1
  115. data/app/views/renalware/admissions/requests/_request.html.slim +4 -4
  116. data/app/views/renalware/api/ukrdc/patients/_lab_orders.xml.builder +6 -4
  117. data/app/views/renalware/api/ukrdc/patients/_name.xml.builder +1 -1
  118. data/app/views/renalware/api/ukrdc/patients/_sending_facility.xml.builder +1 -1
  119. data/app/views/renalware/api/ukrdc/patients/encounters/_hd_session.xml.builder +3 -3
  120. data/app/views/renalware/api/ukrdc/patients/lab_orders/_lab_order.xml.builder +4 -4
  121. data/app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder +7 -5
  122. data/app/views/renalware/clinical/allergies/_new.html.slim +0 -1
  123. data/app/views/renalware/clinical/body_compositions/_form.html.slim +0 -1
  124. data/app/views/renalware/clinical/dry_weights/new.html.slim +0 -1
  125. data/app/views/renalware/clinical/profiles/show.html.slim +0 -1
  126. data/app/views/renalware/clinics/appointments/index.html.slim +4 -2
  127. data/app/views/renalware/clinics/visits/_filters.html.slim +0 -1
  128. data/app/views/renalware/clinics/visits/_table.html.slim +0 -1
  129. data/app/views/renalware/dashboard/bookmarks/_bookmark.html.slim +9 -6
  130. data/app/views/renalware/dashboard/bookmarks/_table.html.slim +2 -1
  131. data/app/views/renalware/deaths/index.html.slim +6 -8
  132. data/app/views/renalware/devise/registrations/new.html.slim +0 -1
  133. data/app/views/renalware/directory/people/_form.html.slim +0 -1
  134. data/app/views/renalware/events/events/_event.html.slim +3 -1
  135. data/app/views/renalware/events/events/_filters.html.slim +0 -1
  136. data/app/views/renalware/events/events/_form.html.slim +4 -4
  137. data/app/views/renalware/events/events/simple/_event.html.slim +3 -1
  138. data/app/views/renalware/hd/cannulation_types/edit.html.slim +1 -1
  139. data/app/views/renalware/hd/cannulation_types/new.html.slim +1 -1
  140. data/app/views/renalware/hd/current_profile/_form.html.slim +4 -3
  141. data/app/views/renalware/hd/dashboards/_page_actions.html.slim +6 -6
  142. data/app/views/renalware/hd/dialysers/_form.html.slim +0 -1
  143. data/app/views/renalware/hd/diaries/_page_actions.html.slim +23 -0
  144. data/app/views/renalware/hd/diaries/_table.html.slim +12 -0
  145. data/app/views/renalware/hd/diaries/_weekly_diary.html.slim +10 -0
  146. data/app/views/renalware/hd/diaries/edit.html.slim +58 -0
  147. data/app/views/renalware/hd/diaries/index.html.slim +9 -0
  148. data/app/views/renalware/hd/diaries/show.pdf.slim +32 -0
  149. data/app/views/renalware/hd/diary_slots/_form.html.slim +111 -0
  150. data/app/views/renalware/hd/diary_slots/_slot.html.slim +21 -0
  151. data/app/views/renalware/hd/diary_slots/_tab.html.slim +27 -0
  152. data/app/views/renalware/hd/diary_slots/create.js.erb +11 -0
  153. data/app/views/renalware/hd/diary_slots/destroy.js.erb +11 -0
  154. data/app/views/renalware/hd/diary_slots/edit.html.slim +26 -0
  155. data/app/views/renalware/hd/diary_slots/new.html.slim +12 -0
  156. data/app/views/renalware/hd/diary_slots/new.js.erb +6 -0
  157. data/app/views/renalware/hd/diary_slots/show.js.erb +5 -0
  158. data/app/views/renalware/hd/diary_slots/update.js.erb +11 -0
  159. data/app/views/renalware/hd/historical_profiles/_summary.html.slim +0 -1
  160. data/app/views/renalware/hd/mdm_patients/_filters.html.slim +2 -2
  161. data/app/views/renalware/hd/mdm_patients/_patient.html.slim +3 -4
  162. data/app/views/renalware/hd/mdm_patients/_table.html.slim +4 -6
  163. data/app/views/renalware/hd/preference_sets/_form.html.slim +5 -4
  164. data/app/views/renalware/hd/preference_sets/_summary.html.slim +1 -1
  165. data/app/views/renalware/hd/sessions/_form.html.slim +1 -2
  166. data/app/views/renalware/hd/sessions/_show.html.slim +2 -1
  167. data/app/views/renalware/hd/sessions/dna/_row.html.slim +0 -1
  168. data/app/views/renalware/hd/stations/_form.html.slim +3 -1
  169. data/app/views/renalware/hd/stations/_station.html.slim +1 -1
  170. data/app/views/renalware/hd/stations/index.html.slim +0 -1
  171. data/app/views/renalware/hd/unmet_preferences/_filters.html.slim +2 -2
  172. data/app/views/renalware/hd/unmet_preferences/_table.html.slim +2 -2
  173. data/app/views/renalware/hospitals/units/_form.html.slim +0 -1
  174. data/app/views/renalware/hospitals/units/index.html.slim +16 -13
  175. data/app/views/renalware/letters/contacts/index.js.erb +0 -1
  176. data/app/views/renalware/letters/electronic_receipts/_table.html.slim +10 -6
  177. data/app/views/renalware/letters/electronic_receipts/sent.html.slim +9 -4
  178. data/app/views/renalware/letters/formatted_letters/_letter.html.slim +0 -3
  179. data/app/views/renalware/letters/letters/_actions.html.slim +0 -1
  180. data/app/views/renalware/letters/letters/_form.html.slim +1 -1
  181. data/app/views/renalware/letters/letters/_main_recipient.html.slim +0 -1
  182. data/app/views/renalware/letters/letters/_preview.html.slim +0 -1
  183. data/app/views/renalware/mdm/_top_navigation.html.slim +0 -1
  184. data/app/views/renalware/mdm_patients/_patient.html.slim +2 -2
  185. data/app/views/renalware/mdm_patients/_table.html.slim +1 -1
  186. data/app/views/renalware/medications/prescriptions/index.pdf.slim +0 -2
  187. data/app/views/renalware/messaging/internal/messages/_form.html.slim +1 -1
  188. data/app/views/renalware/messaging/internal/receipts/_receipt.html.slim +7 -9
  189. data/app/views/renalware/messaging/internal/receipts/_sent_receipt.html.slim +5 -2
  190. data/app/views/renalware/messaging/internal/receipts/_sent_table.html.slim +1 -0
  191. data/app/views/renalware/messaging/internal/receipts/_table.html.slim +3 -3
  192. data/app/views/renalware/messaging/internal/receipts/sent.html.slim +0 -1
  193. data/app/views/renalware/modalities/reasons/index.html.slim +0 -1
  194. data/app/views/renalware/navigation/_mdms.html.slim +0 -1
  195. data/app/views/renalware/navigation/_patients_admin.html.slim +6 -10
  196. data/app/views/renalware/navigation/_renal.html.slim +3 -0
  197. data/app/views/renalware/navigation/_sign_out.html.slim +0 -1
  198. data/app/views/renalware/pathology/requests/requests/create.pdf.slim +0 -1
  199. data/app/views/renalware/pathology/requests/requests/request_form/_manual_form_patient.html.slim +0 -1
  200. data/app/views/renalware/patients/_mini_profile.html.slim +0 -1
  201. data/app/views/renalware/patients/_search_form.html.slim +1 -1
  202. data/app/views/renalware/patients/alerts/_form.html.slim +1 -1
  203. data/app/views/renalware/patients/bookmarks/_delete.html.slim +3 -4
  204. data/app/views/renalware/patients/clinical_summaries/_problems.html.slim +0 -1
  205. data/app/views/renalware/patients/clinical_summaries/show.html.slim +0 -1
  206. data/app/views/renalware/patients/patients/_form.html.slim +3 -2
  207. data/app/views/renalware/patients/patients/_patient.html.slim +1 -5
  208. data/app/views/renalware/patients/patients/_table.html.slim +1 -2
  209. data/app/views/renalware/patients/patients/show/_hospital_numbers.html.slim +0 -1
  210. data/app/views/renalware/patients/patients/show/_patient_demographics.html.slim +0 -2
  211. data/app/views/renalware/patients/primary_care_physician/_form.html.slim +2 -1
  212. data/app/views/renalware/patients/primary_care_physician/edit.html.slim +3 -5
  213. data/app/views/renalware/patients/primary_care_physicians/edit.html.slim +1 -1
  214. data/app/views/renalware/patients/primary_care_physicians/new.html.slim +1 -1
  215. data/app/views/renalware/patients/worryboard/_table.html.slim +2 -2
  216. data/app/views/renalware/patients/worryboard/_worry.html.slim +2 -5
  217. data/app/views/renalware/pd/_apd_regimes.html.slim +0 -1
  218. data/app/views/renalware/pd/_capd_regimes.html.slim +0 -1
  219. data/app/views/renalware/pd/_exit_site_infections.html.slim +0 -1
  220. data/app/views/renalware/pd/_peritonitis_episodes.html.slim +0 -1
  221. data/app/views/renalware/pd/_pet_adequacies.html.slim +0 -1
  222. data/app/views/renalware/pd/assessments/show.html.slim +13 -13
  223. data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +7 -7
  224. data/app/views/renalware/pd/regimes/show.html.slim +0 -1
  225. data/app/views/renalware/problems/notes/form.js.erb +0 -1
  226. data/app/views/renalware/problems/problems/_current_list.html.slim +0 -1
  227. data/app/views/renalware/renal/aki_alerts/edit.html.slim +2 -3
  228. data/app/views/renalware/renal/profiles/_form.html.slim +2 -6
  229. data/app/views/renalware/renal/profiles/edit.html.slim +9 -0
  230. data/app/views/renalware/renal/registry_preflight_checks/_navigation.html.slim +3 -0
  231. data/app/views/renalware/renal/registry_preflight_checks/_table.html.slim +20 -0
  232. data/app/views/renalware/renal/registry_preflight_checks/deaths.html.slim +4 -0
  233. data/app/views/renalware/renal/registry_preflight_checks/patients.html.slim +4 -0
  234. data/app/views/renalware/reporting/audits/show.html.slim +3 -5
  235. data/app/views/renalware/research/studies/_form.html.slim +9 -0
  236. data/app/views/renalware/research/studies/edit.html.slim +5 -0
  237. data/app/views/renalware/research/studies/index.html.slim +32 -0
  238. data/app/views/renalware/research/studies/new.html.slim +5 -0
  239. data/app/views/renalware/research/studies/show.html.slim +19 -0
  240. data/app/views/renalware/research/study_participants/_form.html.slim +45 -0
  241. data/app/views/renalware/research/study_participants/_table.html.slim +32 -0
  242. data/app/views/renalware/research/study_participants/create.js.erb +3 -0
  243. data/app/views/renalware/research/study_participants/edit.html.slim +1 -0
  244. data/app/views/renalware/research/study_participants/index.html.slim +25 -0
  245. data/app/views/renalware/research/study_participants/new.html.slim +1 -0
  246. data/app/views/renalware/research/study_participants/new.js.erb +4 -0
  247. data/app/views/renalware/research/study_participants/update.js.erb +3 -0
  248. data/app/views/renalware/shared/documents/_age.html.slim +1 -1
  249. data/app/views/renalware/shared/documents/_blood_group.html.slim +1 -1
  250. data/app/views/renalware/shared/documents/_blood_pressure.html.slim +1 -1
  251. data/app/views/renalware/shared/documents/_dated_test.html.slim +1 -1
  252. data/app/views/renalware/transplants/donor_dashboards/show.html.slim +0 -1
  253. data/app/views/renalware/transplants/donor_followups/show.html.slim +0 -1
  254. data/app/views/renalware/transplants/donor_operations/_form.html.slim +0 -1
  255. data/app/views/renalware/transplants/donor_operations/_list.html.slim +0 -2
  256. data/app/views/renalware/transplants/donor_stages/_list.html.slim +0 -1
  257. data/app/views/renalware/transplants/donor_workups/_form.html.slim +0 -1
  258. data/app/views/renalware/transplants/recipient_dashboards/_page_actions.html.slim +3 -3
  259. data/app/views/renalware/transplants/recipient_followups/_form.html.slim +0 -1
  260. data/app/views/renalware/transplants/recipient_operations/_form.html.slim +0 -1
  261. data/app/views/renalware/transplants/recipient_operations/_list.html.slim +0 -2
  262. data/app/views/renalware/transplants/recipient_operations/_operation.html.slim +0 -1
  263. data/config/initializers/application_controller_renderer.rb +1 -1
  264. data/config/initializers/backtrace_silencers.rb +1 -1
  265. data/config/initializers/null_object.rb +2 -0
  266. data/config/locales/renalware/admissions/consults.en.yml +29 -0
  267. data/config/locales/renalware/dashboard/dashboard.yml +1 -0
  268. data/config/locales/renalware/hd/diary_slots.en.yml +13 -0
  269. data/config/locales/renalware/hd/mdm_patients.yml +1 -2
  270. data/config/locales/renalware/hd/preference_set.yml +0 -10
  271. data/config/locales/renalware/hd/profile.yml +2 -14
  272. data/config/locales/renalware/hd/session.en.yml +1 -7
  273. data/config/locales/renalware/hospitals/unit.yml +0 -1
  274. data/config/locales/renalware/mdm.yml +1 -1
  275. data/config/locales/renalware/messaging/internal/messages.en.yml +1 -0
  276. data/config/locales/renalware/navigation/renal.en.yml +2 -0
  277. data/config/locales/renalware/renal/registry.en.yml +12 -0
  278. data/config/locales/renalware/research/study_participant.en.yml +11 -0
  279. data/config/routes.rb +31 -1
  280. data/db/migrate/20170831082043_create_hd_diaries.rb +57 -0
  281. data/db/migrate/20170831084331_create_hd_diary_slots.rb +36 -0
  282. data/db/migrate/20170831142819_enable_crosstab_extension.rb +9 -0
  283. data/db/migrate/20170915090544_create_hd_station_locations.rb +12 -0
  284. data/db/migrate/20170915115228_add_schedule_diurnal_period_id_to_hd_profiles.rb +52 -0
  285. data/db/migrate/20170916121019_remove_number_of_hd_stations_from_hospital_units.rb +5 -0
  286. data/db/migrate/20170917185426_add_indexes_to_diary_slots.rb +19 -0
  287. data/db/migrate/20171004092235_create_hd_dialysates.rb +13 -0
  288. data/db/migrate/20171004110909_add_dialysate_id_to_profile_and_session.rb +9 -0
  289. data/db/migrate/20171012110133_create_research_studies.rb +22 -0
  290. data/db/migrate/20171012143050_create_research_study_participants.rb +30 -0
  291. data/db/migrate/20171013145849_set_patients_secure_id.rb +17 -0
  292. data/db/migrate/20171016152223_add_index_to_diary_slots.rb +17 -0
  293. data/db/migrate/20171017132738_add_unique_indexes_to_local_patient_ids.rb +13 -0
  294. data/db/migrate/20171017171625_update_hd_overall_audit_view.rb +8 -0
  295. data/db/migrate/20171101121130_create_function_to_render_audit_view_as_json.rb +38 -0
  296. data/db/migrate/20171101162244_create_consults.rb +24 -0
  297. data/db/migrate/20171106100216_create_pd_audit_view.rb +5 -0
  298. data/db/seeds/default/hd/{hd_cannulation_types.csv → cannulation_types.csv} +0 -0
  299. data/db/seeds/default/hd/cannulation_types.rb +1 -1
  300. data/db/seeds/default/hd/{hd_dialysers.csv → dialysers.csv} +0 -0
  301. data/db/seeds/default/hd/dialysers.rb +1 -1
  302. data/db/seeds/default/hd/seeds.rb +0 -1
  303. data/db/seeds/default/modalities/descriptions.rb +0 -13
  304. data/db/seeds/default/pathology/seeds.rb +0 -3
  305. data/db/seeds/default/reporting/audits.yml +265 -49
  306. data/db/views/reporting_anaemia_audit_v01.sql +1 -1
  307. data/db/views/reporting_hd_overall_audit_v05.sql +13 -0
  308. data/db/views/reporting_pd_audit_v01.sql +26 -0
  309. data/lib/dropdown_button_item.rb +51 -0
  310. data/lib/renalware/configuration.rb +1 -0
  311. data/lib/renalware/engine.rb +1 -0
  312. data/lib/renalware/version.rb +1 -1
  313. data/lib/renalware/week_period.rb +58 -0
  314. data/spec/factories/accesses/patients.rb +1 -1
  315. data/spec/factories/accesses/plans.rb +1 -1
  316. data/spec/factories/accesses/plans_types.rb +1 -1
  317. data/spec/factories/accesses/procedures.rb +1 -1
  318. data/spec/factories/accesses/profiles.rb +1 -1
  319. data/spec/factories/accesses/sites.rb +1 -1
  320. data/spec/factories/accesses/types.rb +1 -1
  321. data/spec/factories/admissions/consults.rb +7 -0
  322. data/spec/factories/admissions/request_reasons.rb +1 -1
  323. data/spec/factories/admissions/requests.rb +1 -1
  324. data/spec/factories/clinical/allergies.rb +1 -1
  325. data/spec/factories/clinical/body_compositions.rb +1 -1
  326. data/spec/factories/clinical/dry_weights.rb +1 -1
  327. data/spec/factories/clinical/patients.rb +1 -1
  328. data/spec/factories/clinics/appointments.rb +1 -1
  329. data/spec/factories/clinics/clinic_visits.rb +1 -1
  330. data/spec/factories/clinics/clinics.rb +1 -1
  331. data/spec/factories/deaths/cause.rb +1 -1
  332. data/spec/factories/deaths/modality_descriptions.rb +2 -2
  333. data/spec/factories/directory/people.rb +1 -1
  334. data/spec/factories/drugs/drug.rb +1 -1
  335. data/spec/factories/drugs/drug_types.rb +1 -1
  336. data/spec/factories/events/events.rb +1 -1
  337. data/spec/factories/events/events_types.rb +1 -1
  338. data/spec/factories/hd/cannulation_types.rb +1 -1
  339. data/spec/factories/hd/dialysates.rb +10 -0
  340. data/spec/factories/hd/dialysers.rb +1 -1
  341. data/spec/factories/hd/diaries.rb +12 -0
  342. data/spec/factories/hd/diurnal_period_codes.rb +18 -0
  343. data/spec/factories/hd/hd_session_document.rb +3 -4
  344. data/spec/factories/hd/modality_descriptions.rb +1 -1
  345. data/spec/factories/hd/patient_statistics.rb +1 -1
  346. data/spec/factories/hd/patients.rb +1 -1
  347. data/spec/factories/hd/preference_sets.rb +2 -2
  348. data/spec/factories/hd/profiles.rb +2 -1
  349. data/spec/factories/hd/schedule_definitions.rb +20 -0
  350. data/spec/factories/hd/sessions.rb +2 -1
  351. data/spec/factories/hd/slots.rb +7 -0
  352. data/spec/factories/hd/station_locations.rb +6 -0
  353. data/spec/factories/hd/stations.rb +1 -1
  354. data/spec/factories/hospitals/centres.rb +1 -1
  355. data/spec/factories/hospitals/units.rb +1 -3
  356. data/spec/factories/hospitals/wards.rb +1 -1
  357. data/spec/factories/letters/archives.rb +1 -1
  358. data/spec/factories/letters/contact_descriptions.rb +1 -1
  359. data/spec/factories/letters/contacts.rb +1 -1
  360. data/spec/factories/letters/descriptions.rb +1 -1
  361. data/spec/factories/letters/electronic_receipts.rb +1 -1
  362. data/spec/factories/letters/letterheads.rb +1 -1
  363. data/spec/factories/letters/letters.rb +1 -1
  364. data/spec/factories/letters/patients.rb +1 -1
  365. data/spec/factories/letters/primary_care_physicians.rb +1 -1
  366. data/spec/factories/letters/recipients.rb +1 -1
  367. data/spec/factories/medications/medication_route.rb +1 -1
  368. data/spec/factories/medications/prescription.rb +1 -1
  369. data/spec/factories/medications/prescription_terminations.rb +1 -1
  370. data/spec/factories/medications/prescription_version.rb +1 -1
  371. data/spec/factories/messaging/internal/authors.rb +1 -1
  372. data/spec/factories/messaging/internal/messages.rb +1 -1
  373. data/spec/factories/messaging/internal/receipts.rb +1 -1
  374. data/spec/factories/messaging/internal/recipients.rb +1 -1
  375. data/spec/factories/messaging/patients.rb +1 -1
  376. data/spec/factories/modalities/modalities.rb +1 -1
  377. data/spec/factories/modalities/modality_descriptions.rb +1 -1
  378. data/spec/factories/modalities/modality_reasons.rb +1 -1
  379. data/spec/factories/pathology/consultant.rb +1 -1
  380. data/spec/factories/pathology/lab.rb +1 -1
  381. data/spec/factories/pathology/measurement_units.rb +1 -1
  382. data/spec/factories/pathology/observation_descriptions.rb +1 -1
  383. data/spec/factories/pathology/observation_requests.rb +1 -1
  384. data/spec/factories/pathology/observations.rb +1 -1
  385. data/spec/factories/pathology/patients.rb +1 -1
  386. data/spec/factories/pathology/request_descriptions.rb +1 -1
  387. data/spec/factories/pathology/requests/drug_category.rb +1 -1
  388. data/spec/factories/pathology/requests/global_rule.rb +1 -1
  389. data/spec/factories/pathology/requests/global_rule_set.rb +1 -1
  390. data/spec/factories/pathology/requests/patient_rule.rb +1 -1
  391. data/spec/factories/pathology/requests/request.rb +1 -1
  392. data/spec/factories/patients/alerts.rb +1 -1
  393. data/spec/factories/patients/bookmarks.rb +1 -1
  394. data/spec/factories/patients/ethnicities.rb +1 -1
  395. data/spec/factories/patients/languages.rb +1 -1
  396. data/spec/factories/patients/patients.rb +2 -2
  397. data/spec/factories/patients/practices.rb +2 -2
  398. data/spec/factories/patients/primary_care_physicians.rb +2 -2
  399. data/spec/factories/patients/religions.rb +1 -1
  400. data/spec/factories/patients/users.rb +1 -1
  401. data/spec/factories/pd/assessments.rb +1 -1
  402. data/spec/factories/pd/bag_types.rb +1 -1
  403. data/spec/factories/pd/episode_types.rb +1 -1
  404. data/spec/factories/pd/exit_site_infections.rb +1 -1
  405. data/spec/factories/pd/fluid_descriptions.rb +1 -1
  406. data/spec/factories/pd/infection_organisms.rb +1 -1
  407. data/spec/factories/pd/modality_descriptions.rb +1 -1
  408. data/spec/factories/pd/organism_codes.rb +1 -1
  409. data/spec/factories/pd/patients.rb +1 -1
  410. data/spec/factories/pd/pd_regimes.rb +1 -1
  411. data/spec/factories/pd/peritonitis_episode_type_descriptions.rb +1 -1
  412. data/spec/factories/pd/peritonitis_episodes.rb +1 -1
  413. data/spec/factories/pd/pet_adequacies.rb +1 -1
  414. data/spec/factories/pd/regime_bags.rb +1 -1
  415. data/spec/factories/pd/systems.rb +1 -1
  416. data/spec/factories/pd/training_sessions.rb +1 -1
  417. data/spec/factories/pd/training_sites.rb +1 -1
  418. data/spec/factories/pd/training_types.rb +1 -1
  419. data/spec/factories/problems/problems.rb +1 -1
  420. data/spec/factories/renal/aki_alert_actions.rb +1 -1
  421. data/spec/factories/renal/aki_alerts.rb +1 -1
  422. data/spec/factories/renal/patients.rb +1 -1
  423. data/spec/factories/renal/prd_description.rb +1 -1
  424. data/spec/factories/renal/profiles.rb +17 -1
  425. data/spec/factories/reporting/audits.rb +1 -1
  426. data/spec/factories/research/studies.rb +11 -0
  427. data/spec/factories/research/study_participants.rb +7 -0
  428. data/spec/factories/shared/accountable.rb +2 -2
  429. data/spec/factories/snippets/snippets.rb +1 -1
  430. data/spec/factories/snippets/users.rb +1 -1
  431. data/spec/factories/system/addresses.rb +1 -1
  432. data/spec/factories/system/countries.rb +1 -1
  433. data/spec/factories/system/roles.rb +1 -1
  434. data/spec/factories/system/templates.rb +1 -1
  435. data/spec/factories/system/users.rb +1 -1
  436. data/spec/factories/transplants/donations.rb +1 -1
  437. data/spec/factories/transplants/donor_stage.rb +1 -1
  438. data/spec/factories/transplants/donor_stage_position.rb +1 -1
  439. data/spec/factories/transplants/donor_stage_status.rb +1 -1
  440. data/spec/factories/transplants/live_donor_modality_description.rb +1 -1
  441. data/spec/factories/transplants/modality_descriptions.rb +1 -1
  442. data/spec/factories/transplants/patients.rb +1 -1
  443. data/spec/factories/transplants/recipient_followups.rb +1 -1
  444. data/spec/factories/transplants/recipient_operations.rb +1 -1
  445. data/spec/factories/transplants/registration_status_descriptions.rb +1 -1
  446. data/spec/factories/transplants/registration_statuses.rb +1 -1
  447. data/spec/factories/transplants/registrations.rb +1 -1
  448. data/spec/support/{factory_girl.rb → factory_bot.rb} +3 -3
  449. metadata +130 -51
  450. data/app/models/concerns/renalware/hd/has_schedule.rb +0 -24
  451. data/app/views/renalware/clinical/body_compositions/_navigation.html.slim +0 -0
  452. data/app/views/renalware/clinical/dry_weights/_navigation.html.slim +0 -0
  453. data/app/views/renalware/clinical/profiles/_navigation.html.slim +0 -0
  454. data/app/views/renalware/dashboard/dashboards/_navigation.html.slim +0 -0
  455. data/app/views/renalware/devise/registrations/_navigation.html.slim +0 -0
  456. data/app/views/renalware/hd/sessions/_sections_nav.html.slim +0 -0
  457. data/app/views/renalware/letters/letters/_navigation.html.slim +0 -4
  458. data/app/views/renalware/patients/primary_care_physician/_navigation.html.slim +0 -0
  459. data/app/views/renalware/pd/peritonitis_episodes/_navigation.html.slim +0 -7
  460. data/db/seeds/default/hd/diurnal_period_codes.csv +0 -4
  461. data/db/seeds/default/hd/diurnal_period_codes.rb +0 -13
  462. data/db/seeds/default/pathology/pathology_labs.csv +0 -9
  463. data/db/seeds/default/pathology/pathology_labs.rb +0 -12
  464. data/db/seeds/default/pathology/pathology_observation_descriptions.csv +0 -1741
  465. data/db/seeds/default/pathology/pathology_observation_descriptions.rb +0 -16
  466. data/db/seeds/default/pathology/pathology_request_descriptions.csv +0 -196
  467. data/db/seeds/default/pathology/pathology_request_descriptions.rb +0 -27
  468. data/db/structure.sql +0 -9775
  469. data/vendor/assets/fonts/foundation-icons.eot +0 -0
  470. data/vendor/assets/fonts/foundation-icons.scss +0 -594
  471. data/vendor/assets/fonts/foundation-icons.svg +0 -970
  472. data/vendor/assets/fonts/foundation-icons.ttf +0 -0
  473. data/vendor/assets/fonts/foundation-icons.woff +0 -0
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :gp_code do |n|
3
3
  "GP123#{n}"
4
4
  end
@@ -12,7 +12,7 @@ FactoryGirl.define do
12
12
  practitioner_type "GP"
13
13
 
14
14
  # ensures addressable_type and addressable_id work is assigned, using
15
- # FactoryGirl's simple assoc method does not work
15
+ # FactoryBot's simple assoc method does not work
16
16
  #
17
17
  before(:create) do |primary_care_physician|
18
18
  primary_care_physician.build_address(attributes_for(:address))
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :patients_religion, class: "Renalware::Patients::Religion" do
3
3
  name "Christian"
4
4
  end
@@ -1,3 +1,3 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :patients_user, class: "Renalware::Patients::User", parent: :user
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_assessment, class: "Renalware::PD::Assessment" do
3
3
  accountable
4
4
  patient
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :bag_type, class: "Renalware::PD::BagType" do
3
3
  manufacturer "Star Brand, Lucky Brand"
4
4
  description "Green–2.34"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :episode_type, class: "Renalware::PD::EpisodeType" do
3
3
  term "De novo"
4
4
  definition "First infection."
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :exit_site_infection, class: "Renalware::PD::ExitSiteInfection" do
3
3
  patient
4
4
  diagnosis_date "01/04/2015"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :fluid_description, class: "Renalware::PD::FluidDescription" do
3
3
  description "Clear"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :infection_organism, class: "Renalware::PD::InfectionOrganism" do
3
3
  organism_code
4
4
  sensitivity "Sensitive to MRSA."
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_modality_description, class: "Renalware::PD::ModalityDescription" do
3
3
  name "PD"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :organism_code, class: "Renalware::PD::OrganismCode" do
3
3
  code "7"
4
4
  name "Staphylococcus aureus"
@@ -1,3 +1,3 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_patient, class: "Renalware::PD::Patient", parent: :patient
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_regime, class: "Renalware::PD::Regime" do
3
3
  patient
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence(:term) { |n| "term-#{n}" }
3
3
  factory :peritonitis_episode_type_description,
4
4
  class: "Renalware::PD::PeritonitisEpisodeTypeDescription" do
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :peritonitis_episode, class: "Renalware::PD::PeritonitisEpisode" do
3
3
  patient
4
4
  diagnosis_date "30/01/2015"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
 
3
3
  factory :pet_adequacy_result, class: "Renalware::PD::PETAdequacyResult" do
4
4
 
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_regime_bag, class: "Renalware::PD::RegimeBag" do
3
3
  bag_type
4
4
  volume 200
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :apd_system, class: "Renalware::PD::System" do
3
3
  name Faker::Company.name
4
4
  pd_type "APD"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_training_session, class: "Renalware::PD::TrainingSession" do
3
3
  accountable
4
4
  patient
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_training_site, class: "Renalware::PD::TrainingSite" do
3
3
  code "HOME"
4
4
  name "Home"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :pd_training_type, class: "Renalware::PD::TrainingType" do
3
3
  name "APD Baxter"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :problem, class: "Renalware::Problems::Problem" do
3
3
  accountable
4
4
  description "further description of the patient problem"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :aki_alert_action, class: "Renalware::Renal::AKIAlertAction" do
3
3
  name "IP Review"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :aki_alert, class: "Renalware::Renal::AKIAlert" do
3
3
  accountable
4
4
  notes "Some notes"
@@ -1,3 +1,3 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :renal_patient, class: "Renalware::Renal::Patient", parent: :patient
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :prd_description, class: "Renalware::Renal::PRDDescription" do
3
3
  code "1074"
4
4
  term "Denys-Drash syndrome"
@@ -1,5 +1,21 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :renal_profile, class: "Renalware::Renal::Profile" do
3
3
  prd_description
4
+ first_seen_on "01-01-2017"
5
+ comorbidities_updated_on "01-01-2017"
6
+
7
+ document {
8
+ {
9
+ comorbidities: {
10
+ smoking: {
11
+ value: "non_smoker"
12
+ },
13
+ ischaemic_heart_dis: {
14
+ status: "yes",
15
+ confirmed_on_year: "2016"
16
+ }
17
+ }
18
+ }
19
+ }
4
20
  end
5
21
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :audit, class: "Renalware::Reporting::Audit" do
3
3
  name "Letters Authors"
4
4
  view_name "audit_letter_authors"
@@ -0,0 +1,11 @@
1
+ FactoryBot.define do
2
+ factory :research_study, class: "Renalware::Research::Study" do
3
+ code { SecureRandom.hex(8) }
4
+ description { "Description for #{code}" }
5
+ leader { Faker::Name.name }
6
+ started_on 1.year.ago
7
+ terminated_on nil
8
+ deleted_at nil
9
+ accountable
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ FactoryBot.define do
2
+ factory :research_study_participant, class: "Renalware::Research::StudyParticipant" do
3
+ association :study, factory: :research_study
4
+ association :patient, factory: :patient
5
+ joined_on Time.zone.today
6
+ end
7
+ end
@@ -14,7 +14,7 @@
14
14
  # However if you don't call `create` with a `by` or `*_by` arguments, the default `association` we
15
15
  # define here in this global trait ensures only one user - accountable_actor is created and assigned
16
16
  # to both created_by and updated_by. Previously each had its own `user` association and two users
17
- # were created each time any model (that included Accountable) was created by FactoryGirl.
17
+ # were created each time any model (that included Accountable) was created by FactoryBot.
18
18
  # If you need to use the same user for any other attribute in a factory, you can do for instance
19
19
  #
20
20
  # factory :audit do
@@ -24,7 +24,7 @@
24
24
  #
25
25
  # Which create one user and assign them to updated_by, createed_by and requested_by.
26
26
  #
27
- FactoryGirl.define do
27
+ FactoryBot.define do
28
28
  trait :accountable do
29
29
  transient do
30
30
  accountable_actor { by || create(:user) }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :snippet, class: "Renalware::Snippets::Snippet" do
3
3
  title { Faker::Lorem.sentence }
4
4
  body { Faker::Lorem.paragraph }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :snippets_user, class: "Renalware::Snippets::User", parent: :user do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :address, class: "Renalware::Address" do
3
3
  street_1 "123 Legoland"
4
4
  street_2 "Brewster Road"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :country, class: "Renalware::System::Country" do
3
3
  factory :united_kingdom do
4
4
  name "United Kingdom"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :role, class: "Renalware::Role" do
3
3
  initialize_with { Renalware::Role.find_or_create_by(name: name) }
4
4
 
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :esi_printable_form_template, class: "Renalware::System::Template" do
3
3
  name "esi_printable_form"
4
4
  title "ESI Printable Form"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :email do |n|
3
3
  "renalware.user-#{n}@nhs.net"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_donation, class: Renalware::Transplants::Donation do
3
3
  patient
4
4
 
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :donor_stage, class: "Renalware::Transplants::DonorStage" do
3
3
  accountable
4
4
  patient
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :donor_stage_position, class: "Renalware::Transplants::DonorStagePosition" do
3
3
  name { Faker::Lorem.word }
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :donor_stage_status, class: "Renalware::Transplants::DonorStageStatus" do
3
3
  name { Faker::Lorem.word }
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :live_donor_modality_description,
3
3
  class: "Renalware::Transplants::DonorModalityDescription" do
4
4
  name "Live Donor"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_donor_modality_description,
3
3
  class: "Renalware::Transplants::DonorModalityDescription" do
4
4
  name "Live Donor"
@@ -1,3 +1,3 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_patient, class: "Renalware::Transplants::Patient", parent: :patient
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_recipient_followup, class: Renalware::Transplants::RecipientFollowup do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_recipient_operation, class: Renalware::Transplants::RecipientOperation do
3
3
  patient { build(:transplant_patient) }
4
4
 
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_registration_status_description,
3
3
  class: Renalware::Transplants::RegistrationStatusDescription do
4
4
  code "active"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_registration_status, class: Renalware::Transplants::RegistrationStatus do
3
3
  accountable
4
4
  description { create(:transplant_registration_status_description) }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :transplant_registration, class: Renalware::Transplants::Registration do
3
3
  patient { build(:transplant_patient) }
4
4
 
@@ -1,5 +1,5 @@
1
1
  RSpec.configure do |config|
2
- config.include FactoryGirl::Syntax::Methods
2
+ config.include FactoryBot::Syntax::Methods
3
3
  end
4
4
 
5
5
  # Use this strategy to get Hash output from factories defined using class: OpenStruct.
@@ -17,7 +17,7 @@ end
17
17
  #
18
18
  class MarshalDumpStrategy
19
19
  def initialize
20
- @strategy = FactoryGirl.strategy_by_name(:create).new
20
+ @strategy = FactoryBot.strategy_by_name(:create).new
21
21
  end
22
22
 
23
23
  delegate :association, to: :@strategy
@@ -26,4 +26,4 @@ class MarshalDumpStrategy
26
26
  @strategy.result(evaluation).marshal_dump
27
27
  end
28
28
  end
29
- FactoryGirl.register_strategy(:marshal_dump, MarshalDumpStrategy)
29
+ FactoryBot.register_strategy(:marshal_dump, MarshalDumpStrategy)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renalware-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta9
4
+ version: 2.0.0.pre.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2017-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -836,20 +836,6 @@ dependencies:
836
836
  - - ">="
837
837
  - !ruby/object:Gem::Version
838
838
  version: '0'
839
- - !ruby/object:Gem::Dependency
840
- name: guard-rspec
841
- requirement: !ruby/object:Gem::Requirement
842
- requirements:
843
- - - ">="
844
- - !ruby/object:Gem::Version
845
- version: '0'
846
- type: :development
847
- prerelease: false
848
- version_requirements: !ruby/object:Gem::Requirement
849
- requirements:
850
- - - ">="
851
- - !ruby/object:Gem::Version
852
- version: '0'
853
839
  - !ruby/object:Gem::Dependency
854
840
  name: rack-mini-profiler
855
841
  requirement: !ruby/object:Gem::Requirement
@@ -977,7 +963,7 @@ dependencies:
977
963
  - !ruby/object:Gem::Version
978
964
  version: '0'
979
965
  - !ruby/object:Gem::Dependency
980
- name: factory_girl_rails
966
+ name: factory_bot_rails
981
967
  requirement: !ruby/object:Gem::Requirement
982
968
  requirements:
983
969
  - - ">="
@@ -1064,30 +1050,30 @@ dependencies:
1064
1050
  name: rspec-rails
1065
1051
  requirement: !ruby/object:Gem::Requirement
1066
1052
  requirements:
1067
- - - ">="
1053
+ - - '='
1068
1054
  - !ruby/object:Gem::Version
1069
- version: '0'
1055
+ version: 3.6.0
1070
1056
  type: :development
1071
1057
  prerelease: false
1072
1058
  version_requirements: !ruby/object:Gem::Requirement
1073
1059
  requirements:
1074
- - - ">="
1060
+ - - '='
1075
1061
  - !ruby/object:Gem::Version
1076
- version: '0'
1062
+ version: 3.6.0
1077
1063
  - !ruby/object:Gem::Dependency
1078
1064
  name: rubocop
1079
1065
  requirement: !ruby/object:Gem::Requirement
1080
1066
  requirements:
1081
1067
  - - "~>"
1082
1068
  - !ruby/object:Gem::Version
1083
- version: 0.50.0
1069
+ version: 0.51.0
1084
1070
  type: :development
1085
1071
  prerelease: false
1086
1072
  version_requirements: !ruby/object:Gem::Requirement
1087
1073
  requirements:
1088
1074
  - - "~>"
1089
1075
  - !ruby/object:Gem::Version
1090
- version: 0.50.0
1076
+ version: 0.51.0
1091
1077
  - !ruby/object:Gem::Dependency
1092
1078
  name: shoulda-matchers
1093
1079
  requirement: !ruby/object:Gem::Requirement
@@ -1195,6 +1181,7 @@ files:
1195
1181
  - app/assets/javascripts/renalware/modality_codes.js
1196
1182
  - app/assets/javascripts/renalware/modality_reasons.js
1197
1183
  - app/assets/javascripts/renalware/navigation.js
1184
+ - app/assets/javascripts/renalware/patient_ajax_search.js
1198
1185
  - app/assets/javascripts/renalware/patient_menu.js
1199
1186
  - app/assets/javascripts/renalware/pd.js
1200
1187
  - app/assets/javascripts/renalware/pdf.js
@@ -1203,6 +1190,7 @@ files:
1203
1190
  - app/assets/javascripts/renalware/problems.js
1204
1191
  - app/assets/javascripts/renalware/renal.js
1205
1192
  - app/assets/javascripts/renalware/reporting.js.erb
1193
+ - app/assets/javascripts/renalware/research.js
1206
1194
  - app/assets/javascripts/renalware/searchables.js
1207
1195
  - app/assets/javascripts/renalware/select2-ajax-search.js
1208
1196
  - app/assets/javascripts/renalware/session_timeout_redirect.js.erb
@@ -1213,6 +1201,7 @@ files:
1213
1201
  - app/assets/stylesheets/renalware/base/_mixins.scss
1214
1202
  - app/assets/stylesheets/renalware/base/_variables.scss
1215
1203
  - app/assets/stylesheets/renalware/clipboard.scss
1204
+ - app/assets/stylesheets/renalware/hd_diary_pdf.scss
1216
1205
  - app/assets/stylesheets/renalware/lib/_clockpicker.css
1217
1206
  - app/assets/stylesheets/renalware/lib/_foundation_and_overrides.scss
1218
1207
  - app/assets/stylesheets/renalware/lib/_select2-foundation5-overrides.scss
@@ -1237,6 +1226,7 @@ files:
1237
1226
  - app/assets/stylesheets/renalware/modules/_reporting.scss
1238
1227
  - app/assets/stylesheets/renalware/modules/_snippets.scss
1239
1228
  - app/assets/stylesheets/renalware/modules/_transplants.scss
1229
+ - app/assets/stylesheets/renalware/partials/_animation.scss
1240
1230
  - app/assets/stylesheets/renalware/partials/_animations.scss
1241
1231
  - app/assets/stylesheets/renalware/partials/_autocomplete.scss
1242
1232
  - app/assets/stylesheets/renalware/partials/_button.scss
@@ -1278,6 +1268,7 @@ files:
1278
1268
  - app/controllers/renalware/accesses/procedures_controller.rb
1279
1269
  - app/controllers/renalware/accesses/profiles_controller.rb
1280
1270
  - app/controllers/renalware/admin/users_controller.rb
1271
+ - app/controllers/renalware/admissions/consults_controller.rb
1281
1272
  - app/controllers/renalware/admissions/requests_controller.rb
1282
1273
  - app/controllers/renalware/api/ukrdc/patients_controller.rb
1283
1274
  - app/controllers/renalware/base_controller.rb
@@ -1310,16 +1301,20 @@ files:
1310
1301
  - app/controllers/renalware/hd/current_profile_controller.rb
1311
1302
  - app/controllers/renalware/hd/dashboards_controller.rb
1312
1303
  - app/controllers/renalware/hd/dialysers_controller.rb
1304
+ - app/controllers/renalware/hd/diaries_controller.rb
1305
+ - app/controllers/renalware/hd/diary_slots_controller.rb
1313
1306
  - app/controllers/renalware/hd/historical_profiles_controller.rb
1314
1307
  - app/controllers/renalware/hd/mdm_controller.rb
1315
1308
  - app/controllers/renalware/hd/mdm_patients_controller.rb
1316
1309
  - app/controllers/renalware/hd/ongoing_sessions_controller.rb
1310
+ - app/controllers/renalware/hd/patients_controller.rb
1317
1311
  - app/controllers/renalware/hd/preference_sets_controller.rb
1318
1312
  - app/controllers/renalware/hd/protocols_controller.rb
1319
1313
  - app/controllers/renalware/hd/sessions_controller.rb
1320
1314
  - app/controllers/renalware/hd/stations_controller.rb
1321
1315
  - app/controllers/renalware/hd/unmet_preferences_controller.rb
1322
1316
  - app/controllers/renalware/hospitals/units_controller.rb
1317
+ - app/controllers/renalware/hospitals/wards_controller.rb
1323
1318
  - app/controllers/renalware/letters/approved_letters_controller.rb
1324
1319
  - app/controllers/renalware/letters/base_controller.rb
1325
1320
  - app/controllers/renalware/letters/completed_letters_controller.rb
@@ -1378,8 +1373,11 @@ files:
1378
1373
  - app/controllers/renalware/renal/base_controller.rb
1379
1374
  - app/controllers/renalware/renal/prd_descriptions_controller.rb
1380
1375
  - app/controllers/renalware/renal/profiles_controller.rb
1376
+ - app/controllers/renalware/renal/registry_preflight_checks_controller.rb
1381
1377
  - app/controllers/renalware/reporting/audit_refreshments_controller.rb
1382
1378
  - app/controllers/renalware/reporting/audits_controller.rb
1379
+ - app/controllers/renalware/research/studies_controller.rb
1380
+ - app/controllers/renalware/research/study_participants_controller.rb
1383
1381
  - app/controllers/renalware/session_timeout_controller.rb
1384
1382
  - app/controllers/renalware/snippets/snippet_clones_controller.rb
1385
1383
  - app/controllers/renalware/snippets/snippet_invocations_controller.rb
@@ -1481,6 +1479,7 @@ files:
1481
1479
  - app/inputs/hidden_array_input.rb
1482
1480
  - app/inputs/inline_radio_buttons_input.rb
1483
1481
  - app/inputs/multiple_select_input.rb
1482
+ - app/inputs/select_container_input.rb
1484
1483
  - app/inputs/simple_time_input.rb
1485
1484
  - app/inputs/user_picker_input.rb
1486
1485
  - app/jobs/application_job.rb
@@ -1497,7 +1496,6 @@ files:
1497
1496
  - app/models/concerns/renalware/broadcasting.rb
1498
1497
  - app/models/concerns/renalware/deviseable.rb
1499
1498
  - app/models/concerns/renalware/explicit_state_model.rb
1500
- - app/models/concerns/renalware/hd/has_schedule.rb
1501
1499
  - app/models/concerns/renalware/hd/session_scopes.rb
1502
1500
  - app/models/concerns/renalware/modality_scopes.rb
1503
1501
  - app/models/concerns/renalware/ordered_scope.rb
@@ -1522,6 +1520,8 @@ files:
1522
1520
  - app/models/renalware/accesses/type.rb
1523
1521
  - app/models/renalware/accesses/version.rb
1524
1522
  - app/models/renalware/admissions.rb
1523
+ - app/models/renalware/admissions/consult.rb
1524
+ - app/models/renalware/admissions/consult_query.rb
1525
1525
  - app/models/renalware/admissions/request.rb
1526
1526
  - app/models/renalware/admissions/request_reason.rb
1527
1527
  - app/models/renalware/clinical.rb
@@ -1572,20 +1572,31 @@ files:
1572
1572
  - app/models/renalware/feeds/message_processor.rb
1573
1573
  - app/models/renalware/feeds/persist_message.rb
1574
1574
  - app/models/renalware/hd.rb
1575
+ - app/models/renalware/hd/archive_yesterdays_slots_job.rb
1575
1576
  - app/models/renalware/hd/cannulation_type.rb
1577
+ - app/models/renalware/hd/dialysate.rb
1576
1578
  - app/models/renalware/hd/dialyser.rb
1579
+ - app/models/renalware/hd/diary.rb
1580
+ - app/models/renalware/hd/diary_slot.rb
1577
1581
  - app/models/renalware/hd/diurnal_period_code.rb
1582
+ - app/models/renalware/hd/find_or_create_diary_by_week_query.rb
1583
+ - app/models/renalware/hd/find_or_create_master_diary.rb
1578
1584
  - app/models/renalware/hd/generate_monthly_statistics_for_patient.rb
1585
+ - app/models/renalware/hd/master_diary.rb
1579
1586
  - app/models/renalware/hd/mdm_patients_query.rb
1580
1587
  - app/models/renalware/hd/modality_description.rb
1581
1588
  - app/models/renalware/hd/patient.rb
1582
1589
  - app/models/renalware/hd/patient_listener.rb
1583
1590
  - app/models/renalware/hd/patient_statistics.rb
1591
+ - app/models/renalware/hd/patients_dialysing_by_day_and_period_query.rb
1592
+ - app/models/renalware/hd/patients_dialysing_by_day_query.rb
1593
+ - app/models/renalware/hd/patients_dialysing_by_schedule_query.rb
1584
1594
  - app/models/renalware/hd/patients_with_unmet_preferences_query.rb
1585
1595
  - app/models/renalware/hd/preference_set.rb
1586
1596
  - app/models/renalware/hd/prescription_administration.rb
1587
1597
  - app/models/renalware/hd/profile.rb
1588
1598
  - app/models/renalware/hd/revise_hd_profile.rb
1599
+ - app/models/renalware/hd/schedule_definition.rb
1589
1600
  - app/models/renalware/hd/session.rb
1590
1601
  - app/models/renalware/hd/session/closed.rb
1591
1602
  - app/models/renalware/hd/session/dna.rb
@@ -1601,8 +1612,10 @@ files:
1601
1612
  - app/models/renalware/hd/sessions/protocol_sessions_query.rb
1602
1613
  - app/models/renalware/hd/sessions/save_session.rb
1603
1614
  - app/models/renalware/hd/station.rb
1615
+ - app/models/renalware/hd/station_location.rb
1604
1616
  - app/models/renalware/hd/update_rolling_patient_statistics.rb
1605
1617
  - app/models/renalware/hd/version.rb
1618
+ - app/models/renalware/hd/weekly_diary.rb
1606
1619
  - app/models/renalware/hospitals.rb
1607
1620
  - app/models/renalware/hospitals/centre.rb
1608
1621
  - app/models/renalware/hospitals/unit.rb
@@ -1819,9 +1832,14 @@ files:
1819
1832
  - app/models/renalware/renal/prd_description.rb
1820
1833
  - app/models/renalware/renal/prd_descriptions/search_query.rb
1821
1834
  - app/models/renalware/renal/profile.rb
1835
+ - app/models/renalware/renal/registry/preflight_checks/deaths_query.rb
1836
+ - app/models/renalware/renal/registry/preflight_checks/patients_query.rb
1822
1837
  - app/models/renalware/reporting.rb
1823
1838
  - app/models/renalware/reporting/audit.rb
1824
- - app/models/renalware/reporting/generate_audit_json.rb
1839
+ - app/models/renalware/reporting/fetch_audit_json.rb
1840
+ - app/models/renalware/research.rb
1841
+ - app/models/renalware/research/study.rb
1842
+ - app/models/renalware/research/study_participant.rb
1825
1843
  - app/models/renalware/role.rb
1826
1844
  - app/models/renalware/snippets.rb
1827
1845
  - app/models/renalware/snippets/duplicate_snippet_title_generator.rb
@@ -1862,6 +1880,7 @@ files:
1862
1880
  - app/models/renalware/user.rb
1863
1881
  - app/models/renalware/version.rb
1864
1882
  - app/policies/application_policy.rb
1883
+ - app/policies/renalware/admissions/consult_policy.rb
1865
1884
  - app/policies/renalware/admissions/request_policy.rb
1866
1885
  - app/policies/renalware/base_policy.rb
1867
1886
  - app/policies/renalware/clinical/allergy_policy.rb
@@ -1874,6 +1893,7 @@ files:
1874
1893
  - app/policies/renalware/events/simple_policy.rb
1875
1894
  - app/policies/renalware/events/swab_policy.rb
1876
1895
  - app/policies/renalware/hd/closed_session_policy.rb
1896
+ - app/policies/renalware/hd/diary_policy.rb
1877
1897
  - app/policies/renalware/hd/dna_session_policy.rb
1878
1898
  - app/policies/renalware/hd/open_session_policy.rb
1879
1899
  - app/policies/renalware/hd/session_policy.rb
@@ -1901,7 +1921,10 @@ files:
1901
1921
  - app/policies/renalware/pd/training_session_policy.rb
1902
1922
  - app/policies/renalware/problems/problem_policy.rb
1903
1923
  - app/policies/renalware/renal/aki_alert_policy.rb
1924
+ - app/policies/renalware/renal/registry_preflight_check_policy.rb
1904
1925
  - app/policies/renalware/reporting/audit_policy.rb
1926
+ - app/policies/renalware/research/study_participant_policy.rb
1927
+ - app/policies/renalware/research/study_policy.rb
1905
1928
  - app/policies/renalware/snippets/snippet_policy.rb
1906
1929
  - app/policies/renalware/transplants/donor_stage_policy.rb
1907
1930
  - app/policies/renalware/transplants/recipient_operation_policy.rb
@@ -1923,6 +1946,7 @@ files:
1923
1946
  - app/presenters/renalware/address_presenter/block.rb
1924
1947
  - app/presenters/renalware/address_presenter/short.rb
1925
1948
  - app/presenters/renalware/address_presenter/single_line.rb
1949
+ - app/presenters/renalware/admissions/consult_presenter.rb
1926
1950
  - app/presenters/renalware/clinical/body_composition_presenter.rb
1927
1951
  - app/presenters/renalware/clinical/dry_weight_presenter.rb
1928
1952
  - app/presenters/renalware/clinical/dry_weights_presenter.rb
@@ -1932,8 +1956,11 @@ files:
1932
1956
  - app/presenters/renalware/directory/person_auto_complete_presenter.rb
1933
1957
  - app/presenters/renalware/events/events_presenter.rb
1934
1958
  - app/presenters/renalware/hd/dashboard_presenter.rb
1959
+ - app/presenters/renalware/hd/diary_presenter.rb
1960
+ - app/presenters/renalware/hd/diary_slot_presenter.rb
1935
1961
  - app/presenters/renalware/hd/mdm_patient_presenter.rb
1936
1962
  - app/presenters/renalware/hd/mdm_presenter.rb
1963
+ - app/presenters/renalware/hd/null_slot.rb
1937
1964
  - app/presenters/renalware/hd/patient_presenter.rb
1938
1965
  - app/presenters/renalware/hd/profile_document_presenter.rb
1939
1966
  - app/presenters/renalware/hd/profile_presenter.rb
@@ -1990,6 +2017,7 @@ files:
1990
2017
  - app/presenters/renalware/transplants/mdm_presenter.rb
1991
2018
  - app/presenters/renalware/transplants/patient_presenter.rb
1992
2019
  - app/presenters/renalware/transplants/wait_list_registration_presenter.rb
2020
+ - app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
1993
2021
  - app/presenters/renalware/ukrdc/patient_presenter.rb
1994
2022
  - app/presenters/string_presenter.rb
1995
2023
  - app/presenters/time_presenter.rb
@@ -2047,6 +2075,12 @@ files:
2047
2075
  - app/views/renalware/admin/user_mailer/unexpiry.text.erb
2048
2076
  - app/views/renalware/admin/users/edit.html.slim
2049
2077
  - app/views/renalware/admin/users/index.html.slim
2078
+ - app/views/renalware/admissions/consults/_filters.html.slim
2079
+ - app/views/renalware/admissions/consults/_form.html.slim
2080
+ - app/views/renalware/admissions/consults/_table.html.slim
2081
+ - app/views/renalware/admissions/consults/edit.html.slim
2082
+ - app/views/renalware/admissions/consults/index.html.slim
2083
+ - app/views/renalware/admissions/consults/new.html.slim
2050
2084
  - app/views/renalware/admissions/requests/_create_request_link.html.slim
2051
2085
  - app/views/renalware/admissions/requests/_form.html.slim
2052
2086
  - app/views/renalware/admissions/requests/_modal_dialog_placeholder.html.slim
@@ -2093,19 +2127,16 @@ files:
2093
2127
  - app/views/renalware/clinical/allergy_statuses/_form.html.slim
2094
2128
  - app/views/renalware/clinical/body_compositions/_form.html.slim
2095
2129
  - app/views/renalware/clinical/body_compositions/_list.html.slim
2096
- - app/views/renalware/clinical/body_compositions/_navigation.html.slim
2097
2130
  - app/views/renalware/clinical/body_compositions/edit.html.slim
2098
2131
  - app/views/renalware/clinical/body_compositions/new.html.slim
2099
2132
  - app/views/renalware/clinical/body_compositions/show.html.slim
2100
2133
  - app/views/renalware/clinical/dry_weights/_dry_weight_nav.html.slim
2101
2134
  - app/views/renalware/clinical/dry_weights/_form.html.slim
2102
2135
  - app/views/renalware/clinical/dry_weights/_list.html.slim
2103
- - app/views/renalware/clinical/dry_weights/_navigation.html.slim
2104
2136
  - app/views/renalware/clinical/dry_weights/_row.html.slim
2105
2137
  - app/views/renalware/clinical/dry_weights/edit.html.slim
2106
2138
  - app/views/renalware/clinical/dry_weights/index.html.slim
2107
2139
  - app/views/renalware/clinical/dry_weights/new.html.slim
2108
- - app/views/renalware/clinical/profiles/_navigation.html.slim
2109
2140
  - app/views/renalware/clinical/profiles/edit.html.slim
2110
2141
  - app/views/renalware/clinical/profiles/show.html.slim
2111
2142
  - app/views/renalware/clinics/appointments/index.html.slim
@@ -2124,7 +2155,6 @@ files:
2124
2155
  - app/views/renalware/dashboard/bookmarks/_table.html.slim
2125
2156
  - app/views/renalware/dashboard/dashboards/_content.html.slim
2126
2157
  - app/views/renalware/dashboard/dashboards/_layout.html.slim
2127
- - app/views/renalware/dashboard/dashboards/_navigation.html.slim
2128
2158
  - app/views/renalware/dashboard/dashboards/_side_nav.html.slim
2129
2159
  - app/views/renalware/dashboard/dashboards/show.html.slim
2130
2160
  - app/views/renalware/dashboard/letters/_letter.html.slim
@@ -2133,7 +2163,6 @@ files:
2133
2163
  - app/views/renalware/deaths/index.html.slim
2134
2164
  - app/views/renalware/devise/passwords/edit.html.erb
2135
2165
  - app/views/renalware/devise/passwords/new.html.erb
2136
- - app/views/renalware/devise/registrations/_navigation.html.slim
2137
2166
  - app/views/renalware/devise/registrations/edit.html.slim
2138
2167
  - app/views/renalware/devise/registrations/new.html.slim
2139
2168
  - app/views/renalware/devise/sessions/new.html.slim
@@ -2198,6 +2227,22 @@ files:
2198
2227
  - app/views/renalware/hd/dialysers/edit.html.slim
2199
2228
  - app/views/renalware/hd/dialysers/index.html.slim
2200
2229
  - app/views/renalware/hd/dialysers/new.html.slim
2230
+ - app/views/renalware/hd/diaries/_page_actions.html.slim
2231
+ - app/views/renalware/hd/diaries/_table.html.slim
2232
+ - app/views/renalware/hd/diaries/_weekly_diary.html.slim
2233
+ - app/views/renalware/hd/diaries/edit.html.slim
2234
+ - app/views/renalware/hd/diaries/index.html.slim
2235
+ - app/views/renalware/hd/diaries/show.pdf.slim
2236
+ - app/views/renalware/hd/diary_slots/_form.html.slim
2237
+ - app/views/renalware/hd/diary_slots/_slot.html.slim
2238
+ - app/views/renalware/hd/diary_slots/_tab.html.slim
2239
+ - app/views/renalware/hd/diary_slots/create.js.erb
2240
+ - app/views/renalware/hd/diary_slots/destroy.js.erb
2241
+ - app/views/renalware/hd/diary_slots/edit.html.slim
2242
+ - app/views/renalware/hd/diary_slots/new.html.slim
2243
+ - app/views/renalware/hd/diary_slots/new.js.erb
2244
+ - app/views/renalware/hd/diary_slots/show.js.erb
2245
+ - app/views/renalware/hd/diary_slots/update.js.erb
2201
2246
  - app/views/renalware/hd/historical_profiles/_summary.html.slim
2202
2247
  - app/views/renalware/hd/historical_profiles/_table.html.slim
2203
2248
  - app/views/renalware/hd/historical_profiles/index.html.slim
@@ -2228,7 +2273,6 @@ files:
2228
2273
  - app/views/renalware/hd/sessions/_list.html.slim
2229
2274
  - app/views/renalware/hd/sessions/_prescription_administrations.html.slim
2230
2275
  - app/views/renalware/hd/sessions/_row.html.slim
2231
- - app/views/renalware/hd/sessions/_sections_nav.html.slim
2232
2276
  - app/views/renalware/hd/sessions/_session_nav.html.slim
2233
2277
  - app/views/renalware/hd/sessions/_show.html.slim
2234
2278
  - app/views/renalware/hd/sessions/_table.html.slim
@@ -2297,7 +2341,6 @@ files:
2297
2341
  - app/views/renalware/letters/letters/_form.html.slim
2298
2342
  - app/views/renalware/letters/letters/_letter.html.slim
2299
2343
  - app/views/renalware/letters/letters/_main_recipient.html.slim
2300
- - app/views/renalware/letters/letters/_navigation.html.slim
2301
2344
  - app/views/renalware/letters/letters/_patient_summary.html.slim
2302
2345
  - app/views/renalware/letters/letters/_preview.html.slim
2303
2346
  - app/views/renalware/letters/letters/_table.html.slim
@@ -2458,7 +2501,6 @@ files:
2458
2501
  - app/views/renalware/patients/patients/show/_referral.html.slim
2459
2502
  - app/views/renalware/patients/patients/show/_ukrdc_preferences.html.slim
2460
2503
  - app/views/renalware/patients/primary_care_physician/_form.html.slim
2461
- - app/views/renalware/patients/primary_care_physician/_navigation.html.slim
2462
2504
  - app/views/renalware/patients/primary_care_physician/edit.html.slim
2463
2505
  - app/views/renalware/patients/primary_care_physician/edit.js.erb
2464
2506
  - app/views/renalware/patients/primary_care_physicians/_form.html.slim
@@ -2527,7 +2569,6 @@ files:
2527
2569
  - app/views/renalware/pd/peritonitis_episodes/_details.html.slim
2528
2570
  - app/views/renalware/pd/peritonitis_episodes/_fields.html.slim
2529
2571
  - app/views/renalware/pd/peritonitis_episodes/_form.html.slim
2530
- - app/views/renalware/pd/peritonitis_episodes/_navigation.html.slim
2531
2572
  - app/views/renalware/pd/peritonitis_episodes/edit.html.slim
2532
2573
  - app/views/renalware/pd/peritonitis_episodes/edit.js.erb
2533
2574
  - app/views/renalware/pd/peritonitis_episodes/new.html.slim
@@ -2579,10 +2620,27 @@ files:
2579
2620
  - app/views/renalware/renal/profiles/_mini.html.slim
2580
2621
  - app/views/renalware/renal/profiles/edit.html.slim
2581
2622
  - app/views/renalware/renal/profiles/show.html.slim
2623
+ - app/views/renalware/renal/registry_preflight_checks/_navigation.html.slim
2624
+ - app/views/renalware/renal/registry_preflight_checks/_table.html.slim
2625
+ - app/views/renalware/renal/registry_preflight_checks/deaths.html.slim
2626
+ - app/views/renalware/renal/registry_preflight_checks/patients.html.slim
2582
2627
  - app/views/renalware/reporting/audit_refreshments/create.js.erb
2583
2628
  - app/views/renalware/reporting/audits/edit.html.slim
2584
2629
  - app/views/renalware/reporting/audits/index.html.slim
2585
2630
  - app/views/renalware/reporting/audits/show.html.slim
2631
+ - app/views/renalware/research/studies/_form.html.slim
2632
+ - app/views/renalware/research/studies/edit.html.slim
2633
+ - app/views/renalware/research/studies/index.html.slim
2634
+ - app/views/renalware/research/studies/new.html.slim
2635
+ - app/views/renalware/research/studies/show.html.slim
2636
+ - app/views/renalware/research/study_participants/_form.html.slim
2637
+ - app/views/renalware/research/study_participants/_table.html.slim
2638
+ - app/views/renalware/research/study_participants/create.js.erb
2639
+ - app/views/renalware/research/study_participants/edit.html.slim
2640
+ - app/views/renalware/research/study_participants/index.html.slim
2641
+ - app/views/renalware/research/study_participants/new.html.slim
2642
+ - app/views/renalware/research/study_participants/new.js.erb
2643
+ - app/views/renalware/research/study_participants/update.js.erb
2586
2644
  - app/views/renalware/shared/_attributes_group.html.slim
2587
2645
  - app/views/renalware/shared/_attributes_list.html.slim
2588
2646
  - app/views/renalware/shared/_error_messages.html.slim
@@ -2742,6 +2800,7 @@ files:
2742
2800
  - config/locales/renalware/accesses/procedure.yml
2743
2801
  - config/locales/renalware/accesses/profile.yml
2744
2802
  - config/locales/renalware/address.yml
2803
+ - config/locales/renalware/admissions/consults.en.yml
2745
2804
  - config/locales/renalware/admissions/requests.en.yml
2746
2805
  - config/locales/renalware/age.yml
2747
2806
  - config/locales/renalware/blood_group.en.yml
@@ -2759,6 +2818,7 @@ files:
2759
2818
  - config/locales/renalware/events/swab.en.yml
2760
2819
  - config/locales/renalware/hd/accesses.en.yml
2761
2820
  - config/locales/renalware/hd/dashboards.en.yml
2821
+ - config/locales/renalware/hd/diary_slots.en.yml
2762
2822
  - config/locales/renalware/hd/mdm.en.yml
2763
2823
  - config/locales/renalware/hd/mdm_patients.yml
2764
2824
  - config/locales/renalware/hd/preference_set.yml
@@ -2800,7 +2860,9 @@ files:
2800
2860
  - config/locales/renalware/problems/note.yml
2801
2861
  - config/locales/renalware/renal/aki_alerts.en.yml
2802
2862
  - config/locales/renalware/renal/profile.en.yml
2863
+ - config/locales/renalware/renal/registry.en.yml
2803
2864
  - config/locales/renalware/reporting/audit.en.yml
2865
+ - config/locales/renalware/research/study_participant.en.yml
2804
2866
  - config/locales/renalware/shared.yml
2805
2867
  - config/locales/renalware/snippets/snippets.en.yml
2806
2868
  - config/locales/renalware/transplants/donation.yml
@@ -3077,10 +3139,17 @@ files:
3077
3139
  - db/migrate/20170824113401_add_stations_to_hospital_units.rb
3078
3140
  - db/migrate/20170830085137_create_hd_unit_stations.rb
3079
3141
  - db/migrate/20170830171726_create_hd_diurnal_period_codes.rb
3142
+ - db/migrate/20170831082043_create_hd_diaries.rb
3143
+ - db/migrate/20170831084331_create_hd_diary_slots.rb
3144
+ - db/migrate/20170831142819_enable_crosstab_extension.rb
3080
3145
  - db/migrate/20170908155011_add_shortfall_column_to_hd_patient_statistics.rb
3081
3146
  - db/migrate/20170908160250_update_hd_overall_audit_to_version4.rb
3082
3147
  - db/migrate/20170911133224_add_type_to_messaging_messages.rb
3083
3148
  - db/migrate/20170912092135_create_letters_electronic_receipts.rb
3149
+ - db/migrate/20170915090544_create_hd_station_locations.rb
3150
+ - db/migrate/20170915115228_add_schedule_diurnal_period_id_to_hd_profiles.rb
3151
+ - db/migrate/20170916121019_remove_number_of_hd_stations_from_hospital_units.rb
3152
+ - db/migrate/20170917185426_add_indexes_to_diary_slots.rb
3084
3153
  - db/migrate/20170920113628_create_admissions_requests.rb
3085
3154
  - db/migrate/20170925161033_add_code_to_patient_langauges.rb
3086
3155
  - db/migrate/20170925182738_add_rr_code_to_medication_routes.rb
@@ -3090,11 +3159,22 @@ files:
3090
3159
  - db/migrate/20171003093347_create_hospital_wards.rb
3091
3160
  - db/migrate/20171003111228_create_aki_alert_actions.rb
3092
3161
  - db/migrate/20171003122425_create_renal_aki_alerts.rb
3162
+ - db/migrate/20171004092235_create_hd_dialysates.rb
3163
+ - db/migrate/20171004110909_add_dialysate_id_to_profile_and_session.rb
3093
3164
  - db/migrate/20171005081224_create_reporting_bone_audit.rb
3094
3165
  - db/migrate/20171005091202_reporting_audit_changes.rb
3095
3166
  - db/migrate/20171005130109_create_medication_current_prescriptions.rb
3096
3167
  - db/migrate/20171005144505_create_reporting_anaemia_audit.rb
3097
3168
  - db/migrate/20171009104106_add_legacy_patient_id_to_patients.rb
3169
+ - db/migrate/20171012110133_create_research_studies.rb
3170
+ - db/migrate/20171012143050_create_research_study_participants.rb
3171
+ - db/migrate/20171013145849_set_patients_secure_id.rb
3172
+ - db/migrate/20171016152223_add_index_to_diary_slots.rb
3173
+ - db/migrate/20171017132738_add_unique_indexes_to_local_patient_ids.rb
3174
+ - db/migrate/20171017171625_update_hd_overall_audit_view.rb
3175
+ - db/migrate/20171101121130_create_function_to_render_audit_view_as_json.rb
3176
+ - db/migrate/20171101162244_create_consults.rb
3177
+ - db/migrate/20171106100216_create_pd_audit_view.rb
3098
3178
  - db/seeds.rb
3099
3179
  - db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
3100
3180
  - db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
@@ -3118,12 +3198,10 @@ files:
3118
3198
  - db/seeds/default/events/event_types.csv
3119
3199
  - db/seeds/default/events/event_types.rb
3120
3200
  - db/seeds/default/events/seeds.rb
3201
+ - db/seeds/default/hd/cannulation_types.csv
3121
3202
  - db/seeds/default/hd/cannulation_types.rb
3203
+ - db/seeds/default/hd/dialysers.csv
3122
3204
  - db/seeds/default/hd/dialysers.rb
3123
- - db/seeds/default/hd/diurnal_period_codes.csv
3124
- - db/seeds/default/hd/diurnal_period_codes.rb
3125
- - db/seeds/default/hd/hd_cannulation_types.csv
3126
- - db/seeds/default/hd/hd_dialysers.csv
3127
3205
  - db/seeds/default/hd/seeds.rb
3128
3206
  - db/seeds/default/housekeeping.rb
3129
3207
  - db/seeds/default/letters/letterheads.csv
@@ -3136,12 +3214,6 @@ files:
3136
3214
  - db/seeds/default/modalities/seeds.rb
3137
3215
  - db/seeds/default/pathology/measurement_units.csv
3138
3216
  - db/seeds/default/pathology/measurement_units.rb
3139
- - db/seeds/default/pathology/pathology_labs.csv
3140
- - db/seeds/default/pathology/pathology_labs.rb
3141
- - db/seeds/default/pathology/pathology_observation_descriptions.csv
3142
- - db/seeds/default/pathology/pathology_observation_descriptions.rb
3143
- - db/seeds/default/pathology/pathology_request_descriptions.csv
3144
- - db/seeds/default/pathology/pathology_request_descriptions.rb
3145
3217
  - db/seeds/default/pathology/seeds.rb
3146
3218
  - db/seeds/default/patients/patients_ethnicities.rb
3147
3219
  - db/seeds/default/patients/patients_languages.csv
@@ -3188,7 +3260,6 @@ files:
3188
3260
  - db/seeds/default/transplants/transplant_registration_statuses.rb
3189
3261
  - db/seeds/seeds_helper.rb
3190
3262
  - db/static.obsolete/medication_routes.yml
3191
- - db/structure.sql
3192
3263
  - db/views/medication_current_prescriptions_v01.sql
3193
3264
  - db/views/pathology_current_key_observation_sets_v01.sql
3194
3265
  - db/views/pathology_current_key_observation_sets_v02.sql
@@ -3203,8 +3274,10 @@ files:
3203
3274
  - db/views/reporting_hd_overall_audit_v01.sql
3204
3275
  - db/views/reporting_hd_overall_audit_v02.sql
3205
3276
  - db/views/reporting_hd_overall_audit_v04.sql
3277
+ - db/views/reporting_hd_overall_audit_v05.sql
3206
3278
  - db/views/reporting_main_authors_audit_v01.sql
3207
3279
  - db/views/reporting_main_authors_audit_v02.sql
3280
+ - db/views/reporting_pd_audit_v01.sql
3208
3281
  - lib/age_calculator.rb
3209
3282
  - lib/array_stringifier.rb
3210
3283
  - lib/breadcrumb.rb
@@ -3223,6 +3296,7 @@ files:
3223
3296
  - lib/document/base.rb
3224
3297
  - lib/document/embedded.rb
3225
3298
  - lib/document/enum.rb
3299
+ - lib/dropdown_button_item.rb
3226
3300
  - lib/duration_calculator.rb
3227
3301
  - lib/git_commit_sha.rb
3228
3302
  - lib/hash_collection.rb
@@ -3239,6 +3313,7 @@ files:
3239
3313
  - lib/renalware/service_result.rb
3240
3314
  - lib/renalware/success.rb
3241
3315
  - lib/renalware/version.rb
3316
+ - lib/renalware/week_period.rb
3242
3317
  - lib/smart_delegator.rb
3243
3318
  - lib/sql/index_case_stmt.rb
3244
3319
  - lib/subscription_registry.rb
@@ -3257,6 +3332,7 @@ files:
3257
3332
  - spec/factories/accesses/profiles.rb
3258
3333
  - spec/factories/accesses/sites.rb
3259
3334
  - spec/factories/accesses/types.rb
3335
+ - spec/factories/admissions/consults.rb
3260
3336
  - spec/factories/admissions/request_reasons.rb
3261
3337
  - spec/factories/admissions/requests.rb
3262
3338
  - spec/factories/clinical/allergies.rb
@@ -3274,14 +3350,20 @@ files:
3274
3350
  - spec/factories/events/events.rb
3275
3351
  - spec/factories/events/events_types.rb
3276
3352
  - spec/factories/hd/cannulation_types.rb
3353
+ - spec/factories/hd/dialysates.rb
3277
3354
  - spec/factories/hd/dialysers.rb
3355
+ - spec/factories/hd/diaries.rb
3356
+ - spec/factories/hd/diurnal_period_codes.rb
3278
3357
  - spec/factories/hd/hd_session_document.rb
3279
3358
  - spec/factories/hd/modality_descriptions.rb
3280
3359
  - spec/factories/hd/patient_statistics.rb
3281
3360
  - spec/factories/hd/patients.rb
3282
3361
  - spec/factories/hd/preference_sets.rb
3283
3362
  - spec/factories/hd/profiles.rb
3363
+ - spec/factories/hd/schedule_definitions.rb
3284
3364
  - spec/factories/hd/sessions.rb
3365
+ - spec/factories/hd/slots.rb
3366
+ - spec/factories/hd/station_locations.rb
3285
3367
  - spec/factories/hd/stations.rb
3286
3368
  - spec/factories/hospitals/centres.rb
3287
3369
  - spec/factories/hospitals/units.rb
@@ -3355,6 +3437,8 @@ files:
3355
3437
  - spec/factories/renal/prd_description.rb
3356
3438
  - spec/factories/renal/profiles.rb
3357
3439
  - spec/factories/reporting/audits.rb
3440
+ - spec/factories/research/studies.rb
3441
+ - spec/factories/research/study_participants.rb
3358
3442
  - spec/factories/shared/accountable.rb
3359
3443
  - spec/factories/snippets/snippets.rb
3360
3444
  - spec/factories/snippets/users.rb
@@ -3380,7 +3464,7 @@ files:
3380
3464
  - spec/support/date_helpers.rb
3381
3465
  - spec/support/devise_spec_helper.rb
3382
3466
  - spec/support/drugs_spec_helper.rb
3383
- - spec/support/factory_girl.rb
3467
+ - spec/support/factory_bot.rb
3384
3468
  - spec/support/json_helpers.rb
3385
3469
  - spec/support/letters_spec_helper.rb
3386
3470
  - spec/support/login_macros.rb
@@ -3397,11 +3481,6 @@ files:
3397
3481
  - spec/support/translations.rb
3398
3482
  - spec/support/travel.rb
3399
3483
  - spec/support/webmock.rb
3400
- - vendor/assets/fonts/foundation-icons.eot
3401
- - vendor/assets/fonts/foundation-icons.scss
3402
- - vendor/assets/fonts/foundation-icons.svg
3403
- - vendor/assets/fonts/foundation-icons.ttf
3404
- - vendor/assets/fonts/foundation-icons.woff
3405
3484
  - vendor/assets/javascripts/renalware/iframeResizer.contentWindow.js
3406
3485
  - vendor/assets/javascripts/renalware/iframeResizer.js
3407
3486
  - vendor/assets/javascripts/renalware/jquery-readyselector.js