Report Recorder

2025-10-24 | ๐Ÿ“‘ 0 words | โฑ 0 mins | ๐Ÿงพ History | โœ Tom D'Roza | ๐Ÿ”‘ Tom D'Roza

๐Ÿšง This page has less that 200 words. So it looks like this page is still under construction.

Listens to all events and generates up the report

Known Issues / Todo

  • โ›… This page is draft and is subject to rapid change, and may not be fully accurate or complete

Events Consumed

Events Produced

Diagrams

c4code-mesh-statusreporter-recorder

C4:
Link to this diagram directly: /nhs-notify-digital-letters/diagrams/c4code-mesh-statusreporter-recorder.html
architecture-beta
    group statusRecorder(cloud)[StatusRecorder]
    service report1Event(aws:res-amazon-eventbridge-event)[DigitalLetterRead Event]
    service report2Event(aws:res-amazon-eventbridge-event)[PrintingDispatched Event]
    service report3Event(aws:res-amazon-eventbridge-event)[NHSAppMessageRequested Event]
    service sqs(logos:aws-sqs)[StatusRecorder Queue] in statusRecorder
    service reportGeneratorLambda(logos:aws-lambda)[StatusRecorder] in statusRecorder
    service ddb(aws:arch-amazon-athena)[Reports] in statusRecorder
    junction j1
    junction j2

    j2:B -- T:j1
    report1Event:R -- L:j2
    report2Event:R -- L:j1
    report3Event:R -- B:j1

    j1:R --> L:sqs
    sqs:R --> L:reportGeneratorLambda
    reportGeneratorLambda:B --> T:ddb

sequence-nhsapp-callback

C4:
Link to this diagram directly: /nhs-notify-digital-letters/diagrams/sequence-nhsapp-callback.html
    sequenceDiagram
    participant nhsapp as NHSApp
    participant apig as API Gateway
    participant sqs as SQS<br/>Callback Queue
    participant lambda as Lambda<br/>NHS App Callback Handler
    participant ddb as DynamoDB<br/>Items With TTL
    participant eb as Event Bridge

    nhsapp ->> apig: POST /callback
    activate apig
    apig ->> sqs: Send message
    apig -->> nhsapp: 200 OK
    deactivate apig
    sqs ->> lambda: Invoke asynchronously
    activate lambda
    lambda ->> ddb: Delete TTL
    lambda ->> eb: DigitalLetterRead event
    deactivate lambda