Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/lib/reports/systm_one_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ class Reports::SystmOneExporter

VACCINE_DOSE_MAPPINGS = {
"Cell-based Trivalent Influenza Vaccine Seqirus" => {
nil => "YcjYj"
1 => "YcjYj"
},
"Gardasil 9" => {
1 => "Y19a4",
2 => "Y19a5",
3 => "Y19a6"
},
"Fluenz" => {
nil => "YcjAC"
1 => "YcjAC"
},
"Vaxigrip" => {
nil => "YcjYf"
1 => "YcjYf"
},
"Viatris" => {
nil => "YcjYh"
1 => "YcjYh"
}
}.freeze

Expand Down
12 changes: 1 addition & 11 deletions spec/lib/reports/systm_one_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@

context "flu" do
let(:programme) { create(:programme, :flu_all_vaccines) }
let(:dose_sequence) { nil }
let(:dose_sequence) { 1 }

context "Cell-based Trivalent Influenza Vaccine Seqirus" do
let(:vaccine) do
Expand Down Expand Up @@ -368,10 +368,6 @@
let(:delivery_method) { :nasal_spray }
let(:delivery_site) { :nose }

it "uses the generic SystmOne code" do
expect(csv_row["Vaccination"]).to eq "Fluenz Part 1"
end

it "uses 'Nasal' as the method" do
expect(csv_row["Method"]).to eq "Nasal"
end
Expand All @@ -389,12 +385,6 @@
let(:delivery_method) { :intramuscular }
let(:delivery_site) { :right_arm_upper_position }

it "uses the generic SystmOne code" do
expect(
csv_row["Vaccination"]
).to eq "Cell-based Trivalent Influenza Vaccine Seqirus Part 1"
end

it "uses 'Intramuscular' as the method" do
expect(csv_row["Method"]).to eq "Intramuscular"
end
Expand Down