renalware-core 2.0.80 → 2.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/presenters/renalware/ukrdc/patient_presenter.rb +1 -1
- data/app/views/renalware/api/ukrdc/patients/_treatments.xml.builder +2 -2
- data/db/migrate/20190607134717_add_ukrdc_modality_code_id_to_modality_descriptions.rb +1 -0
- data/lib/renalware/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea09cc406ea37f8d032da2c36a12dc787c5ef3750f7f4e12c4a670c3e8ff830
|
4
|
+
data.tar.gz: 412aea15506c64735b3017f4ece62ac4787f91f2adb83073e836f633f482d050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b859c3b14b558f2235be137545bae764c6d3b9031cf9d0d3670dd2333e19bec042f1676094cc9126385f99116a0393fe83ccb06f18fd848546c6ae5d4e90ac
|
7
|
+
data.tar.gz: e260f159211b20f9fc0ae804a80ef6f7243308f3ea72d795848d9355e116c19292d3469262c847c8fadac1d29c01d1bd088f95e68f14fa875075040d5868949f
|
@@ -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
|
16
|
-
xml.ToTime modality.ended_on
|
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';
|
data/lib/renalware/version.rb
CHANGED