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
@@ -0,0 +1,32 @@
1
+ = content_for(:actions) do
2
+ = link_to("Add", new_research_study_path, class: :button)
3
+
4
+ = within_admin_layout(title: "Clinical Studies") do
5
+ table
6
+ thead
7
+ tr
8
+ th.col-width-date Started
9
+ th.col-width-date Terminated
10
+ th.col-width-small Code
11
+ th Description
12
+ th Leader
13
+ th Participants
14
+ th
15
+ tbody
16
+ - studies.each do |study|
17
+ tr
18
+ td= l(study.started_on)
19
+ td= l(study.terminated_on)
20
+ td= study.code
21
+ td= study.description
22
+ td= study.leader
23
+ td= study.participants.count
24
+ td.actions
25
+ = link_to "Delete",
26
+ research_study_path(study),
27
+ method: :delete,
28
+ data: { confirm: "Are you sure you want to delete this study?" }
29
+ = " | "
30
+ = link_to "Edit", edit_research_study_path(study)
31
+ = " | "
32
+ = link_to "View Participants", research_study_participants_path(study)
@@ -0,0 +1,5 @@
1
+ = within_admin_layout(title: "New",
2
+ breadcrumbs: breadcrumb_for("Clinical Studies",
3
+ research_studies_path)) do
4
+
5
+ = render "form", study: study
@@ -0,0 +1,19 @@
1
+ = content_for(:actions) do
2
+ = link_to("Add Participant", new_research_study_participant_path(study), class: :button)
3
+
4
+ = within_admin_layout(title: study.code,
5
+ breadcrumbs: breadcrumb_for("Clinical Studies",
6
+ research_studies_path)) do
7
+
8
+ p= study.description
9
+
10
+ table
11
+ thead
12
+ tr
13
+ th Patient
14
+ th
15
+ tbody
16
+ - study.participants.each do |participant|
17
+ tr
18
+ td= participant
19
+
@@ -0,0 +1,45 @@
1
+ ruby:
2
+ url = if participant.new_record?
3
+ research_study_participants_path(participant.study)
4
+ else
5
+ research_study_participant_path(participant.study, participant)
6
+ end
7
+ .modal
8
+ .modal__header
9
+ h2= participant.persisted? ? "Edit Patient" : "Add Patient"
10
+ = render "renalware/shared/modal_close_link"
11
+
12
+ .modal__body
13
+ = render "renalware/shared/errors", model: participant
14
+
15
+ = simple_form_for(participant,
16
+ url: url,
17
+ remote: true,
18
+ html: { autocomplete: "off"},
19
+ wrapper: :horizontal_form) do |f|
20
+ - if participant.persisted?
21
+ h5= participant.patient.to_s(:long)
22
+ - else
23
+ = f.input :participant_id,
24
+ collection: [],
25
+ input_html: {\
26
+ class: "patient-id-select2 patient-ajax-search",
27
+ data: { "ajax--url" => search_patients_path(format: :json),
28
+ placeholder: "Search by patient name or hospital/NHS no." }\
29
+ }
30
+
31
+ =f.input :joined_on, as: :date_picker
32
+ =f.input :left_on, as: :date_picker
33
+
34
+ = f.submit "Add", class: :button
35
+ span= " or "
36
+ =link_to "Cancel",
37
+ "#",
38
+ "aria-label" => "Close",
39
+ class: "reveal-modal-close"
40
+
41
+ .modal__footer
42
+
43
+ javascript:
44
+ $(document).ready(Renalware.Research.init);
45
+
@@ -0,0 +1,32 @@
1
+ .study-participants-table
2
+ table
3
+ thead
4
+ tr
5
+ th.col-width-date Joined on
6
+ th.col-width-date Left on
7
+ th Patient
8
+ th.col-width-nhs-no NHS Number
9
+ th.col-width-reference-no Hosp no
10
+ th.col-width-tiny Age
11
+ th Sex
12
+ th.col-width-small
13
+ tbody
14
+ - participants.each do |participant|
15
+ tr
16
+ td= l(participant.joined_on)
17
+ td= l(participant.left_on)
18
+ td= default_patient_link(participant.patient)
19
+ td= participant.patient.nhs_number
20
+ td= participant.patient.hospital_identifiers
21
+ td= participant.patient.age
22
+ td= participant.patient.sex
23
+ td
24
+ = link_to "Delete",
25
+ research_study_participant_path(study, participant),
26
+ method: :delete,
27
+ data: { confirm: "Are you sure?" }
28
+ = " | "
29
+ = link_to("Edit",
30
+ edit_research_study_participant_path(study, participant),
31
+ data: { "reveal-id" => "study-participant-modal", "reveal-ajax" => "true" })
32
+ = paginate participants
@@ -0,0 +1,3 @@
1
+ <%= refresh(".flash-message", partial: "renalware/shared/flash_messages", locals: local_assigns) %>
2
+ $(".study-participants-table").replaceWith("<%= j(render 'table', study: study, participants: participants) %>");
3
+ $("#study-participant-modal").foundation('reveal', 'close');
@@ -0,0 +1 @@
1
+ = render "form", participant: participant
@@ -0,0 +1,25 @@
1
+ = content_for(:actions) do
2
+ = link_to("Add",
3
+ new_research_study_participant_path,
4
+ id: "add-study-participants",
5
+ class: :button,
6
+ data: { "reveal-id" => "study-participant-modal", "reveal-ajax" => "true" })
7
+
8
+ = within_admin_layout(\
9
+ title: "Participants",
10
+ breadcrumbs: [\
11
+ breadcrumb_for("Clinical Studies", research_studies_path),
12
+ breadcrumb_for(study.code, edit_research_study_path(study))\
13
+ ]) do
14
+
15
+ - if study.description.present?
16
+ p.panel.radius.compact
17
+ = "Description: #{study.description}"
18
+ br
19
+ = "Started on: #{l(study.started_on)}"
20
+ br
21
+ = "Leader: #{study.leader}"
22
+
23
+ = render "table", study: study, participants: participants
24
+
25
+ #study-participant-modal.reveal-modal.small(data-reveal)
@@ -0,0 +1 @@
1
+ = render "form", participant: participant
@@ -0,0 +1,4 @@
1
+ // We render this view if there was a validation error submitting the foundation reveal modal.
2
+ // Replace the original content so that error messages are displayed.
3
+ var modal = $("#study-participant-modal")
4
+ $(modal).html("<%= j(render 'form', participant: participant) %>");
@@ -0,0 +1,3 @@
1
+ <%= refresh(".flash-message", partial: "renalware/shared/flash_messages", locals: local_assigns) %>
2
+ $(".study-participants-table").replaceWith("<%= j(render 'table', study: study, participants: participants) %>");
3
+ $("#study-participant-modal").foundation('reveal', 'close');
@@ -1 +1 @@
1
- = age.to_s
1
+ = age.to_s
@@ -1 +1 @@
1
- = blood_group.to_s
1
+ = blood_group.to_s
@@ -1 +1 @@
1
- = blood_pressure.to_s
1
+ = blood_pressure.to_s
@@ -1 +1 @@
1
- = dated_test.to_s
1
+ = dated_test.to_s
@@ -26,7 +26,6 @@
26
26
  li= link_to t(".add_operation"),
