|
295 | 295 | let(:programme) { Programme.mmr } |
296 | 296 | let(:dose_sequence) { nil } |
297 | 297 |
|
298 | | - context "Priorix" do |
| 298 | + context "Priorix with unknown dose sequence" do |
299 | 299 | let(:vaccine) { Vaccine.find_by!(brand: "Priorix") } |
300 | 300 |
|
301 | | - it { should eq("Yav8l") } |
| 301 | + it { should eq("Priorix") } |
302 | 302 | end |
303 | 303 |
|
304 | | - context "MMR VaxPro" do |
| 304 | + context "MMR VaxPro with unknown dose sequence" do |
305 | 305 | let(:vaccine) { Vaccine.find_by!(brand: "MMR VaxPro") } |
306 | 306 |
|
307 | | - it { should eq("Yb9ZN") } |
| 307 | + it { should eq("MMR VaxPro") } |
| 308 | + end |
| 309 | + |
| 310 | + context "Priorix with dose sequence 1" do |
| 311 | + let(:vaccine) { Vaccine.find_by!(brand: "Priorix") } |
| 312 | + let(:dose_sequence) { 1 } |
| 313 | + |
| 314 | + it { should eq("65M1.") } |
| 315 | + end |
| 316 | + |
| 317 | + context "MMR VaxPro with dose sequence 2" do |
| 318 | + let(:vaccine) { Vaccine.find_by!(brand: "MMR VaxPro") } |
| 319 | + let(:dose_sequence) { 2 } |
| 320 | + |
| 321 | + it { should eq("65MA.") } |
| 322 | + end |
| 323 | + |
| 324 | + context "MMRV vaccinations" do |
| 325 | + context "ProQuad with unknown dose sequence" do |
| 326 | + let(:vaccine) { Vaccine.find_by!(brand: "ProQuad") } |
| 327 | + |
| 328 | + it { should eq("ProQuad") } |
| 329 | + end |
| 330 | + |
| 331 | + context "ProQuad with dose sequence 1" do |
| 332 | + let(:vaccine) { Vaccine.find_by!(brand: "ProQuad") } |
| 333 | + let(:dose_sequence) { 1 } |
| 334 | + |
| 335 | + it { should eq("Y3fec") } |
| 336 | + end |
| 337 | + |
| 338 | + context "Priorix Tetra with dose sequence 2" do |
| 339 | + let(:vaccine) { Vaccine.find_by!(brand: "Priorix-Tetra") } |
| 340 | + let(:dose_sequence) { 2 } |
| 341 | + |
| 342 | + it { should eq("Y3fed") } |
| 343 | + end |
308 | 344 | end |
309 | 345 | end |
310 | 346 |
|
|
0 commit comments