renalware-core 2.0.82 → 2.0.83
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/renalware/modules/_hd.scss +5 -3
- data/app/controllers/renalware/transplants/recipient_followups_controller.rb +3 -0
- data/app/models/renalware/transplants/recipient_followup.rb +2 -0
- data/app/presenters/renalware/hd/session_presenter.rb +11 -1
- data/app/presenters/renalware/ukrdc/patient_presenter.rb +1 -1
- data/app/views/renalware/api/ukrdc/patients/procedures/_dialysis_session.xml.builder +2 -2
- data/app/views/renalware/hd/sessions/_row.html.slim +3 -1
- data/app/views/renalware/hd/sessions/_thead.html.slim +3 -0
- data/app/views/renalware/hd/sessions/dna/_row.html.slim +3 -3
- data/app/views/renalware/transplants/recipient_followups/_form.html.slim +4 -1
- data/app/views/renalware/transplants/recipient_followups/show.html.slim +10 -7
- data/config/locales/renalware/hd/session.en.yml +1 -0
- data/config/locales/renalware/transplants/recipient_followup.yml +9 -0
- data/db/migrate/20190611152859_add_fields_to_transplant_recipient_workup.rb +9 -0
- data/db/seeds/default/accesses/access_types.csv +49 -8
- data/db/seeds/default/accesses/access_types.rb +14 -4
- data/db/seeds/default/accesses/seeds.rb +1 -1
- data/lib/renalware/version.rb +1 -1
- metadata +3 -4
- data/db/seeds/default/accesses/access_types_procedures.csv +0 -49
- data/db/seeds/default/accesses/access_types_procedures.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea36b70295976ad3764e8988b21a0160126325d05e82494067da8df9d8d22f3d
|
4
|
+
data.tar.gz: '0805c5b0363012e45a99f006a45780a15975e910abb553da28dda14e0e2e2adf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7b2e1287fde1f498844038df58db88456ff9db4195e0e288a442b1da3663bc8c3a69c830d83354c0f72deab19a61a7a08ee778c70e2bf2c68f416f412093082
|
7
|
+
data.tar.gz: 9bd91cf49ba364a0126ecc37f13ac9b92f7bf93ddafce8a25a5b2e69afa9b1d9566ed33a6d05f20c2821247c093f6990768c570179729ce36489e942ab7a72ef
|
@@ -300,9 +300,6 @@ table.hd-sessions {
|
|
300
300
|
}
|
301
301
|
}
|
302
302
|
|
303
|
-
&.closed {
|
304
|
-
}
|
305
|
-
|
306
303
|
&.dna {
|
307
304
|
td {
|
308
305
|
background-color: #ccc;
|
@@ -311,6 +308,11 @@ table.hd-sessions {
|
|
311
308
|
|
312
309
|
td {
|
313
310
|
border-right: 1px solid #ddd;
|
311
|
+
|
312
|
+
&:first-child {
|
313
|
+
border-left: 1px solid #ddd;
|
314
|
+
}
|
315
|
+
|
314
316
|
&.derived {
|
315
317
|
font-style: italic;
|
316
318
|
}
|
@@ -3,6 +3,12 @@
|
|
3
3
|
module Renalware
|
4
4
|
module HD
|
5
5
|
class SessionPresenter < SimpleDelegator
|
6
|
+
RR40_ACCESS_SIDE_MAP = {
|
7
|
+
"left" => "L",
|
8
|
+
"right" => "R",
|
9
|
+
"unknown" => "U"
|
10
|
+
}.freeze
|
11
|
+
|
6
12
|
attr_reader :preference_set
|
7
13
|
delegate :info,
|
8
14
|
:observations_before,
|
@@ -11,7 +17,7 @@ module Renalware
|
|
11
17
|
:complications,
|
12
18
|
to: :document, allow_nil: true
|
13
19
|
delegate :access_type,
|
14
|
-
:access_type_abbreviation,
|
20
|
+
:access_type_abbreviation, # a concatenation of rr02 and rr41
|
15
21
|
:access_side,
|
16
22
|
:machine_no,
|
17
23
|
to: :info, allow_nil: true
|
@@ -125,6 +131,10 @@ module Renalware
|
|
125
131
|
end
|
126
132
|
end
|
127
133
|
|
134
|
+
def access_side_rr40_code
|
135
|
+
RR40_ACCESS_SIDE_MAP[access_side] || RR40_ACCESS_SIDE_MAP["unknown"]
|
136
|
+
end
|
137
|
+
|
128
138
|
protected
|
129
139
|
|
130
140
|
attr_reader :session, :view_context
|
@@ -31,8 +31,8 @@ xml.DialysisSession(
|
|
31
31
|
xml.ExternalId session.uuid
|
32
32
|
xml.Attributes do
|
33
33
|
xml.QHD19 session.had_intradialytic_hypotension?
|
34
|
-
xml.QHD20 session.
|
35
|
-
xml.QHD21 session.
|
34
|
+
xml.QHD20 session.access_type_abbreviation
|
35
|
+
xml.QHD21 session.access_side_rr40_code
|
36
36
|
xml.QHD22 "N" # Access in two sites simultaneously
|
37
37
|
xml.QHD30 session.blood_flow
|
38
38
|
xml.QHD31 session.duration_in_minutes # Time Dialysed in Minutes
|
@@ -13,6 +13,7 @@ tr.hd-session-row(class=[session.state, stripe_class])
|
|
13
13
|
td= session.before_measurement_for(:weight)
|
14
14
|
td= session.before_measurement_for(:pulse)
|
15
15
|
td= session.before_measurement_for(:temperature)
|
16
|
+
td= session.before_measurement_for(:respiratory_rate)
|
16
17
|
td= session.before_measurement_for(:bm_stix)
|
17
18
|
td= session.before_measurement_for(:blood_pressure)
|
18
19
|
td(rowspan=2)= session.arterial_pressure
|
@@ -37,11 +38,12 @@ tr(class=[session.state, stripe_class])
|
|
37
38
|
i=" (#{change})"
|
38
39
|
td= session.after_measurement_for(:pulse)
|
39
40
|
td= session.after_measurement_for(:temperature)
|
41
|
+
td= session.after_measurement_for(:respiratory_rate)
|
40
42
|
td= session.after_measurement_for(:bm_stix)
|
41
43
|
td= session.after_measurement_for(:blood_pressure)
|
42
44
|
td.print-only= session.signed_off_by
|
43
45
|
= content_tag(:tr, id: "hd-session-#{session.id}", style: "display: none")
|
44
|
-
td(colspan=
|
46
|
+
td(colspan=19)
|
45
47
|
.quick-preview
|
46
48
|
= definition_list_for(session, size: :large) do |list|
|
47
49
|
= list.definition(:notes){ |value| simple_format(value) }
|
@@ -8,6 +8,7 @@ thead
|
|
8
8
|
th.col-width-tiny= t(".weight")
|
9
9
|
th.col-width-tiny= t(".pulse")
|
10
10
|
th.col-width-tiny= t(".temperature")
|
11
|
+
th.col-width-tiny= t(".respiratory_rate")
|
11
12
|
th.col-width-tiny= t(".bm_stix")
|
12
13
|
th.col-width-bp= t(".blood_pressure")
|
13
14
|
th.col-width-minute.col-width-tiny(rowspan=3)= t(".arterial_pressure")
|
@@ -29,6 +30,7 @@ thead
|
|
29
30
|
th.col-width-tiny= t(".pre")
|
30
31
|
th.col-width-tiny= t(".pre")
|
31
32
|
th.col-width-tiny= t(".pre")
|
33
|
+
th.col-width-tiny= t(".pre")
|
32
34
|
th.col-width-minute.col-width-tiny(rowspan=2)=t(".machine_no")
|
33
35
|
th.col-width-minute.col-width-tiny(rowspan=2)=t(".machine_ktv")
|
34
36
|
th.col-width-minute.col-width-tiny(rowspan=2)=t(".machine_urr")
|
@@ -40,4 +42,5 @@ thead
|
|
40
42
|
th= t(".post")
|
41
43
|
th= t(".post")
|
42
44
|
th= t(".post")
|
45
|
+
th= t(".post")
|
43
46
|
th.print-only= t(".taken_off_by")
|
@@ -8,10 +8,10 @@ tr(class=[session.state, stripe_class])
|
|
8
8
|
td= session.performed_on
|
9
9
|
td= session.hospital_unit_unit_code
|
10
10
|
td(colspan=3) Did not attend
|
11
|
-
td(colspan=
|
11
|
+
td(colspan=13)
|
12
12
|
i= session.truncated_notes
|
13
13
|
= content_tag(:tr, id: "hd-session-#{session.id}", style: "display: none")
|
14
|
-
td(colspan=
|
14
|
+
td(colspan=19)
|
15
15
|
.quick-preview
|
16
16
|
= definition_list_for(session, size: :large) do |list|
|
17
|
-
= list.definition(:notes){ |value| simple_format(value) }
|
17
|
+
= list.definition(:notes) { |value| simple_format(value) }
|
@@ -11,8 +11,11 @@ ruby:
|
|
11
11
|
= f.simple_fields_for :document, f.object.document do |fd|
|
12
12
|
|
13
13
|
= render layout: "renalware/shared/fieldset",
|
14
|
-
locals: { legend: "Transplant
|
14
|
+
locals: { legend: "Transplant Outcomes", name: "transplant_failure" } do
|
15
|
+
= f.input :graft_function_onset, wrapper: :horizontal_small
|
16
|
+
= f.input :last_post_transplant_dialysis_on, as: :date_picker, wrapper: :horizontal_datepicker
|
15
17
|
= f.input :stent_removed_on, as: :date_picker, wrapper: :horizontal_datepicker
|
18
|
+
= f.input :return_to_regular_dialysis_on, as: :date_picker, wrapper: :horizontal_datepicker
|
16
19
|
/ readonly: nil here is required to prevent the No option being created with readonly=readonly
|
17
20
|
/ which causes Capybara to fail because it cannot change the value of read-only element
|
18
21
|
= f.input :transplant_failed,
|
@@ -13,13 +13,16 @@
|
|
13
13
|
.grid
|
14
14
|
.row
|
15
15
|
= render "renalware/shared/attributes_group",
|
16
|
-
legend: "Transplant
|
17
|
-
models: { recipient_followup => [:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
legend: "Transplant Outcomes", destination: "transplant_failure",
|
17
|
+
models: { recipient_followup => [:graft_function_onset,
|
18
|
+
:last_post_transplant_dialysis_on,
|
19
|
+
:stent_removed_on,
|
20
|
+
:return_to_regular_dialysis_on,
|
21
|
+
:transplant_failed, :transplant_failed_on,
|
22
|
+
:transplant_failure_cause_description,
|
23
|
+
:transplant_failure_cause_other,
|
24
|
+
:transplant_failure_notes,
|
25
|
+
:graft_nephrectomy_on] }
|
23
26
|
|
24
27
|
= render "renalware/shared/documents/attributes_group",
|
25
28
|
group: recipient_followup.document.cardiovascular_complication,
|
@@ -2,8 +2,11 @@ en:
|
|
2
2
|
activerecord:
|
3
3
|
attributes:
|
4
4
|
renalware/transplants/recipient_followup:
|
5
|
+
graft_function_onset: Graft Function Onset
|
6
|
+
last_post_transplant_dialysis_on: Date of last Dialysis Post-Transplant
|
5
7
|
stent_removed_on: Stent Removal Date
|
6
8
|
graft_nephrectomy_on: Date of Graft Nephrectomy
|
9
|
+
return_to_regular_dialysis_on: Date of Return to Regular Dialysis
|
7
10
|
transplant_failed: Transplant Failed
|
8
11
|
transplant_failed_on: Date of Transplant Failure
|
9
12
|
transplant_failure_cause_description_id: Cause of Transplant Failure
|
@@ -23,3 +26,9 @@ en:
|
|
23
26
|
peripheral_vascular_disease: Peripheral vascular disease
|
24
27
|
stroke: Stroke
|
25
28
|
transient_ischaemic_attack: Transient ischaemic attack
|
29
|
+
enumerize:
|
30
|
+
renalware/transplants/recipient_followup:
|
31
|
+
graft_function_onset:
|
32
|
+
immediate: Immediate (1)
|
33
|
+
delayed: Delayed (2)
|
34
|
+
primary_non_function: Primary Non-Function (3)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class AddFieldsToTransplantRecipientWorkup < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
within_renalware_schema do
|
4
|
+
add_column :transplant_recipient_followups, :graft_function_onset, :string
|
5
|
+
add_column :transplant_recipient_followups, :last_post_transplant_dialysis_on, :date
|
6
|
+
add_column :transplant_recipient_followups, :return_to_regular_dialysis_on, :date
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -1,8 +1,49 @@
|
|
1
|
-
"
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
1
|
+
"name","rr02_description","rr02_code","rr41_description","rr41_code"
|
2
|
+
"Radial cephalic fistula","Arteriovenous fistula","AVF","Radio-cephalic wrist","RC"
|
3
|
+
"Radial Basilic fistula","Arteriovenous fistula","AVF","Radio-cephalic wrist","RC"
|
4
|
+
"Brachial Cephalic fistula","Arteriovenous fistula","AVF","Brachio-cephalic","BC"
|
5
|
+
"Brachial Basilic fistula","Arteriovenous fistula","AVF","Brachio-basilic","BB"
|
6
|
+
"Brachial Brachial fistula","Arteriovenous fistula","AVF","Brachio-basilic","BB"
|
7
|
+
"Basilic vein transposition","","","",""
|
8
|
+
"Brachial vein transposition","","","",""
|
9
|
+
"Cephalic vein transposition","","","",""
|
10
|
+
"Radial cephalic PTFE graft","Arteriovenous graft","AVG","Radio-cephalic wrist","RC"
|
11
|
+
"Radial basilic PTFE graft","Arteriovenous graft","AVG","Forearm NOS","UF"
|
12
|
+
"Brachial axillary PTFE graft","Arteriovenous graft","AVG","Brachio-basilic","BB"
|
13
|
+
"Axillary axillary PTFE graft","Arteriovenous graft","AVG","Other","UO"
|
14
|
+
"Axillary axillary cross-over PTFE Graft","Arteriovenous graft","AVG","Other","UO"
|
15
|
+
"CFA CFV PTFE graft","Arteriovenous graft","AVG","Other","UO"
|
16
|
+
"SFA CFV PTFE Graft","Arteriovenous graft","AVG","Other","UO"
|
17
|
+
"Popliteal CFV PTFE Graft","Arteriovenous graft","AVG","Popliteal-long saphenous","PS"
|
18
|
+
"Vein patch angioplasty","","","",""
|
19
|
+
"PTFE Jump graft","Arteriovenous graft","AVG","Other","UO"
|
20
|
+
"AVF Pseudoaneurysm repair","","","",""
|
21
|
+
"AVF Aneurysm excision","","","",""
|
22
|
+
"AVF Aneurysm exclusion + bypass graft","","","",""
|
23
|
+
"Aneurysmorrhaphy","","","",""
|
24
|
+
"DRIL","","","",""
|
25
|
+
"PAI","","","",""
|
26
|
+
"Banding","","","",""
|
27
|
+
"Tenckhoff Insertion (GA)Open","PD catheter","PDC","",""
|
28
|
+
"Tenckhoff Insertion (GA) Open Buried","PD Embedded Catheter","PDE","",""
|
29
|
+
"Tenckhoff Insertion (GA) Laparoscopic","PD catheter","PDC","",""
|
30
|
+
"Tenckhoff Insertion (GA) Laparoscopic Buried","PD Embedded Catheter","PDE","",""
|
31
|
+
"Tenckhoff Insertion (LA)","PD catheter","PDC","",""
|
32
|
+
"Tenckhoff Insertion (LA) Buried","PD Embedded Catheter","PDE","",""
|
33
|
+
"Tenckhoff Removal (GA)","","","",""
|
34
|
+
"Tenckhoff Removal (LA)","","","",""
|
35
|
+
"Tenckhoff Reposition (GA) Open","PD catheter","PDC","",""
|
36
|
+
"Tenckhoff Reposition (GA) Laparoscopic","PD catheter","PDC","",""
|
37
|
+
"Tenckhoff Reposition (LA)","PD catheter","PDC","",""
|
38
|
+
"Tenckhoff New Exit Site (LA)","","","",""
|
39
|
+
"Tenckhoff Removal & Re-Insertion (GA) Open","PD catheter","PDC","",""
|
40
|
+
"Tenckhoff Removal & Re-Insertion (GA)Laparoscopic","PD catheter","PDC","",""
|
41
|
+
"Tenckhoff Removal & Re-Insertion (LA)","PD catheter","PDC","",""
|
42
|
+
"Vascath int jug","Non-tunnelled line","NLN","Internal jugular line","LJ"
|
43
|
+
"Vascath subclav","Non-tunnelled line","NLN","Subclavian line","LS"
|
44
|
+
"Vascath fem","Non-tunnelled line","NLN","Femoral vein line","LF"
|
45
|
+
"Tunnelled int jug","Tunnelled line","TLN","Internal jugular line","LJ"
|
46
|
+
"Tunnelled subclav","Tunnelled line","TLN","Subclavian line","LS"
|
47
|
+
"Tunnelled fem","Tunnelled line","TLN","Femoral vein line","LF"
|
48
|
+
"Renal Biopsy Native","","","",""
|
49
|
+
"Renal Biopsy Transplant","","","",""
|
@@ -2,13 +2,23 @@
|
|
2
2
|
|
3
3
|
module Renalware
|
4
4
|
log "Adding Access Types" do
|
5
|
-
|
6
5
|
file_path = File.join(File.dirname(__FILE__), "access_types.csv")
|
7
6
|
|
8
7
|
CSV.foreach(file_path, headers: true) do |row|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
if row["rr02_code"].present?
|
9
|
+
rr02_code = row["rr02_code"]
|
10
|
+
abbreviation = rr02_code
|
11
|
+
end
|
12
|
+
|
13
|
+
if row["rr41_code"].present?
|
14
|
+
rr41_code = row["rr41_code"]
|
15
|
+
abbreviation = "#{rr02_code} #{rr41_code}"
|
16
|
+
end
|
17
|
+
|
18
|
+
Accesses::Type.find_or_create_by!(name: row["name"]) do |type|
|
19
|
+
type.rr02_code = rr02_code
|
20
|
+
type.rr41_code = rr41_code
|
21
|
+
type.abbreviation = abbreviation
|
12
22
|
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/renalware/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.83
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_type
|
@@ -3492,6 +3492,7 @@ files:
|
|
3492
3492
|
- db/migrate/20190603143834_update_import_practice_memberships_csv.rb
|
3493
3493
|
- db/migrate/20190603165812_drop_import_practices_csv_function.rb
|
3494
3494
|
- db/migrate/20190607134717_add_ukrdc_modality_code_id_to_modality_descriptions.rb
|
3495
|
+
- db/migrate/20190611152859_add_fields_to_transplant_recipient_workup.rb
|
3495
3496
|
- db/seeds.rb
|
3496
3497
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
|
3497
3498
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
|
@@ -3501,8 +3502,6 @@ files:
|
|
3501
3502
|
- db/seeds/default/accesses/access_sites.rb
|
3502
3503
|
- db/seeds/default/accesses/access_types.csv
|
3503
3504
|
- db/seeds/default/accesses/access_types.rb
|
3504
|
-
- db/seeds/default/accesses/access_types_procedures.csv
|
3505
|
-
- db/seeds/default/accesses/access_types_procedures.rb
|
3506
3505
|
- db/seeds/default/accesses/seeds.rb
|
3507
3506
|
- db/seeds/default/clinics/clinics.rb
|
3508
3507
|
- db/seeds/default/clinics/seeds.rb
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"name","rr02_description","rr02_code","rr41_description","rr41_code"
|
2
|
-
"Radial cephalic fistula","Arteriovenous fistula","AVF","Radio-cephalic wrist","RC"
|
3
|
-
"Radial Basilic fistula","Arteriovenous fistula","AVF","Radio-cephalic wrist","RC"
|
4
|
-
"Brachial Cephalic fistula","Arteriovenous fistula","AVF","Brachio-cephalic","BC"
|
5
|
-
"Brachial Basilic fistula","Arteriovenous fistula","AVF","Brachio-basilic","BB"
|
6
|
-
"Brachial Brachial fistula","Arteriovenous fistula","AVF","Brachio-basilic","BB"
|
7
|
-
"Basilic vein transposition","","","",""
|
8
|
-
"Brachial vein transposition","","","",""
|
9
|
-
"Cephalic vein transposition","","","",""
|
10
|
-
"Radial cephalic PTFE graft","Arteriovenous graft","AVG","Radio-cephalic wrist","RC"
|
11
|
-
"Radial basilic PTFE graft","Arteriovenous graft","AVG","Forearm NOS","UF"
|
12
|
-
"Brachial axillary PTFE graft","Arteriovenous graft","AVG","Brachio-basilic","BB"
|
13
|
-
"Axillary axillary PTFE graft","Arteriovenous graft","AVG","Other","UO"
|
14
|
-
"Axillary axillary cross-over PTFE Graft","Arteriovenous graft","AVG","Other","UO"
|
15
|
-
"CFA CFV PTFE graft","Arteriovenous graft","AVG","Other","UO"
|
16
|
-
"SFA CFV PTFE Graft","Arteriovenous graft","AVG","Other","UO"
|
17
|
-
"Popliteal CFV PTFE Graft","Arteriovenous graft","AVG","Popliteal-long saphenous","PS"
|
18
|
-
"Vein patch angioplasty","","","",""
|
19
|
-
"PTFE Jump graft","Arteriovenous graft","AVG","Other","UO"
|
20
|
-
"AVF Pseudoaneurysm repair","","","",""
|
21
|
-
"AVF Aneurysm excision","","","",""
|
22
|
-
"AVF Aneurysm exclusion + bypass graft","","","",""
|
23
|
-
"Aneurysmorrhaphy","","","",""
|
24
|
-
"DRIL","","","",""
|
25
|
-
"PAI","","","",""
|
26
|
-
"Banding","","","",""
|
27
|
-
"Tenckhoff Insertion (GA)Open","PD catheter","PDC","",""
|
28
|
-
"Tenckhoff Insertion (GA) Open Buried","PD Embedded Catheter","PDE","",""
|
29
|
-
"Tenckhoff Insertion (GA) Laparoscopic","PD catheter","PDC","",""
|
30
|
-
"Tenckhoff Insertion (GA) Laparoscopic Buried","PD Embedded Catheter","PDE","",""
|
31
|
-
"Tenckhoff Insertion (LA)","PD catheter","PDC","",""
|
32
|
-
"Tenckhoff Insertion (LA) Buried","PD Embedded Catheter","PDE","",""
|
33
|
-
"Tenckhoff Removal (GA)","","","",""
|
34
|
-
"Tenckhoff Removal (LA)","","","",""
|
35
|
-
"Tenckhoff Reposition (GA) Open","PD catheter","PDC","",""
|
36
|
-
"Tenckhoff Reposition (GA) Laparoscopic","PD catheter","PDC","",""
|
37
|
-
"Tenckhoff Reposition (LA)","PD catheter","PDC","",""
|
38
|
-
"Tenckhoff New Exit Site (LA)","","","",""
|
39
|
-
"Tenckhoff Removal & Re-Insertion (GA) Open","PD catheter","PDC","",""
|
40
|
-
"Tenckhoff Removal & Re-Insertion (GA)Laparoscopic","PD catheter","PDC","",""
|
41
|
-
"Tenckhoff Removal & Re-Insertion (LA)","PD catheter","PDC","",""
|
42
|
-
"Vascath int jug","Non-tunnelled line","NLN","Internal jugular line","LJ"
|
43
|
-
"Vascath subclav","Non-tunnelled line","NLN","Subclavian line","LS"
|
44
|
-
"Vascath fem","Non-tunnelled line","NLN","Femoral vein line","LF"
|
45
|
-
"Tunnelled int jug","Tunnelled line","TLN","Internal jugular line","LJ"
|
46
|
-
"Tunnelled subclav","Tunnelled line","TLN","Subclavian line","LS"
|
47
|
-
"Tunnelled fem","Tunnelled line","TLN","Femoral vein line","LF"
|
48
|
-
"Renal Biopsy Native","","","",""
|
49
|
-
"Renal Biopsy Transplant","","","",""
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Renalware
|
4
|
-
log "Adding Access Types & Procedures" do
|
5
|
-
|
6
|
-
file_path = File.join(File.dirname(__FILE__), "access_types_procedures.csv")
|
7
|
-
|
8
|
-
CSV.foreach(file_path, headers: true) do |row|
|
9
|
-
if row["rr02_code"].present?
|
10
|
-
rr02_code = row["rr02_code"]
|
11
|
-
abbreviation = rr02_code
|
12
|
-
end
|
13
|
-
|
14
|
-
if row["rr41_code"].present?
|
15
|
-
rr41_code = row["rr41_code"]
|
16
|
-
abbreviation = "#{rr02_code} #{rr41_code}"
|
17
|
-
end
|
18
|
-
|
19
|
-
Accesses::Type.find_or_create_by!(name: row["name"]) do |type|
|
20
|
-
type.rr02_code = rr02_code
|
21
|
-
type.rr41_code = rr41_code
|
22
|
-
type.abbreviation = abbreviation
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|