Skip to content

Feature/cdapi 149#102

Open
nhsd-jack-wainwright wants to merge 3 commits intofeature/CDAPI-72from
feature/CDAPI-149
Open

Feature/cdapi 149#102
nhsd-jack-wainwright wants to merge 3 commits intofeature/CDAPI-72from
feature/CDAPI-149

Conversation

@nhsd-jack-wainwright
Copy link
Copy Markdown
Collaborator

Description

Addition of a new acceptance test which provides a full test result example (as defined within https://simplifier.net/guide/pathology-fhir-implementation-guide/Home/FHIRAssets/AllAssets/AllProfiles/Examples/Bundles/Full-Blood-Count-Report?version=0.3.1). This PR also includes fixes for some issues found whilst creating this test.

Context

This change provides an acceptance test to ensure that a full Test Result is accepted by the Pathology API, including fields that are not required by the API itself.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • Exceptions/Exclusions to coding standards (e.g. #noqa or #NOSONAR) are included within this Pull Request.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@nhsd-jack-wainwright nhsd-jack-wainwright marked this pull request as ready for review April 15, 2026 12:03
@nhsd-jack-wainwright nhsd-jack-wainwright requested a review from a team as a code owner April 15, 2026 12:03
Comment thread pathology-api/tests/acceptance/full_test_result_template.json Outdated
Comment thread pathology-api/tests/acceptance/steps/bundle_endpoint_steps.py
Comment thread pathology-api/tests/acceptance/steps/bundle_endpoint_steps.py

def test_serialization_with_reference(self) -> None:
nhs_number = "nhs_number"
patient_id = PatientIdentifier.from_nhs_number(nhs_number)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps we could rename this method as create_with?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Renamed as suggested.

@nhsd-jack-wainwright nhsd-jack-wainwright force-pushed the feature/CDAPI-149 branch 2 times, most recently from 7b53969 to 6bbfd60 Compare April 16, 2026 09:52
@nhsd-jack-wainwright nhsd-jack-wainwright changed the base branch from feature/CDAPI-113 to feature/CDAPI-72 April 16, 2026 15:35
@MohammadPatelNHS MohammadPatelNHS force-pushed the feature/CDAPI-72 branch 4 times, most recently from 04519be to 03f3c01 Compare April 17, 2026 11:13
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Deployment Complete

Copy link
Copy Markdown
Contributor

@nhsd-rebecca-flynn nhsd-rebecca-flynn left a comment

Choose a reason for hiding this comment

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

LGTM

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