renalware-core 2.0.42 → 2.0.43
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/api/ukrdc/patients_controller.rb +2 -1
- data/app/views/renalware/hd/transmission_logs/index.html.slim +3 -3
- data/app/views/renalware/patients/side_menu/_actions.html.slim +1 -1
- data/app/views/renalware/renal/aki_alerts/_aki_alert.html.slim +1 -1
- data/app/views/renalware/renal/aki_alerts/_filters.html.slim +1 -1
- data/lib/renalware/version.rb +1 -1
- data/spec/factories/accesses/plans.rb +2 -2
- 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 +2 -2
- data/spec/factories/accesses/types.rb +4 -4
- data/spec/factories/admissions/admissions.rb +2 -2
- data/spec/factories/admissions/consults.rb +4 -4
- data/spec/factories/admissions/request_reasons.rb +1 -1
- data/spec/factories/admissions/requests.rb +1 -1
- data/spec/factories/clinical/body_compositions.rb +12 -12
- data/spec/factories/clinical/dry_weights.rb +1 -1
- data/spec/factories/clinics/clinic_visits.rb +6 -6
- data/spec/factories/clinics/clinics.rb +1 -1
- data/spec/factories/deaths/cause.rb +2 -2
- data/spec/factories/drugs/drug.rb +1 -1
- data/spec/factories/drugs/drug_types.rb +6 -6
- data/spec/factories/events/events.rb +2 -2
- data/spec/factories/events/events_types.rb +14 -14
- data/spec/factories/feeds/file_types.rb +7 -7
- data/spec/factories/hd/cannulation_types.rb +1 -1
- data/spec/factories/hd/dialysates.rb +5 -5
- data/spec/factories/hd/dialysers.rb +4 -4
- data/spec/factories/hd/diaries.rb +4 -4
- data/spec/factories/hd/diurnal_period_codes.rb +4 -4
- data/spec/factories/hd/hd_session_document.rb +28 -28
- data/spec/factories/hd/patient_statistics.rb +20 -20
- data/spec/factories/hd/preference_sets.rb +1 -1
- data/spec/factories/hd/profiles.rb +1 -1
- data/spec/factories/hd/schedule_definitions.rb +4 -4
- data/spec/factories/hd/sessions.rb +4 -4
- data/spec/factories/hd/station_locations.rb +2 -2
- data/spec/factories/hd/stations.rb +1 -1
- data/spec/factories/hd/transmission_logs.rb +4 -4
- data/spec/factories/hospitals/centres.rb +2 -2
- data/spec/factories/hospitals/units.rb +5 -5
- data/spec/factories/hospitals/wards.rb +1 -1
- data/spec/factories/letters/archives.rb +1 -1
- data/spec/factories/letters/contact_descriptions.rb +2 -2
- data/spec/factories/letters/descriptions.rb +1 -1
- data/spec/factories/letters/letterheads.rb +6 -6
- data/spec/factories/letters/letters.rb +2 -2
- data/spec/factories/letters/recipients.rb +2 -2
- data/spec/factories/medications/medication_route.rb +4 -4
- data/spec/factories/medications/prescription.rb +5 -5
- data/spec/factories/medications/prescription_terminations.rb +1 -1
- data/spec/factories/messaging/internal/messages.rb +4 -4
- data/spec/factories/messaging/internal/receipts.rb +1 -1
- data/spec/factories/modalities/modalities.rb +1 -1
- data/spec/factories/modalities/modality_descriptions.rb +13 -13
- data/spec/factories/modalities/modality_reasons.rb +5 -5
- data/spec/factories/pathology/measurement_units.rb +1 -1
- data/spec/factories/pathology/observation_descriptions.rb +7 -7
- data/spec/factories/pathology/observation_requests.rb +1 -1
- data/spec/factories/pathology/observations.rb +3 -3
- 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 +3 -3
- data/spec/factories/pathology/requests/patient_rule.rb +5 -5
- data/spec/factories/patients/alerts.rb +1 -1
- data/spec/factories/patients/bookmarks.rb +1 -1
- data/spec/factories/patients/ethnicities.rb +2 -2
- data/spec/factories/patients/languages.rb +8 -8
- data/spec/factories/patients/patients.rb +7 -7
- data/spec/factories/patients/practice_memberships.rb +1 -1
- data/spec/factories/patients/practices.rb +2 -2
- data/spec/factories/patients/primary_care_physicians.rb +3 -3
- data/spec/factories/patients/religions.rb +1 -1
- data/spec/factories/pd/bag_types.rb +13 -13
- data/spec/factories/pd/episode_types.rb +2 -2
- data/spec/factories/pd/exit_site_infections.rb +4 -4
- data/spec/factories/pd/fluid_descriptions.rb +1 -1
- data/spec/factories/pd/infection_organisms.rb +3 -3
- data/spec/factories/pd/modality_descriptions.rb +1 -1
- data/spec/factories/pd/organism_codes.rb +2 -2
- data/spec/factories/pd/pd_regimes.rb +20 -20
- data/spec/factories/pd/peritonitis_episodes.rb +14 -14
- data/spec/factories/pd/regime_bags.rb +30 -30
- data/spec/factories/pd/systems.rb +2 -2
- data/spec/factories/pd/training_sites.rb +2 -2
- 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 +2 -2
- data/spec/factories/renal/prd_description.rb +2 -2
- data/spec/factories/renal/profiles.rb +2 -2
- data/spec/factories/reporting/audits.rb +4 -4
- data/spec/factories/research/studies.rb +2 -2
- data/spec/factories/system/addresses.rb +6 -6
- data/spec/factories/system/countries.rb +6 -6
- data/spec/factories/system/feedback.rb +3 -3
- data/spec/factories/system/messages.rb +2 -2
- data/spec/factories/system/roles.rb +7 -7
- data/spec/factories/system/templates.rb +8 -8
- data/spec/factories/system/users.rb +12 -12
- data/spec/factories/transplants/donations.rb +2 -2
- data/spec/factories/transplants/donor_stage.rb +3 -3
- data/spec/factories/transplants/live_donor_modality_description.rb +1 -1
- data/spec/factories/transplants/modality_descriptions.rb +1 -1
- data/spec/factories/transplants/recipient_operations.rb +4 -4
- data/spec/factories/transplants/registration_status_descriptions.rb +2 -2
- data/spec/factories/transplants/registrations.rb +1 -1
- data/spec/support/pathology_spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb0aa2a964b933379fa9c6a72eb9570f4b6251f4d124fa6377fb2b6083deb8dd
|
4
|
+
data.tar.gz: bf7030934f456717a02fd899f7dfc530cdbde2e1a62cdaaa640ec268d68033ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4348f2ff8acd6513e6dfd056ae78de44655f115f3ed5d56bfed7ee85169958a3a464e59a28af2920698177b018f3ee31b19adc520168dabe9a147160a9883fe
|
7
|
+
data.tar.gz: 2199399c9b5e3a4dd703c41492c048f59248f02c48b09541925e8baae20cf7c5f58c741368d6e1d21e174d6b16af34e787316379c6535d71d724066ba26aad74
|
@@ -23,7 +23,8 @@ module Renalware
|
|
23
23
|
def patient_presenter
|
24
24
|
patient = Renalware::Patient.find_by!(secure_id: params[:id])
|
25
25
|
authorize patient
|
26
|
-
|
26
|
+
changes_since = params.fetch(:changes_since, "2018-01-01")
|
27
|
+
Renalware::UKRDC::PatientPresenter.new(patient, changes_since: changes_since)
|
27
28
|
end
|
28
29
|
end
|
29
30
|
end
|
@@ -4,11 +4,11 @@
|
|
4
4
|
thead
|
5
5
|
tr
|
6
6
|
th.col-width-date-time Date
|
7
|
-
th.col-width-tiny
|
8
|
-
th.col-width-tiny
|
7
|
+
th.col-width-tiny Dir
|
8
|
+
th.col-width-tiny Fmt
|
9
9
|
th.col-width-tiny Payload
|
10
10
|
th.col-width-large Filename
|
11
|
-
th Patient
|
11
|
+
th.col-width-medium Patient
|
12
12
|
th.col-width-small Ext Session Id
|
13
13
|
th.col-width-small Session Id
|
14
14
|
th.col-width-tiny Result
|
@@ -34,7 +34,7 @@ li.link.action
|
|
34
34
|
|
35
35
|
- if policy(patient).debug?
|
36
36
|
li.link.action
|
37
|
-
= link_to "Debug: UKRDC XML", api_ukrdc_patient_path(patient, changes_since: "
|
37
|
+
= link_to "Debug: UKRDC XML", api_ukrdc_patient_path(patient, changes_since: "2018-01-01")
|
38
38
|
|
39
39
|
- cache do
|
40
40
|
= render "renalware/admissions/requests/modal_dialog_placeholder"
|
@@ -12,7 +12,7 @@ tr(class="#{'aki_alert--hotlist' if aki_alert.hotlist?}")
|
|
12
12
|
td= aki_alert.patient.sex
|
13
13
|
td= aki_alert.patient.age
|
14
14
|
td= aki_alert.action
|
15
|
-
td=
|
15
|
+
td= aki_alert.hospital_ward
|
16
16
|
td= yes_no aki_alert.hotlist?
|
17
17
|
td= aki_alert.max_aki
|
18
18
|
td= l(aki_alert.aki_date)
|
@@ -47,7 +47,7 @@ scss:
|
|
47
47
|
as: :grouped_select,
|
48
48
|
group_method: :wards,
|
49
49
|
collection: Renalware::Hospitals::Unit.joins(:wards).includes(:wards).ordered,
|
50
|
-
label_method:
|
50
|
+
label_method: :name,
|
51
51
|
input_html: { class: "searchable_select" },
|
52
52
|
label: "Ward"
|
53
53
|
|
data/lib/renalware/version.rb
CHANGED
@@ -5,8 +5,8 @@ FactoryBot.define do
|
|
5
5
|
accountable
|
6
6
|
association :patient, factory: :accesses_patient
|
7
7
|
association :plan_type, factory: :access_plan_type
|
8
|
-
notes "Lorem ipsum dolor sit amet.."
|
8
|
+
notes { "Lorem ipsum dolor sit amet.." }
|
9
9
|
decided_by { accountable_actor }
|
10
|
-
terminated_at nil
|
10
|
+
terminated_at { nil }
|
11
11
|
end
|
12
12
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :access_type, class: Renalware::Accesses::Type do
|
5
|
-
name "Tunnelled subclav"
|
6
|
-
abbreviation "TLN LS"
|
7
|
-
rr02_code "TLN"
|
8
|
-
rr41_code "LS"
|
5
|
+
name { "Tunnelled subclav" }
|
6
|
+
abbreviation { "TLN LS" }
|
7
|
+
rr02_code { "TLN" }
|
8
|
+
rr41_code { "LS" }
|
9
9
|
end
|
10
10
|
end
|
@@ -5,8 +5,8 @@ FactoryBot.define do
|
|
5
5
|
accountable
|
6
6
|
patient { create(:patient, by: accountable_actor) }
|
7
7
|
admitted_on { Time.zone.today }
|
8
|
-
admission_type :unknown
|
9
|
-
reason_for_admission "Reason"
|
8
|
+
admission_type { :unknown }
|
9
|
+
reason_for_admission { "Reason" }
|
10
10
|
hospital_ward
|
11
11
|
modality_at_admission { patient&.current_modality }
|
12
12
|
end
|
@@ -5,13 +5,13 @@ FactoryBot.define do
|
|
5
5
|
accountable
|
6
6
|
patient { create(:patient, by: accountable_actor) }
|
7
7
|
association :consult_site, factory: :admissions_consult_site
|
8
|
-
consult_type "x"
|
8
|
+
consult_type { "x" }
|
9
9
|
started_on { Time.zone.now - 2.days }
|
10
|
-
ended_on nil
|
11
|
-
description "Lorem ipsum dolor"
|
10
|
+
ended_on { nil }
|
11
|
+
description { "Lorem ipsum dolor" }
|
12
12
|
|
13
13
|
trait :active do
|
14
|
-
ended_on nil
|
14
|
+
ended_on { nil }
|
15
15
|
end
|
16
16
|
|
17
17
|
trait :inactive do
|
@@ -5,18 +5,18 @@ FactoryBot.define do
|
|
5
5
|
accountable
|
6
6
|
patient
|
7
7
|
assessed_on { 1.week.ago }
|
8
|
-
overhydration "19.1"
|
9
|
-
volume_of_distribution "52.1"
|
10
|
-
total_body_water "23.1"
|
11
|
-
extracellular_water "63.1"
|
12
|
-
intracellular_water "23.1"
|
13
|
-
lean_tissue_index "78.1"
|
14
|
-
fat_tissue_index "32.1"
|
15
|
-
lean_tissue_mass "32.1"
|
16
|
-
fat_tissue_mass "42.1"
|
17
|
-
adipose_tissue_mass "15.1"
|
18
|
-
body_cell_mass "53.1"
|
19
|
-
quality_of_reading "65.123"
|
8
|
+
overhydration { "19.1" }
|
9
|
+
volume_of_distribution { "52.1" }
|
10
|
+
total_body_water { "23.1" }
|
11
|
+
extracellular_water { "63.1" }
|
12
|
+
intracellular_water { "23.1" }
|
13
|
+
lean_tissue_index { "78.1" }
|
14
|
+
fat_tissue_index { "32.1" }
|
15
|
+
lean_tissue_mass { "32.1" }
|
16
|
+
fat_tissue_mass { "42.1" }
|
17
|
+
adipose_tissue_mass { "15.1" }
|
18
|
+
body_cell_mass { "53.1" }
|
19
|
+
quality_of_reading { "65.123" }
|
20
20
|
assessor { accountable_actor }
|
21
21
|
end
|
22
22
|
end
|
@@ -6,12 +6,12 @@ FactoryBot.define do
|
|
6
6
|
patient
|
7
7
|
date { Time.zone.today }
|
8
8
|
time { Time.zone.now }
|
9
|
-
did_not_attend false
|
10
|
-
height 1.5
|
11
|
-
weight 1.5
|
12
|
-
pulse 100
|
13
|
-
systolic_bp 112
|
14
|
-
diastolic_bp 71
|
9
|
+
did_not_attend { false }
|
10
|
+
height { 1.5 }
|
11
|
+
weight { 1.5 }
|
12
|
+
pulse { 100 }
|
13
|
+
systolic_bp { 112 }
|
14
|
+
diastolic_bp { 71 }
|
15
15
|
clinic { create(:clinic, consultant: accountable_actor) }
|
16
16
|
end
|
17
17
|
end
|
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :drug_type, class: "Renalware::Drugs::Type" do
|
5
|
-
code "immuno"
|
6
|
-
name "Immunosuppressant"
|
5
|
+
code { "immuno" }
|
6
|
+
name { "Immunosuppressant" }
|
7
7
|
|
8
8
|
trait :immunosuppressant do
|
9
|
-
code "immunosuppressant"
|
10
|
-
name "Immunosuppressant"
|
9
|
+
code { "immunosuppressant" }
|
10
|
+
name { "Immunosuppressant" }
|
11
11
|
end
|
12
12
|
|
13
13
|
trait :esa do
|
14
|
-
code "esa"
|
15
|
-
name "ESA"
|
14
|
+
code { "esa" }
|
15
|
+
name { "ESA" }
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -6,8 +6,8 @@ FactoryBot.define do
|
|
6
6
|
patient
|
7
7
|
event_type factory: :access_clinic_event_type
|
8
8
|
date_time { Time.zone.now }
|
9
|
-
description "Needs blood sample taken."
|
10
|
-
notes "Would like son to accompany them on clinic visit."
|
9
|
+
description { "Needs blood sample taken." }
|
10
|
+
notes { "Would like son to accompany them on clinic visit." }
|
11
11
|
|
12
12
|
factory :simple_event, class: "Renalware::Events::Simple" do
|
13
13
|
end
|
@@ -5,35 +5,35 @@ FactoryBot.define do
|
|
5
5
|
initialize_with { Renalware::Events::Type.find_or_create_by(name: name) }
|
6
6
|
|
7
7
|
factory :access_clinic_event_type do
|
8
|
-
name "Access--Clinic"
|
8
|
+
name { "Access--Clinic" }
|
9
9
|
end
|
10
10
|
|
11
11
|
factory :swab_event_type do
|
12
|
-
name "Swab"
|
13
|
-
event_class_name "Renalware::Events::Swab"
|
14
|
-
slug "swabs"
|
12
|
+
name { "Swab" }
|
13
|
+
event_class_name { "Renalware::Events::Swab" }
|
14
|
+
slug { "swabs" }
|
15
15
|
end
|
16
16
|
|
17
17
|
factory :biopsy_event_type do
|
18
|
-
name "Renal biopsy"
|
19
|
-
event_class_name "Renalware::Events::Biopsy"
|
18
|
+
name { "Renal biopsy" }
|
19
|
+
event_class_name { "Renalware::Events::Biopsy" }
|
20
20
|
end
|
21
21
|
|
22
22
|
factory :pd_line_change_event_type do
|
23
|
-
name "PD Line Change"
|
24
|
-
slug "pd_line_changes"
|
23
|
+
name { "PD Line Change" }
|
24
|
+
slug { "pd_line_changes" }
|
25
25
|
end
|
26
26
|
|
27
27
|
factory :investigation_event_type do
|
28
|
-
name "Investigation"
|
29
|
-
slug "investigations"
|
30
|
-
event_class_name "Renalware::Events::Investigation"
|
28
|
+
name { "Investigation" }
|
29
|
+
slug { "investigations" }
|
30
|
+
event_class_name { "Renalware::Events::Investigation" }
|
31
31
|
end
|
32
32
|
|
33
33
|
factory :vaccination_event_type do
|
34
|
-
name "Vaccination"
|
35
|
-
slug "vaccinations"
|
36
|
-
event_class_name "Renalware::Virology::Vaccination"
|
34
|
+
name { "Vaccination" }
|
35
|
+
slug { "vaccinations" }
|
36
|
+
event_class_name { "Renalware::Virology::Vaccination" }
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :feed_file_type, class: "Renalware::Feeds::FileType" do
|
5
|
-
name "Practices"
|
6
|
-
description "Import practices"
|
7
|
-
prompt "Where to get the file etc"
|
5
|
+
name { "Practices" }
|
6
|
+
description { "Import practices" }
|
7
|
+
prompt { "Where to get the file etc" }
|
8
8
|
|
9
9
|
trait :practices do
|
10
|
-
name "Practices"
|
11
|
-
description "Import practices"
|
10
|
+
name { "Practices" }
|
11
|
+
description { "Import practices" }
|
12
12
|
end
|
13
13
|
|
14
14
|
trait :primary_care_physicians do
|
15
|
-
name "GPs"
|
16
|
-
description "Import GPs"
|
15
|
+
name { "GPs" }
|
16
|
+
description { "Import GPs" }
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :hd_dialysate, class: "Renalware::HD::Dialysate" do
|
5
5
|
initialize_with { Renalware::HD::Dialysate.find_or_create_by(name: name) }
|
6
|
-
name "Fresenius A7"
|
7
|
-
sodium_content 4
|
8
|
-
sodium_content_uom "mmol/L"
|
9
|
-
description nil
|
10
|
-
deleted_at nil
|
6
|
+
name { "Fresenius A7" }
|
7
|
+
sodium_content { 4 }
|
8
|
+
sodium_content_uom { "mmol/L" }
|
9
|
+
description { nil }
|
10
|
+
deleted_at { nil }
|
11
11
|
end
|
12
12
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :hd_dialyser, class: "Renalware::HD::Dialyser" do
|
5
|
-
group "FX"
|
6
|
-
name "FX80"
|
7
|
-
membrane_surface_area 234.12
|
8
|
-
membrane_surface_area_coefficient_k0a 999.99
|
5
|
+
group { "FX" }
|
6
|
+
name { "FX80" }
|
7
|
+
membrane_surface_area { 234.12 }
|
8
|
+
membrane_surface_area_coefficient_k0a { 999.99 }
|
9
9
|
end
|
10
10
|
end
|