renalware-core 2.0.0.pre.beta8 → 2.0.0.pre.beta9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -1
- data/app/assets/stylesheets/renalware/lib/_select2-foundation5-overrides.scss +2 -2
- data/app/controllers/renalware/directory/people_controller.rb +1 -1
- data/app/controllers/renalware/letters/contacts_controller.rb +1 -1
- data/app/controllers/renalware/letters/letters_controller.rb +1 -1
- data/app/controllers/renalware/patients/patients_controller.rb +3 -5
- data/app/controllers/renalware/patients/primary_care_physicians_controller.rb +1 -1
- data/app/controllers/renalware/renal/aki_alerts_controller.rb +44 -0
- data/app/controllers/renalware/renal/profiles_controller.rb +1 -1
- data/app/controllers/renalware/reporting/audits_controller.rb +9 -3
- data/app/documents/renalware/patient_document.rb +0 -13
- data/app/jobs/hl7_message_example.yml +1 -1
- data/app/jobs/renalware/reporting/refresh_audit_data_job.rb +7 -3
- data/app/models/renalware/clinical/create_allergy.rb +4 -2
- data/app/models/renalware/clinics/create_clinic_visit.rb +6 -2
- data/app/models/renalware/hd/session.rb +12 -0
- data/app/models/renalware/hospitals/unit.rb +4 -0
- data/app/models/renalware/hospitals/ward.rb +22 -0
- data/app/models/renalware/modalities/change_patient_modality.rb +4 -2
- data/app/models/renalware/patient.rb +1 -0
- data/app/models/renalware/patients/language.rb +1 -0
- data/app/models/renalware/pd/create_regime.rb +4 -2
- data/app/models/renalware/pd/revise_regime.rb +5 -3
- data/app/models/renalware/renal/aki_alert.rb +15 -0
- data/app/models/renalware/renal/aki_alert_action.rb +10 -0
- data/app/models/renalware/reporting/audit.rb +2 -3
- data/app/models/renalware/reporting/generate_audit_json.rb +21 -5
- data/app/models/renalware/system/country.rb +21 -0
- data/app/models/renalware/transplants/create_donor_stage.rb +4 -2
- data/app/policies/renalware/base_policy.rb +4 -0
- data/app/policies/renalware/renal/aki_alert_policy.rb +9 -0
- data/app/presenters/renalware/hd/patient_presenter.rb +5 -0
- data/app/presenters/renalware/reporting/audit_presenter.rb +1 -0
- data/app/presenters/renalware/transplants/patient_presenter.rb +2 -1
- data/app/presenters/renalware/ukrdc/patient_presenter.rb +27 -0
- data/app/values/renalware/address.rb +2 -13
- data/app/views/renalware/addresses/_form.html.slim +4 -2
- data/app/views/renalware/api/ukrdc/patients/_address.xml.builder +2 -2
- data/app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder +5 -2
- data/app/views/renalware/api/ukrdc/patients/_encounters.xml.builder +8 -1
- data/app/views/renalware/api/ukrdc/patients/_medications.xml.builder +30 -0
- data/app/views/renalware/api/ukrdc/patients/_patient.xml.builder +36 -4
- data/app/views/renalware/api/ukrdc/patients/_sending_facility.xml.builder +1 -0
- data/app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder +10 -0
- data/app/views/renalware/api/ukrdc/patients/encounters/_hd_session.xml.builder +40 -0
- data/app/views/renalware/api/ukrdc/patients/show.xml.builder +1 -0
- data/app/views/renalware/directory/people/_address_form.html.slim +1 -1
- data/app/views/renalware/hd/sessions/_form.html.slim +43 -33
- data/app/views/renalware/letters/contacts/_person_form.html.slim +1 -1
- data/app/views/renalware/navigation/_renal.html.slim +1 -0
- data/app/views/renalware/patients/patients/_form.html.slim +5 -2
- data/app/views/renalware/patients/patients/show.html.slim +0 -5
- data/app/views/renalware/patients/patients/show/_patient_demographics.html.slim +3 -3
- data/app/views/renalware/patients/side_menu/_actions.html.slim +3 -0
- data/app/views/renalware/renal/aki_alerts/_filters.html.slim +0 -0
- data/app/views/renalware/renal/aki_alerts/edit.html.slim +17 -0
- data/app/views/renalware/renal/aki_alerts/index.html.slim +28 -0
- data/app/views/renalware/reporting/audits/edit.html.slim +1 -1
- data/app/views/renalware/reporting/audits/index.html.slim +11 -7
- data/app/views/renalware/reporting/audits/show.html.slim +2 -17
- data/app/views/renalware/shared/documents/_blood_pressure_input.html.slim +6 -7
- data/config/initializers/inflections.rb +3 -2
- data/config/locales/renalware/navigation/renal.en.yml +1 -0
- data/config/locales/renalware/renal/aki_alerts.en.yml +5 -0
- data/config/locales/renalware/renal/{profile.yml → profile.en.yml} +0 -0
- data/config/locales/renalware/reporting/audit.en.yml +1 -1
- data/config/routes.rb +1 -0
- data/db/migrate/20150312113937_create_drug_types_drugs.rb +2 -2
- data/db/migrate/20170925161033_add_code_to_patient_langauges.rb +6 -0
- data/db/migrate/20170925182738_add_rr_code_to_medication_routes.rb +5 -0
- data/db/migrate/20170926081426_create_countries.rb +14 -0
- data/db/migrate/20170926132845_add_country_of_birth_to_patients.rb +6 -0
- data/db/migrate/20171002175804_add_rr_columns_to_transplant_registration_status_descriptions.rb +12 -0
- data/db/migrate/20171003093347_create_hospital_wards.rb +17 -0
- data/db/migrate/20171003111228_create_aki_alert_actions.rb +10 -0
- data/db/migrate/20171003122425_create_renal_aki_alerts.rb +22 -0
- data/db/migrate/20171005081224_create_reporting_bone_audit.rb +5 -0
- data/db/migrate/20171005091202_reporting_audit_changes.rb +7 -0
- data/db/migrate/20171005130109_create_medication_current_prescriptions.rb +5 -0
- data/db/migrate/20171005144505_create_reporting_anaemia_audit.rb +5 -0
- data/db/migrate/20171009104106_add_legacy_patient_id_to_patients.rb +6 -0
- data/db/seeds/default/events/{event_types_required.csv → event_types.csv} +0 -0
- data/db/seeds/default/events/{event_types_required.rb → event_types.rb} +2 -2
- data/db/seeds/default/events/seeds.rb +1 -2
- data/db/seeds/default/medications/medication_routes.rb +23 -13
- data/db/seeds/default/patients/patients_languages.csv +192 -102
- data/db/seeds/default/patients/patients_languages.rb +1 -1
- data/db/seeds/default/patients/patients_religions.csv +2 -0
- data/db/seeds/default/reporting/audits.rb +4 -3
- data/db/seeds/default/reporting/audits.yml +47 -4
- data/db/seeds/default/system/countries.csv +250 -0
- data/db/seeds/default/system/countries.rb +12 -0
- data/db/seeds/default/system/seeds.rb +1 -0
- data/db/seeds/default/transplants/transplant_registration_statuses.rb +30 -19
- data/db/views/medication_current_prescriptions_v01.sql +28 -0
- data/db/views/reporting_anaemia_audit_v01.sql +41 -0
- data/db/views/reporting_bone_audit_v01.sql +32 -0
- data/lib/renalware/version.rb +1 -1
- data/spec/factories/deaths/cause.rb +1 -1
- data/spec/factories/drugs/drug.rb +6 -0
- data/spec/factories/drugs/drug_types.rb +5 -0
- data/spec/factories/hospitals/wards.rb +9 -0
- data/spec/factories/modalities/modality_descriptions.rb +10 -8
- data/spec/factories/patients/ethnicities.rb +3 -0
- data/spec/factories/patients/languages.rb +12 -1
- data/spec/factories/renal/aki_alert_actions.rb +5 -0
- data/spec/factories/renal/aki_alerts.rb +9 -0
- data/spec/factories/reporting/audits.rb +1 -1
- data/spec/factories/system/addresses.rb +1 -1
- data/spec/factories/system/countries.rb +15 -0
- metadata +42 -13
- data/app/values/renalware/country.rb +0 -19
- data/config/countries.csv +0 -250
- data/db/migrate/20170706120643_create_reporting_data_sources.rb +0 -5
- data/db/seeds/default/events/event_types_blt.csv +0 -109
- data/db/seeds/default/events/event_types_local.rb +0 -10
- data/db/views/reporting_data_sources_v01.sql +0 -17
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
--explain analyze
|
3
|
+
select
|
4
|
+
modality_desc modality,
|
5
|
+
count(e1.patient_id) count_patients,
|
6
|
+
round(avg(hgb),2) avg_hgb,
|
7
|
+
round(count(hgb_gt_eq_10) / greatest(count(hgb), 1.0) * 100.0, 2) pct_hgb_gt_eq_10,
|
8
|
+
round(count(hgb_gt_eq_11) / greatest(count(hgb), 1.0) * 100.0, 2) pct_hgb_gt_eq_11,
|
9
|
+
round(count(hgb_gt_eq_13) / greatest(count(hgb), 1.0) * 100.0, 2) pct_hgb_gt_eq_13,
|
10
|
+
round(avg(fer),2) avg_fer,
|
11
|
+
round(count(fer_gt_eq_150) / greatest(count(fer), 1.0) * 100.0, 2) pct_fer_gt_eq_150,
|
12
|
+
coalesce(sum(immunosuppressants.ct), 0)::integer as count_epo,
|
13
|
+
coalesce(sum(mircer.ct), 0)::integer as count_mircer,
|
14
|
+
coalesce(sum(neo.ct), 0)::integer as count_neo,
|
15
|
+
coalesce(sum(ara.ct), 0)::integer as count_ara
|
16
|
+
from (
|
17
|
+
select
|
18
|
+
p.id patient_id,
|
19
|
+
md.name modality_desc
|
20
|
+
from patients p
|
21
|
+
inner join modality_modalities m on m.patient_id = p.id
|
22
|
+
inner join modality_descriptions md on m.description_id = md.id
|
23
|
+
where m.ended_on is null or m.ended_on > current_timestamp
|
24
|
+
) e1
|
25
|
+
full join (select mcp.patient_id, count(distinct mcp.drug_id) as ct from medication_current_prescriptions mcp where drug_type_code = 'immunosuppressant' group by mcp.patient_id) as immunosuppressants
|
26
|
+
on e1.patient_id = immunosuppressants.patient_id
|
27
|
+
full join (select mcp.patient_id, count(distinct mcp.drug_id) as ct from medication_current_prescriptions mcp where drug_name like 'Mircer%' group by mcp.patient_id) as mircer
|
28
|
+
on e1.patient_id = mircer.patient_id
|
29
|
+
full join (select mcp.patient_id, count(distinct mcp.drug_id) as ct from medication_current_prescriptions mcp where drug_name like 'Neo%' group by mcp.patient_id) as neo
|
30
|
+
on e1.patient_id = neo.patient_id
|
31
|
+
full join (select mcp.patient_id, count(distinct mcp.drug_id) as ct from medication_current_prescriptions mcp where drug_name like 'Ara%' group by mcp.patient_id) as ara
|
32
|
+
on e1.patient_id = ara.patient_id
|
33
|
+
|
34
|
+
left join lateral (select result::decimal hgb from pathology_current_observations where description_code = 'HGB' and patient_id = e1.patient_id) e2 ON true
|
35
|
+
left join lateral (select result::decimal fer from pathology_current_observations where description_code = 'FER' and patient_id = e1.patient_id) e3 ON true
|
36
|
+
left join lateral (select hgb hgb_gt_eq_10 where hgb >= 10) e4 ON true
|
37
|
+
left join lateral (select hgb hgb_gt_eq_11 where hgb >= 11) e5 ON true
|
38
|
+
left join lateral (select hgb hgb_gt_eq_13 where hgb >= 13) e6 ON true
|
39
|
+
left join lateral (select fer fer_gt_eq_150 where fer >= 150) e7 ON true
|
40
|
+
where modality_desc in ('HD','PD','Transplant', 'LCC', 'Nephrology')
|
41
|
+
group by modality_desc
|
@@ -0,0 +1,32 @@
|
|
1
|
+
-- Note that in the example of
|
2
|
+
-- greatest(count(cca_2_1_to_2_4), 1) we default to a 1 if count is 0 which you think
|
3
|
+
-- would ff
|
4
|
+
select
|
5
|
+
modality_desc modality,
|
6
|
+
count(patient_id) patient_count,
|
7
|
+
round(avg(cca),2) avg_cca,
|
8
|
+
round(count(cca_2_1_to_2_4) / greatest(count(cca), 1.0) * 100.0, 2) pct_cca_2_1_to_2_4,
|
9
|
+
round(count(pth_gt_300) / greatest(count(pth), 1.0) * 100.0, 2) pct_pth_gt_300,
|
10
|
+
round(count(pth_gt_800) / greatest(count(pth), 1.0) * 100.0, 2) pct_pth_gt_800_pct,
|
11
|
+
round(avg(phos),2) avg_phos,
|
12
|
+
max(phos) max_phos,
|
13
|
+
round(count(phos_lt_1_8) / greatest(count(phos), 1.0) * 100.0, 2) pct_phos_lt_1_8
|
14
|
+
|
15
|
+
from (
|
16
|
+
select
|
17
|
+
p.id patient_id,
|
18
|
+
md.name modality_desc
|
19
|
+
from patients p
|
20
|
+
inner join modality_modalities m on m.patient_id = p.id
|
21
|
+
inner join modality_descriptions md on m.description_id = md.id
|
22
|
+
) e1
|
23
|
+
left join lateral (select result::decimal pth from pathology_current_observations where description_code = 'PTH' and patient_id = e1.patient_id) e2 ON true
|
24
|
+
left join lateral (select result::decimal phos from pathology_current_observations where description_code = 'PHOS' and patient_id = e1.patient_id) e3 ON true
|
25
|
+
left join lateral (select result::decimal cca from pathology_current_observations where description_code = 'CCA' and patient_id = e1.patient_id) e4 ON true
|
26
|
+
left join lateral (select phos phos_lt_1_8 where phos < 1.8) e5 ON true
|
27
|
+
left join lateral (select pth pth_gt_800 where pth > 800) e6 ON true
|
28
|
+
left join lateral (select pth pth_gt_300 where pth > 300) e7 ON true
|
29
|
+
left join lateral (select cca cca_2_1_to_2_4 where cca between 2.1 and 2.4) e8 ON true
|
30
|
+
where modality_desc in ('HD','PD','Transplant', 'LCC')
|
31
|
+
group by modality_desc
|
32
|
+
|
data/lib/renalware/version.rb
CHANGED
@@ -1,26 +1,22 @@
|
|
1
1
|
FactoryGirl.define do
|
2
2
|
factory :modality_description, class: "Renalware::Modalities::Description" do
|
3
|
-
name "
|
3
|
+
name "unspecific modality description not set in factory"
|
4
4
|
|
5
5
|
initialize_with { Renalware::Modalities::Description.find_or_create_by(name: name) }
|
6
6
|
|
7
|
-
trait :capd_standard do
|
8
|
-
name "CAPD (standard)"
|
9
|
-
end
|
10
|
-
trait :ccpd_6_nights do
|
11
|
-
name "CCPD (<6 nights/wk)"
|
12
|
-
end
|
13
|
-
|
14
7
|
trait :pd do
|
15
8
|
name "PD"
|
9
|
+
type "Renalware::PD::ModalityDescription"
|
16
10
|
end
|
17
11
|
|
18
12
|
trait :hd do
|
19
13
|
name "HD"
|
14
|
+
type "Renalware::HD::ModalityDescription"
|
20
15
|
end
|
21
16
|
|
22
17
|
trait :transplant do
|
23
18
|
name "Transplant"
|
19
|
+
type "Renalware::Transplants::RecipientModalityDescription"
|
24
20
|
end
|
25
21
|
|
26
22
|
trait :lcc do
|
@@ -29,6 +25,12 @@ FactoryGirl.define do
|
|
29
25
|
|
30
26
|
trait :death do
|
31
27
|
name "Death"
|
28
|
+
type "Renalware::Deaths::ModalityDescription"
|
29
|
+
end
|
30
|
+
|
31
|
+
trait :live_donor do
|
32
|
+
name "Live Donor"
|
33
|
+
type "Renalware::Transplants::DonorModalityDescription"
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
@@ -1,5 +1,16 @@
|
|
1
1
|
FactoryGirl.define do
|
2
|
-
factory :
|
2
|
+
factory :language, class: "Renalware::Patients::Language" do
|
3
3
|
name "English"
|
4
|
+
code "en"
|
5
|
+
|
6
|
+
trait :english do
|
7
|
+
name "English"
|
8
|
+
code "en"
|
9
|
+
end
|
10
|
+
|
11
|
+
trait :aftrikaans do
|
12
|
+
name "Afrikaans"
|
13
|
+
code "af"
|
14
|
+
end
|
4
15
|
end
|
5
16
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :country, class: "Renalware::System::Country" do
|
3
|
+
factory :united_kingdom do
|
4
|
+
name "United Kingdom"
|
5
|
+
alpha2 "GB"
|
6
|
+
alpha3 "GBR"
|
7
|
+
end
|
8
|
+
|
9
|
+
factory :algeria do
|
10
|
+
name "Algeria"
|
11
|
+
alpha2 "DZ"
|
12
|
+
alpha3 "DZA"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renalware-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.beta9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -1080,14 +1080,14 @@ dependencies:
|
|
1080
1080
|
requirements:
|
1081
1081
|
- - "~>"
|
1082
1082
|
- !ruby/object:Gem::Version
|
1083
|
-
version: 0.
|
1083
|
+
version: 0.50.0
|
1084
1084
|
type: :development
|
1085
1085
|
prerelease: false
|
1086
1086
|
version_requirements: !ruby/object:Gem::Requirement
|
1087
1087
|
requirements:
|
1088
1088
|
- - "~>"
|
1089
1089
|
- !ruby/object:Gem::Version
|
1090
|
-
version: 0.
|
1090
|
+
version: 0.50.0
|
1091
1091
|
- !ruby/object:Gem::Dependency
|
1092
1092
|
name: shoulda-matchers
|
1093
1093
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1374,6 +1374,7 @@ files:
|
|
1374
1374
|
- app/controllers/renalware/pd/training_sessions_controller.rb
|
1375
1375
|
- app/controllers/renalware/problems/notes_controller.rb
|
1376
1376
|
- app/controllers/renalware/problems/problems_controller.rb
|
1377
|
+
- app/controllers/renalware/renal/aki_alerts_controller.rb
|
1377
1378
|
- app/controllers/renalware/renal/base_controller.rb
|
1378
1379
|
- app/controllers/renalware/renal/prd_descriptions_controller.rb
|
1379
1380
|
- app/controllers/renalware/renal/profiles_controller.rb
|
@@ -1605,6 +1606,7 @@ files:
|
|
1605
1606
|
- app/models/renalware/hospitals.rb
|
1606
1607
|
- app/models/renalware/hospitals/centre.rb
|
1607
1608
|
- app/models/renalware/hospitals/unit.rb
|
1609
|
+
- app/models/renalware/hospitals/ward.rb
|
1608
1610
|
- app/models/renalware/letters.rb
|
1609
1611
|
- app/models/renalware/letters/approve_letter.rb
|
1610
1612
|
- app/models/renalware/letters/archive.rb
|
@@ -1811,6 +1813,8 @@ files:
|
|
1811
1813
|
- app/models/renalware/problems/problem.rb
|
1812
1814
|
- app/models/renalware/problems/version.rb
|
1813
1815
|
- app/models/renalware/renal.rb
|
1816
|
+
- app/models/renalware/renal/aki_alert.rb
|
1817
|
+
- app/models/renalware/renal/aki_alert_action.rb
|
1814
1818
|
- app/models/renalware/renal/patient.rb
|
1815
1819
|
- app/models/renalware/renal/prd_description.rb
|
1816
1820
|
- app/models/renalware/renal/prd_descriptions/search_query.rb
|
@@ -1825,6 +1829,7 @@ files:
|
|
1825
1829
|
- app/models/renalware/snippets/snippet_query.rb
|
1826
1830
|
- app/models/renalware/snippets/user.rb
|
1827
1831
|
- app/models/renalware/system.rb
|
1832
|
+
- app/models/renalware/system/country.rb
|
1828
1833
|
- app/models/renalware/system/render_liquid_template.rb
|
1829
1834
|
- app/models/renalware/system/template.rb
|
1830
1835
|
- app/models/renalware/system/update_user.rb
|
@@ -1895,6 +1900,7 @@ files:
|
|
1895
1900
|
- app/policies/renalware/pd/regime_policy.rb
|
1896
1901
|
- app/policies/renalware/pd/training_session_policy.rb
|
1897
1902
|
- app/policies/renalware/problems/problem_policy.rb
|
1903
|
+
- app/policies/renalware/renal/aki_alert_policy.rb
|
1898
1904
|
- app/policies/renalware/reporting/audit_policy.rb
|
1899
1905
|
- app/policies/renalware/snippets/snippet_policy.rb
|
1900
1906
|
- app/policies/renalware/transplants/donor_stage_policy.rb
|
@@ -2001,7 +2007,6 @@ files:
|
|
2001
2007
|
- app/validators/renalware/patients/temperature_validator.rb
|
2002
2008
|
- app/validators/renalware/patients/weight_validator.rb
|
2003
2009
|
- app/values/renalware/address.rb
|
2004
|
-
- app/values/renalware/country.rb
|
2005
2010
|
- app/values/renalware/duration.rb
|
2006
2011
|
- app/values/renalware/gender.rb
|
2007
2012
|
- app/values/renalware/time_of_day.rb
|
@@ -2064,6 +2069,7 @@ files:
|
|
2064
2069
|
- app/views/renalware/api/ukrdc/patients/_encounters.xml.builder
|
2065
2070
|
- app/views/renalware/api/ukrdc/patients/_family_histories.xml.builder
|
2066
2071
|
- app/views/renalware/api/ukrdc/patients/_lab_orders.xml.builder
|
2072
|
+
- app/views/renalware/api/ukrdc/patients/_medications.xml.builder
|
2067
2073
|
- app/views/renalware/api/ukrdc/patients/_name.xml.builder
|
2068
2074
|
- app/views/renalware/api/ukrdc/patients/_observations.xml.builder
|
2069
2075
|
- app/views/renalware/api/ukrdc/patients/_patient.xml.builder
|
@@ -2071,6 +2077,8 @@ files:
|
|
2071
2077
|
- app/views/renalware/api/ukrdc/patients/_sending_facility.xml.builder
|
2072
2078
|
- app/views/renalware/api/ukrdc/patients/_social_histories.xml.builder
|
2073
2079
|
- app/views/renalware/api/ukrdc/patients/_surveys.xml.builder
|
2080
|
+
- app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
|
2081
|
+
- app/views/renalware/api/ukrdc/patients/encounters/_hd_session.xml.builder
|
2074
2082
|
- app/views/renalware/api/ukrdc/patients/lab_orders/_lab_order.xml.builder
|
2075
2083
|
- app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
|
2076
2084
|
- app/views/renalware/api/ukrdc/patients/observations/_blood_pressure.xml.builder
|
@@ -2563,6 +2571,9 @@ files:
|
|
2563
2571
|
- app/views/renalware/problems/problems/index.html.slim
|
2564
2572
|
- app/views/renalware/problems/problems/new.html.slim
|
2565
2573
|
- app/views/renalware/problems/problems/show.html.slim
|
2574
|
+
- app/views/renalware/renal/aki_alerts/_filters.html.slim
|
2575
|
+
- app/views/renalware/renal/aki_alerts/edit.html.slim
|
2576
|
+
- app/views/renalware/renal/aki_alerts/index.html.slim
|
2566
2577
|
- app/views/renalware/renal/prd_descriptions/search.json.jbuilder
|
2567
2578
|
- app/views/renalware/renal/profiles/_form.html.slim
|
2568
2579
|
- app/views/renalware/renal/profiles/_mini.html.slim
|
@@ -2692,7 +2703,6 @@ files:
|
|
2692
2703
|
- app/views/renalware/transplants/wait_lists/show.html.slim
|
2693
2704
|
- config/autoprefixer.yml
|
2694
2705
|
- config/cable.yml
|
2695
|
-
- config/countries.csv
|
2696
2706
|
- config/cucumber.yml
|
2697
2707
|
- config/initializers/application_controller_renderer.rb
|
2698
2708
|
- config/initializers/assets.rb
|
@@ -2788,7 +2798,8 @@ files:
|
|
2788
2798
|
- config/locales/renalware/pd/training_sessions.en.yml
|
2789
2799
|
- config/locales/renalware/pd/treatments.en.yml
|
2790
2800
|
- config/locales/renalware/problems/note.yml
|
2791
|
-
- config/locales/renalware/renal/
|
2801
|
+
- config/locales/renalware/renal/aki_alerts.en.yml
|
2802
|
+
- config/locales/renalware/renal/profile.en.yml
|
2792
2803
|
- config/locales/renalware/reporting/audit.en.yml
|
2793
2804
|
- config/locales/renalware/shared.yml
|
2794
2805
|
- config/locales/renalware/snippets/snippets.en.yml
|
@@ -3052,7 +3063,6 @@ files:
|
|
3052
3063
|
- db/migrate/20170705135512_create_reporting_hd_blood_pressures_audit.rb
|
3053
3064
|
- db/migrate/20170705150913_create_reporting_hd_overall_audit.rb
|
3054
3065
|
- db/migrate/20170705160726_add_descriptions_to_reporting_audits.rb
|
3055
|
-
- db/migrate/20170706120643_create_reporting_data_sources.rb
|
3056
3066
|
- db/migrate/20170707110155_rename_access_plans_to_access_plan_types.rb
|
3057
3067
|
- db/migrate/20170711140607_update_audit_letters_authors_to_version2.rb
|
3058
3068
|
- db/migrate/20170711140926_update_hd_overall_audit_to_version2.rb
|
@@ -3072,6 +3082,19 @@ files:
|
|
3072
3082
|
- db/migrate/20170911133224_add_type_to_messaging_messages.rb
|
3073
3083
|
- db/migrate/20170912092135_create_letters_electronic_receipts.rb
|
3074
3084
|
- db/migrate/20170920113628_create_admissions_requests.rb
|
3085
|
+
- db/migrate/20170925161033_add_code_to_patient_langauges.rb
|
3086
|
+
- db/migrate/20170925182738_add_rr_code_to_medication_routes.rb
|
3087
|
+
- db/migrate/20170926081426_create_countries.rb
|
3088
|
+
- db/migrate/20170926132845_add_country_of_birth_to_patients.rb
|
3089
|
+
- db/migrate/20171002175804_add_rr_columns_to_transplant_registration_status_descriptions.rb
|
3090
|
+
- db/migrate/20171003093347_create_hospital_wards.rb
|
3091
|
+
- db/migrate/20171003111228_create_aki_alert_actions.rb
|
3092
|
+
- db/migrate/20171003122425_create_renal_aki_alerts.rb
|
3093
|
+
- db/migrate/20171005081224_create_reporting_bone_audit.rb
|
3094
|
+
- db/migrate/20171005091202_reporting_audit_changes.rb
|
3095
|
+
- db/migrate/20171005130109_create_medication_current_prescriptions.rb
|
3096
|
+
- db/migrate/20171005144505_create_reporting_anaemia_audit.rb
|
3097
|
+
- db/migrate/20171009104106_add_legacy_patient_id_to_patients.rb
|
3075
3098
|
- db/seeds.rb
|
3076
3099
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
|
3077
3100
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
|
@@ -3092,10 +3115,8 @@ files:
|
|
3092
3115
|
- db/seeds/default/drugs/drug_drug_types.csv
|
3093
3116
|
- db/seeds/default/drugs/drugs.csv
|
3094
3117
|
- db/seeds/default/drugs/seeds.rb
|
3095
|
-
- db/seeds/default/events/
|
3096
|
-
- db/seeds/default/events/
|
3097
|
-
- db/seeds/default/events/event_types_required.csv
|
3098
|
-
- db/seeds/default/events/event_types_required.rb
|
3118
|
+
- db/seeds/default/events/event_types.csv
|
3119
|
+
- db/seeds/default/events/event_types.rb
|
3099
3120
|
- db/seeds/default/events/seeds.rb
|
3100
3121
|
- db/seeds/default/hd/cannulation_types.rb
|
3101
3122
|
- db/seeds/default/hd/dialysers.rb
|
@@ -3155,6 +3176,8 @@ files:
|
|
3155
3176
|
- db/seeds/default/reporting/audits.yml
|
3156
3177
|
- db/seeds/default/reporting/seeds.rb
|
3157
3178
|
- db/seeds/default/seeds.rb
|
3179
|
+
- db/seeds/default/system/countries.csv
|
3180
|
+
- db/seeds/default/system/countries.rb
|
3158
3181
|
- db/seeds/default/system/roles.rb
|
3159
3182
|
- db/seeds/default/system/seeds.rb
|
3160
3183
|
- db/seeds/default/system/users.rb
|
@@ -3166,6 +3189,7 @@ files:
|
|
3166
3189
|
- db/seeds/seeds_helper.rb
|
3167
3190
|
- db/static.obsolete/medication_routes.yml
|
3168
3191
|
- db/structure.sql
|
3192
|
+
- db/views/medication_current_prescriptions_v01.sql
|
3169
3193
|
- db/views/pathology_current_key_observation_sets_v01.sql
|
3170
3194
|
- db/views/pathology_current_key_observation_sets_v02.sql
|
3171
3195
|
- db/views/pathology_current_observations_v01.sql
|
@@ -3173,7 +3197,8 @@ files:
|
|
3173
3197
|
- db/views/patient_summaries_v02.sql
|
3174
3198
|
- db/views/patient_summaries_v03.sql
|
3175
3199
|
- db/views/patient_summaries_v04.sql
|
3176
|
-
- db/views/
|
3200
|
+
- db/views/reporting_anaemia_audit_v01.sql
|
3201
|
+
- db/views/reporting_bone_audit_v01.sql
|
3177
3202
|
- db/views/reporting_hd_blood_pressures_audit_v01.sql
|
3178
3203
|
- db/views/reporting_hd_overall_audit_v01.sql
|
3179
3204
|
- db/views/reporting_hd_overall_audit_v02.sql
|
@@ -3260,6 +3285,7 @@ files:
|
|
3260
3285
|
- spec/factories/hd/stations.rb
|
3261
3286
|
- spec/factories/hospitals/centres.rb
|
3262
3287
|
- spec/factories/hospitals/units.rb
|
3288
|
+
- spec/factories/hospitals/wards.rb
|
3263
3289
|
- spec/factories/letters/archives.rb
|
3264
3290
|
- spec/factories/letters/contact_descriptions.rb
|
3265
3291
|
- spec/factories/letters/contacts.rb
|
@@ -3323,6 +3349,8 @@ files:
|
|
3323
3349
|
- spec/factories/pd/training_sites.rb
|
3324
3350
|
- spec/factories/pd/training_types.rb
|
3325
3351
|
- spec/factories/problems/problems.rb
|
3352
|
+
- spec/factories/renal/aki_alert_actions.rb
|
3353
|
+
- spec/factories/renal/aki_alerts.rb
|
3326
3354
|
- spec/factories/renal/patients.rb
|
3327
3355
|
- spec/factories/renal/prd_description.rb
|
3328
3356
|
- spec/factories/renal/profiles.rb
|
@@ -3331,6 +3359,7 @@ files:
|
|
3331
3359
|
- spec/factories/snippets/snippets.rb
|
3332
3360
|
- spec/factories/snippets/users.rb
|
3333
3361
|
- spec/factories/system/addresses.rb
|
3362
|
+
- spec/factories/system/countries.rb
|
3334
3363
|
- spec/factories/system/roles.rb
|
3335
3364
|
- spec/factories/system/templates.rb
|
3336
3365
|
- spec/factories/system/users.rb
|