27
27
  new_patient_transplants_donor_operation_path(patient)
28
28
 
29
-
30
29
  = within_patient_layout(title: "Transplant Donor Summary") do
31
30
  - unless donations.empty?
32
31
  = render "renalware/transplants/donations/list",
@@ -19,4 +19,3 @@
19
19
  models: { donor_followup => [:followed_up, :last_seen_on, :ukt_center_code,
20
20
  :lost_to_followup, :transferred_for_followup,
21
21
  :dead_on, :notes] }
22
-
@@ -46,7 +46,6 @@ ruby:
46
46
  = fcm.input :nb_months_to_return_to_previous_general_activity_level,
47
47
  input_html: { class: "small-input" }
48
48
 
49
-
50
49
  .row
51
50
  .large-12.columns
52
51
  = f.submit "Save", class: "button"
@@ -31,5 +31,3 @@ article.status-history
31
31
  td
32
32
  - url = new_patient_transplants_donor_operation_followup_path(patient, operation)
33
33
  = link_to "Enter details", url
34
-
35
-
@@ -23,4 +23,3 @@ article.donor-statuses
23
23
  td= stage.stage_position.name
24
24
  td= stage.stage_status.name
25
25
  td.col-width-large-with-ellipsis.css-toggle-container= stage.notes
26
-
@@ -29,7 +29,6 @@ ruby:
29
29
  locals: { legend: "Virology/Bacteriology/Cytology",
30
30
  name: "infections" } do
31
31
 
