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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/renalware/api/ukrdc/patients_controller.rb +2 -1
  3. data/app/views/renalware/hd/transmission_logs/index.html.slim +3 -3
  4. data/app/views/renalware/patients/side_menu/_actions.html.slim +1 -1
  5. data/app/views/renalware/renal/aki_alerts/_aki_alert.html.slim +1 -1
  6. data/app/views/renalware/renal/aki_alerts/_filters.html.slim +1 -1
  7. data/lib/renalware/version.rb +1 -1
  8. data/spec/factories/accesses/plans.rb +2 -2
  9. data/spec/factories/accesses/plans_types.rb +1 -1
  10. data/spec/factories/accesses/procedures.rb +1 -1
  11. data/spec/factories/accesses/profiles.rb +1 -1
  12. data/spec/factories/accesses/sites.rb +2 -2
  13. data/spec/factories/accesses/types.rb +4 -4
  14. data/spec/factories/admissions/admissions.rb +2 -2
  15. data/spec/factories/admissions/consults.rb +4 -4
  16. data/spec/factories/admissions/request_reasons.rb +1 -1
  17. data/spec/factories/admissions/requests.rb +1 -1
  18. data/spec/factories/clinical/body_compositions.rb +12 -12
  19. data/spec/factories/clinical/dry_weights.rb +1 -1
  20. data/spec/factories/clinics/clinic_visits.rb +6 -6
  21. data/spec/factories/clinics/clinics.rb +1 -1
  22. data/spec/factories/deaths/cause.rb +2 -2
  23. data/spec/factories/drugs/drug.rb +1 -1
  24. data/spec/factories/drugs/drug_types.rb +6 -6
  25. data/spec/factories/events/events.rb +2 -2
  26. data/spec/factories/events/events_types.rb +14 -14
  27. data/spec/factories/feeds/file_types.rb +7 -7
  28. data/spec/factories/hd/cannulation_types.rb +1 -1
  29. data/spec/factories/hd/dialysates.rb +5 -5
  30. data/spec/factories/hd/dialysers.rb +4 -4
  31. data/spec/factories/hd/diaries.rb +4 -4
  32. data/spec/factories/hd/diurnal_period_codes.rb +4 -4
  33. data/spec/factories/hd/hd_session_document.rb +28 -28
  34. data/spec/factories/hd/patient_statistics.rb +20 -20
  35. data/spec/factories/hd/preference_sets.rb +1 -1
  36. data/spec/factories/hd/profiles.rb +1 -1
  37. data/spec/factories/hd/schedule_definitions.rb +4 -4
  38. data/spec/factories/hd/sessions.rb +4 -4
  39. data/spec/factories/hd/station_locations.rb +2 -2
  40. data/spec/factories/hd/stations.rb +1 -1
  41. data/spec/factories/hd/transmission_logs.rb +4 -4
  42. data/spec/factories/hospitals/centres.rb +2 -2
  43. data/spec/factories/hospitals/units.rb +5 -5
  44. data/spec/factories/hospitals/wards.rb +1 -1
  45. data/spec/factories/letters/archives.rb +1 -1
  46. data/spec/factories/letters/contact_descriptions.rb +2 -2
  47. data/spec/factories/letters/descriptions.rb +1 -1
  48. data/spec/factories/letters/letterheads.rb +6 -6
  49. data/spec/factories/letters/letters.rb +2 -2
  50. data/spec/factories/letters/recipients.rb +2 -2
  51. data/spec/factories/medications/medication_route.rb +4 -4
  52. data/spec/factories/medications/prescription.rb +5 -5
  53. data/spec/factories/medications/prescription_terminations.rb +1 -1
  54. data/spec/factories/messaging/internal/messages.rb +4 -4
  55. data/spec/factories/messaging/internal/receipts.rb +1 -1
  56. data/spec/factories/modalities/modalities.rb +1 -1
  57. data/spec/factories/modalities/modality_descriptions.rb +13 -13
  58. data/spec/factories/modalities/modality_reasons.rb +5 -5
  59. data/spec/factories/pathology/measurement_units.rb +1 -1
  60. data/spec/factories/pathology/observation_descriptions.rb +7 -7
  61. data/spec/factories/pathology/observation_requests.rb +1 -1
  62. data/spec/factories/pathology/observations.rb +3 -3
  63. data/spec/factories/pathology/request_descriptions.rb +1 -1
  64. data/spec/factories/pathology/requests/drug_category.rb +1 -1
  65. data/spec/factories/pathology/requests/global_rule.rb +3 -3
  66. data/spec/factories/pathology/requests/patient_rule.rb +5 -5
  67. data/spec/factories/patients/alerts.rb +1 -1
  68. data/spec/factories/patients/bookmarks.rb +1 -1
  69. data/spec/factories/patients/ethnicities.rb +2 -2
  70. data/spec/factories/patients/languages.rb +8 -8
  71. data/spec/factories/patients/patients.rb +7 -7
  72. data/spec/factories/patients/practice_memberships.rb +1 -1
  73. data/spec/factories/patients/practices.rb +2 -2
  74. data/spec/factories/patients/primary_care_physicians.rb +3 -3
  75. data/spec/factories/patients/religions.rb +1 -1
  76. data/spec/factories/pd/bag_types.rb +13 -13
  77. data/spec/factories/pd/episode_types.rb +2 -2
  78. data/spec/factories/pd/exit_site_infections.rb +4 -4
  79. data/spec/factories/pd/fluid_descriptions.rb +1 -1
  80. data/spec/factories/pd/infection_organisms.rb +3 -3
  81. data/spec/factories/pd/modality_descriptions.rb +1 -1
  82. data/spec/factories/pd/organism_codes.rb +2 -2
  83. data/spec/factories/pd/pd_regimes.rb +20 -20
  84. data/spec/factories/pd/peritonitis_episodes.rb +14 -14
  85. data/spec/factories/pd/regime_bags.rb +30 -30
  86. data/spec/factories/pd/systems.rb +2 -2
  87. data/spec/factories/pd/training_sites.rb +2 -2
  88. data/spec/factories/pd/training_types.rb +1 -1
  89. data/spec/factories/problems/problems.rb +1 -1
  90. data/spec/factories/renal/aki_alert_actions.rb +1 -1
  91. data/spec/factories/renal/aki_alerts.rb +2 -2
  92. data/spec/factories/renal/prd_description.rb +2 -2
  93. data/spec/factories/renal/profiles.rb +2 -2
  94. data/spec/factories/reporting/audits.rb +4 -4
  95. data/spec/factories/research/studies.rb +2 -2
  96. data/spec/factories/system/addresses.rb +6 -6
  97. data/spec/factories/system/countries.rb +6 -6
  98. data/spec/factories/system/feedback.rb +3 -3
  99. data/spec/factories/system/messages.rb +2 -2
  100. data/spec/factories/system/roles.rb +7 -7
  101. data/spec/factories/system/templates.rb +8 -8
  102. data/spec/factories/system/users.rb +12 -12
  103. data/spec/factories/transplants/donations.rb +2 -2
  104. data/spec/factories/transplants/donor_stage.rb +3 -3
  105. data/spec/factories/transplants/live_donor_modality_description.rb +1 -1
  106. data/spec/factories/transplants/modality_descriptions.rb +1 -1
  107. data/spec/factories/transplants/recipient_operations.rb +4 -4
  108. data/spec/factories/transplants/registration_status_descriptions.rb +2 -2
  109. data/spec/factories/transplants/registrations.rb +1 -1
  110. data/spec/support/pathology_spec_helper.rb +1 -1
  111. metadata +2 -2
