generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
CCM-13475 PrintLetterAnalysed data schema #163
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a11383e
CCM-13475: Added PrintLetterAnalysed data schema
tdroza-nhs cb1bf11
CCM-13475: Added event schema for the following events:
tdroza-nhs 1ec0f0a
Updated event names following TA review
tdroza-nhs 9c22e36
Renamed files for consistency
tdroza-nhs 74ef10d
Fixed file references
tdroza-nhs dbd3cd4
Removed old example events
tdroza-nhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
|
|
||
| title: c4code-file-scanner | ||
| --- | ||
|
|
||
|
|
||
| ```mermaid | ||
| architecture-beta | ||
| group fileScanner(cloud)[FileScanner] | ||
| service itemDequeued(aws:res-amazon-eventbridge-event)[ItemDequeued Event] | ||
| service scannerQueue(logos:aws-sqs)[Scanner Queue] in fileScanner | ||
| service scannerLambda(logos:aws-lambda)[File Scanner] in fileScanner | ||
| service moveLambda(logos:aws-lambda)[Move Scanned Files] in fileScanner | ||
| service docRefBucket(logos:aws-s3)[DocumentReference] in fileScanner | ||
| service unscannedBucket(logos:aws-s3)[UnscannedFiles] in fileScanner | ||
| service quarantineBucket(logos:aws-s3)[QuarantinedFiles] in fileScanner | ||
| service safeBucket(logos:aws-s3)[SafeFiles] in fileScanner | ||
| service guardDuty(aws:arch-amazon-guardduty)[GuardDuty] in fileScanner | ||
| service scanComplete(aws:res-amazon-eventbridge-event)[ScanResult Event] | ||
| service safeFile(aws:res-amazon-eventbridge-event)[FileSafe Event] | ||
| service quarantinedFile(aws:res-amazon-eventbridge-event)[FileQuarantined Event] | ||
| junction j1 in fileScanner | ||
| junction j2 in fileScanner | ||
| junction j3 in fileScanner | ||
|
|
||
| itemDequeued:R --> L:scannerQueue | ||
| docRefBucket:B --> T:scannerLambda | ||
| scannerQueue:R --> L:scannerLambda | ||
| scannerLambda:B --> T:unscannedBucket | ||
| unscannedBucket:R --> L:guardDuty | ||
| guardDuty:R --> L:scanComplete | ||
| scanComplete:R --> L:moveLambda | ||
| moveLambda:R -- L:j1 | ||
| j1:T -- B:j2 | ||
| j1:B -- T:j3 | ||
| j2:R --> L:quarantineBucket | ||
| j3:R --> L:safeBucket | ||
| quarantineBucket:R --> L:quarantinedFile | ||
| safeBucket:R --> L:safeFile | ||
|
|
||
| ``` |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
File renamed without changes.
10 changes: 0 additions & 10 deletions
10
docs/collections/_events/external-supplier-api-letter-printed.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| title: file-quarantined | ||
| type: uk.nhs.notify.digital.letters.print.file.quarantined.v1 | ||
| nice_name: FileQuarantined | ||
| service: Print Supplier Services | ||
| schema_envelope: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/events/uk.nhs.notify.digital.letters.print.file.quarantined.v1.schema.json | ||
| schema_data: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/data/digital-letters-print-file-quarantined-data.schema.json | ||
| --- | ||
|
|
||
| This event is published when a file has been virus scanned and found to contain potentially harmful content, resulting in it being quarantined. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| title: file-safe | ||
| type: uk.nhs.notify.digital.letters.print.file.safe.v1 | ||
| nice_name: FileSafe | ||
| service: Print Supplier Services | ||
| schema_envelope: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/events/uk.nhs.notify.digital.letters.print.file.safe.v1.schema.json | ||
| schema_data: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/data/digital-letters-print-file-safe-data.schema.json | ||
| --- | ||
|
|
||
| This event is published when a file has been virus scanned and found to be free of harmful content, allowing it to be safely sent to print. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| title: pdf-analysed | ||
| type: uk.nhs.notify.digital.letters.print.pdf.analysed.v1 | ||
| nice_name: PrintLetterAnalysed | ||
| service: Print Supplier Services | ||
| schema_envelope: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/events/uk.nhs.notify.digital.letters.print.pdf.analysed.v1.schema.json | ||
| schema_data: https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/data/digital-letters-print-pdf-analysed-data.schema.json | ||
| --- | ||
|
|
||
| This event is published when a PDF letter has been analysed in preparation for sending to print. In addition to the standard metadata fields relating to the message request, the event payload also contains a count of the number of pages in the letter and a SHA256 hash of the file. This information can be used by the Print Supplier API to verify the integrity of the letter before it is printed. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...igital-letters/2025-10-draft/data/digital-letters-print-file-quarantined-data.schema.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: FileQuarantined Data | ||
| description: Data payload of the FileQuarantined event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| letterUri: | ||
| $ref: ../defs/print.schema.yaml#/properties/letterUri | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - letterUri |
16 changes: 16 additions & 0 deletions
16
...mains/digital-letters/2025-10-draft/data/digital-letters-print-file-safe-data.schema.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: FileSafe Data | ||
| description: Data payload of the FileSafe event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| letterUri: | ||
| $ref: ../defs/print.schema.yaml#/properties/letterUri | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - letterUri |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.