32
-
33
32
  = fd.simple_fields_for :infections, fd.object.infections do |fcm|
34
33
  table.no-stripes.infections
35
34
  = render_input fcm, :hiv
@@ -9,15 +9,15 @@ ul.f-dropdown#tx-recip-options(data-dropdown-content aria-hidden="true")
9
9
 
10
10
  = dropdown_btn_item enabled: policy(recipient_workup).new?,
11
11
  title: t(".add_recipient_workup"),
12
- path: edit_patient_transplants_recipient_workup_path(patient)
12
+ url: edit_patient_transplants_recipient_workup_path(patient)
13
13
 
14
14
  = dropdown_btn_item enabled: policy(registration).new?,
15
15
  title: t(".add_waitlist_registration"),
16
- path: edit_patient_transplants_registration_path(patient)
16
+ url: edit_patient_transplants_registration_path(patient)
17
17
 
18
18
  = dropdown_btn_item enabled: patient.has_ever_been_a_recipient?,
19
19
  title: t(".add_recipient_operation"),
20
- path: new_patient_transplants_recipient_operation_path(patient)
20
+ url: new_patient_transplants_recipient_operation_path(patient)
21
21
 
22
22
  - unless patient.has_ever_been_a_recipient?
23
23
  = render "modality_missing_warning", message: t(".missing_modality_warning")
@@ -53,7 +53,6 @@ ruby:
53
53
  as: :text,
54
54
  input_html: { rows: 5 }
55
55
 
56
-
57
56
  .row
58
57
  .large-12.columns
59
58
  = f.submit "Save", class: "button"
@@ -68,7 +68,6 @@ ruby:
68
68
  = fcm.input :ukt_cause_of_death, wrapper: :horizontal_medium
69
69
  = fcm.input :ukt_cause_of_death_other, wrapper: :horizontal_large
70
70
 
71
-
72
71
  = render layout: "renalware/shared/fieldset",
73
72
  locals: { legend: "Donor Specific Antibodies", name: "donor_specific_antibodies" } do
74
73
  = fd.simple_fields_for :donor_specific_antibodies,
@@ -50,5 +50,3 @@ article
50
50
  td
51
51
  - url = new_patient_transplants_recipient_operation_followup_path(patient, operation)
52
52
  = link_to "Enter details", url
53
-
54
-
@@ -13,4 +13,3 @@ ruby:
13
13
  = render "renalware/shared/attributes_group",
14
14
  legend: "Operation", destination: "operation",
15
15
  models: models
16
-
@@ -9,5 +9,5 @@
9
9
  # Renalware::Engine.config.active_record.time_zone_aware_types = [:datetime]
10
10
  # Renalware::Engine.config.exceptions_app = Renalware::Engine.routes
11
11
  # Renalware::Engine.config.active_record.schema_format = :sql
12
- # Renalware::Engine.config.action_mailer.preview_path = Rails.root.join("app", "mailers", "previews")
12
+ # Renalware::Engine.config.action_mailer.preview_path =Rails.root.join("app", "mailers", "previews")
13
13
  # Renalware::Engine.config.active_job.queue_adapter = :delayed_job
@@ -1,5 +1,5 @@
1
1
  SHOULDA_NOISE = %w(shoulda).freeze
2
- FACTORY_GIRL_NOISE = %w(factory_girl).freeze
2
+ FACTORY_GIRL_NOISE = %w(factory_bot).freeze
3
3
  RENALWARE_NOISE = SHOULDA_NOISE + FACTORY_GIRL_NOISE
4
4
 
5
5
  Rails.backtrace_cleaner.add_silencer do |line|
@@ -3,5 +3,7 @@ module Renalware
3
3
  config.black_hole
4
4
  config.define_explicit_conversions
5
5
  config.singleton
6
+ # Note adding `predicates_return false` causes failures e.g. with I18n.l(<null>)
7
+ # config.predicates_return false
6
8
  end
7
9
  end
@@ -0,0 +1,29 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ renalware/admissions/consult:
5
+ decided_on: Decision date
6
+ transferred_on: Transfer date
7
+ started_on: Consult date
8
+ referred_on: Referal date
9
+ hospital_unit: Unit
10
+ hospital_ward: Ward
11
+ consult_type: Type
12
+ contact_number: Bleep/Ext
13
+ enumerize:
14
+ renalware/admissions/consult:
15
+ transfer_priority:
16
+ unknown: Unknown (default)
17
+ necessary: Necessary
18
+ desirable: Desirable
19
+ potential: Potential
20
+ unnecessary: Unnecessary
21
+ aki_risk:
22
+ "yes": "Yes"
23
+ "no": "No"
24
+ unknown: Unknown
25
+ renalware:
26
+ admissions:
27
+ consults:
28
+ table:
29
+ delete_consult_warning_msg: "Mark this consult as done and remove it from the list?"
@@ -17,6 +17,7 @@ en:
17
17
  none: There are no patients bookmarked.
18
18
  table:
19
19
  patient_name: Name
20
+ nhs_number: NHS Number
20
21
  hospital_number: Hosp No
21
22
  born_on: DOB
22
23
  age: Age
@@ -0,0 +1,13 @@
1
+ en:
2
+ renalware:
3
+ hd:
4
+ diary_slot:
5
+
6
+ activerecord:
7
+ errors:
8
+ models:
9
+ renalware/hd/diary_slot:
10
+ patient_id:
11
+ taken: has already been assigned to a station in this day and period
12
+ diurnal_period_code_id:
13
+ taken: There is already a patient in this slot
@@ -3,7 +3,7 @@ en:
3
3
  hd:
4
4
  mdm_patients:
5
5
  patient:
6
- view: "View"
6
+ view: "MDM"
7
7
  table:
8
8
  page_title: HD MDM patients
9
9
  name: Name
@@ -18,7 +18,6 @@ en:
18
18
  access_plan: Access Plan
19
19
  access_plan_date: Plan Date
20
20
  registration_status: Tx Status
21
- has_transport: Transport?
22
21
  transport_type: Transport
23
22
  dialysing_at: Dialysing at
24
23
  esrf: ESRF
@@ -4,16 +4,6 @@ en:
4
4
  renalware/hd/preference_set:
5
5
  schedule: Schedule
6
6
  other_schedule: Other Schedule
7
- enumerize:
8
- renalware/hd/preference_set:
9
- schedule:
10
- mon_wed_fri_am: "Mon, Wed, Fri AM"
11
- mon_wed_fri_pm: "Mon, Wed, Fri PM"
12
- mon_wed_fri_eve: "Mon, Wed, Fri Evening"
13
- tue_thu_sat_am: "Tue, Thu, Sat AM"
14
- tue_thu_sat_pm: "Tue, Thu, Sat PM"
15
- tue_thu_sat_eve: "Tue, Thu, Sat Evening"
16
- other: "Other (specify)"
17
7
  renalware:
18
8
  hd:
19
9
  preference_sets:
@@ -13,6 +13,7 @@ en:
13
13
  hospital_centre: Hospital Centre
14
14
  created_at: Started
15
15
  deactivated_at: Stopped
16
+ dialysate: Dialysis Solution
16
17
  activemodel:
17
18
  attributes:
18
19
  renalware/hd/profile_document/dialysis:
@@ -20,7 +21,6 @@ en:
20
21
  cannulation_type: Cannulation Type
21
22
  needle_size: Needle Size
22
23
  single_needle: Single Needle?
23
- dialysate: Dialysis Solution
24
24
  flow_rate: Solution Flow Rate
25
25
  blood_flow: Blood Flow
26
26
  has_sodium_profiling: Has Sodium Profiling?
@@ -44,24 +44,12 @@ en:
44
44
  level: Level
45
45
  enumerize:
46
46
  renalware/hd/profile:
47
- schedule:
48
- mon_wed_fri_am: "Mon, Wed, Fri AM"
49
- mon_wed_fri_pm: "Mon, Wed, Fri PM"
50
- mon_wed_fri_eve: "Mon, Wed, Fri Evening"
51
- tue_thu_sat_am: "Tue, Thu, Sat AM"
52
- tue_thu_sat_pm: "Tue, Thu, Sat PM"
53
- tue_thu_sat_eve: "Tue, Thu, Sat Evening"
54
- other: "Other (specify)"
47
+
55
48
  renalware/hd/profile_document/dialysis:
56
49
  hd_type:
57
50
  hd: HD
58
51
  hdf_pre: HDF-PRE
59
52
  hdf_post: HDF-POST
60
- dialysate:
61
- a7: Fresenius A7
62
- a10: Fresenius A10
63
- a17: Fresenius A17
64
- a27: Fresenius A27
65
53
 
66
54
  renalware/hd/profile_document/transport:
67
55
  type: