renalware-core 2.0.80 → 2.0.81

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3aa90a846be2948db0c68e68384a6199d8fc84504fbdbd8eaf890a587d3242d
4
- data.tar.gz: 0730cc42cf7371c20d3c3589bf3b1e66078fd263ecce33e61bf03ebf25e69bd0
3
+ metadata.gz: 2ea09cc406ea37f8d032da2c36a12dc787c5ef3750f7f4e12c4a670c3e8ff830
4
+ data.tar.gz: 412aea15506c64735b3017f4ece62ac4787f91f2adb83073e836f633f482d050
5
5
  SHA512:
6
- metadata.gz: edd227674f0d89c5d865b0f6a4ccc9fc7e1827e30809b11cb740838e93c6ba9e02746d756059b7a56b4161e2d7366dc11d210c83f679ead2a9f90d4bff4986d6
7
- data.tar.gz: 64fc99a1982ec5674374e5d84dbe366757cc18fc0fd0db442d2b0a998b2d6b522fd2227efdb5825e1f9709698b2165c40750b4f28c7373171eec4928526d1519
6
+ metadata.gz: c8b859c3b14b558f2235be137545bae764c6d3b9031cf9d0d3670dd2333e19bec042f1676094cc9126385f99116a0393fe83ccb06f18fd848546c6ae5d4e90ac
7
+ data.tar.gz: e260f159211b20f9fc0ae804a80ef6f7243308f3ea72d795848d9355e116c19292d3469262c847c8fadac1d29c01d1bd088f95e68f14fa875075040d5868949f
@@ -39,7 +39,7 @@ module Renalware
39
39
  end
40
40
 
41
41
  def modalities
42
- __getobj__.modalities.order(started_on: :asc)
42
+ __getobj__.modalities.includes(:description).order(started_on: :asc)
43
43
  end
44
44
 
45
45
  def dead?
@@ -12,8 +12,8 @@ patient.modalities.each do |modality|
12
12
  xml.Treatment do
13
13
  xml.EncounterNumber modality.id
14
14
  xml.EncounterType "N"
15
- xml.FromTime modality.started_on.to_time&.iso8601
16
- xml.ToTime modality.ended_on.to_time&.iso8601
15
+ xml.FromTime modality.started_on&.iso8601
16
+ xml.ToTime modality.ended_on&.iso8601
17
17
 
18
18
  xml.HealthCareFacility do
19
19
  xml.CodingStandard "ODS"
@@ -7,6 +7,7 @@ class AddUKRDCModalityCodeIdToModalityDescriptions < ActiveRecord::Migration[5.2
7
7
 
8
8
  reversible do |direction|
9
9
  direction.up do
10
+ # Obviously this 'data migration' will only apply if modality_descriptions are already seeded!
10
11
  connection.execute(<<-SQL.squish)
11
12
  update renalware.modality_descriptions set ukrdc_modality_code_id = (select id from renalware.ukrdc_modality_codes where qbl_code = '19') where name = 'PD';
12
13
  update renalware.modality_descriptions set ukrdc_modality_code_id = (select id from renalware.ukrdc_modality_codes where qbl_code = '1') where name = 'HD';
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.80"
4
+ VERSION = "2.0.81"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renalware-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.80
4
+ version: 2.0.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie