Skip to content

Conversation

@dlzhry2nhs
Copy link
Contributor

@dlzhry2nhs dlzhry2nhs commented Dec 29, 2025

Summary

  • Routine Change

Integrates the data quality reports into the batch processing system and the Create and Update endpoints of the Imms FHIR API.

Please refer to the ticket for test evidence of both the logs and the reports which are produced and sent to S3.

  • Sets up infrastructure e.g. env vars so that reports can be sent to S3. Policies should already have been set up.
  • Adds relevant calls and tests to both the Batch and FHIR API parts of the system.
  • Finally, a minor tweak made to the validation model to tighten the datetime validation performed.

Reviews Required

  • Dev

Review Checklist

ℹ️ This section is to be filled in by the reviewer.

  • I have reviewed the changes in this PR and they fill all of the acceptance criteria of the ticket.
  • If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
  • If there were changes that are outside of the regular release processes e.g. account infrastructure to setup, manual setup for external API integrations, secrets to set, then I have checked that the developer has flagged this to the Tech Lead as release steps.
  • I have checked that no Personal Identifiable Data (PID) is logged as part of the changes.

@github-actions
Copy link
Contributor

This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:

VED-991

logger.info(f"Restarted Process (log up to first 10): {total_rows_processed_count + 1}")

# Submit data quality report
data_quality_reporter.generate_and_send_report(row)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hopefully won't be an issue, but we will send a duplicate report if we retry processing with a different file encoding

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Lambda is hard to follow and should definitely be refactored if there is ever some time.

However, one of the benefits of how it has been written is if it falls over for that reason, it only continues processing from where it left off. See line 134. Therefore, proposing to keep this as is.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

@dlzhry2nhs dlzhry2nhs temporarily deployed to internal-dev-sandbox January 5, 2026 10:27 — with GitHub Actions Inactive
@dlzhry2nhs dlzhry2nhs merged commit ebdb5df into staging/VED-963-data-quality-reports Jan 5, 2026
17 checks passed
@dlzhry2nhs dlzhry2nhs deleted the feature/VED-991-integrate-dq-reports branch January 5, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants