You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
README: split Architecture (components) from a new Flow section
Architecture goes back to a component flowchart (now with the Payer and plain-language edge labels); the step-by-step sequence moves to its own Flow section.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
**Output:** the content shared through the link is a FHIR `CoverageEligibilityResponse`, encrypted as a JWE (`alg: dir`, `enc: A256GCM`) under the SHL key.
49
43
44
+
## Flow
45
+
46
+
```mermaid
47
+
sequenceDiagram
48
+
actor C as Client (browser)
49
+
participant A as Aidbox (FHIR server)
50
+
participant S as SHL App (Bun backend)
51
+
participant P as Payer
52
+
53
+
C->>A: POST $kickoff (member details)
54
+
A->>S: Aidbox routes the call to the backend
55
+
S-->>C: shlink: + key (returned right away)
56
+
57
+
Note over S,P: background job (the payer call is simulated here)
58
+
S->>P: check eligibility (RTE)
59
+
P-->>S: eligibility result
60
+
S->>A: encrypt the result, store it on the SHLink
61
+
62
+
C->>A: POST manifest (poll, no auth)
63
+
A->>S: Aidbox routes the call to the backend
64
+
S-->>C: status; once ready, the encrypted file
65
+
Note over C: decrypt locally with the key from the link
66
+
```
67
+
50
68
## Aidbox resources
51
69
52
70
The [init bundle](init-bundle/bundle.json) provisions four resources at startup. The flow creates two more at runtime.
0 commit comments