Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update GetCohortDistributionParticipantsByRequestId to use Data … #687

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Joseph2910
Copy link
Contributor

…Services

Description

Refactor GetCohortDistributionParticipantsByRequestId Method in the CreateCohortDistributionData Class from using the legacy Data access code to instead use Data services for increased performance.

Context

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-7322

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 am familiar with the contributing guidelines
  • 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

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.

IsExtracted = cohortDistribution.IsExtracted.ToString();
}

private static Gender genderConverter(short gender)
Copy link
Contributor

Choose a reason for hiding this comment

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

could be wrong but pretty sure there is existing code for this

@@ -53,7 +53,7 @@ public async Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Anonymou
requestId = _createCohortDistributionData.GetNextCohortRequestAudit(requestId)?.RequestId;
if (requestId != null)
{
cohortDistributionParticipants = _createCohortDistributionData.GetCohortDistributionParticipantsByRequestId(requestId);
cohortDistributionParticipants = await _createCohortDistributionData.GetCohortDistributionParticipantsByRequestId(requestId);
Copy link
Contributor

Choose a reason for hiding this comment

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

You will need to register the new data service in the program.cs of retrieve cohort distribution and add the env variable to the compose file

@MWClayson-NHS MWClayson-NHS added the DO NOT MERGE Do not merge this branch label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO NOT MERGE Do not merge this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants