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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/renalware/application.js.erb +2 -0
- data/app/assets/javascripts/renalware/dialogs.js.erb +17 -1
- data/app/assets/javascripts/renalware/patient_ajax_search.js +48 -0
- data/app/assets/javascripts/renalware/research.js +18 -0
- data/app/assets/stylesheets/renalware/application.scss +1 -0
- data/app/assets/stylesheets/renalware/base/_variables.scss +13 -0
- data/app/assets/stylesheets/renalware/hd_diary_pdf.scss +57 -0
- data/app/assets/stylesheets/renalware/lib/_foundation_and_overrides.scss +18 -0
- data/app/assets/stylesheets/renalware/modules/_admissions.scss +26 -0
- data/app/assets/stylesheets/renalware/modules/_hd.scss +203 -0
- data/app/assets/stylesheets/renalware/modules/_renal.scss +30 -0
- data/app/assets/stylesheets/renalware/partials/_animation.scss +8 -0
- data/app/assets/stylesheets/renalware/partials/_layout.scss +11 -0
- data/app/assets/stylesheets/renalware/partials/_tables.scss +12 -2
- data/app/assets/stylesheets/renalware/partials/_tabs.scss +45 -0
- data/app/controllers/renalware/admin/users_controller.rb +5 -4
- data/app/controllers/renalware/admissions/consults_controller.rb +88 -0
- data/app/controllers/renalware/clinical/body_compositions_controller.rb +1 -1
- data/app/controllers/renalware/concerns/pageable.rb +1 -1
- data/app/controllers/renalware/hd/current_profile_controller.rb +1 -1
- data/app/controllers/renalware/hd/diaries_controller.rb +87 -0
- data/app/controllers/renalware/hd/diary_slots_controller.rb +172 -0
- data/app/controllers/renalware/hd/patients_controller.rb +43 -0
- data/app/controllers/renalware/hd/preference_sets_controller.rb +4 -1
- data/app/controllers/renalware/hd/sessions_controller.rb +1 -1
- data/app/controllers/renalware/hd/stations_controller.rb +1 -1
- data/app/controllers/renalware/hospitals/units_controller.rb +1 -2
- data/app/controllers/renalware/hospitals/wards_controller.rb +18 -0
- data/app/controllers/renalware/renal/registry_preflight_checks_controller.rb +44 -0
- data/app/controllers/renalware/reporting/audits_controller.rb +4 -8
- data/app/controllers/renalware/research/studies_controller.rb +70 -0
- data/app/controllers/renalware/research/study_participants_controller.rb +85 -0
- data/app/documents/renalware/hd/profile_document.rb +0 -1
- data/app/documents/renalware/hd/session_document.rb +0 -1
- data/app/helpers/renalware/application_helper.rb +5 -1
- data/app/helpers/renalware/dropdown_button_helper.rb +4 -4
- data/app/helpers/renalware/form_helper.rb +8 -0
- data/app/inputs/select_container_input.rb +15 -0
- data/app/models/concerns/renalware/accountable.rb +5 -0
- data/app/models/concerns/renalware/patients_ransack_helper.rb +6 -6
- data/app/models/renalware/admissions/consult.rb +25 -0
- data/app/models/renalware/admissions/consult_query.rb +21 -0
- data/app/models/renalware/clinical/modality_description.rb +1 -0
- data/app/models/renalware/hd/archive_yesterdays_slots_job.rb +68 -0
- data/app/models/renalware/hd/dialysate.rb +16 -0
- data/app/models/renalware/hd/diary.rb +39 -0
- data/app/models/renalware/hd/diary_slot.rb +80 -0
- data/app/models/renalware/hd/diurnal_period_code.rb +5 -0
- data/app/models/renalware/hd/find_or_create_diary_by_week_query.rb +48 -0
- data/app/models/renalware/hd/find_or_create_master_diary.rb +24 -0
- data/app/models/renalware/hd/master_diary.rb +31 -0
- data/app/models/renalware/hd/patient_listener.rb +1 -1
- data/app/models/renalware/hd/patients_dialysing_by_day_and_period_query.rb +39 -0
- data/app/models/renalware/hd/patients_dialysing_by_day_query.rb +32 -0
- data/app/models/renalware/hd/patients_dialysing_by_schedule_query.rb +26 -0
- data/app/models/renalware/hd/patients_with_unmet_preferences_query.rb +2 -2
- data/app/models/renalware/hd/preference_set.rb +2 -2
- data/app/models/renalware/hd/profile.rb +3 -1
- data/app/models/renalware/hd/schedule_definition.rb +44 -0
- data/app/models/renalware/hd/session.rb +1 -0
- data/app/models/renalware/hd/session/closed.rb +3 -2
- data/app/models/renalware/hd/session_factory.rb +2 -2
- data/app/models/renalware/hd/station.rb +1 -10
- data/app/models/renalware/hd/station_location.rb +10 -0
- data/app/models/renalware/hd/weekly_diary.rb +43 -0
- data/app/models/renalware/hospitals/unit.rb +0 -1
- data/app/models/renalware/medications/prescriptions_by_drug_type_query.rb +1 -0
- data/app/models/renalware/messaging.rb +2 -0
- data/app/models/renalware/messaging/patient.rb +2 -2
- data/app/models/renalware/patient.rb +25 -23
- data/app/models/renalware/patients/search_query.rb +7 -3
- data/app/models/renalware/patients/summary.rb +1 -0
- data/app/models/renalware/pd/revise_regime.rb +3 -1
- data/app/models/renalware/renal/patient.rb +3 -0
- data/app/models/renalware/renal/registry/preflight_checks/deaths_query.rb +41 -0
- data/app/models/renalware/renal/registry/preflight_checks/patients_query.rb +65 -0
- data/app/models/renalware/reporting/{generate_audit_json.rb → fetch_audit_json.rb} +10 -9
- data/app/models/renalware/research.rb +7 -0
- data/app/models/renalware/research/study.rb +19 -0
- data/app/models/renalware/research/study_participant.rb +30 -0
- data/app/policies/renalware/admissions/consult_policy.rb +8 -0
- data/app/policies/renalware/hd/diary_policy.rb +6 -0
- data/app/policies/renalware/renal/registry_preflight_check_policy.rb +15 -0
- data/app/policies/renalware/research/study_participant_policy.rb +8 -0
- data/app/policies/renalware/research/study_policy.rb +8 -0
- data/app/presenters/false_class_presenter.rb +2 -0
- data/app/presenters/renalware/admissions/consult_presenter.rb +28 -0
- data/app/presenters/renalware/hd/diary_presenter.rb +77 -0
- data/app/presenters/renalware/hd/diary_slot_presenter.rb +69 -0
- data/app/presenters/renalware/hd/null_slot.rb +38 -0
- data/app/presenters/renalware/hd/patient_presenter.rb +2 -3
- data/app/presenters/renalware/hd/profile_presenter.rb +12 -10
- data/app/presenters/renalware/hd/station_presenter.rb +5 -0
- data/app/presenters/renalware/hd/unmet_preferences_presenter.rb +1 -1
- data/app/presenters/renalware/pathology/observation_presenter.rb +1 -1
- data/app/presenters/renalware/patient_presenter.rb +2 -2
- data/app/presenters/renalware/ukrdc/pathology_observation_presenter.rb +16 -0
- data/app/presenters/renalware/ukrdc/patient_presenter.rb +6 -1
- data/app/presenters/true_class_presenter.rb +2 -0
- data/app/views/renalware/accesses/plans/new.html.slim +0 -1
- data/app/views/renalware/accesses/procedures/_form.html.slim +1 -1
- data/app/views/renalware/accesses/profiles/_form.html.slim +0 -1
- data/app/views/renalware/addresses/_form.html.slim +0 -2
- data/app/views/renalware/admin/users/edit.html.slim +0 -1
- data/app/views/renalware/admin/users/index.html.slim +3 -1
- data/app/views/renalware/admissions/consults/_filters.html.slim +23 -0
- data/app/views/renalware/admissions/consults/_form.html.slim +93 -0
- data/app/views/renalware/admissions/consults/_table.html.slim +61 -0
- data/app/views/renalware/admissions/consults/edit.html.slim +6 -0
- data/app/views/renalware/admissions/consults/index.html.slim +12 -0
- data/app/views/renalware/admissions/consults/new.html.slim +6 -0
- data/app/views/renalware/admissions/requests/_create_request_link.html.slim +2 -1
- data/app/views/renalware/admissions/requests/_request.html.slim +4 -4
- data/app/views/renalware/api/ukrdc/patients/_lab_orders.xml.builder +6 -4
- data/app/views/renalware/api/ukrdc/patients/_name.xml.builder +1 -1
- data/app/views/renalware/api/ukrdc/patients/_sending_facility.xml.builder +1 -1
- data/app/views/renalware/api/ukrdc/patients/encounters/_hd_session.xml.builder +3 -3
- data/app/views/renalware/api/ukrdc/patients/lab_orders/_lab_order.xml.builder +4 -4
- data/app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder +7 -5
- data/app/views/renalware/clinical/allergies/_new.html.slim +0 -1
- data/app/views/renalware/clinical/body_compositions/_form.html.slim +0 -1
- data/app/views/renalware/clinical/dry_weights/new.html.slim +0 -1
- data/app/views/renalware/clinical/profiles/show.html.slim +0 -1
- data/app/views/renalware/clinics/appointments/index.html.slim +4 -2
- data/app/views/renalware/clinics/visits/_filters.html.slim +0 -1
- data/app/views/renalware/clinics/visits/_table.html.slim +0 -1
- data/app/views/renalware/dashboard/bookmarks/_bookmark.html.slim +9 -6
- data/app/views/renalware/dashboard/bookmarks/_table.html.slim +2 -1
- data/app/views/renalware/deaths/index.html.slim +6 -8
- data/app/views/renalware/devise/registrations/new.html.slim +0 -1
- data/app/views/renalware/directory/people/_form.html.slim +0 -1
- data/app/views/renalware/events/events/_event.html.slim +3 -1
- data/app/views/renalware/events/events/_filters.html.slim +0 -1
- data/app/views/renalware/events/events/_form.html.slim +4 -4
- data/app/views/renalware/events/events/simple/_event.html.slim +3 -1
- data/app/views/renalware/hd/cannulation_types/edit.html.slim +1 -1
- data/app/views/renalware/hd/cannulation_types/new.html.slim +1 -1
- data/app/views/renalware/hd/current_profile/_form.html.slim +4 -3
- data/app/views/renalware/hd/dashboards/_page_actions.html.slim +6 -6
- data/app/views/renalware/hd/dialysers/_form.html.slim +0 -1
- data/app/views/renalware/hd/diaries/_page_actions.html.slim +23 -0
- data/app/views/renalware/hd/diaries/_table.html.slim +12 -0
- data/app/views/renalware/hd/diaries/_weekly_diary.html.slim +10 -0
- data/app/views/renalware/hd/diaries/edit.html.slim +58 -0
- data/app/views/renalware/hd/diaries/index.html.slim +9 -0
- data/app/views/renalware/hd/diaries/show.pdf.slim +32 -0
- data/app/views/renalware/hd/diary_slots/_form.html.slim +111 -0
- data/app/views/renalware/hd/diary_slots/_slot.html.slim +21 -0
- data/app/views/renalware/hd/diary_slots/_tab.html.slim +27 -0
- data/app/views/renalware/hd/diary_slots/create.js.erb +11 -0
- data/app/views/renalware/hd/diary_slots/destroy.js.erb +11 -0
- data/app/views/renalware/hd/diary_slots/edit.html.slim +26 -0
- data/app/views/renalware/hd/diary_slots/new.html.slim +12 -0
- data/app/views/renalware/hd/diary_slots/new.js.erb +6 -0
- data/app/views/renalware/hd/diary_slots/show.js.erb +5 -0
- data/app/views/renalware/hd/diary_slots/update.js.erb +11 -0
- data/app/views/renalware/hd/historical_profiles/_summary.html.slim +0 -1
- data/app/views/renalware/hd/mdm_patients/_filters.html.slim +2 -2
- data/app/views/renalware/hd/mdm_patients/_patient.html.slim +3 -4
- data/app/views/renalware/hd/mdm_patients/_table.html.slim +4 -6
- data/app/views/renalware/hd/preference_sets/_form.html.slim +5 -4
- data/app/views/renalware/hd/preference_sets/_summary.html.slim +1 -1
- data/app/views/renalware/hd/sessions/_form.html.slim +1 -2
- data/app/views/renalware/hd/sessions/_show.html.slim +2 -1
- data/app/views/renalware/hd/sessions/dna/_row.html.slim +0 -1
- data/app/views/renalware/hd/stations/_form.html.slim +3 -1
- data/app/views/renalware/hd/stations/_station.html.slim +1 -1
- data/app/views/renalware/hd/stations/index.html.slim +0 -1
- data/app/views/renalware/hd/unmet_preferences/_filters.html.slim +2 -2
- data/app/views/renalware/hd/unmet_preferences/_table.html.slim +2 -2
- data/app/views/renalware/hospitals/units/_form.html.slim +0 -1
- data/app/views/renalware/hospitals/units/index.html.slim +16 -13
- data/app/views/renalware/letters/contacts/index.js.erb +0 -1
- data/app/views/renalware/letters/electronic_receipts/_table.html.slim +10 -6
- data/app/views/renalware/letters/electronic_receipts/sent.html.slim +9 -4
- data/app/views/renalware/letters/formatted_letters/_letter.html.slim +0 -3
- data/app/views/renalware/letters/letters/_actions.html.slim +0 -1
- data/app/views/renalware/letters/letters/_form.html.slim +1 -1
- data/app/views/renalware/letters/letters/_main_recipient.html.slim +0 -1
- data/app/views/renalware/letters/letters/_preview.html.slim +0 -1
- data/app/views/renalware/mdm/_top_navigation.html.slim +0 -1
- data/app/views/renalware/mdm_patients/_patient.html.slim +2 -2
- data/app/views/renalware/mdm_patients/_table.html.slim +1 -1
- data/app/views/renalware/medications/prescriptions/index.pdf.slim +0 -2
- data/app/views/renalware/messaging/internal/messages/_form.html.slim +1 -1
- data/app/views/renalware/messaging/internal/receipts/_receipt.html.slim +7 -9
- data/app/views/renalware/messaging/internal/receipts/_sent_receipt.html.slim +5 -2
- data/app/views/renalware/messaging/internal/receipts/_sent_table.html.slim +1 -0
- data/app/views/renalware/messaging/internal/receipts/_table.html.slim +3 -3
- data/app/views/renalware/messaging/internal/receipts/sent.html.slim +0 -1
- data/app/views/renalware/modalities/reasons/index.html.slim +0 -1
- data/app/views/renalware/navigation/_mdms.html.slim +0 -1
- data/app/views/renalware/navigation/_patients_admin.html.slim +6 -10
- data/app/views/renalware/navigation/_renal.html.slim +3 -0
- data/app/views/renalware/navigation/_sign_out.html.slim +0 -1
- data/app/views/renalware/pathology/requests/requests/create.pdf.slim +0 -1
- data/app/views/renalware/pathology/requests/requests/request_form/_manual_form_patient.html.slim +0 -1
- data/app/views/renalware/patients/_mini_profile.html.slim +0 -1
- data/app/views/renalware/patients/_search_form.html.slim +1 -1
- data/app/views/renalware/patients/alerts/_form.html.slim +1 -1
- data/app/views/renalware/patients/bookmarks/_delete.html.slim +3 -4
- data/app/views/renalware/patients/clinical_summaries/_problems.html.slim +0 -1
- data/app/views/renalware/patients/clinical_summaries/show.html.slim +0 -1
- data/app/views/renalware/patients/patients/_form.html.slim +3 -2
- data/app/views/renalware/patients/patients/_patient.html.slim +1 -5
- data/app/views/renalware/patients/patients/_table.html.slim +1 -2
- data/app/views/renalware/patients/patients/show/_hospital_numbers.html.slim +0 -1
- data/app/views/renalware/patients/patients/show/_patient_demographics.html.slim +0 -2
- data/app/views/renalware/patients/primary_care_physician/_form.html.slim +2 -1
- data/app/views/renalware/patients/primary_care_physician/edit.html.slim +3 -5
- data/app/views/renalware/patients/primary_care_physicians/edit.html.slim +1 -1
- data/app/views/renalware/patients/primary_care_physicians/new.html.slim +1 -1
- data/app/views/renalware/patients/worryboard/_table.html.slim +2 -2
- data/app/views/renalware/patients/worryboard/_worry.html.slim +2 -5
- data/app/views/renalware/pd/_apd_regimes.html.slim +0 -1
- data/app/views/renalware/pd/_capd_regimes.html.slim +0 -1
- data/app/views/renalware/pd/_exit_site_infections.html.slim +0 -1
- data/app/views/renalware/pd/_peritonitis_episodes.html.slim +0 -1
- data/app/views/renalware/pd/_pet_adequacies.html.slim +0 -1
- data/app/views/renalware/pd/assessments/show.html.slim +13 -13
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +7 -7
- data/app/views/renalware/pd/regimes/show.html.slim +0 -1
- data/app/views/renalware/problems/notes/form.js.erb +0 -1
- data/app/views/renalware/problems/problems/_current_list.html.slim +0 -1
- data/app/views/renalware/renal/aki_alerts/edit.html.slim +2 -3
- data/app/views/renalware/renal/profiles/_form.html.slim +2 -6
- data/app/views/renalware/renal/profiles/edit.html.slim +9 -0
- data/app/views/renalware/renal/registry_preflight_checks/_navigation.html.slim +3 -0
- data/app/views/renalware/renal/registry_preflight_checks/_table.html.slim +20 -0
- data/app/views/renalware/renal/registry_preflight_checks/deaths.html.slim +4 -0
- data/app/views/renalware/renal/registry_preflight_checks/patients.html.slim +4 -0
- data/app/views/renalware/reporting/audits/show.html.slim +3 -5
- data/app/views/renalware/research/studies/_form.html.slim +9 -0
- data/app/views/renalware/research/studies/edit.html.slim +5 -0
- data/app/views/renalware/research/studies/index.html.slim +32 -0
- data/app/views/renalware/research/studies/new.html.slim +5 -0
- data/app/views/renalware/research/studies/show.html.slim +19 -0
- data/app/views/renalware/research/study_participants/_form.html.slim +45 -0
- data/app/views/renalware/research/study_participants/_table.html.slim +32 -0
- data/app/views/renalware/research/study_participants/create.js.erb +3 -0
- data/app/views/renalware/research/study_participants/edit.html.slim +1 -0
- data/app/views/renalware/research/study_participants/index.html.slim +25 -0
- data/app/views/renalware/research/study_participants/new.html.slim +1 -0
- data/app/views/renalware/research/study_participants/new.js.erb +4 -0
- data/app/views/renalware/research/study_participants/update.js.erb +3 -0
- data/app/views/renalware/shared/documents/_age.html.slim +1 -1
- data/app/views/renalware/shared/documents/_blood_group.html.slim +1 -1
- data/app/views/renalware/shared/documents/_blood_pressure.html.slim +1 -1
- data/app/views/renalware/shared/documents/_dated_test.html.slim +1 -1
- data/app/views/renalware/transplants/donor_dashboards/show.html.slim +0 -1
- data/app/views/renalware/transplants/donor_followups/show.html.slim +0 -1
- data/app/views/renalware/transplants/donor_operations/_form.html.slim +0 -1
- data/app/views/renalware/transplants/donor_operations/_list.html.slim +0 -2
- data/app/views/renalware/transplants/donor_stages/_list.html.slim +0 -1
- data/app/views/renalware/transplants/donor_workups/_form.html.slim +0 -1
- data/app/views/renalware/transplants/recipient_dashboards/_page_actions.html.slim +3 -3
- data/app/views/renalware/transplants/recipient_followups/_form.html.slim +0 -1
- data/app/views/renalware/transplants/recipient_operations/_form.html.slim +0 -1
- data/app/views/renalware/transplants/recipient_operations/_list.html.slim +0 -2
- data/app/views/renalware/transplants/recipient_operations/_operation.html.slim +0 -1
- data/config/initializers/application_controller_renderer.rb +1 -1
- data/config/initializers/backtrace_silencers.rb +1 -1
- data/config/initializers/null_object.rb +2 -0
- data/config/locales/renalware/admissions/consults.en.yml +29 -0
- data/config/locales/renalware/dashboard/dashboard.yml +1 -0
- data/config/locales/renalware/hd/diary_slots.en.yml +13 -0
- data/config/locales/renalware/hd/mdm_patients.yml +1 -2
- data/config/locales/renalware/hd/preference_set.yml +0 -10
- data/config/locales/renalware/hd/profile.yml +2 -14
- data/config/locales/renalware/hd/session.en.yml +1 -7
- data/config/locales/renalware/hospitals/unit.yml +0 -1
- data/config/locales/renalware/mdm.yml +1 -1
- data/config/locales/renalware/messaging/internal/messages.en.yml +1 -0
- data/config/locales/renalware/navigation/renal.en.yml +2 -0
- data/config/locales/renalware/renal/registry.en.yml +12 -0
- data/config/locales/renalware/research/study_participant.en.yml +11 -0
- data/config/routes.rb +31 -1
- data/db/migrate/20170831082043_create_hd_diaries.rb +57 -0
- data/db/migrate/20170831084331_create_hd_diary_slots.rb +36 -0
- data/db/migrate/20170831142819_enable_crosstab_extension.rb +9 -0
- data/db/migrate/20170915090544_create_hd_station_locations.rb +12 -0
- data/db/migrate/20170915115228_add_schedule_diurnal_period_id_to_hd_profiles.rb +52 -0
- data/db/migrate/20170916121019_remove_number_of_hd_stations_from_hospital_units.rb +5 -0
- data/db/migrate/20170917185426_add_indexes_to_diary_slots.rb +19 -0
- data/db/migrate/20171004092235_create_hd_dialysates.rb +13 -0
- data/db/migrate/20171004110909_add_dialysate_id_to_profile_and_session.rb +9 -0
- data/db/migrate/20171012110133_create_research_studies.rb +22 -0
- data/db/migrate/20171012143050_create_research_study_participants.rb +30 -0
- data/db/migrate/20171013145849_set_patients_secure_id.rb +17 -0
- data/db/migrate/20171016152223_add_index_to_diary_slots.rb +17 -0
- data/db/migrate/20171017132738_add_unique_indexes_to_local_patient_ids.rb +13 -0
- data/db/migrate/20171017171625_update_hd_overall_audit_view.rb +8 -0
- data/db/migrate/20171101121130_create_function_to_render_audit_view_as_json.rb +38 -0
- data/db/migrate/20171101162244_create_consults.rb +24 -0
- data/db/migrate/20171106100216_create_pd_audit_view.rb +5 -0
- data/db/seeds/default/hd/{hd_cannulation_types.csv → cannulation_types.csv} +0 -0
- data/db/seeds/default/hd/cannulation_types.rb +1 -1
- data/db/seeds/default/hd/{hd_dialysers.csv → dialysers.csv} +0 -0
- data/db/seeds/default/hd/dialysers.rb +1 -1
- data/db/seeds/default/hd/seeds.rb +0 -1
- data/db/seeds/default/modalities/descriptions.rb +0 -13
- data/db/seeds/default/pathology/seeds.rb +0 -3
- data/db/seeds/default/reporting/audits.yml +265 -49
- data/db/views/reporting_anaemia_audit_v01.sql +1 -1
- data/db/views/reporting_hd_overall_audit_v05.sql +13 -0
- data/db/views/reporting_pd_audit_v01.sql +26 -0
- data/lib/dropdown_button_item.rb +51 -0
- data/lib/renalware/configuration.rb +1 -0
- data/lib/renalware/engine.rb +1 -0
- data/lib/renalware/version.rb +1 -1
- data/lib/renalware/week_period.rb +58 -0
- data/spec/factories/accesses/patients.rb +1 -1
- data/spec/factories/accesses/plans.rb +1 -1
- data/spec/factories/accesses/plans_types.rb +1 -1
- data/spec/factories/accesses/procedures.rb +1 -1
- data/spec/factories/accesses/profiles.rb +1 -1
- data/spec/factories/accesses/sites.rb +1 -1
- data/spec/factories/accesses/types.rb +1 -1
- data/spec/factories/admissions/consults.rb +7 -0
- data/spec/factories/admissions/request_reasons.rb +1 -1
- data/spec/factories/admissions/requests.rb +1 -1
- data/spec/factories/clinical/allergies.rb +1 -1
- data/spec/factories/clinical/body_compositions.rb +1 -1
- data/spec/factories/clinical/dry_weights.rb +1 -1
- data/spec/factories/clinical/patients.rb +1 -1
- data/spec/factories/clinics/appointments.rb +1 -1
- data/spec/factories/clinics/clinic_visits.rb +1 -1
- data/spec/factories/clinics/clinics.rb +1 -1
- data/spec/factories/deaths/cause.rb +1 -1
- data/spec/factories/deaths/modality_descriptions.rb +2 -2
- data/spec/factories/directory/people.rb +1 -1
- data/spec/factories/drugs/drug.rb +1 -1
- data/spec/factories/drugs/drug_types.rb +1 -1
- data/spec/factories/events/events.rb +1 -1
- data/spec/factories/events/events_types.rb +1 -1
- data/spec/factories/hd/cannulation_types.rb +1 -1
- data/spec/factories/hd/dialysates.rb +10 -0
- data/spec/factories/hd/dialysers.rb +1 -1
- data/spec/factories/hd/diaries.rb +12 -0
- data/spec/factories/hd/diurnal_period_codes.rb +18 -0
- data/spec/factories/hd/hd_session_document.rb +3 -4
- data/spec/factories/hd/modality_descriptions.rb +1 -1
- data/spec/factories/hd/patient_statistics.rb +1 -1
- data/spec/factories/hd/patients.rb +1 -1
- data/spec/factories/hd/preference_sets.rb +2 -2
- data/spec/factories/hd/profiles.rb +2 -1
- data/spec/factories/hd/schedule_definitions.rb +20 -0
- data/spec/factories/hd/sessions.rb +2 -1
- data/spec/factories/hd/slots.rb +7 -0
- data/spec/factories/hd/station_locations.rb +6 -0
- data/spec/factories/hd/stations.rb +1 -1
- data/spec/factories/hospitals/centres.rb +1 -1
- data/spec/factories/hospitals/units.rb +1 -3
- data/spec/factories/hospitals/wards.rb +1 -1
- data/spec/factories/letters/archives.rb +1 -1
- data/spec/factories/letters/contact_descriptions.rb +1 -1
- data/spec/factories/letters/contacts.rb +1 -1
- data/spec/factories/letters/descriptions.rb +1 -1
- data/spec/factories/letters/electronic_receipts.rb +1 -1
- data/spec/factories/letters/letterheads.rb +1 -1
- data/spec/factories/letters/letters.rb +1 -1
- data/spec/factories/letters/patients.rb +1 -1
- data/spec/factories/letters/primary_care_physicians.rb +1 -1
- data/spec/factories/letters/recipients.rb +1 -1
- data/spec/factories/medications/medication_route.rb +1 -1
- data/spec/factories/medications/prescription.rb +1 -1
- data/spec/factories/medications/prescription_terminations.rb +1 -1
- data/spec/factories/medications/prescription_version.rb +1 -1
- data/spec/factories/messaging/internal/authors.rb +1 -1
- data/spec/factories/messaging/internal/messages.rb +1 -1
- data/spec/factories/messaging/internal/receipts.rb +1 -1
- data/spec/factories/messaging/internal/recipients.rb +1 -1
- data/spec/factories/messaging/patients.rb +1 -1
- data/spec/factories/modalities/modalities.rb +1 -1
- data/spec/factories/modalities/modality_descriptions.rb +1 -1
- data/spec/factories/modalities/modality_reasons.rb +1 -1
- data/spec/factories/pathology/consultant.rb +1 -1
- data/spec/factories/pathology/lab.rb +1 -1
- data/spec/factories/pathology/measurement_units.rb +1 -1
- data/spec/factories/pathology/observation_descriptions.rb +1 -1
- data/spec/factories/pathology/observation_requests.rb +1 -1
- data/spec/factories/pathology/observations.rb +1 -1
- data/spec/factories/pathology/patients.rb +1 -1
- data/spec/factories/pathology/request_descriptions.rb +1 -1
- data/spec/factories/pathology/requests/drug_category.rb +1 -1
- data/spec/factories/pathology/requests/global_rule.rb +1 -1
- data/spec/factories/pathology/requests/global_rule_set.rb +1 -1
- data/spec/factories/pathology/requests/patient_rule.rb +1 -1
- data/spec/factories/pathology/requests/request.rb +1 -1
- data/spec/factories/patients/alerts.rb +1 -1
- data/spec/factories/patients/bookmarks.rb +1 -1
- data/spec/factories/patients/ethnicities.rb +1 -1
- data/spec/factories/patients/languages.rb +1 -1
- data/spec/factories/patients/patients.rb +2 -2
- data/spec/factories/patients/practices.rb +2 -2
- data/spec/factories/patients/primary_care_physicians.rb +2 -2
- data/spec/factories/patients/religions.rb +1 -1
- data/spec/factories/patients/users.rb +1 -1
- data/spec/factories/pd/assessments.rb +1 -1
- data/spec/factories/pd/bag_types.rb +1 -1
- data/spec/factories/pd/episode_types.rb +1 -1
- data/spec/factories/pd/exit_site_infections.rb +1 -1
- data/spec/factories/pd/fluid_descriptions.rb +1 -1
- data/spec/factories/pd/infection_organisms.rb +1 -1
- data/spec/factories/pd/modality_descriptions.rb +1 -1
- data/spec/factories/pd/organism_codes.rb +1 -1
- data/spec/factories/pd/patients.rb +1 -1
- data/spec/factories/pd/pd_regimes.rb +1 -1
- data/spec/factories/pd/peritonitis_episode_type_descriptions.rb +1 -1
- data/spec/factories/pd/peritonitis_episodes.rb +1 -1
- data/spec/factories/pd/pet_adequacies.rb +1 -1
- data/spec/factories/pd/regime_bags.rb +1 -1
- data/spec/factories/pd/systems.rb +1 -1
- data/spec/factories/pd/training_sessions.rb +1 -1
- data/spec/factories/pd/training_sites.rb +1 -1
- data/spec/factories/pd/training_types.rb +1 -1
- data/spec/factories/problems/problems.rb +1 -1
- data/spec/factories/renal/aki_alert_actions.rb +1 -1
- data/spec/factories/renal/aki_alerts.rb +1 -1
- data/spec/factories/renal/patients.rb +1 -1
- data/spec/factories/renal/prd_description.rb +1 -1
- data/spec/factories/renal/profiles.rb +17 -1
- data/spec/factories/reporting/audits.rb +1 -1
- data/spec/factories/research/studies.rb +11 -0
- data/spec/factories/research/study_participants.rb +7 -0
- data/spec/factories/shared/accountable.rb +2 -2
- data/spec/factories/snippets/snippets.rb +1 -1
- data/spec/factories/snippets/users.rb +1 -1
- data/spec/factories/system/addresses.rb +1 -1
- data/spec/factories/system/countries.rb +1 -1
- data/spec/factories/system/roles.rb +1 -1
- data/spec/factories/system/templates.rb +1 -1
- data/spec/factories/system/users.rb +1 -1
- data/spec/factories/transplants/donations.rb +1 -1
- data/spec/factories/transplants/donor_stage.rb +1 -1
- data/spec/factories/transplants/donor_stage_position.rb +1 -1
- data/spec/factories/transplants/donor_stage_status.rb +1 -1
- data/spec/factories/transplants/live_donor_modality_description.rb +1 -1
- data/spec/factories/transplants/modality_descriptions.rb +1 -1
- data/spec/factories/transplants/patients.rb +1 -1
- data/spec/factories/transplants/recipient_followups.rb +1 -1
- data/spec/factories/transplants/recipient_operations.rb +1 -1
- data/spec/factories/transplants/registration_status_descriptions.rb +1 -1
- data/spec/factories/transplants/registration_statuses.rb +1 -1
- data/spec/factories/transplants/registrations.rb +1 -1
- data/spec/support/{factory_girl.rb → factory_bot.rb} +3 -3
- metadata +130 -51
- data/app/models/concerns/renalware/hd/has_schedule.rb +0 -24
- data/app/views/renalware/clinical/body_compositions/_navigation.html.slim +0 -0
- data/app/views/renalware/clinical/dry_weights/_navigation.html.slim +0 -0
- data/app/views/renalware/clinical/profiles/_navigation.html.slim +0 -0
- data/app/views/renalware/dashboard/dashboards/_navigation.html.slim +0 -0
- data/app/views/renalware/devise/registrations/_navigation.html.slim +0 -0
- data/app/views/renalware/hd/sessions/_sections_nav.html.slim +0 -0
- data/app/views/renalware/letters/letters/_navigation.html.slim +0 -4
- data/app/views/renalware/patients/primary_care_physician/_navigation.html.slim +0 -0
- data/app/views/renalware/pd/peritonitis_episodes/_navigation.html.slim +0 -7
- data/db/seeds/default/hd/diurnal_period_codes.csv +0 -4
- data/db/seeds/default/hd/diurnal_period_codes.rb +0 -13
- data/db/seeds/default/pathology/pathology_labs.csv +0 -9
- data/db/seeds/default/pathology/pathology_labs.rb +0 -12
- data/db/seeds/default/pathology/pathology_observation_descriptions.csv +0 -1741
- data/db/seeds/default/pathology/pathology_observation_descriptions.rb +0 -16
- data/db/seeds/default/pathology/pathology_request_descriptions.csv +0 -196
- data/db/seeds/default/pathology/pathology_request_descriptions.rb +0 -27
- data/db/structure.sql +0 -9775
- data/vendor/assets/fonts/foundation-icons.eot +0 -0
- data/vendor/assets/fonts/foundation-icons.scss +0 -594
- data/vendor/assets/fonts/foundation-icons.svg +0 -970
- data/vendor/assets/fonts/foundation-icons.ttf +0 -0
- data/vendor/assets/fonts/foundation-icons.woff +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
= content_for(:actions) do
|
2
|
+
= render "page_actions", unit: unit
|
3
|
+
li.warning-block
|
4
|
+
i.fa.fa-info
|
5
|
+
span To create a new diary, view the most recent one and choose 'Next Week'
|
6
|
+
|
7
|
+
= within_admin_layout(title: "HD Unit Diaries") do
|
8
|
+
= render "table", diaries: diaries
|
9
|
+
= paginate diaries
|
@@ -0,0 +1,32 @@
|
|
1
|
+
- content_for(:head) do
|
2
|
+
= wicked_pdf_stylesheet_link_tag "renalware/hd_diary_pdf"
|
3
|
+
|
4
|
+
.hd-diary-pdf
|
5
|
+
h3= unit&.name
|
6
|
+
h2= "HD Diary #{diary}"
|
7
|
+
.diary
|
8
|
+
.diary__grid
|
9
|
+
- diary.each_diurnal_period do |diurnal_period|
|
10
|
+
- day_columns_width_pct = (100 - 20) / diary.day_names.count
|
11
|
+
table.diary__period*{ "data-period-code" => diurnal_period.code }
|
12
|
+
thead
|
13
|
+
tr
|
14
|
+
th(colspan=8)
|
15
|
+
h3= diurnal_period.code.upcase
|
16
|
+
tr
|
17
|
+
th.col-width-medium(style="width: 20%") Station
|
18
|
+
- diary.day_names.each do |day|
|
19
|
+
th.col-width-small(style="width: #{day_columns_width_pct}%")= day.capitalize
|
20
|
+
|
21
|
+
tbody
|
22
|
+
- diary.each_station do |station, index|
|
23
|
+
tr
|
24
|
+
th= "#{index}. #{station.name}"
|
25
|
+
|
26
|
+
- diary.each_day(diurnal_period, station) do |slot, _day_of_week|
|
27
|
+
- with_format(:html) do
|
28
|
+
td
|
29
|
+
- if slot.patient.present?
|
30
|
+
= slot.patient.family_name
|
31
|
+
br
|
32
|
+
= slot.patient.given_name
|
@@ -0,0 +1,111 @@
|
|
1
|
+
= render "renalware/shared/errors", model: slot
|
2
|
+
|
3
|
+
= simple_form_for(slot,
|
4
|
+
url: hd_diary_slots_path(slot.diary.id),
|
5
|
+
html: { id: "slot-form", autocomplete: "off" },
|
6
|
+
remote: true,
|
7
|
+
method: :post,
|
8
|
+
wrapper: :horizontal_form) do |f|
|
9
|
+
|
10
|
+
=f.input :station_id, as: :hidden
|
11
|
+
=f.input :diurnal_period_code_id, as: :hidden
|
12
|
+
=f.input :day_of_week, as: :hidden
|
13
|
+
|
14
|
+
.row
|
15
|
+
.col-small-4
|
16
|
+
= f.input :change_type,
|
17
|
+
input_html: { id: :change_type },
|
18
|
+
collection: slot.patient_search_options,
|
19
|
+
include_blank: false,
|
20
|
+
label: "Search"
|
21
|
+
.col-small-8
|
22
|
+
|
23
|
+
/ We will post 3 patient_id values in hd_diary_slot[patient_id][]
|
24
|
+
/ The value selected in in change_type above will determine which one to choose.
|
25
|
+
#patient_select2s
|
26
|
+
#dialysing_on_day_and_period
|
27
|
+
=f.input :patient_id,
|
28
|
+
collection: slot.patients_preferring_to_dialyse_today_in_this_period,
|
29
|
+
label_method: :text,
|
30
|
+
value_method: :id,
|
31
|
+
input_html: { class: "searchable_select patient-id-select2",
|
32
|
+
id: "patient_id1",
|
33
|
+
name: "hd_diary_slot[patient_id][]" }
|
34
|
+
|
35
|
+
#dialysing_on_day(style="display:none")
|
36
|
+
=f.input :patient_id,
|
37
|
+
collection: slot.patients_preferring_to_dialyse_today,
|
38
|
+
label_method: :text,
|
39
|
+
value_method: :id,
|
40
|
+
input_html: { class: "searchable_select patient-id-select2",
|
41
|
+
id: "patient_id2",
|
42
|
+
name: "hd_diary_slot[patient_id][]" }
|
43
|
+
#dialysing_at_unit(style="display:none")
|
44
|
+
= f.input :patient_id,
|
45
|
+
collection: [],
|
46
|
+
input_html: {\
|
47
|
+
class: "patient-id-select2 patient-ajax-search",
|
48
|
+
name: "hd_diary_slot[patient_id][]",
|
49
|
+
data: { "ajax--url" => hd_patients_dialysing_at_unit_path(unit_id: slot.diary.hospital_unit_id, format: :json),
|
50
|
+
placeholder: "Type 3 or more characters" }\
|
51
|
+
}
|
52
|
+
|
53
|
+
#dialysing_at_hospital(style="display:none")
|
54
|
+
= f.input :patient_id,
|
55
|
+
collection: [],
|
56
|
+
input_html: {\
|
57
|
+
class: "patient-id-select2 patient-ajax-search",
|
58
|
+
name: "hd_diary_slot[patient_id][]",
|
59
|
+
data: { "ajax--url" => hd_patients_dialysing_at_hospital_path(format: :json),
|
60
|
+
placeholder: "Type 3 or more characters" }\
|
61
|
+
}
|
62
|
+
=f.submit "Add for this week only", class: "button save weekly"
|
63
|
+
|
|
64
|
+
=f.submit "Add to this and all future weeks", class: "button secondary master", name: "master"
|
65
|
+
|
66
|
+
= blank_separator
|
67
|
+
=link_to "Cancel",
|
68
|
+
"#",
|
69
|
+
"aria-label" => "Close",
|
70
|
+
class: "reveal-modal-close"
|
71
|
+
|
72
|
+
javascript:
|
73
|
+
$(document).ready(function() {
|
74
|
+
|
75
|
+
// 1. add handler for button if master set action
|
76
|
+
$('input.master[type=submit]').click(function (e) {
|
77
|
+
var master_slots_url = $(".diary").data("master-diary-slots-path");
|
78
|
+
$("#slot-form").attr('action', master_slots_url);
|
79
|
+
});
|
80
|
+
|
81
|
+
$('input.weekly[type=submit]').click(function (e) {
|
82
|
+
var weekly_slots_url = $(".diary").data("weekly-diary-slots-path");
|
83
|
+
$("#slot-form").attr('action', weekly_slots_url);
|
84
|
+
});
|
85
|
+
|
86
|
+
refreshSelect2s("#{slot.change_type}");
|
87
|
+
|
88
|
+
function resizeSelect2ToFitModalWidth(container) {
|
89
|
+
$('.select2', container).css('width', "100%");
|
90
|
+
$('#tabs').on('tabsactivate', function(event, ui) {
|
91
|
+
$('.select2').css('width', "100%");
|
92
|
+
});
|
93
|
+
}
|
94
|
+
|
95
|
+
function refreshSelect2s(change_type) {
|
96
|
+
if (change_type == '') return;
|
97
|
+
// Hide any showing patient select2's then display just the one corresponding to
|
98
|
+
// what was selected in change_type. The value in the change_type option
|
99
|
+
// will exist as an html id, wrapping the patient select2s
|
100
|
+
var container = $("#patient_select2s")
|
101
|
+
$("#patient_select2s > div").hide();
|
102
|
+
$("#patient_select2s > #" + change_type).show();
|
103
|
+
$("#patient_select2s .patient-id-select2").val("").trigger('change');
|
104
|
+
resizeSelect2ToFitModalWidth(container);
|
105
|
+
}
|
106
|
+
|
107
|
+
$("#change_type").on("change", function() {
|
108
|
+
change_type = $(this).val(); // e.g. "dialysing_at_unit"
|
109
|
+
refreshSelect2s(change_type);
|
110
|
+
})
|
111
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
td*{ "data-slot-id" => slot.id.present? && slot.id,
|
2
|
+
"data-cell-id" => slot.cell_id,
|
3
|
+
"data-master" => slot.master?,
|
4
|
+
"data-weekly" => slot.id.present? && !slot.master?,
|
5
|
+
"data-patient-id" => slot.patient_id.present? && slot.patient_id,
|
6
|
+
"style" => defined?(animate) && animate && "animation: highlight 1.5s" }
|
7
|
+
|
8
|
+
- if slot.patient.present?
|
9
|
+
= link_to slot.patient.to_s,
|
10
|
+
edit_hd_diary_slot_path(diary_id: slot.diary_id, id: slot.id),
|
11
|
+
class: "button diary__button diary__target",
|
12
|
+
title: slot.patient,
|
13
|
+
data: { "reveal-id" => "add-patient-to-diary-modal",
|
14
|
+
"reveal-ajax" => "true" }
|
15
|
+
- else
|
16
|
+
= link_to "Add",
|
17
|
+
new_hd_diary_slot_path(diary_id: slot.diary_id,
|
18
|
+
station_id: slot.station_id,
|
19
|
+
diurnal_period_code_id: slot.diurnal_period_code_id,
|
20
|
+
day_of_week: slot.day_of_week),
|
21
|
+
data: { "reveal-id" => "add-patient-to-diary-modal", "reveal-ajax" => "true" }
|
@@ -0,0 +1,27 @@
|
|
1
|
+
- form_id = SecureRandom.hex(16)
|
2
|
+
= simple_form_for(slot,
|
3
|
+
html: { id: form_id },
|
4
|
+
url: hd_diary_slot_path(weekly_diary.id, slot),
|
5
|
+
remote: true,
|
6
|
+
wrapper: :horizontal_form) do |f|
|
7
|
+
|
8
|
+
-if scheduled_only
|
9
|
+
=f.input :patient_id,
|
10
|
+
collection: patients,
|
11
|
+
label_method: ->(item){ item.to_s(:long) },
|
12
|
+
value_method: :id,
|
13
|
+
input_html: { class: "searchable_select" }
|
14
|
+
- else
|
15
|
+
= f.input :patient_id,
|
16
|
+
collection: [],
|
17
|
+
input_html: { \
|
18
|
+
id: "patient-ajax-search",
|
19
|
+
data: { "ajax--url" => search_patients_path(format: :json) }\
|
20
|
+
}
|
21
|
+
|
22
|
+
=f.submit "Select", class: :button
|
23
|
+
= blank_separator
|
24
|
+
=link_to "Cancel",
|
25
|
+
"#",
|
26
|
+
"aria-label" => "Close",
|
27
|
+
class: "reveal-modal-close"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% slot_path = hd_diary_refresh_slot_path(
|
2
|
+
diary_id: "weekly_diary_id",
|
3
|
+
day_of_week: slot.day_of_week,
|
4
|
+
diurnal_period_code_id: slot.diurnal_period_code_id,
|
5
|
+
station_id: slot.station_id,
|
6
|
+
format: :js)
|
7
|
+
%>
|
8
|
+
|
9
|
+
// Only JS knows the weekly diary id by looking at the html
|
10
|
+
var weekly_diary_id = $(".diary").data("weekly-diary-id")
|
11
|
+
$.getScript('<%= slot_path %>'.replace('weekly_diary_id', weekly_diary_id));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% slot_path = hd_diary_refresh_slot_path(
|
2
|
+
diary_id: "weekly_diary_id",
|
3
|
+
day_of_week: slot.day_of_week,
|
4
|
+
diurnal_period_code_id: slot.diurnal_period_code_id,
|
5
|
+
station_id: slot.station_id,
|
6
|
+
format: :js)
|
7
|
+
%>
|
8
|
+
|
9
|
+
// Only JS knows the weekly diary id by looking at the html
|
10
|
+
var weekly_diary_id = $(".diary").data("weekly-diary-id")
|
11
|
+
$.getScript('<%= slot_path %>'.replace('weekly_diary_id', weekly_diary_id));
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.modal
|
2
|
+
.modal__header
|
3
|
+
h2= slot.patient
|
4
|
+
= render "renalware/shared/modal_close_link"
|
5
|
+
|
6
|
+
.modal__body
|
7
|
+
= render "renalware/shared/errors", model: slot
|
8
|
+
|
9
|
+
p.which-diary= slot.description
|
10
|
+
|
11
|
+
/- unless slot.diary.master?
|
12
|
+
= link_to "Remove them",
|
13
|
+
hd_diary_slot_path(slot.diary, slot),
|
14
|
+
method: :delete,
|
15
|
+
remote: true,
|
16
|
+
class: "button alert"
|
17
|
+
|
18
|
+
/ - destroy_btn_title = slot.diary.master ? "Remove" : "Remove and revert to master diary"
|
19
|
+
/ = link_to destroy_btn_title,
|
20
|
+
/ hd_diary_slot_path(slot.diary, slot),
|
21
|
+
/ method: :delete,
|
22
|
+
/ remote: true,
|
23
|
+
/ class: "button alert"
|
24
|
+
|
25
|
+
h2 Replace with another patient
|
26
|
+
= render "form", slot: slot
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/ Invoked by Foundation Reveal from an Add Patient to Diary link
|
2
|
+
/ which is marked up as using data-reveal-ajax=true and links to this action
|
3
|
+
/ - and a format of html (would otherwise default to js)
|
4
|
+
/ We render the modal content html here and foundation will display the modal itself.
|
5
|
+
|
6
|
+
.modal
|
7
|
+
.modal__header
|
8
|
+
h2 Add patient
|
9
|
+
= render "renalware/shared/modal_close_link"
|
10
|
+
|
11
|
+
.modal__body
|
12
|
+
= render "form", slot: slot
|
@@ -0,0 +1,6 @@
|
|
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 = $("#add-patient-to-diary-modal .modal__body")
|
4
|
+
$(modal).html("<%= j(render 'form', slot: slot) %>");
|
5
|
+
$('.searchable_select', modal).select2();
|
6
|
+
Renalware.PatientSearch.init();
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% slot_path = hd_diary_refresh_slot_path(
|
2
|
+
diary_id: "weekly_diary_id",
|
3
|
+
day_of_week: slot.day_of_week,
|
4
|
+
diurnal_period_code_id: slot.diurnal_period_code_id,
|
5
|
+
station_id: slot.station_id,
|
6
|
+
format: :js)
|
7
|
+
%>
|
8
|
+
|
9
|
+
// Only JS knows the weekly diary id by looking at the html
|
10
|
+
var weekly_diary_id = $(".diary").data("weekly-diary-id")
|
11
|
+
$.getScript('<%= slot_path %>'.replace('weekly_diary_id', weekly_diary_id));
|
@@ -12,8 +12,8 @@
|
|
12
12
|
label: t(".hospital_unit")
|
13
13
|
|
14
14
|
.medium-4.columns
|
15
|
-
= f.input :
|
16
|
-
collection: Renalware::HD::
|
15
|
+
= f.input :hd_profile_schedule_definition_id_eq,
|
16
|
+
collection: Renalware::HD::ScheduleDefinition.ordered,
|
17
17
|
include_blank: true,
|
18
18
|
label: t(".schedule")
|
19
19
|
|
@@ -4,8 +4,7 @@
|
|
4
4
|
- transplant_patient = Renalware::Transplants::PatientPresenter.new(patient)
|
5
5
|
|
6
6
|
tr
|
7
|
-
td= link_to
|
8
|
-
td.full-name= patient
|
7
|
+
td.full-name= link_to patient, view_proc.call(patient)
|
9
8
|
td.nowrap= patient.nhs_number
|
10
9
|
td.nowrap= patient.hospital_identifier
|
11
10
|
td= patient.sex.code
|
@@ -16,7 +15,7 @@ tr
|
|
16
15
|
td= l(access_patient.access_plan_created_at.to_date)
|
17
16
|
td= patient.dialysing_at_unit
|
18
17
|
td= transplant_patient.current_registration_status
|
19
|
-
td= patient.
|
20
|
-
td= patient.transport_type&.text
|
18
|
+
td= patient.transport_summary
|
21
19
|
td= pathology_patient.hgb_result
|
22
20
|
td= l(pathology_patient.hgb_observed_at&.to_date)
|
21
|
+
td.actions= link_to t(".view"), view_proc.call(patient)
|
@@ -1,23 +1,21 @@
|
|
1
1
|
table#patients.mdm-patients.columns
|
2
2
|
thead
|
3
3
|
tr
|
4
|
-
th.col-width-tiny
|
5
4
|
th.col-width-large= sort_link([:renalware, presenter.q], :family_name, t(".name"))
|
6
5
|
th.col-width-nhs-no= t(".nhs_no")
|
7
6
|
th.col-width-reference-no= t(".hosp_no")
|
8
7
|
th.col-width-tiny= t(".sex")
|
9
8
|
th.col-width-tiny= t(".age")
|
10
|
-
th.col-width-
|
11
|
-
th.col-width-
|
9
|
+
th.col-width-medium= t(".access")
|
10
|
+
th.col-width-date= t(".access_started_on")
|
12
11
|
th.col-width-small= t(".access_plan")
|
13
12
|
th.col-width-date= t(".access_plan_date")
|
14
13
|
th.col-width-date= t(".dialysing_at")
|
15
14
|
th.col-width-date= t(".registration_status")
|
16
|
-
th.col-width-
|
17
|
-
th.col-width-tiny= t(".transport_type")
|
15
|
+
th.at-least.col-width-small= t(".transport_type")
|
18
16
|
th.col-width-tiny= t(".hgb")
|
19
17
|
th.col-width-date= t(".hgb_date")
|
20
|
-
|
18
|
+
th.col-width-tiny
|
21
19
|
tbody
|
22
20
|
- presenter.patients.each do |patient|
|
23
21
|
= render "patient",
|
@@ -3,10 +3,11 @@ ruby:
|
|
3
3
|
|
4
4
|
.form-content
|
5
5
|
= render layout: "renalware/shared/fieldset",
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
locals: { legend: "Preferences", name: "preferences" } do
|
7
|
+
|
8
|
+
= f.input :schedule_definition_id,
|
9
|
+
collection: Renalware::HD::ScheduleDefinition.ordered,
|
10
|
+
wrapper: :horizontal_small
|
10
11
|
= f.input :other_schedule,
|
11
12
|
input_html: { class: "small-input" }
|
12
13
|
= f.association :hospital_unit,
|
@@ -5,6 +5,6 @@ article
|
|
5
5
|
li= link_to "Edit", edit_patient_hd_preference_set_path(patient), class: "button"
|
6
6
|
|
7
7
|
= definition_list_for(preference_set) do |list|
|
8
|
-
= list.definition(:
|
8
|
+
= list.definition(:schedule_definition)
|
9
9
|
= list.definition(:hospital_centre)
|
10
10
|
= list.definition(:hospital_unit)
|
@@ -26,7 +26,6 @@ ruby:
|
|
26
26
|
collection: Renalware::User.ordered,
|
27
27
|
wrapper: :horizontal_medium
|
28
28
|
|
29
|
-
|
30
29
|
= render layout: "renalware/shared/fieldset",
|
31
30
|
locals: { legend: "Sign-Off", name: "signoff" } do
|
32
31
|
|
@@ -53,7 +52,7 @@ ruby:
|
|
53
52
|
= fcm.input :single_needle, as: :inline_radio_buttons, wrapper: :horizontal_medium
|
54
53
|
= fcm.input :lines_reversed, as: :inline_radio_buttons, wrapper: :horizontal_medium
|
55
54
|
= fcm.input :machine_no, wrapper: :horizontal_tiny
|
56
|
-
=
|
55
|
+
= f.association :dialysate, wrapper: :horizontal_small
|
57
56
|
|
58
57
|
= render layout: "renalware/shared/fieldset",
|
59
58
|
locals: { legend: "Pre-Dialysis Observations", name: "before" } do
|
@@ -4,7 +4,9 @@
|
|
4
4
|
wrapper: :horizontal_form do |f|
|
5
5
|
|
6
6
|
= f.input :name, wrapper: :horizontal_medium
|
7
|
-
= f.input :
|
7
|
+
= f.input :location_id,
|
8
|
+
collection: Renalware::HD::StationLocation.pluck(:name, :id),
|
9
|
+
wrapper: :horizontal_medium
|
8
10
|
|
9
11
|
= f.submit "Save", class: "button"
|
10
12
|
span= " or "
|