-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add systm_one file format to vaccination reports
Currently behind a feature flag, although this will likely need to be enabled/disabled on a team-per-team basis. We'll sort out how we want to do that in the future.
- Loading branch information
Showing
6 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ en: | |
file_format_options: | ||
careplus: CarePlus | ||
mavis: CSV | ||
systm_one: SystmOne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
describe VaccinationReport do | ||
describe "file_formats" do | ||
it "returns the default file formats" do | ||
expect(described_class.file_formats).to eq(%w[careplus mavis]) | ||
end | ||
|
||
context "when systm_one exporter is enabled" do | ||
before { Flipper.enable(:systm_one_exporter) } | ||
|
||
it "returns the systm_one file format" do | ||
expect(described_class.file_formats).to eq(%w[careplus mavis systm_one]) | ||
end | ||
end | ||
end | ||
end |