@@ -3,6 +3,6 @@
3
3
  FactoryBot.define do
4
4
  factory :live_donor_modality_description,
5
5
  class: "Renalware::Transplants::DonorModalityDescription" do
6
- name "Live Donor"
6
+ name { "Live Donor" }
7
7
  end
8
8
  end
@@ -3,7 +3,7 @@
3
3
  FactoryBot.define do
4
4
  factory :transplant_donor_modality_description,
5
5
  class: "Renalware::Transplants::DonorModalityDescription" do
6
- name "Live Donor"
6
+ name { "Live Donor" }
7
7
  end
8
8
 
9
9
  factory :transplant_modality_description, class: "Renalware::HD::ModalityDescription" do
@@ -5,12 +5,12 @@ FactoryBot.define do
5
5
  patient { build(:transplant_patient) }
6
6
 
7
7
  performed_on { 1.week.ago }
8
- theatre_case_start_time "11:00"
8
+ theatre_case_start_time { "11:00" }
9
9
  donor_kidney_removed_from_ice_at { 1.week.ago }
10
10
  kidney_perfused_with_blood_at { 1.week.ago }
11
- operation_type :kidney
12
- cold_ischaemic_time "00:45"
13
- warm_ischaemic_time "00:12"
11
+ operation_type { :kidney }
12
+ cold_ischaemic_time { "00:45" }
13
+ warm_ischaemic_time { "00:12" }
14
14
 
15
15
  association :hospital_centre, factory: :hospital_centre
16
16
  end
@@ -3,7 +3,7 @@
3
3
  FactoryBot.define do
4
4
  factory :transplant_registration_status_description,
5
5
  class: Renalware::Transplants::RegistrationStatusDescription do
6
- code "active"
7
- name "Active"
6
+ code { "active" }
7
+ name { "Active" }
8
8
  end
9
9
  end
@@ -25,7 +25,7 @@ FactoryBot.define do
25
25
 
26
26
  trait :in_status do
27
27
  transient do
28
- status "active"
28
+ status { "active" }
29
29
  end
30
30
 
31
31
  after(:create) do |registration, evaluator|
@@ -10,7 +10,7 @@ module PathologySpecHelper
10
10
  observed_at: Time.zone.now,
11
11
  result: 1)
12
12
  descriptions.map do |description|
13
- request = create(:pathology_observation_request, patient: patient)
13
+ request = create(:pathology_observation_request, patient: patient, requested_at: observed_at)
14
14
  create(:pathology_observation,
15
15
  request: request,
16
16
  description: description,
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.42
4
+ version: 2.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type