Skip to content

Conversation

alistair-white-horne-tng
Copy link
Contributor

Add batch_name and batch_expiry columns to VaccinationRecord

These will be used to store de-normalised versions of this data in the case where these records originate from a historic upload, or from the Imms API. This allows us to dissociate the batch information from the Team; it is unlikely that these batches are actually associated with the Team, particularly in the Imms API case, where we expect most records to have been recorded by the GP.

These will be used to store de-normalised versions of this data
in the case where these records originate from a historic upload,
or from the Imms API. This allows us to dissociate the batch information
from the `Team`; it is unlikely that these batches are actually
associated with the `Team`, particularly in the Imms API case,
where we expect most records to have been recorded by the GP.
@alistair-white-horne-tng alistair-white-horne-tng requested a review from a team as a code owner September 8, 2025 14:37
@alistair-white-horne-tng alistair-white-horne-tng marked this pull request as draft September 8, 2025 14:38
@alistair-white-horne-tng alistair-white-horne-tng added the refactor Improving maintainability label Sep 8, 2025
@alistair-white-horne-tng alistair-white-horne-tng force-pushed the add-denormalised-batch branch 2 times, most recently from d6e36b3 to 9b84dd4 Compare September 9, 2025 07:13
When a `VaccinationRecord` is imported without an associated session
(implying a historical record), then the batch information should be
saved de-normalised.
This also means that the `#from_fhir_record` function no longer needs to
require a `team` argument.
This displays the denormalised batch data on the VaccinationRecord
view page.
Copy link

sonarqubecloud bot commented Sep 9, 2025

@thomasleese thomasleese deleted the add-denormalised-batch branch September 19, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Improving maintainability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant