|
1 | 1 | # frozen_string_literal: true
|
2 | 2 |
|
3 |
| -describe "HPV vaccination" do |
| 3 | +describe "offline vaccination" do |
4 | 4 | around do |example|
|
5 | 5 | travel_to(Time.zone.local(2024, 2, 1, 12)) { example.run }
|
6 | 6 | end
|
@@ -236,13 +236,8 @@ def given_a_flu_programme_is_underway_with_a_single_patient
|
236 | 236 | end
|
237 | 237 |
|
238 | 238 | def and_the_patients_record_is_sourced_from_nhs_api
|
239 |
| - fhir_record = |
240 |
| - FHIR.from_contents(file_fixture("fhir/fhir_record_full.json").read) |
241 |
| - @nhs_api_vaccination_record = |
242 |
| - FHIRMapper::VaccinationRecord.from_fhir_record( |
243 |
| - fhir_record, |
244 |
| - patient: @previously_vaccinated_patient |
245 |
| - ) |
| 239 | + fhir_record = FHIR.from_contents(file_fixture("fhir/fhir_record_full.json").read) |
| 240 | + @nhs_api_vaccination_record = FHIRMapper::VaccinationRecord.from_fhir_record(fhir_record, patient: @previously_vaccinated_patient) |
246 | 241 | @nhs_api_vaccination_record.performed_at = 1.month.ago
|
247 | 242 | @nhs_api_vaccination_record.notes = "Imported from NHS API"
|
248 | 243 | @nhs_api_vaccination_record.save!
|
@@ -305,9 +300,7 @@ def and_the_nhs_api_record_should_remain_unchanged
|
305 | 300 | expect(@nhs_api_vaccination_record.notes).to eq("Imported from NHS API")
|
306 | 301 | expect(@nhs_api_vaccination_record.source).to eq("nhs_immunisations_api")
|
307 | 302 | expect(@nhs_api_vaccination_record.outcome).to eq("administered")
|
308 |
| - expect(@nhs_api_vaccination_record.delivery_site).to eq( |
309 |
| - "left_arm_upper_position" |
310 |
| - ) |
| 303 | + expect(@nhs_api_vaccination_record.delivery_site).to eq("left_arm_upper_position") |
311 | 304 | end
|
312 | 305 |
|
313 | 306 | def when_i_go_to_the_import_page
|
|
0 commit comments