Skip to content

Commit 7b5ba35

Browse files
Rossbugginsnhs/2015 10 15/diagrams 001 (#61)
* updating docs. * testing stream icon on toms diagram.
1 parent e813594 commit 7b5ba35

File tree

4 files changed

+78
-27
lines changed

4 files changed

+78
-27
lines changed

docs/architecture/c4/index.md

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,51 @@ author: Ross Buggins
1313
```mermaid
1414
C4Context
1515
title System Context diagram for NHS Notify Digital Letters
16+
System_Ext(tie01, "Trust TIE")
17+
System_Ext(print01, "Print Suplier")
18+
System_Ext(sms01, "SMS Supplier")
1619
Person(citizen01, "Citizen")
1720
18-
Enterprise_Boundary(b1, "NHS in England") {
19-
Enterprise_Boundary(b3, "NHS Trust in England") {
20-
System_Ext(tie01, "TIE")
21-
}
2221
23-
Enterprise_Boundary(b0, "NHS England") {
2422
25-
Enterprise_Boundary(nhse01, "Core Services"){
26-
System_Ext(pdm01, "PDM", "PDM - NHS Health Lake")
27-
SystemDb_Ext(ndr01, "NDR", "NDR - NHS Document Store")
28-
}
2923
30-
Enterprise_Boundary(nhse03, "Spine Services"){
24+
25+
System_Boundary(nhse03, "Spine Services"){
3126
System_Ext(pds01, "PDS")
3227
System_Ext(mesh01, "Mesh")
28+
}
29+
30+
System_Boundary(notify01, "NHS Notify") {
31+
System(notify02, "NotiFHIR")
32+
System_Ext(notify04, "Event Bus")
33+
System_Boundary(notify01asd, "Event Consumers") {
34+
System_Ext(notify03, "Core")
35+
System_Ext(notify05, "Reporting")
36+
System_Ext(notify06, "Suppliers API")
37+
}
3338
}
3439
35-
Enterprise_Boundary(nhse04, "NHS Login"){
40+
41+
System_Boundary(nhse01, "Core Services"){
42+
System_Ext(pdm01, "PDM", "PDM - NHS Health Lake")
43+
SystemDb_Ext(ndr01, "NDR", "NDR - NHS Document Store")
44+
}
45+
46+
System_Boundary(nhse04, "NHS Login"){
3647
System_Ext(login01, "NHS Login")
3748
}
3849
39-
Enterprise_Boundary(nhse02, "NHS App"){
50+
System_Boundary(nhse02, "NHS App"){
4051
System_Ext(nhsapp03, "NHS App", "Full App")
4152
System_Ext(nhsapp01, "NHS App Messaging", "Inbox")
4253
System_Ext(nhsapp02, "Digital Post Viewer", "Digital Viewing PDF")
4354
}
4455
4556
46-
Enterprise_Boundary(notify01, "NHS Notify") {
47-
System(notify02, "NotiFHIR")
48-
System(notify03, "Core")
49-
System(notify04, "Event Bus")
50-
System(notify05, "Reporting")
51-
System(notify06, "Suppliers")
5257
53-
}
54-
}
55-
}
5658
57-
System_Ext(print01, "Print Suplier")
58-
System_Ext(sms01, "SMS Supplier")
59+
60+
5961
6062
Rel(tie01, mesh01, "Submits File", "MESH")
6163
Rel(mesh01, notify02, "Retrieve File", "MESH")
@@ -69,7 +71,16 @@ author: Ross Buggins
6971
Rel(notify02, pdm01, "Save File", "HTTP POST")
7072
Rel(notify02, pdm01, "Get File", "HTTP GET")
7173
74+
Rel(pdm01, ndr01, "Submits File", "API")
75+
Rel(notify03, pds01, "Submits File", "API")
76+
Rel(notify02, notify04, "Produces Event", "Event")
77+
Rel(notify04, notify03, "Produces Event", "Event")
78+
Rel(notify04, notify05, "Produces Event", "Event")
79+
Rel(notify04, notify06, "Produces Event", "Event")
7280
81+
Rel(notify06, print01, "Sends File", "API")
82+
Rel(notify03, sms01, "Sends Message", "API")
83+
UpdateLayoutConfig($c4ShapeInRow="8", $c4BoundaryInRow="1")
7384
7485
7586

docs/architecture/c4/notifhir/index.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,31 @@ author: Ross Buggins
1111
---
1212

1313
```mermaid
14-
C4Context
14+
C4Container
1515
title Container NotiFHIR
1616
1717
Container_Boundary(notify01, "NotiFHIR") {
1818
Container(notify02, "MESH", "Python", "All things MESH", $tags="v1.0", $link="https://www.google.com")
19-
Container(notify03, "Notifier", $link="https://www.google.com")
2019
Container(notify04, "PDM")
20+
Container(notify03, "Notifier", $link="https://www.google.com")
2121
Container(notify05, "Printer")
2222
Container(notify06, "Tracker")
23-
2423
}
2524
2625
26+
Container_Boundary(core, "Notify") {
27+
Container_Ext(eventbus, "Event Bus")
2728
29+
}
2830
31+
Rel(notify02, eventbus, "Produces")
32+
Rel(notify03, eventbus, "Produces")
33+
Rel(notify04, eventbus, "Produces")
34+
Rel(notify05, eventbus, "Produces")
35+
Rel(notify06, eventbus, "Produces")
2936
3037
38+
%%UpdateElementStyle(core, $fontColor="red", $bgColor="grey", $borderColor="red")
39+
%%UpdateRelStyle(notify02, eventbus, $offsetY="0", $offsetX="10")
40+
UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")
3141
```

docs/architecture/c4/notifhir/mesh/index.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,36 @@ author: Tom D'Roza
1212

1313
## MESH Poller
1414

15+
```mermaid
16+
C4Component
17+
title Mesh Component
18+
Container_Boundary(meshcontainer, "MESH Container") {
19+
20+
Container_Boundary(inbound, "Inbound"){
21+
Component(timer, "Mesh Timer")
22+
Component(poller, "Mesh Poller")
23+
Component(retriever, "Mesh Retriever")
24+
ComponentDb(db, "FileStore", "S3", "")
25+
}
26+
27+
28+
29+
30+
Container_Boundary(outbound, "Outbound"){
31+
Component(reporter, "Mesh Status reporter")
32+
}
33+
34+
Rel(timer, poller, "Produced", "TimeExipred")
35+
Rel(poller, retriever, "Sends File", "FileFound")
36+
Rel(retriever, db, "Saves File", "S3")
37+
38+
39+
UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")
40+
}
41+
```
42+
43+
Move below both to c4 code pages, nested below
44+
1545
```mermaid
1646
architecture-beta
1747
group meshPoller(cloud)[MeshPoller]

docs/architecture/c4/ttl/manage-ttl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ architecture-beta
1515
group manageTTL(cloud)[ManageTTL]
1616
service manageLambda(logos:aws-lambda)[Poll TTL] in manageTTL
1717
service manageDb(logos:aws-dynamodb)[DynamoDB] in manageTTL
18-
service ttlStream(logos:aws-stream)[Stream] in manageTTL
18+
service ttlStream(aws:res-amazon-dynamodb-stream)[Stream] in manageTTL
1919
service manageTtlExpiry(logos:aws-lambda)[handleTTLExpiry] in manageTTL
2020
service printTTLExpired(logos:aws-eventbridge)[PrintTTLExpired] in manageTTL
2121

0 commit comments

Comments
 (0)