@@ -13,12 +13,15 @@ author: Tom D'Roza
1313
1414## Questions
1515
16- - 1 . Should we validate the CommunicationRequest schema?
17- - 2 . (&14) This would result in two separate PDS hits
18- - 3 . Should Notify virus check the payload given that files >10MB don't go to PDM/NDR
19- - 7 . When does Notify delete its local copy?
20- - 11 . Duration and interval of polling
21- - 21 . Can NHSApp read callback go to notify-letters when the message request originated from notify-core?
16+ 1 . When does Notify delete its local copy?
17+ 2 . Duration and interval of polling
18+ 3 . Can NHSApp read callback go to notify-letters when the message request originated from notify-core?
19+
20+ ## Decisions
21+
22+ 1 . Out of scope for MVP: Virus checking of PDF received from Trust
23+ 2 . Don't check ` CommunicationRequest ` filesize. Attempt to upload all ` CommunicationRequest ` s to PDM. Those exceeding APIM size limit will fail.
24+ 3 . No PDS check by Digital Letters component of Date-of-Death, S-flag, RFR codes. Rely on Trusts having performed these checks.
2225
2326``` mermaid
2427
@@ -32,16 +35,9 @@ sequenceDiagram
3235 participant pdm as PDM
3336 participant ndr as NDR
3437
35- autonumber
3638 trust -> notify-letters: MESH (CommunicationRequest)
37- notify-letters -> notify-letters: validate(schema, pdf)?
38- notify-letters -> notify-letters: virus-check?
39- opt Optionally check PDS
40- notify-letters ->> pds: GetPatient (NHSNumber)
41- pds -->> notify-letters: 200 OK (Patient)
42- notify-letters -> notify-letters: validate(death,sflag, rfr)
43- end
4439 notify-letters ->> notify-letters: Store CommunicationRequest (S3)
40+ notify-letters ->> notify-letters: Create SendLetter TTL
4541 notify-letters ->> pdm: POST /CommunicationRequest
4642 activate pdm
4743 pdm -) ndr: SFTP
@@ -51,7 +47,7 @@ sequenceDiagram
5147 notify-letters ->> pdm: GET /CommunicationRequest/<id>
5248 pdm ->> notify-letters: 200 OK (CommunicationRequest)
5349 end
54- rect rgb(204, 223, 241 )
50+ rect rgba(5, 26, 46, 1 )
5551 note over notify-letters,nhsapp: Existing Notify behaviour
5652 notify-letters ->> notify-core: post /v1/messages (NHSApp)
5753 activate notify-core
@@ -66,12 +62,11 @@ sequenceDiagram
6662 deactivate notify-core
6763 end
6864
69- notify-letters ->> notify-letters: Create SendLetter TTL
7065 alt Letter is read in NHS App
7166 nhsapp ->> notify-letters: Callback(status: read)
72- notify-letters ->> notify-letters: Delete TTL
73- else Letter is not read after fallback wait time
67+ notify-letters ->> notify-letters: Delete SendLetterTTL
68+ else Read receipt not received within print expiry time
7469 notify-letters ->> notify-letters: SendLetter TTL expires
75- notify-letters ->> notify-supplier: SendLetter(PDF)
70+ notify-letters ->> notify-supplier: SendLetter Event
7671 end
7772```
0 commit comments