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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf4b98d36f58e9d6071e47579e93f74fbbd1962a
|
4
|
+
data.tar.gz: 20ccf3340f010e6597b6e9aca874df12e11dbd69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90ee43421f7c568b881fef3de10bdd3b8d43c7e065a09d839040362643cdd35622476cdda5ec4af6f8f1f915d51e0baa2bd77e9fa45786d7f6ff8841bfbb452
|
7
|
+
data.tar.gz: 7e4ab6d0cd7c007b266a0c4d1bae0eae2076b238a8bd8692f113abd66710157ee128013b7d373ae74b281d9f84e231185312ee48e890649720784ddbb964ed58
|
data/README.md
CHANGED
@@ -103,7 +103,8 @@ They all share the password `renalware`
|
|
103
103
|
|
104
104
|
## Running tests
|
105
105
|
|
106
|
-
Install PhantomJS if you don't have it already (check with `phantomjs -v`)
|
106
|
+
Install PhantomJS if you don't have it already (check with `phantomjs -v`).
|
107
|
+
Download from [here](http://phantomjs.org/download.html) of follow these instructions
|
107
108
|
|
108
109
|
wget -O /tmp/phantomjs.tar.bz2 http://airslie-public.s3.amazonaws.com/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
109
110
|
tar -xjf /tmp/phantomjs.tar.bz2 -C /tmp
|
@@ -17,6 +17,7 @@
|
|
17
17
|
//= require jquery-ui/core
|
18
18
|
//= require jquery-ui/widgets/autocomplete
|
19
19
|
//= require jquery-ui/widgets/sortable
|
20
|
+
//= require jquery-ui/widgets/tabs
|
20
21
|
//= require jquery-ui/effects/effect-highlight
|
21
22
|
//= require dataTables/jquery.dataTables
|
22
23
|
//= require dataTables/jquery.dataTables.foundation
|
@@ -54,3 +55,4 @@ window.console = window.console || { log: function() {} };
|
|
54
55
|
<% if Rails.env.test? %>
|
55
56
|
$.fx.off = true;
|
56
57
|
<% end %>
|
58
|
+
|
@@ -19,10 +19,26 @@ $(document).on('opened.fndtn.reveal', '[data-reveal]', function () {
|
|
19
19
|
$('.searchable_select', modal).select2();
|
20
20
|
// If a modal is launched again, ensure the submit button is re-enabled.
|
21
21
|
$.rails.enableFormElement($('input[data-disable-with]'));
|
22
|
+
// Refresh layout of foundation widgets
|
23
|
+
$(document).foundation('reflow');
|
24
|
+
|
25
|
+
var resizeSelect2DropDownsToFitModal = function(){
|
26
|
+
$('.select2', modal).css('width', "100%");
|
27
|
+
$('#tabs').on('tabsactivate', function(event, ui) {
|
28
|
+
$('.select2').css('width', "100%");
|
29
|
+
});
|
30
|
+
};
|
31
|
+
|
32
|
+
var layoutTabs = function() {
|
33
|
+
// Layout any JQueryUI tabs
|
34
|
+
$("#tabs").tabs();
|
35
|
+
resizeSelect2DropDownsToFitModal();
|
36
|
+
};
|
37
|
+
|
38
|
+
layoutTabs();
|
22
39
|
});
|
23
40
|
|
24
41
|
// If there was an error submitting a modal form, be sure to re-enable the submit button
|
25
42
|
$(document).on('ajaxError', function(event, xhr, status, error) {
|
26
43
|
$.rails.enableFormElement($('input[data-disable-with]'));
|
27
44
|
});
|
28
|
-
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// Generic select2 ajax search for patients.
|
2
|
+
// Example usage
|
3
|
+
// select#patient-ajax-search("data-ajax--url" => search_patients_path(format: :json))
|
4
|
+
//
|
5
|
+
|
6
|
+
var Renalware = typeof Renalware === 'undefined' ? {} : Renalware;
|
7
|
+
|
8
|
+
Renalware.PatientSearch = (function() {
|
9
|
+
|
10
|
+
var initPatientSearch = function(){
|
11
|
+
var dropDown = $(".patient-ajax-search");
|
12
|
+
|
13
|
+
$(dropDown).select2({
|
14
|
+
language: {
|
15
|
+
inputTooShort: function(args) {
|
16
|
+
return $(dropDown).data("hint");
|
17
|
+
}
|
18
|
+
},
|
19
|
+
ajax: {
|
20
|
+
dataType: 'json',
|
21
|
+
delay: 250,
|
22
|
+
data: function (params) {
|
23
|
+
return {
|
24
|
+
term: params.term
|
25
|
+
};
|
26
|
+
},
|
27
|
+
processResults: function (data, params) {
|
28
|
+
return {
|
29
|
+
results: data
|
30
|
+
};
|
31
|
+
},
|
32
|
+
cache: true
|
33
|
+
},
|
34
|
+
minimumInputLength: 3
|
35
|
+
});
|
36
|
+
};
|
37
|
+
|
38
|
+
return {
|
39
|
+
init: function () {
|
40
|
+
initPatientSearch()
|
41
|
+
}
|
42
|
+
};
|
43
|
+
})();
|
44
|
+
|
45
|
+
$(document).ready(Renalware.PatientSearch.init);
|
46
|
+
$(document).on('opened.fndtn.reveal', '[data-reveal]', function() {
|
47
|
+
Renalware.PatientSearch.init();
|
48
|
+
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
var Renalware = typeof Renalware === 'undefined' ? {} : Renalware;
|
2
|
+
|
3
|
+
Renalware.Research = (function() {
|
4
|
+
var focusPatientInput = function() {
|
5
|
+
$('.patient-ajax-search').select2('open');
|
6
|
+
$('select2-patient-ajax-search-container .select2-search__field').focus();
|
7
|
+
};
|
8
|
+
|
9
|
+
return {
|
10
|
+
init: function () {
|
11
|
+
initDatepickersIn(".modal");
|
12
|
+
Renalware.PatientSearch.init();
|
13
|
+
focusPatientInput();
|
14
|
+
}
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
|
18
|
+
$(document).on('opened.fndtn.reveal', '#study-participant-modal', Renalware.Research.init);
|
@@ -52,6 +52,7 @@ $light-grey: #DDD;
|
|
52
52
|
$mid-grey: #999;
|
53
53
|
$very-light-grey: #f5f5f5;
|
54
54
|
$error-background: $off-white;
|
55
|
+
$almost-white: rgb(252, 252, 252);
|
55
56
|
|
56
57
|
// Drug type colours
|
57
58
|
$drug-type-default-colour: none;
|
@@ -73,6 +74,13 @@ $letter-state-pending-review: $nhs-orange;
|
|
73
74
|
$letter-state-approved: $nhs-green;
|
74
75
|
$letter-state-completed: $nhs-dark-green;
|
75
76
|
|
77
|
+
// Renal reg missing data labels
|
78
|
+
$renal-reg-missing-data-default: $dark-grey;
|
79
|
+
$renal-reg-missing-data-comorbidities-at-esrf: $nhs-aqua-blue;
|
80
|
+
$renal-reg-missing-data-prd: $nhs-orange;
|
81
|
+
$renal-reg-missing-data-first-seen-on: $nhs-green;
|
82
|
+
$renal-reg-missing-data-ethnicity: $nhs-dark-green;
|
83
|
+
|
76
84
|
// Admission Request priority but can be used elsewhere
|
77
85
|
$priority-urgent: $nhs-dark-red;
|
78
86
|
$priority-high: $nhs-red;
|
@@ -108,6 +116,11 @@ $disabled-colour: #CCC;
|
|
108
116
|
$patient-menu-icon-color: $gainsboro;
|
109
117
|
$patient-menu-icon-hover-color: $white;
|
110
118
|
|
119
|
+
// HD Diaries
|
120
|
+
$hd-weekly-diary-colour: #ffedd4;
|
121
|
+
$hd-weekly-diary-hover-colour: lighten($hd-weekly-diary-colour, 25);
|
122
|
+
|
123
|
+
|
111
124
|
//
|
112
125
|
// Lists
|
113
126
|
//
|
@@ -0,0 +1,57 @@
|
|
1
|
+
html,
|
2
|
+
body {
|
3
|
+
font-size: 10px;
|
4
|
+
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
5
|
+
}
|
6
|
+
|
7
|
+
h1 {
|
8
|
+
font-size: 2rem;
|
9
|
+
}
|
10
|
+
|
11
|
+
.page-break {
|
12
|
+
display:block;
|
13
|
+
clear:both;
|
14
|
+
page-break-after:always;
|
15
|
+
}
|
16
|
+
|
17
|
+
.noprint {
|
18
|
+
display: none !important;
|
19
|
+
min-width: 0em !important;
|
20
|
+
}
|
21
|
+
|
22
|
+
.hd-diary-pdf {
|
23
|
+
table {
|
24
|
+
width: 100%;
|
25
|
+
border-spacing: 0;
|
26
|
+
border-collapse:collapse;
|
27
|
+
margin-bottom: 5px;
|
28
|
+
|
29
|
+
tr {
|
30
|
+
page-break-inside: avoid;
|
31
|
+
}
|
32
|
+
|
33
|
+
th,
|
34
|
+
td {
|
35
|
+
border: solid 1px #666;
|
36
|
+
}
|
37
|
+
|
38
|
+
tbody {
|
39
|
+
th {
|
40
|
+
// Station heading
|
41
|
+
text-align: left;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
thead {
|
47
|
+
background-color: #eee;
|
48
|
+
// No border on the diurnal period row eg AM, PM etc
|
49
|
+
tr:first-child {
|
50
|
+
th {
|
51
|
+
border: 0;
|
52
|
+
background-color: #fff;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -86,6 +86,24 @@ $column-gutter: rem-calc(20);
|
|
86
86
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
87
87
|
|
88
88
|
// We use these to define default font stacks
|
89
|
+
// Currently using the system font stack as used by wordpress/medium/github/ with the caveat that
|
90
|
+
// the system mac font chars are too wide and we'd have to tweak the css a little, so for now have
|
91
|
+
// promoted "Helvetica Neue" to the top of the list. Windows will still get "Segoe UI", which works
|
92
|
+
// OK for character width.
|
93
|
+
// iPads? Need to check.
|
94
|
+
// Still a question over whether to use a webfont like Roboto or OpenSans so there is visual
|
95
|
+
// consistency across devices.
|
96
|
+
$font-family-sans-serif: "Helvetica Neue",
|
97
|
+
-apple-system,
|
98
|
+
BlinkMacSystemFont,
|
99
|
+
"Segoe UI",
|
100
|
+
Roboto,
|
101
|
+
Oxygen,
|
102
|
+
Ubuntu,
|
103
|
+
Cantarell,
|
104
|
+
"Open Sans",
|
105
|
+
sans-serif;
|
106
|
+
|
89
107
|
// $font-family-sans-serif: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
90
108
|
// $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;
|
91
109
|
// $font-family-monospace: Consolas, "Liberation Mono", Courier, monospace;
|
@@ -37,3 +37,29 @@
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
}
|
40
|
+
|
41
|
+
.admissions-consults-table {
|
42
|
+
tbody tr td:last-child {
|
43
|
+
padding-top: 0.3rem;
|
44
|
+
padding-bottom: 0.3rem;
|
45
|
+
padding-right: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
td {
|
49
|
+
.button.dropdown {
|
50
|
+
padding: .2rem 2.3rem .2rem .4rem;
|
51
|
+
margin: 0;
|
52
|
+
}
|
53
|
+
.f-dropdown {
|
54
|
+
margin-left: -110px;
|
55
|
+
|
56
|
+
&.open::before,
|
57
|
+
&.open::after {
|
58
|
+
left: 160px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
.button-group {
|
62
|
+
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -1,3 +1,206 @@
|
|
1
|
+
|
2
|
+
.hd-unit-diaries {
|
3
|
+
.current-week {
|
4
|
+
background-color: $table-toggled-content-colour;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
|
8
|
+
.which-diary {
|
9
|
+
color: $aluminum;
|
10
|
+
margin: 0 0 0.5rem;
|
11
|
+
padding: 0;
|
12
|
+
|
13
|
+
.master {
|
14
|
+
}
|
15
|
+
|
16
|
+
.weekly {
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.diary__navigation {
|
21
|
+
a:first-child {
|
22
|
+
float: left;
|
23
|
+
}
|
24
|
+
|
25
|
+
a:last-child {
|
26
|
+
float: right;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.diary__key {
|
31
|
+
margin: auto;
|
32
|
+
width: 50%;
|
33
|
+
text-align: center;
|
34
|
+
|
35
|
+
.diary__key--master-diary {
|
36
|
+
background-color: $white;
|
37
|
+
}
|
38
|
+
|
39
|
+
.diary__key--weekly-diary {
|
40
|
+
background-color: $hd-weekly-diary-colour;
|
41
|
+
}
|
42
|
+
|
43
|
+
.title {
|
44
|
+
display: inline-block;
|
45
|
+
font-size: 1.1rem;
|
46
|
+
color: $dark-grey;
|
47
|
+
}
|
48
|
+
|
49
|
+
ul {
|
50
|
+
list-style: none;
|
51
|
+
display: inline-block;
|
52
|
+
|
53
|
+
li {
|
54
|
+
display: inline;
|
55
|
+
margin: 0 0.1rem;
|
56
|
+
padding: 0.2rem 0.5rem;
|
57
|
+
font-size: 0.9rem;
|
58
|
+
border: solid 1px $mid-grey;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.diary {
|
64
|
+
|
65
|
+
.diary__period {
|
66
|
+
margin-bottom: 1.5rem;
|
67
|
+
}
|
68
|
+
|
69
|
+
header {
|
70
|
+
text-align: center;
|
71
|
+
margin-bottom: 1rem;
|
72
|
+
|
73
|
+
h1, h2 {
|
74
|
+
font-size: 1.6rem;
|
75
|
+
font-weight: normal;
|
76
|
+
display: inline;
|
77
|
+
margin-right: 1rem;
|
78
|
+
|
79
|
+
&:last-child {
|
80
|
+
color: $dark-grey;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
h2 {
|
86
|
+
color: $mid-grey;
|
87
|
+
}
|
88
|
+
|
89
|
+
h3 {
|
90
|
+
font-size: 1.5rem;
|
91
|
+
color: $dark-grey;
|
92
|
+
}
|
93
|
+
|
94
|
+
tr {
|
95
|
+
&:nth-of-type(even) {
|
96
|
+
background: $white;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
thead {
|
101
|
+
border: 0;
|
102
|
+
|
103
|
+
tr,
|
104
|
+
tr:nth-of-type(even) {
|
105
|
+
background-color: $smoke;
|
106
|
+
|
107
|
+
th {
|
108
|
+
text-align: center;
|
109
|
+
border-color: $smoke;
|
110
|
+
|
111
|
+
h3 {
|
112
|
+
margin: 0;
|
113
|
+
padding: 0;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
tbody {
|
120
|
+
th {
|
121
|
+
border-left: 5px solid $white;
|
122
|
+
}
|
123
|
+
|
124
|
+
tr:hover {
|
125
|
+
th {
|
126
|
+
border-left: 5px solid $dark-grey;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
.diary__button {
|
133
|
+
white-space: nowrap;
|
134
|
+
margin: 0;
|
135
|
+
padding: 0.5rem;
|
136
|
+
background-color: transparent;
|
137
|
+
overflow: hidden;
|
138
|
+
text-overflow: ellipsis;
|
139
|
+
width: 100%;
|
140
|
+
text-align: center;
|
141
|
+
display: inline-block;
|
142
|
+
white-space: nowrap;
|
143
|
+
font-size: 0.9rem;
|
144
|
+
}
|
145
|
+
|
146
|
+
td {
|
147
|
+
padding: 0;
|
148
|
+
border: 1px solid $light-grey;
|
149
|
+
text-align: center;
|
150
|
+
background-color: $white;
|
151
|
+
|
152
|
+
// Creates a red triangle top left. Some work to do overlaying cell.
|
153
|
+
&.infected-patient {
|
154
|
+
div {
|
155
|
+
width: 0;
|
156
|
+
height: 0;
|
157
|
+
position: absolute;
|
158
|
+
border-style: solid;
|
159
|
+
border-width: 2rem 2rem 0 0;
|
160
|
+
border-color: $nhs-red transparent transparent transparent;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
&:empty {
|
165
|
+
background-color: $light-grey;
|
166
|
+
}
|
167
|
+
|
168
|
+
&:hover {
|
169
|
+
border-color: $dark-grey;
|
170
|
+
}
|
171
|
+
|
172
|
+
&[data-weekly] {
|
173
|
+
background-color: $hd-weekly-diary-colour;
|
174
|
+
|
175
|
+
a {
|
176
|
+
color: $dark-grey;
|
177
|
+
}
|
178
|
+
|
179
|
+
.diary__button:hover {
|
180
|
+
background-color: $hd-weekly-diary-hover-colour;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
&[data-master] {
|
185
|
+
|
186
|
+
&:hover {
|
187
|
+
background-color: $almost-white;
|
188
|
+
}
|
189
|
+
|
190
|
+
.diary__button:hover {
|
191
|
+
background-color: $almost-white;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
&[data-master] {
|
196
|
+
background-color: $white;
|
197
|
+
a {
|
198
|
+
color: $dark-grey;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
1
204
|
// Start CSS-only toggle of full HD Profile
|
2
205
|
label#toggle-full-hd-profile {
|
3
206
|
color: $link-colour;
|