renalware-core 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/renalware/letters/letters_controller.rb +2 -1
- data/app/models/application_record.rb +2 -0
- data/app/models/concerns/renalware/accountable.rb +2 -0
- data/app/models/concerns/renalware/broadcasting.rb +2 -0
- data/app/models/concerns/renalware/deviseable.rb +2 -0
- data/app/models/concerns/renalware/explicit_state_model.rb +2 -0
- data/app/models/concerns/renalware/feeds/job.rb +2 -0
- data/app/models/concerns/renalware/hd/session_scopes.rb +2 -0
- data/app/models/concerns/renalware/letters/letter_pathology.rb +2 -0
- data/app/models/concerns/renalware/modality_scopes.rb +2 -0
- data/app/models/concerns/renalware/ordered_scope.rb +2 -0
- data/app/models/concerns/renalware/ordered_set_scope.rb +2 -0
- data/app/models/concerns/renalware/pathology/requests/frequency_methods.rb +2 -0
- data/app/models/concerns/renalware/patient_pathology_scopes.rb +11 -1
- data/app/models/concerns/renalware/patient_scope.rb +2 -0
- data/app/models/concerns/renalware/patients_ransack_helper.rb +2 -0
- data/app/models/concerns/renalware/personable.rb +2 -0
- data/app/models/concerns/renalware/string_logging.rb +2 -0
- data/app/models/concerns/renalware/supersedeable.rb +2 -0
- data/app/models/exception_notifier.rb +2 -0
- data/app/models/renalware.rb +2 -0
- data/app/models/renalware/accesses.rb +2 -0
- data/app/models/renalware/accesses/assessment.rb +2 -0
- data/app/models/renalware/accesses/assessment_factory.rb +2 -0
- data/app/models/renalware/accesses/catheter_insertion_technique.rb +2 -0
- data/app/models/renalware/accesses/patient.rb +2 -0
- data/app/models/renalware/accesses/plan.rb +2 -0
- data/app/models/renalware/accesses/plan_type.rb +2 -0
- data/app/models/renalware/accesses/procedure.rb +2 -0
- data/app/models/renalware/accesses/profile.rb +2 -0
- data/app/models/renalware/accesses/site.rb +2 -0
- data/app/models/renalware/accesses/type.rb +2 -0
- data/app/models/renalware/accesses/version.rb +2 -0
- data/app/models/renalware/admin.rb +2 -0
- data/app/models/renalware/admissions.rb +2 -0
- data/app/models/renalware/admissions/admission.rb +2 -0
- data/app/models/renalware/admissions/admission_query.rb +2 -0
- data/app/models/renalware/admissions/admission_search_form.rb +2 -0
- data/app/models/renalware/admissions/consult.rb +2 -0
- data/app/models/renalware/admissions/consult_query.rb +2 -0
- data/app/models/renalware/admissions/consult_site.rb +2 -0
- data/app/models/renalware/admissions/request.rb +2 -0
- data/app/models/renalware/admissions/request_reason.rb +2 -0
- data/app/models/renalware/api.rb +2 -0
- data/app/models/renalware/clinical.rb +2 -0
- data/app/models/renalware/clinical/allergy.rb +2 -0
- data/app/models/renalware/clinical/allergy_status_form.rb +2 -0
- data/app/models/renalware/clinical/body_composition.rb +2 -0
- data/app/models/renalware/clinical/create_allergy.rb +2 -0
- data/app/models/renalware/clinical/delete_allergy.rb +2 -0
- data/app/models/renalware/clinical/dry_weight.rb +2 -0
- data/app/models/renalware/clinical/modality_description.rb +2 -0
- data/app/models/renalware/clinical/patient.rb +2 -0
- data/app/models/renalware/clinical/patient_dry_weights_query.rb +2 -0
- data/app/models/renalware/clinical/version.rb +2 -0
- data/app/models/renalware/clinics.rb +2 -0
- data/app/models/renalware/clinics/appointment.rb +2 -0
- data/app/models/renalware/clinics/appointment_query.rb +2 -0
- data/app/models/renalware/clinics/build_visit_from_appointment.rb +2 -0
- data/app/models/renalware/clinics/clinic.rb +2 -0
- data/app/models/renalware/clinics/clinic_visit.rb +2 -0
- data/app/models/renalware/clinics/consultant.rb +2 -0
- data/app/models/renalware/clinics/create_clinic_visit.rb +2 -0
- data/app/models/renalware/clinics/current_observations.rb +2 -0
- data/app/models/renalware/clinics/patient.rb +2 -0
- data/app/models/renalware/clinics/remembered_clinic_visit_preferences.rb +2 -0
- data/app/models/renalware/clinics/version.rb +2 -0
- data/app/models/renalware/clinics/visit_query.rb +2 -0
- data/app/models/renalware/deaths.rb +2 -0
- data/app/models/renalware/deaths/cause.rb +2 -0
- data/app/models/renalware/deaths/modality_description.rb +2 -0
- data/app/models/renalware/directory.rb +2 -0
- data/app/models/renalware/directory/person.rb +2 -0
- data/app/models/renalware/directory/person_query.rb +2 -0
- data/app/models/renalware/drugs.rb +2 -0
- data/app/models/renalware/drugs/classification.rb +2 -0
- data/app/models/renalware/drugs/drug.rb +2 -0
- data/app/models/renalware/drugs/type.rb +2 -0
- data/app/models/renalware/events.rb +2 -0
- data/app/models/renalware/events/biopsy.rb +2 -0
- data/app/models/renalware/events/event.rb +2 -0
- data/app/models/renalware/events/event_query.rb +2 -0
- data/app/models/renalware/events/investigation.rb +2 -0
- data/app/models/renalware/events/line_change_event_query.rb +2 -0
- data/app/models/renalware/events/patient_listener.rb +2 -0
- data/app/models/renalware/events/simple.rb +2 -0
- data/app/models/renalware/events/swab.rb +2 -0
- data/app/models/renalware/events/type.rb +3 -1
- data/app/models/renalware/feeds.rb +2 -0
- data/app/models/renalware/feeds/file.rb +2 -0
- data/app/models/renalware/feeds/file_type.rb +2 -0
- data/app/models/renalware/feeds/files/create_feed_file.rb +2 -0
- data/app/models/renalware/feeds/files/enqueue_file_for_background_processing.rb +2 -0
- data/app/models/renalware/feeds/files/exceptions.rb +2 -0
- data/app/models/renalware/feeds/files/file_upload_form.rb +2 -0
- data/app/models/renalware/feeds/files/import_job_factory.rb +2 -0
- data/app/models/renalware/feeds/files/practice_memberships/import_csv.rb +2 -0
- data/app/models/renalware/feeds/files/practice_memberships/import_job.rb +2 -0
- data/app/models/renalware/feeds/files/practices/convert_xml_to_csv.rb +2 -0
- data/app/models/renalware/feeds/files/practices/country_map.rb +2 -0
- data/app/models/renalware/feeds/files/practices/csv_file.rb +2 -0
- data/app/models/renalware/feeds/files/practices/csv_organisation.rb +2 -0
- data/app/models/renalware/feeds/files/practices/import_csv.rb +2 -0
- data/app/models/renalware/feeds/files/practices/import_job.rb +2 -0
- data/app/models/renalware/feeds/files/practices/xml_parser.rb +2 -0
- data/app/models/renalware/feeds/files/primary_care_physicians/import_csv.rb +2 -0
- data/app/models/renalware/feeds/files/primary_care_physicians/import_job.rb +2 -0
- data/app/models/renalware/feeds/files/tissue_typing/import.rb +2 -0
- data/app/models/renalware/feeds/hl7_message.rb +2 -0
- data/app/models/renalware/feeds/message.rb +2 -0
- data/app/models/renalware/feeds/message_parser.rb +2 -0
- data/app/models/renalware/feeds/message_processor.rb +2 -0
- data/app/models/renalware/feeds/persist_message.rb +2 -0
- data/app/models/renalware/hd.rb +2 -0
- data/app/models/renalware/hd/archive_yesterdays_slots_job.rb +2 -0
- data/app/models/renalware/hd/cannulation_type.rb +2 -0
- data/app/models/renalware/hd/dialysate.rb +2 -0
- data/app/models/renalware/hd/dialyser.rb +2 -0
- data/app/models/renalware/hd/diary.rb +2 -0
- data/app/models/renalware/hd/diary_slot.rb +2 -0
- data/app/models/renalware/hd/diurnal_period_code.rb +2 -0
- data/app/models/renalware/hd/find_or_create_diary_by_week_query.rb +2 -0
- data/app/models/renalware/hd/find_or_create_master_diary.rb +2 -0
- data/app/models/renalware/hd/generate_monthly_statistics_for_patient.rb +2 -0
- data/app/models/renalware/hd/master_diary.rb +2 -0
- data/app/models/renalware/hd/mdm_patients_query.rb +4 -2
- data/app/models/renalware/hd/modality_description.rb +2 -0
- data/app/models/renalware/hd/patient.rb +2 -0
- data/app/models/renalware/hd/patient_listener.rb +2 -0
- data/app/models/renalware/hd/patient_statistics.rb +2 -0
- data/app/models/renalware/hd/patients_dialysing_by_day_and_period_query.rb +2 -0
- data/app/models/renalware/hd/patients_dialysing_by_day_query.rb +2 -0
- data/app/models/renalware/hd/patients_dialysing_by_schedule_query.rb +2 -0
- data/app/models/renalware/hd/patients_with_unmet_preferences_query.rb +2 -0
- data/app/models/renalware/hd/preference_set.rb +2 -0
- data/app/models/renalware/hd/prescription_administration.rb +2 -0
- data/app/models/renalware/hd/profile.rb +2 -0
- data/app/models/renalware/hd/revise_hd_profile.rb +2 -0
- data/app/models/renalware/hd/schedule_definition.rb +2 -0
- data/app/models/renalware/hd/session.rb +2 -0
- data/app/models/renalware/hd/session/closed.rb +2 -0
- data/app/models/renalware/hd/session/dna.rb +2 -0
- data/app/models/renalware/hd/session/open.rb +2 -0
- data/app/models/renalware/hd/session_factory.rb +2 -0
- data/app/models/renalware/hd/sessions/auditable_patient_sessions_in_period_query.rb +2 -0
- data/app/models/renalware/hd/sessions/auditable_patients_in_period_query.rb +2 -0
- data/app/models/renalware/hd/sessions/auditable_session.rb +2 -0
- data/app/models/renalware/hd/sessions/auditable_session_collection.rb +14 -1
- data/app/models/renalware/hd/sessions/latest_patient_sessions_query.rb +2 -0
- data/app/models/renalware/hd/sessions/ongoing_query.rb +2 -0
- data/app/models/renalware/hd/sessions/patient_query.rb +2 -0
- data/app/models/renalware/hd/sessions/protocol_sessions_query.rb +2 -0
- data/app/models/renalware/hd/sessions/save_session.rb +2 -0
- data/app/models/renalware/hd/station.rb +2 -0
- data/app/models/renalware/hd/station_location.rb +2 -0
- data/app/models/renalware/hd/update_rolling_patient_statistics.rb +2 -0
- data/app/models/renalware/hd/version.rb +2 -0
- data/app/models/renalware/hd/weekly_diary.rb +2 -0
- data/app/models/renalware/hospitals.rb +2 -0
- data/app/models/renalware/hospitals/centre.rb +2 -0
- data/app/models/renalware/hospitals/unit.rb +2 -0
- data/app/models/renalware/hospitals/ward.rb +2 -0
- data/app/models/renalware/letters.rb +2 -0
- data/app/models/renalware/letters/approve_letter.rb +2 -0
- data/app/models/renalware/letters/archive.rb +2 -0
- data/app/models/renalware/letters/author.rb +2 -0
- data/app/models/renalware/letters/complete_letter.rb +2 -0
- data/app/models/renalware/letters/contact.rb +2 -0
- data/app/models/renalware/letters/contact_description.rb +3 -1
- data/app/models/renalware/letters/delivery/delivery_policy.rb +2 -0
- data/app/models/renalware/letters/delivery/email_letter_to_practice.rb +2 -0
- data/app/models/renalware/letters/delivery/practice_email.rb +2 -0
- data/app/models/renalware/letters/description.rb +2 -0
- data/app/models/renalware/letters/descriptions/search_query.rb +2 -0
- data/app/models/renalware/letters/determine_counterpart_ccs.rb +2 -0
- data/app/models/renalware/letters/discharge_summary.rb +2 -0
- data/app/models/renalware/letters/draft_letter.rb +2 -0
- data/app/models/renalware/letters/electronic_receipt.rb +2 -0
- data/app/models/renalware/letters/electronic_recipient_options.rb +2 -0
- data/app/models/renalware/letters/event.rb +2 -0
- data/app/models/renalware/letters/event/clinic_visit.rb +2 -0
- data/app/models/renalware/letters/event/unknown.rb +2 -0
- data/app/models/renalware/letters/html_renderer.rb +2 -0
- data/app/models/renalware/letters/letter.rb +2 -0
- data/app/models/renalware/letters/letter/approved.rb +2 -0
- data/app/models/renalware/letters/letter/completed.rb +2 -0
- data/app/models/renalware/letters/letter/draft.rb +2 -0
- data/app/models/renalware/letters/letter/pending_review.rb +2 -0
- data/app/models/renalware/letters/letter_factory.rb +2 -0
- data/app/models/renalware/letters/letter_params_processor.rb +2 -0
- data/app/models/renalware/letters/letter_query.rb +2 -0
- data/app/models/renalware/letters/letterhead.rb +2 -0
- data/app/models/renalware/letters/part.rb +2 -0
- data/app/models/renalware/letters/part/allergies.rb +2 -0
- data/app/models/renalware/letters/part/clinical_observations.rb +2 -0
- data/app/models/renalware/letters/part/prescriptions.rb +2 -0
- data/app/models/renalware/letters/part/problems.rb +2 -0
- data/app/models/renalware/letters/part/recent_pathology_results.rb +3 -1
- data/app/models/renalware/letters/patient.rb +2 -0
- data/app/models/renalware/letters/patient_listener.rb +2 -0
- data/app/models/renalware/letters/pdf_letter_cache.rb +2 -0
- data/app/models/renalware/letters/pdf_renderer.rb +2 -0
- data/app/models/renalware/letters/primary_care_physician.rb +2 -0
- data/app/models/renalware/letters/recipient.rb +3 -1
- data/app/models/renalware/letters/recipient_params_processor.rb +2 -0
- data/app/models/renalware/letters/relevant_observation_description.rb +2 -0
- data/app/models/renalware/letters/remembered_letter_preferences.rb +2 -0
- data/app/models/renalware/letters/revise_letter.rb +2 -0
- data/app/models/renalware/letters/rtf_renderer.rb +2 -0
- data/app/models/renalware/letters/signature.rb +2 -0
- data/app/models/renalware/letters/typist.rb +2 -0
- data/app/models/renalware/low_clearance.rb +2 -0
- data/app/models/renalware/low_clearance/mdm_patients_query.rb +3 -1
- data/app/models/renalware/low_clearance/modality_description.rb +2 -0
- data/app/models/renalware/low_clearance/patient.rb +2 -0
- data/app/models/renalware/low_clearance/profile.rb +2 -0
- data/app/models/renalware/low_clearance/version.rb +2 -0
- data/app/models/renalware/medications.rb +2 -0
- data/app/models/renalware/medications/dose_unit.rb +2 -0
- data/app/models/renalware/medications/medication_route.rb +2 -0
- data/app/models/renalware/medications/patient_listener.rb +2 -0
- data/app/models/renalware/medications/prescription.rb +2 -0
- data/app/models/renalware/medications/prescription_termination.rb +2 -0
- data/app/models/renalware/medications/prescription_version.rb +2 -0
- data/app/models/renalware/medications/prescriptions_by_drug_type_query.rb +2 -0
- data/app/models/renalware/medications/prescriptions_query.rb +2 -0
- data/app/models/renalware/medications/provider.rb +2 -0
- data/app/models/renalware/medications/revise_prescription.rb +2 -0
- data/app/models/renalware/medications/terminate_all_patient_prescriptions.rb +2 -0
- data/app/models/renalware/messaging.rb +2 -0
- data/app/models/renalware/messaging/internal/author.rb +2 -0
- data/app/models/renalware/messaging/internal/message.rb +2 -0
- data/app/models/renalware/messaging/internal/message_factory.rb +2 -0
- data/app/models/renalware/messaging/internal/message_form.rb +2 -0
- data/app/models/renalware/messaging/internal/message_form_builder.rb +2 -0
- data/app/models/renalware/messaging/internal/receipt.rb +2 -0
- data/app/models/renalware/messaging/internal/recipient.rb +2 -0
- data/app/models/renalware/messaging/internal/recipient_options.rb +2 -0
- data/app/models/renalware/messaging/internal/send_message.rb +2 -0
- data/app/models/renalware/messaging/message.rb +2 -0
- data/app/models/renalware/messaging/patient.rb +2 -0
- data/app/models/renalware/modalities.rb +2 -0
- data/app/models/renalware/modalities/change_patient_modality.rb +2 -0
- data/app/models/renalware/modalities/change_type.rb +2 -0
- data/app/models/renalware/modalities/description.rb +2 -0
- data/app/models/renalware/modalities/haemodialysis_to_pd.rb +2 -0
- data/app/models/renalware/modalities/modality.rb +2 -0
- data/app/models/renalware/modalities/pd_to_haemodialysis.rb +2 -0
- data/app/models/renalware/modalities/reason.rb +2 -0
- data/app/models/renalware/pathology.rb +2 -0
- data/app/models/renalware/pathology/all_observation_codes.rb +2 -0
- data/app/models/renalware/pathology/clinic.rb +2 -0
- data/app/models/renalware/pathology/consultant.rb +2 -0
- data/app/models/renalware/pathology/create_observation_requests.rb +2 -0
- data/app/models/renalware/pathology/create_observations_grouped_by_date_table.rb +2 -0
- data/app/models/renalware/pathology/current_observation.rb +2 -0
- data/app/models/renalware/pathology/current_observation_set.rb +2 -0
- data/app/models/renalware/pathology/current_observations_for_descriptions_query.rb +2 -0
- data/app/models/renalware/pathology/determine_observation_date_series.rb +2 -0
- data/app/models/renalware/pathology/lab.rb +2 -0
- data/app/models/renalware/pathology/measurement_unit.rb +2 -0
- data/app/models/renalware/pathology/message_listener.rb +2 -0
- data/app/models/renalware/pathology/observation.rb +2 -0
- data/app/models/renalware/pathology/observation_date_range.rb +2 -0
- data/app/models/renalware/pathology/observation_description.rb +2 -0
- data/app/models/renalware/pathology/observation_descriptions_by_code_query.rb +2 -0
- data/app/models/renalware/pathology/observation_digest.rb +2 -0
- data/app/models/renalware/pathology/observation_for_patient_observation_description_query.rb +2 -0
- data/app/models/renalware/pathology/observation_for_patient_request_description_query.rb +2 -0
- data/app/models/renalware/pathology/observation_request.rb +2 -0
- data/app/models/renalware/pathology/observation_requests_attributes_builder.rb +2 -0
- data/app/models/renalware/pathology/observations_for_descriptions_query.rb +2 -0
- data/app/models/renalware/pathology/observations_grouped_by_date_query.rb +2 -0
- data/app/models/renalware/pathology/observations_grouped_by_date_table.rb +2 -0
- data/app/models/renalware/pathology/observations_jsonb_serializer.rb +2 -0
- data/app/models/renalware/pathology/observations_within_date_range_query.rb +2 -0
- data/app/models/renalware/pathology/ordered_patient_query.rb +2 -0
- data/app/models/renalware/pathology/patient.rb +2 -0
- data/app/models/renalware/pathology/relevant_observation_description.rb +2 -0
- data/app/models/renalware/pathology/request_description.rb +2 -0
- data/app/models/renalware/pathology/request_for_patient_request_description_query.rb +2 -0
- data/app/models/renalware/pathology/requests.rb +2 -0
- data/app/models/renalware/pathology/requests/drug.rb +2 -0
- data/app/models/renalware/pathology/requests/drug_category.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/always.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/four_monthly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/monthly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/once.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/six_monthly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/three_monthly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/two_monthly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/weekly.rb +2 -0
- data/app/models/renalware/pathology/requests/frequency/yearly.rb +2 -0
- data/app/models/renalware/pathology/requests/global_algorithm.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/observation_result.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/patient_is_diabetic.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/patient_sex_is.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/prescription_drug.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/prescription_drug_category.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/prescription_drug_type.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/request_result.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/transplant_date_within_weeks.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule/transplant_registration_status.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule_set.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule_set/patient_rule_set_decision.rb +2 -0
- data/app/models/renalware/pathology/requests/global_rule_sets_table.rb +2 -0
- data/app/models/renalware/pathology/requests/high_risk_algorithm.rb +2 -0
- data/app/models/renalware/pathology/requests/high_risk_rule_set.rb +2 -0
- data/app/models/renalware/pathology/requests/patient_algorithm.rb +2 -0
- data/app/models/renalware/pathology/requests/patient_rule.rb +2 -0
- data/app/models/renalware/pathology/requests/request.rb +2 -0
- data/app/models/renalware/pathology/requests/request_factory.rb +2 -0
- data/app/models/renalware/pathology/requests/request_params_factory.rb +2 -0
- data/app/models/renalware/pathology/requests/request_query.rb +2 -0
- data/app/models/renalware/pathology/requests/requests_factory.rb +2 -0
- data/app/models/renalware/pathology/results.rb +2 -0
- data/app/models/renalware/pathology/view_observation_results.rb +2 -0
- data/app/models/renalware/patient.rb +2 -0
- data/app/models/renalware/patients.rb +2 -0
- data/app/models/renalware/patients/alert.rb +2 -0
- data/app/models/renalware/patients/bookmark.rb +2 -0
- data/app/models/renalware/patients/ethnicity.rb +2 -0
- data/app/models/renalware/patients/idempotent_create_patient.rb +2 -0
- data/app/models/renalware/patients/language.rb +2 -0
- data/app/models/renalware/patients/mdm_list_query.rb +2 -0
- data/app/models/renalware/patients/mdm_patients_query.rb +2 -0
- data/app/models/renalware/patients/message_param_parser.rb +2 -0
- data/app/models/renalware/patients/patient_hospital_identifiers.rb +2 -0
- data/app/models/renalware/patients/patient_search.rb +2 -0
- data/app/models/renalware/patients/practice.rb +2 -0
- data/app/models/renalware/patients/practice_membership.rb +2 -0
- data/app/models/renalware/patients/practice_search_query.rb +2 -0
- data/app/models/renalware/patients/primary_care_physician.rb +2 -0
- data/app/models/renalware/patients/religion.rb +2 -0
- data/app/models/renalware/patients/search_filter.rb +2 -0
- data/app/models/renalware/patients/search_form.rb +2 -0
- data/app/models/renalware/patients/search_query.rb +2 -0
- data/app/models/renalware/patients/summary.rb +2 -0
- data/app/models/renalware/patients/user.rb +2 -0
- data/app/models/renalware/patients/version.rb +2 -0
- data/app/models/renalware/patients/worry.rb +2 -0
- data/app/models/renalware/patients/worry_query.rb +2 -0
- data/app/models/renalware/pd.rb +2 -0
- data/app/models/renalware/pd/apd/available_overnight_volume.rb +2 -0
- data/app/models/renalware/pd/apd/calculate_volumes.rb +2 -0
- data/app/models/renalware/pd/apd/exceptions.rb +2 -0
- data/app/models/renalware/pd/apd/glucose_calculator.rb +2 -0
- data/app/models/renalware/pd/apd/non_tidal_regime_calculations.rb +2 -0
- data/app/models/renalware/pd/apd/regime_calculations.rb +2 -0
- data/app/models/renalware/pd/apd/tidal_regime_calculations.rb +2 -0
- data/app/models/renalware/pd/apd_regime.rb +2 -0
- data/app/models/renalware/pd/assessment.rb +2 -0
- data/app/models/renalware/pd/bag_type.rb +2 -0
- data/app/models/renalware/pd/capd_regime.rb +2 -0
- data/app/models/renalware/pd/create_regime.rb +2 -0
- data/app/models/renalware/pd/exit_site_infection.rb +2 -0
- data/app/models/renalware/pd/fluid_description.rb +2 -0
- data/app/models/renalware/pd/infection_organism.rb +2 -0
- data/app/models/renalware/pd/mdm_patients_query.rb +4 -2
- data/app/models/renalware/pd/modality_description.rb +2 -0
- data/app/models/renalware/pd/organism_code.rb +2 -0
- data/app/models/renalware/pd/patient.rb +2 -0
- data/app/models/renalware/pd/peritonitis_episode.rb +2 -0
- data/app/models/renalware/pd/peritonitis_episode_type.rb +2 -0
- data/app/models/renalware/pd/peritonitis_episode_type_description.rb +2 -0
- data/app/models/renalware/pd/pet_adequacy_result.rb +2 -0
- data/app/models/renalware/pd/regime.rb +2 -0
- data/app/models/renalware/pd/regime_bag.rb +2 -0
- data/app/models/renalware/pd/regime_termination.rb +2 -0
- data/app/models/renalware/pd/revise_regime.rb +2 -0
- data/app/models/renalware/pd/save_peritonitis_episode.rb +2 -0
- data/app/models/renalware/pd/system.rb +2 -0
- data/app/models/renalware/pd/training_session.rb +2 -0
- data/app/models/renalware/pd/training_site.rb +2 -0
- data/app/models/renalware/pd/training_type.rb +2 -0
- data/app/models/renalware/problems.rb +2 -0
- data/app/models/renalware/problems/note.rb +2 -0
- data/app/models/renalware/problems/problem.rb +2 -0
- data/app/models/renalware/problems/version.rb +2 -0
- data/app/models/renalware/renal.rb +2 -0
- data/app/models/renalware/renal/aki_alert.rb +2 -0
- data/app/models/renalware/renal/aki_alert_action.rb +2 -0
- data/app/models/renalware/renal/aki_alert_query.rb +3 -1
- data/app/models/renalware/renal/aki_alert_search_form.rb +2 -0
- data/app/models/renalware/renal/patient.rb +2 -0
- data/app/models/renalware/renal/prd_description.rb +2 -0
- data/app/models/renalware/renal/prd_descriptions/search_query.rb +2 -0
- data/app/models/renalware/renal/profile.rb +2 -0
- data/app/models/renalware/renal/registry/preflight_checks/deaths_query.rb +2 -0
- data/app/models/renalware/renal/registry/preflight_checks/patients_query.rb +2 -0
- data/app/models/renalware/renal/version.rb +2 -0
- data/app/models/renalware/reporting.rb +2 -0
- data/app/models/renalware/reporting/audit.rb +2 -0
- data/app/models/renalware/reporting/fetch_audit_json.rb +2 -0
- data/app/models/renalware/research.rb +2 -0
- data/app/models/renalware/research/study.rb +2 -0
- data/app/models/renalware/research/study_participant.rb +2 -0
- data/app/models/renalware/role.rb +2 -0
- data/app/models/renalware/roles_user.rb +2 -0
- data/app/models/renalware/snippets.rb +2 -0
- data/app/models/renalware/snippets/duplicate_snippet_title_generator.rb +2 -0
- data/app/models/renalware/snippets/snippet.rb +2 -0
- data/app/models/renalware/snippets/snippet_query.rb +2 -0
- data/app/models/renalware/snippets/user.rb +2 -0
- data/app/models/renalware/system.rb +2 -0
- data/app/models/renalware/system/country.rb +2 -0
- data/app/models/renalware/system/event.rb +2 -0
- data/app/models/renalware/system/render_liquid_template.rb +2 -0
- data/app/models/renalware/system/template.rb +2 -0
- data/app/models/renalware/system/update_user.rb +2 -0
- data/app/models/renalware/system/user_feedback.rb +2 -0
- data/app/models/renalware/system/visit.rb +2 -0
- data/app/models/renalware/system_user.rb +3 -1
- data/app/models/renalware/transplants.rb +2 -0
- data/app/models/renalware/transplants/create_donor_stage.rb +2 -0
- data/app/models/renalware/transplants/donation.rb +2 -0
- data/app/models/renalware/transplants/donor_followup.rb +2 -0
- data/app/models/renalware/transplants/donor_modality_description.rb +2 -0
- data/app/models/renalware/transplants/donor_operation.rb +2 -0
- data/app/models/renalware/transplants/donor_stage.rb +2 -0
- data/app/models/renalware/transplants/donor_stage_position.rb +2 -0
- data/app/models/renalware/transplants/donor_stage_status.rb +2 -0
- data/app/models/renalware/transplants/donor_workup.rb +2 -0
- data/app/models/renalware/transplants/failure_cause_description.rb +2 -0
- data/app/models/renalware/transplants/failure_cause_description_group.rb +2 -0
- data/app/models/renalware/transplants/live_donors_query.rb +2 -0
- data/app/models/renalware/transplants/mdm_patients_query.rb +3 -1
- data/app/models/renalware/transplants/patient.rb +2 -0
- data/app/models/renalware/transplants/recipient_followup.rb +2 -0
- data/app/models/renalware/transplants/recipient_modality_description.rb +2 -0
- data/app/models/renalware/transplants/recipient_operation.rb +2 -0
- data/app/models/renalware/transplants/recipient_workup.rb +2 -0
- data/app/models/renalware/transplants/recipient_workup_builder.rb +2 -0
- data/app/models/renalware/transplants/registration.rb +2 -0
- data/app/models/renalware/transplants/registration_status.rb +2 -0
- data/app/models/renalware/transplants/registration_status_description.rb +2 -0
- data/app/models/renalware/transplants/registrations/wait_list_query.rb +2 -0
- data/app/models/renalware/transplants/version.rb +2 -0
- data/app/models/renalware/ukrdc.rb +2 -0
- data/app/models/renalware/ukrdc/patients_query.rb +2 -0
- data/app/models/renalware/ukrdc/send_patient.rb +2 -0
- data/app/models/renalware/ukrdc/send_patients.rb +2 -0
- data/app/models/renalware/ukrdc/transmission_log.rb +2 -0
- data/app/models/renalware/user.rb +2 -0
- data/app/models/renalware/version.rb +2 -0
- data/app/models/renalware/virology.rb +2 -0
- data/app/models/renalware/virology/profile.rb +2 -0
- data/app/models/renalware/virology/vaccination.rb +2 -0
- data/app/models/renalware/zip_archive.rb +2 -0
- data/app/policies/application_policy.rb +2 -0
- data/app/policies/renalware/admin/cache_policy.rb +2 -0
- data/app/policies/renalware/admissions/admission_policy.rb +2 -0
- data/app/policies/renalware/admissions/consult_policy.rb +2 -0
- data/app/policies/renalware/admissions/request_policy.rb +2 -0
- data/app/policies/renalware/base_policy.rb +2 -0
- data/app/policies/renalware/clinical/allergy_policy.rb +2 -0
- data/app/policies/renalware/clinical/body_composition_policy.rb +2 -0
- data/app/policies/renalware/clinics/appointment_policy.rb +2 -0
- data/app/policies/renalware/clinics/clinic_visit_policy.rb +2 -0
- data/app/policies/renalware/drugs/drug_policy.rb +2 -0
- data/app/policies/renalware/events/biopsy_policy.rb +2 -0
- data/app/policies/renalware/events/event_policy.rb +2 -0
- data/app/policies/renalware/events/investigation_policy.rb +2 -0
- data/app/policies/renalware/events/simple_policy.rb +2 -0
- data/app/policies/renalware/events/swab_policy.rb +2 -0
- data/app/policies/renalware/feeds/file_policy.rb +2 -0
- data/app/policies/renalware/hd/closed_session_policy.rb +2 -0
- data/app/policies/renalware/hd/diary_policy.rb +2 -0
- data/app/policies/renalware/hd/dna_session_policy.rb +2 -0
- data/app/policies/renalware/hd/open_session_policy.rb +2 -0
- data/app/policies/renalware/hd/session_policy.rb +2 -0
- data/app/policies/renalware/hd/station_policy.rb +2 -0
- data/app/policies/renalware/letters/approved_letter_policy.rb +2 -0
- data/app/policies/renalware/letters/completed_letter_policy.rb +2 -0
- data/app/policies/renalware/letters/draft_letter_policy.rb +2 -0
- data/app/policies/renalware/letters/electronic_receipt_policy.rb +2 -0
- data/app/policies/renalware/letters/letter_policy.rb +2 -0
- data/app/policies/renalware/letters/pending_review_letter_policy.rb +2 -0
- data/app/policies/renalware/low_clearance/profile_policy.rb +2 -0
- data/app/policies/renalware/messaging/internal/message_policy.rb +2 -0
- data/app/policies/renalware/messaging/internal/receipt_policy.rb +2 -0
- data/app/policies/renalware/modalities/description_policy.rb +2 -0
- data/app/policies/renalware/pathology/requests/global_rule_set_policy.rb +2 -0
- data/app/policies/renalware/pathology/requests/request_policy.rb +2 -0
- data/app/policies/renalware/patients/alert_policy.rb +2 -0
- data/app/policies/renalware/patients/bookmark_policy.rb +2 -0
- data/app/policies/renalware/patients/practice_policy.rb +2 -0
- data/app/policies/renalware/patients/primary_care_physician_policy.rb +2 -0
- data/app/policies/renalware/patients/worry_policy.rb +2 -0
- data/app/policies/renalware/pd/assessment_policy.rb +2 -0
- data/app/policies/renalware/pd/peritonitis_episode_policy.rb +2 -0
- data/app/policies/renalware/pd/pet_adequacy_result_policy.rb +2 -0
- data/app/policies/renalware/pd/regime_policy.rb +2 -0
- data/app/policies/renalware/pd/training_session_policy.rb +2 -0
- data/app/policies/renalware/problems/problem_policy.rb +2 -0
- data/app/policies/renalware/renal/aki_alert_policy.rb +2 -0
- data/app/policies/renalware/renal/registry_preflight_check_policy.rb +2 -0
- data/app/policies/renalware/reporting/audit_policy.rb +2 -0
- data/app/policies/renalware/research/study_participant_policy.rb +2 -0
- data/app/policies/renalware/research/study_policy.rb +2 -0
- data/app/policies/renalware/snippets/snippet_policy.rb +2 -0
- data/app/policies/renalware/system/user_feedback_policy.rb +2 -0
- data/app/policies/renalware/transplants/donor_stage_policy.rb +2 -0
- data/app/policies/renalware/transplants/recipient_operation_policy.rb +2 -0
- data/app/policies/renalware/transplants/recipient_workup_policy.rb +2 -0
- data/app/policies/renalware/transplants/registration_policy.rb +2 -0
- data/app/policies/renalware/user_policy.rb +2 -0
- data/app/policies/renalware/virology/dasboard_policy.rb +2 -0
- data/app/policies/renalware/virology/vaccination_policy.rb +2 -0
- data/app/policies/renalware/yaml_permission_configuration.rb +2 -0
- data/app/values/renalware/gender.rb +1 -1
- data/app/views/renalware/letters/formatted_letters/_letter.html.slim +1 -0
- data/app/views/renalware/letters/formatted_letters/_patient_summary.html.slim +1 -1
- data/app/views/renalware/letters/letters/_patient_summary.html.slim +1 -1
- data/app/views/renalware/letters/letters/author.html.slim +1 -0
- data/db/functions/convert_to_float_v01.sql +14 -0
- data/db/migrate/20180319191942_create_function_to_sort_without_failing_on_nonnumerics.rb +9 -0
- data/lib/renalware/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16fc18bd9aff02acc62b4fa0550840755425b759890059b7f34063f438e8bb97
|
4
|
+
data.tar.gz: 72290e16e39a7f87b86c5e43bc13535366a2da990b41e8766258da5734db007a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b749c0ff9c416592cc2ee9c973eecf6a25e2fdd76dd1ce067ddfba2693f6381387853f00f283df9b35b6392bc0a0704269437b6e7be9b4455e3daab0e484dd2
|
7
|
+
data.tar.gz: 10a74c98dcc173b61ac3e960698c684e6201861d9cb9688b152965ada3e75175e1683bf5b861cb180b2f2cddaa2e416ce687dd8bec14674e3e66c6b14424c80f
|
@@ -5,6 +5,7 @@ require_dependency "renalware/letters"
|
|
5
5
|
module Renalware
|
6
6
|
module Letters
|
7
7
|
class LettersController < Letters::BaseController
|
8
|
+
include Concerns::Pageable
|
8
9
|
before_action :load_patient, except: [:author]
|
9
10
|
|
10
11
|
def index
|
@@ -14,7 +15,7 @@ module Renalware
|
|
14
15
|
def author
|
15
16
|
user = Renalware::User.find(params[:author_id])
|
16
17
|
author = Letters.cast_author(user)
|
17
|
-
letters = author.letters
|
18
|
+
letters = author.letters.order(issued_on: :desc).page(page).per(per_page)
|
18
19
|
authorize letters
|
19
20
|
render locals: {
|
20
21
|
author: author,
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_dependency "renalware"
|
2
4
|
|
3
5
|
# Mix this module into a Patient Query object for example in order to include the patient's
|
@@ -32,9 +34,17 @@ module Renalware
|
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
37
|
+
# Note that because #result could have text like "Test Cancelled" in it, we need to
|
38
|
+
# handle that when sorting, and we do that by calling a custom sql function which returns
|
39
|
+
# 0 if casting to a float fails. Null results to we map to a 0.
|
40
|
+
# This way results appear in this order:
|
41
|
+
# 1. Valid floats e.g. 10.4
|
42
|
+
# 2. Results with a message like Test Cancelled (mapped to 0) - more significant than a null
|
43
|
+
# so should rise above them when sorted
|
44
|
+
# 3. Nulls (mapped to -1)
|
35
45
|
def self.pathology_result_sort_predicate(column)
|
36
46
|
Arel.sql(
|
37
|
-
"
|
47
|
+
"coalesce(convert_to_float(values -> '#{column.upcase}' ->> 'result'), -1)"
|
38
48
|
)
|
39
49
|
end
|
40
50
|
|
data/app/models/renalware.rb
CHANGED
data/app/models/renalware/api.rb
CHANGED