Skip to content

New: [AEA-6063] - Process post-dated prescription updates#2589

Merged
wildjames merged 80 commits intomainfrom
aea-6063-trigger-post-dated-prescriptions
Feb 12, 2026
Merged

New: [AEA-6063] - Process post-dated prescription updates#2589
wildjames merged 80 commits intomainfrom
aea-6063-trigger-post-dated-prescriptions

Conversation

@wildjames
Copy link
Copy Markdown
Contributor

Summary

  • ✨ New Feature

Details

The metadata is now being added to the PSU data item when it is present. This PR will add a new lambda and SQS which will implement the business logic, as described here: link

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 8, 2026

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-6063

@wildjames
Copy link
Copy Markdown
Contributor Author

Including the post-dated meta.lastUpdated field now results in the prescription being placed on the post-dated SQS instead of the usual one:

image

And this is picked up on the other end by the post-dated lambda:

image

Note that omitting the meta.lastUpdated field still pushes the prescription to the old notifications queue:

image image

…is. Refactor the functions around that accordingly
Comment thread packages/common/commonTypes/src/index.ts Outdated
Comment thread packages/postDatedLambda/docs/mature_prescription_check.md Outdated
Comment thread packages/postDatedLambda/docs/mature_prescription_check.md Outdated
Comment thread packages/postDatedLambda/src/businessLogic.ts Outdated
Comment thread packages/postDatedLambda/src/businessLogic.ts Outdated
Comment thread packages/postDatedLambda/src/databaseClient.ts Outdated
Comment thread packages/postDatedLambda/src/databaseClient.ts Outdated
Comment thread packages/postDatedLambda/src/databaseClient.ts Outdated
Comment thread packages/postDatedLambda/src/businessLogic.ts Outdated
Comment thread packages/postDatedLambda/src/businessLogic.ts Outdated
Comment thread packages/postDatedLambda/src/orchestration.ts
// (Optional, legacy batch-processors only) Indicates that {@link LastModified} is postdated;
// contains the ISO 8601 timestamp when the postdated update was set.
// todo: This field needs to be passed to the sqs message for post-dated updates
// FIXME: This should be called PostDatedLastUpdatedSetAt
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.

We agreed the proposed name is not better. But as yet have not found a better one.

Comment thread packages/updatePrescriptionStatus/tests/testSqsClient.test.ts
tstephen-nhs
tstephen-nhs previously approved these changes Feb 12, 2026
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants