-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: [AEA-4180] - Update custom PSU transformation lambda to handl…
…e DispenseComplete (#544) ## Summary - Routine Change ### Details Two additions. #### Update the schema for prescription items The item entry in an incoming cPSU request can contain a `completedStatus` field, which can take the values `["Cancelled", "Expired", "NotDispensed", "Collected"]`. The schema has been updated to include this option (it is not mandatory, and may not be given). #### Handle excess messages External providers will send additional messages after we consider a prescription to be completed. We may receive updates to the cPSU translation layer that mark an item as both `status: "DispensingComplete"`, and `completedStatus: "<Cancelled, Expired, NotDispensed>"`. In these cases, we will already have received a previous update flagging the item as failed in some way, so we want to ignore such messages. To handle that, we simply do not populate the entry array with the relevant item. Note that downstream interfaces need to behave well with empty `entry` arrays, for the case where all items are ignored. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: anthony-nhs <[email protected]> Co-authored-by: Tom Smith <[email protected]> Co-authored-by: Jack Spagnoli <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kris Szlapa <[email protected]>
- Loading branch information
1 parent
8c1f0d5
commit cb958b5
Showing
7 changed files
with
221 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters