|
| 1 | +--- |
| 2 | +--- |
| 3 | + |
| 4 | +<div class="fhir-diagram"> |
| 5 | + <svg viewBox="0 0 600 320" xmlns="http://www.w3.org/2000/svg"> |
| 6 | + <!-- Paths --> |
| 7 | + <!-- Your App → REST → down → Gateway --> |
| 8 | + <path id="path-rest" d="M 135 50 L 250 50 L 250 125" fill="none" stroke="var(--muted-color)" stroke-width="1" /> |
| 9 | + <!-- Gateway → Platforms --> |
| 10 | + <path id="path-platforms" d="M 355 155 L 420 155" fill="none" stroke="var(--muted-color)" stroke-width="1" /> |
| 11 | + <!-- AI Agent → MCP → up → Gateway --> |
| 12 | + <path id="path-mcp" d="M 135 265 L 250 265 L 250 185" fill="none" stroke="var(--muted-color)" stroke-width="1" /> |
| 13 | + <!-- User → up → Gateway/Platforms area --> |
| 14 | + <path id="path-user" d="M 500 240 L 500 215" fill="none" stroke="var(--muted-color)" stroke-width="1" /> |
| 15 | + |
| 16 | + <!-- Animated dots — one direction --> |
| 17 | + <circle r="3" fill="var(--link-color)"> |
| 18 | + <animateMotion dur="3s" repeatCount="indefinite"> |
| 19 | + <mpath href="#path-rest" /> |
| 20 | + </animateMotion> |
| 21 | + <animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.05;0.9;1" dur="3s" repeatCount="indefinite" /> |
| 22 | + </circle> |
| 23 | + <circle r="3" fill="var(--link-color)" opacity="0"> |
| 24 | + <animateMotion dur="3s" begin="1.5s" repeatCount="indefinite"> |
| 25 | + <mpath href="#path-platforms" /> |
| 26 | + </animateMotion> |
| 27 | + <animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.05;0.9;1" dur="3s" begin="1.5s" repeatCount="indefinite" /> |
| 28 | + </circle> |
| 29 | + <circle r="3" fill="var(--link-color)" opacity="0"> |
| 30 | + <animateMotion dur="3s" begin="0.75s" repeatCount="indefinite"> |
| 31 | + <mpath href="#path-mcp" /> |
| 32 | + </animateMotion> |
| 33 | + <animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.05;0.9;1" dur="3s" begin="0.75s" repeatCount="indefinite" /> |
| 34 | + </circle> |
| 35 | + <circle r="3" fill="var(--link-color)" opacity="0"> |
| 36 | + <animateMotion dur="3s" begin="2.25s" repeatCount="indefinite"> |
| 37 | + <mpath href="#path-user" /> |
| 38 | + </animateMotion> |
| 39 | + <animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.05;0.9;1" dur="3s" begin="2.25s" repeatCount="indefinite" /> |
| 40 | + </circle> |
| 41 | + |
| 42 | + <!-- Labels on paths --> |
| 43 | + <text x="175" y="42" class="diagram-text label-text">REST</text> |
| 44 | + <text x="175" y="257" class="diagram-text label-text">MCP</text> |
| 45 | + |
| 46 | + <!-- Node: Your App --> |
| 47 | + <rect x="20" y="25" width="115" height="50" rx="4" class="diagram-box" /> |
| 48 | + <text x="77" y="53" class="diagram-text node-text">Your App</text> |
| 49 | + |
| 50 | + <!-- Node: FHIR Gateway --> |
| 51 | + <rect x="185" y="125" width="170" height="60" rx="4" class="diagram-box gateway-box" /> |
| 52 | + <text x="270" y="158" class="diagram-text gateway-text">FHIR Gateway</text> |
| 53 | + |
| 54 | + <!-- Node: Platforms --> |
| 55 | + <rect x="420" y="95" width="160" height="120" rx="4" class="diagram-box platform-box" /> |
| 56 | + <text x="500" y="122" class="diagram-text platform-text">Aetna, Cigna,</text> |
| 57 | + <text x="500" y="142" class="diagram-text platform-text">Epic, Cerner,</text> |
| 58 | + <text x="500" y="162" class="diagram-text platform-text">UHC, Humana,</text> |
| 59 | + <text x="500" y="186" class="diagram-text platform-accent">60+ systems</text> |
| 60 | + |
| 61 | + <!-- Node: AI Agent --> |
| 62 | + <rect x="20" y="240" width="115" height="50" rx="4" class="diagram-box" /> |
| 63 | + <text x="77" y="268" class="diagram-text node-text">AI Agent</text> |
| 64 | + |
| 65 | + <!-- Node: User --> |
| 66 | + <rect x="430" y="240" width="140" height="68" rx="4" class="diagram-box" /> |
| 67 | + <text x="500" y="260" class="diagram-text node-text">User</text> |
| 68 | + <text x="500" y="278" class="diagram-text sub-text">(authorizes</text> |
| 69 | + <text x="500" y="292" class="diagram-text sub-text">via OAuth)</text> |
| 70 | + </svg> |
| 71 | +</div> |
| 72 | + |
| 73 | +<style> |
| 74 | + .fhir-diagram { |
| 75 | + margin: 2rem 0; |
| 76 | + padding: 1rem; |
| 77 | + border: 1px solid var(--border-color); |
| 78 | + border-radius: 8px; |
| 79 | + overflow-x: auto; |
| 80 | + } |
| 81 | + |
| 82 | + .fhir-diagram svg { |
| 83 | + display: block; |
| 84 | + width: 100%; |
| 85 | + max-width: 600px; |
| 86 | + margin: 0 auto; |
| 87 | + height: auto; |
| 88 | + } |
| 89 | + |
| 90 | + .diagram-text { |
| 91 | + font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, monospace; |
| 92 | + text-anchor: middle; |
| 93 | + dominant-baseline: middle; |
| 94 | + } |
| 95 | + |
| 96 | + .node-text { |
| 97 | + font-size: 13px; |
| 98 | + font-weight: 600; |
| 99 | + fill: var(--heading-color); |
| 100 | + } |
| 101 | + |
| 102 | + .gateway-text { |
| 103 | + font-size: 14px; |
| 104 | + font-weight: 600; |
| 105 | + fill: var(--heading-color); |
| 106 | + } |
| 107 | + |
| 108 | + .sub-text { |
| 109 | + font-size: 11px; |
| 110 | + fill: var(--muted-color); |
| 111 | + } |
| 112 | + |
| 113 | + .label-text { |
| 114 | + font-size: 11px; |
| 115 | + fill: var(--muted-color); |
| 116 | + } |
| 117 | + |
| 118 | + .platform-text { |
| 119 | + font-size: 11px; |
| 120 | + fill: var(--muted-color); |
| 121 | + } |
| 122 | + |
| 123 | + .platform-accent { |
| 124 | + font-size: 11px; |
| 125 | + font-weight: 500; |
| 126 | + fill: var(--link-color); |
| 127 | + } |
| 128 | + |
| 129 | + .diagram-box { |
| 130 | + fill: none; |
| 131 | + stroke: var(--muted-color); |
| 132 | + stroke-width: 1.5; |
| 133 | + } |
| 134 | + |
| 135 | + .gateway-box { |
| 136 | + stroke: var(--link-color); |
| 137 | + stroke-width: 2; |
| 138 | + } |
| 139 | + |
| 140 | + .platform-box { |
| 141 | + stroke-dasharray: 5 3; |
| 142 | + } |
| 143 | +</style> |
0 commit comments