Skip to content

Commit 31abef8

Browse files
committed
Enable SystmOne file format for flu
The general mappings for flu have been added so it is safe to enable the S1 file format for the flu programme.
1 parent 9e3b731 commit 31abef8

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

app/models/vaccination_report.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ def self.request_session_key
99
end
1010

1111
def self.file_formats(programme)
12-
%w[careplus mavis].tap { it << "systm_one" if programme.hpv? }
12+
%w[careplus mavis].tap do
13+
it << "systm_one" if programme.hpv? || programme.flu?
14+
end
1315
end
1416

1517
attribute :date_from, :date

spec/models/vaccination_report_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@
1515

1616
it { should eq(%w[careplus mavis]) }
1717
end
18+
19+
context "when programme is flu" do
20+
let(:programme) { create(:programme, :flu) }
21+
22+
it { should eq(%w[careplus mavis systm_one]) }
23+
end
1824
end
1925
end

0 commit comments

Comments
 (0)