Skip to content

VED-1049: Make invalid -immunization.target behaviour consistent in the search API#1235

Merged
Thomas-Boyle merged 12 commits intomasterfrom
ved-1049-pre-implementation
Feb 25, 2026
Merged

VED-1049: Make invalid -immunization.target behaviour consistent in the search API#1235
Thomas-Boyle merged 12 commits intomasterfrom
ved-1049-pre-implementation

Conversation

@Thomas-Boyle
Copy link
Copy Markdown
Contributor

  • Added support for invalid_immunization_targets in FhirController and FhirService.
  • Updated process_immunization_target to return both valid and invalid vaccine types.
  • Modified validate_and_retrieve_search_params to include invalid targets in the search parameters.
  • Implemented logic to include an OperationOutcome in the response when invalid targets are provided.
  • Updated tests to cover scenarios for invalid immunization targets and ensure correct handling in search results.

- Added support for `invalid_immunization_targets` in `FhirController` and `FhirService`.
- Updated `process_immunization_target` to return both valid and invalid vaccine types.
- Modified `validate_and_retrieve_search_params` to include invalid targets in the search parameters.
- Implemented logic to include an `OperationOutcome` in the response when invalid targets are provided.
- Updated tests to cover scenarios for invalid immunization targets and ensure correct handling in search results.
@github-actions
Copy link
Copy Markdown
Contributor

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

VED-1049

edhall-nhs
edhall-nhs previously approved these changes Feb 24, 2026
Comment thread lambdas/backend/tests/controller/test_parameter_parser.py Outdated
dlzhry2nhs
dlzhry2nhs previously approved these changes Feb 25, 2026
Copy link
Copy Markdown
Contributor

@dlzhry2nhs dlzhry2nhs left a comment

Choose a reason for hiding this comment

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

The code changes and new tests look good.

Just looks like you've got some linting issues. Is mentioned in the root README but the pre-commit hooks, installed with npm and defined in package.json will help to run the same things that are run in the repo.

Equally, can run from the quality_checks directory, but would recommend getting the pre-commit hooks in place.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@avshetty1980 avshetty1980 left a comment

Choose a reason for hiding this comment

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

Nice! Looks really good

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.

4 participants