@alfadocs/ui-kit 1.133.0 → 1.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
  3. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
  4. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
  5. package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
  6. package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
  7. package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/appointment-tray-B3gSHL1j.js +200 -0
  9. package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
  10. package/dist/_chunks/ban-CiSCCcOE.js +15 -0
  11. package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-I5PfWudy.js} +15 -15
  13. package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
  14. package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
  15. package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
  16. package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
  17. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  18. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
  19. package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
  20. package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
  21. package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
  22. package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
  23. package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
  24. package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
  25. package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
  26. package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
  27. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  28. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  29. package/dist/_chunks/house-DGCypGTo.js +21 -0
  30. package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
  31. package/dist/_chunks/keypad-DBH_keVs.js +152 -0
  32. package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
  33. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  34. package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
  35. package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
  36. package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
  37. package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
  38. package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BvjAo4RQ.js} +6 -5
  39. package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
  40. package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
  41. package/dist/_chunks/patient-account-settings-B2XbN_Fe.js +546 -0
  42. package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
  43. package/dist/_chunks/patient-check-in-resume-B7NY-6KI.js +742 -0
  44. package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
  45. package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
  46. package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
  47. package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
  48. package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
  49. package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
  50. package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
  51. package/dist/_chunks/portal-details-DCIiGkHA.js +478 -0
  52. package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
  53. package/dist/_chunks/portal-parts-Br8wuala.js +285 -0
  54. package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
  55. package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
  56. package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
  57. package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
  58. package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
  59. package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
  60. package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
  61. package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
  62. package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
  63. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  64. package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
  65. package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
  66. package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-DvwqPfFR.js} +40 -39
  67. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
  68. package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
  69. package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
  70. package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
  71. package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
  72. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  73. package/dist/agent-catalog.json +933 -324
  74. package/dist/agent-i18n/en.json +103 -18
  75. package/dist/browser-support.js +1 -1
  76. package/dist/components/_shared/is-safe-url.d.ts +3 -1
  77. package/dist/components/_shared/sms-segments.d.ts +43 -0
  78. package/dist/components/agenda-card/index.js +2 -2
  79. package/dist/components/agenda-tray/index.js +1 -1
  80. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  81. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
  82. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  83. package/dist/components/ai-summary-panel/index.js +6 -0
  84. package/dist/components/appointment-card/appointment-card.d.ts +45 -0
  85. package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
  86. package/dist/components/appointment-card/index.js +3 -3
  87. package/dist/components/appointment-details-panel/index.js +1 -1
  88. package/dist/components/appointment-peek/index.js +1 -1
  89. package/dist/components/appointment-timeline/index.js +1 -1
  90. package/dist/components/booking/index.js +1 -1
  91. package/dist/components/calendar/index.js +1 -1
  92. package/dist/components/calendar-event-card/index.js +1 -1
  93. package/dist/components/care-plan-card/index.js +1 -1
  94. package/dist/components/care-plan-entry-card/index.js +1 -1
  95. package/dist/components/care-plan-header/index.js +1 -1
  96. package/dist/components/chat-container/chat-container.d.ts +7 -0
  97. package/dist/components/chat-container/index.js +1 -1
  98. package/dist/components/chat-input/chat-input.d.ts +3 -0
  99. package/dist/components/chat-input/index.js +1 -1
  100. package/dist/components/clinical-note-card/index.js +1 -1
  101. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  102. package/dist/components/communications-panel/communications-panel.d.ts +136 -0
  103. package/dist/components/communications-panel/index.d.ts +6 -0
  104. package/dist/components/communications-panel/index.js +7 -0
  105. package/dist/components/document-preview/document-preview.d.ts +61 -7
  106. package/dist/components/document-preview/index.js +1 -1
  107. package/dist/components/entity-summary/entity-summary.d.ts +8 -0
  108. package/dist/components/entity-summary/index.js +1 -1
  109. package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
  110. package/dist/components/finished-terminal/index.d.ts +1 -1
  111. package/dist/components/finished-terminal/index.js +1 -1
  112. package/dist/components/index.d.ts +14 -0
  113. package/dist/components/keypad/index.d.ts +3 -0
  114. package/dist/components/keypad/index.js +6 -0
  115. package/dist/components/keypad/keypad.d.ts +54 -0
  116. package/dist/components/keypad-button/index.d.ts +3 -0
  117. package/dist/components/keypad-button/index.js +6 -0
  118. package/dist/components/keypad-button/keypad-button.d.ts +33 -0
  119. package/dist/components/message-card/index.js +2 -2
  120. package/dist/components/message-tray/index.js +1 -1
  121. package/dist/components/note-timeline/index.js +1 -1
  122. package/dist/components/notes-panel/index.js +1 -1
  123. package/dist/components/operator-hero/index.js +1 -1
  124. package/dist/components/otp-input/index.js +1 -1
  125. package/dist/components/otp-input/otp-input.d.ts +11 -0
  126. package/dist/components/patient-summary-card/index.js +1 -1
  127. package/dist/components/payment-card/index.js +1 -1
  128. package/dist/components/pdf-viewer/index.js +1 -1
  129. package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
  130. package/dist/components/pin-entry/index.d.ts +3 -0
  131. package/dist/components/pin-entry/index.js +5 -0
  132. package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
  133. package/dist/components/pin-entry/pin-entry.d.ts +64 -0
  134. package/dist/components/pin-indicator/index.d.ts +3 -0
  135. package/dist/components/pin-indicator/index.js +9 -0
  136. package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
  137. package/dist/components/product-hub-tray/index.js +2 -2
  138. package/dist/components/session-countdown/index.js +1 -1
  139. package/dist/components/session-countdown/session-countdown.d.ts +19 -0
  140. package/dist/components/sign-document/index.js +1 -1
  141. package/dist/components/signature-field/index.js +1 -1
  142. package/dist/components/signature-field/signature-field.d.ts +17 -6
  143. package/dist/components/signature-status-chip/index.js +1 -1
  144. package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
  145. package/dist/components/sms-code-entry/index.d.ts +3 -0
  146. package/dist/components/sms-code-entry/index.js +5 -0
  147. package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
  148. package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
  149. package/dist/components/step-up-dialog/index.d.ts +3 -0
  150. package/dist/components/step-up-dialog/index.js +5 -0
  151. package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
  152. package/dist/components/task-editor/index.js +1 -1
  153. package/dist/components/tasks-panel/index.js +1 -1
  154. package/dist/components/workflow-status/index.js +2 -2
  155. package/dist/core.css +1 -1
  156. package/dist/hooks/index.js +1 -1
  157. package/dist/hooks/use-signing-session.d.ts +7 -2
  158. package/dist/host-compat.css +18 -3
  159. package/dist/i18n/locales/ar.d.ts +605 -1
  160. package/dist/i18n/locales/ar.js +603 -3
  161. package/dist/i18n/locales/de.d.ts +605 -1
  162. package/dist/i18n/locales/de.js +611 -4
  163. package/dist/i18n/locales/el.d.ts +605 -1
  164. package/dist/i18n/locales/el.js +606 -4
  165. package/dist/i18n/locales/en.d.ts +607 -1
  166. package/dist/i18n/locales/en.js +614 -4
  167. package/dist/i18n/locales/es.d.ts +605 -1
  168. package/dist/i18n/locales/es.js +604 -4
  169. package/dist/i18n/locales/fr.d.ts +605 -1
  170. package/dist/i18n/locales/fr.js +604 -4
  171. package/dist/i18n/locales/hi.d.ts +605 -1
  172. package/dist/i18n/locales/hi.js +604 -4
  173. package/dist/i18n/locales/it.d.ts +605 -1
  174. package/dist/i18n/locales/it.js +611 -4
  175. package/dist/i18n/locales/ja.d.ts +605 -1
  176. package/dist/i18n/locales/ja.js +604 -4
  177. package/dist/i18n/locales/nl.d.ts +605 -1
  178. package/dist/i18n/locales/nl.js +611 -4
  179. package/dist/i18n/locales/pl.d.ts +605 -1
  180. package/dist/i18n/locales/pl.js +611 -4
  181. package/dist/i18n/locales/pt.d.ts +605 -1
  182. package/dist/i18n/locales/pt.js +611 -4
  183. package/dist/i18n/locales/ro.d.ts +605 -1
  184. package/dist/i18n/locales/ro.js +611 -4
  185. package/dist/i18n/locales/ru.d.ts +605 -1
  186. package/dist/i18n/locales/ru.js +603 -3
  187. package/dist/i18n/locales/sq.d.ts +605 -1
  188. package/dist/i18n/locales/sq.js +604 -4
  189. package/dist/i18n/locales/sv.d.ts +605 -1
  190. package/dist/i18n/locales/sv.js +604 -4
  191. package/dist/i18n/locales/tr.d.ts +605 -1
  192. package/dist/i18n/locales/tr.js +606 -4
  193. package/dist/i18n/locales/zh.d.ts +605 -1
  194. package/dist/i18n/locales/zh.js +604 -4
  195. package/dist/index.js +1305 -1231
  196. package/dist/locales/ar.json +606 -2
  197. package/dist/locales/de.json +607 -3
  198. package/dist/locales/el.json +607 -3
  199. package/dist/locales/en.json +607 -3
  200. package/dist/locales/es.json +607 -3
  201. package/dist/locales/fr.json +607 -3
  202. package/dist/locales/hi.json +607 -3
  203. package/dist/locales/it.json +607 -3
  204. package/dist/locales/ja.json +607 -3
  205. package/dist/locales/nl.json +607 -3
  206. package/dist/locales/pl.json +607 -3
  207. package/dist/locales/pt.json +607 -3
  208. package/dist/locales/ro.json +607 -3
  209. package/dist/locales/ru.json +606 -2
  210. package/dist/locales/sq.json +607 -3
  211. package/dist/locales/sv.json +607 -3
  212. package/dist/locales/tr.json +607 -3
  213. package/dist/locales/zh.json +607 -3
  214. package/dist/patterns/alia-assistant/index.js +1 -1
  215. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  216. package/dist/patterns/calendar/index.js +1 -1
  217. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  218. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  219. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  220. package/dist/patterns/check-in-documents/index.js +5 -0
  221. package/dist/patterns/error-page/index.js +1 -1
  222. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  223. package/dist/patterns/patient-account-settings/index.js +5 -0
  224. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  225. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  226. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  227. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  228. package/dist/patterns/patient-check-in/index.js +13 -0
  229. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  230. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  231. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  232. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  233. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  234. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  235. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  236. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  237. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  238. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  239. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  240. package/dist/patterns/patient-portal/index.d.ts +12 -0
  241. package/dist/patterns/patient-portal/index.js +13 -0
  242. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  243. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  244. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  245. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  246. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  247. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  248. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  249. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  250. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  251. package/dist/patterns/patient-sign-in/index.js +15 -0
  252. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  253. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  254. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  255. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  256. package/dist/patterns/registration-form/index.js +1 -1
  257. package/dist/patterns/signature-request/index.js +1 -1
  258. package/dist/patterns/signing/index.d.ts +26 -0
  259. package/dist/patterns/signing/index.js +16 -0
  260. package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
  261. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  262. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  263. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  264. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  265. package/dist/patterns/signing/signing-document-screen.d.ts +104 -0
  266. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  267. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  268. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  269. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  270. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  271. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  272. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  273. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  274. package/dist/patterns/verify-identity/index.js +1 -1
  275. package/dist/tokens.css +1 -1
  276. package/package.json +57 -1
  277. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  278. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  279. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  280. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  281. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  282. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  283. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  284. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  285. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.133.0",
3
+ "packageVersion": "1.135.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -555,6 +555,81 @@
555
555
  }
556
556
  }
557
557
  },
558
+ {
559
+ "kind": "component",
560
+ "id": "ai-summary-panel",
561
+ "capabilities": [
562
+ "confirm"
563
+ ],
564
+ "state": [
565
+ {
566
+ "name": "status",
567
+ "type": "'consent-required' | 'loading' | 'ready' | 'stale' | 'insufficient-data' | 'credits-exhausted' | 'error'",
568
+ "description": "The face the panel shows.",
569
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.status"
570
+ },
571
+ {
572
+ "name": "ageBand",
573
+ "type": "'fresh' | 'old' | 'very-old' | null",
574
+ "description": "How old the summary is: fresh (under 6 hours), old (6 to 24 hours) or very-old (over 24 hours). Null when there is no summary.",
575
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.ageBand"
576
+ },
577
+ {
578
+ "name": "sectionCount",
579
+ "type": "number",
580
+ "description": "How many sections the summary holds. A count only.",
581
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionCount"
582
+ }
583
+ ],
584
+ "actions": [
585
+ {
586
+ "name": "grant_consent",
587
+ "safety": "write",
588
+ "idempotent": true,
589
+ "openWorld": true,
590
+ "errors": [
591
+ "The panel is not asking for consent, is read-only or privacy mode is on.",
592
+ "The host could not save the consent. The panel shows the host's message."
593
+ ],
594
+ "description": "Record that the patient was told and agrees, then ask for the first summary. The summary spends AI credits. Only call this when the user says the patient agreed. Settles with the host's answer.",
595
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.grantConsent"
596
+ },
597
+ {
598
+ "name": "generate",
599
+ "safety": "write",
600
+ "openWorld": true,
601
+ "errors": [
602
+ "The panel is not in the error or not-enough-data face, is read-only or privacy mode is on.",
603
+ "A request is already in flight."
604
+ ],
605
+ "description": "Ask for a summary again after an error or when data was added. Spends AI credits. Settles with the host's answer.",
606
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.generate"
607
+ },
608
+ {
609
+ "name": "regenerate",
610
+ "safety": "write",
611
+ "openWorld": true,
612
+ "errors": [
613
+ "The panel shows no summary, is read-only or privacy mode is on.",
614
+ "A request is already in flight."
615
+ ],
616
+ "description": "Replace the summary with a new one. Spends AI credits. Settles with the host's answer.",
617
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.regenerate"
618
+ }
619
+ ],
620
+ "domHooks": {
621
+ "root": {
622
+ "attr": "data-component",
623
+ "value": "ai-summary-panel",
624
+ "description": "Marks the AiSummaryPanel region."
625
+ },
626
+ "instanceId": {
627
+ "attr": "data-component-id",
628
+ "sourceProp": "id",
629
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
630
+ }
631
+ }
632
+ },
558
633
  {
559
634
  "kind": "component",
560
635
  "id": "alert",
@@ -646,7 +721,7 @@
646
721
  "root": {
647
722
  "attr": "data-component",
648
723
  "value": "appointment-card",
649
- "description": "Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel."
724
+ "description": "Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action=\"open-appointment\"."
650
725
  },
651
726
  "instanceId": {
652
727
  "attr": "data-component-id",
@@ -904,7 +979,7 @@
904
979
  "root": {
905
980
  "attr": "data-component",
906
981
  "value": "appointment-tray",
907
- "description": "Marks the AppointmentTray wrapper."
982
+ "description": "Marks the AppointmentTray wrapper. When the host passes onAddAppointment, the header button carries data-action=\"add-appointment\". It only calls the host, so it has a hook but no agent action: creating an appointment writes patient data and belongs to the host's own flow."
908
983
  },
909
984
  "instanceId": {
910
985
  "attr": "data-component-id",
@@ -3898,6 +3973,162 @@
3898
3973
  }
3899
3974
  }
3900
3975
  },
3976
+ {
3977
+ "kind": "component",
3978
+ "id": "communications-panel",
3979
+ "capabilities": [
3980
+ "submit"
3981
+ ],
3982
+ "state": [
3983
+ {
3984
+ "name": "channel",
3985
+ "type": "'app' | 'sms' | 'email' | null",
3986
+ "description": "The channel the composer will send by. Null when no channel can be used.",
3987
+ "descriptionKey": "ui.agent.communicationsPanel.state.channel"
3988
+ },
3989
+ {
3990
+ "name": "messageCount",
3991
+ "type": "number",
3992
+ "description": "How many messages the thread holds. A count only, never a message. Zero under privacy.",
3993
+ "descriptionKey": "ui.agent.communicationsPanel.state.messageCount"
3994
+ },
3995
+ {
3996
+ "name": "unreadCount",
3997
+ "type": "number",
3998
+ "description": "How many incoming messages are new.",
3999
+ "descriptionKey": "ui.agent.communicationsPanel.state.unreadCount"
4000
+ },
4001
+ {
4002
+ "name": "status",
4003
+ "type": "'ready' | 'loading' | 'error'",
4004
+ "description": "The state of the host's read of the thread.",
4005
+ "descriptionKey": "ui.agent.communicationsPanel.state.status"
4006
+ },
4007
+ {
4008
+ "name": "limitReached",
4009
+ "type": "boolean",
4010
+ "description": "Whether the daily send limit is reached. SMS and Email are then unavailable; App stays.",
4011
+ "descriptionKey": "ui.agent.communicationsPanel.state.limitReached"
4012
+ },
4013
+ {
4014
+ "name": "privacy",
4015
+ "type": "{ masked: true } | null",
4016
+ "description": "Reads { masked: true } when privacy mode withholds the thread, else null.",
4017
+ "descriptionKey": "ui.agent.communicationsPanel.state.privacy"
4018
+ }
4019
+ ],
4020
+ "actions": [
4021
+ {
4022
+ "name": "select_channel",
4023
+ "safety": "write",
4024
+ "argsType": "{ channel: 'app' | 'sms' | 'email' }",
4025
+ "argsSchema": {
4026
+ "type": "object",
4027
+ "properties": {
4028
+ "channel": {
4029
+ "type": "string",
4030
+ "enum": [
4031
+ "app",
4032
+ "sms",
4033
+ "email"
4034
+ ]
4035
+ }
4036
+ },
4037
+ "required": [
4038
+ "channel"
4039
+ ]
4040
+ },
4041
+ "idempotent": true,
4042
+ "errors": [
4043
+ "The channel is not available for this patient, or the daily limit closed it.",
4044
+ "The panel is read-only or privacy mode is on."
4045
+ ],
4046
+ "examples": [
4047
+ {
4048
+ "args": {
4049
+ "channel": "sms"
4050
+ },
4051
+ "note": "Switch to SMS."
4052
+ }
4053
+ ],
4054
+ "description": "Choose the channel the composer sends by. Rejects when the channel is not available.",
4055
+ "descriptionKey": "ui.agent.communicationsPanel.actions.selectChannel"
4056
+ },
4057
+ {
4058
+ "name": "mark_seen",
4059
+ "safety": "write",
4060
+ "idempotent": true,
4061
+ "openWorld": true,
4062
+ "errors": [
4063
+ "The panel is read-only or privacy mode is on.",
4064
+ "The host refused to clear the unread flag."
4065
+ ],
4066
+ "description": "Tell the host the new incoming messages were seen. Settles with the host's answer.",
4067
+ "descriptionKey": "ui.agent.communicationsPanel.actions.markSeen"
4068
+ },
4069
+ {
4070
+ "name": "send_message",
4071
+ "safety": "phi",
4072
+ "argsType": "{ channel: 'app' | 'sms' | 'email'; body: string }",
4073
+ "argsSchema": {
4074
+ "type": "object",
4075
+ "properties": {
4076
+ "channel": {
4077
+ "type": "string",
4078
+ "enum": [
4079
+ "app",
4080
+ "sms",
4081
+ "email"
4082
+ ]
4083
+ },
4084
+ "body": {
4085
+ "type": "string",
4086
+ "description": "Plain text. For SMS the sender name is added to the end."
4087
+ }
4088
+ },
4089
+ "required": [
4090
+ "channel",
4091
+ "body"
4092
+ ]
4093
+ },
4094
+ "openWorld": true,
4095
+ "errors": [
4096
+ "The channel is not available for this patient, or the daily limit closed it.",
4097
+ "The message is empty, or an SMS is above the length cap.",
4098
+ "The panel is read-only or privacy mode is on.",
4099
+ "A send is already in progress.",
4100
+ "The host refused the send. The panel keeps the draft and shows the host's message."
4101
+ ],
4102
+ "examples": [
4103
+ {
4104
+ "args": {
4105
+ "channel": "app",
4106
+ "body": "See you on Tuesday."
4107
+ },
4108
+ "note": "Send a short App message."
4109
+ }
4110
+ ],
4111
+ "description": "Send a message to the patient by App, SMS or Email. Settles with the host's answer; a refusal rejects.",
4112
+ "descriptionKey": "ui.agent.communicationsPanel.actions.sendMessage"
4113
+ }
4114
+ ],
4115
+ "domHooks": {
4116
+ "root": {
4117
+ "attr": "data-component",
4118
+ "value": "communications-panel",
4119
+ "description": "Marks the CommunicationsPanel region."
4120
+ },
4121
+ "instanceId": {
4122
+ "attr": "data-component-id",
4123
+ "sourceProp": "id",
4124
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
4125
+ },
4126
+ "item": {
4127
+ "attr": "data-message-id",
4128
+ "description": "Stable message id on each rendered message. Also carries data-direction and data-channel. Never a name, number or text."
4129
+ }
4130
+ }
4131
+ },
3901
4132
  {
3902
4133
  "kind": "component",
3903
4134
  "id": "connection-status",
@@ -6166,7 +6397,9 @@
6166
6397
  {
6167
6398
  "kind": "component",
6168
6399
  "id": "document-preview",
6169
- "capabilities": [],
6400
+ "capabilities": [
6401
+ "close"
6402
+ ],
6170
6403
  "state": [
6171
6404
  {
6172
6405
  "name": "kind",
@@ -6195,7 +6428,7 @@
6195
6428
  "root": {
6196
6429
  "attr": "data-component",
6197
6430
  "value": "document-preview",
6198
- "description": "Marks the DocumentPreview region."
6431
+ "description": "Marks the DocumentPreview region. When the host passes onClose and onDownload, the header buttons carry data-action=\"close-document\" and data-action=\"download-document\"; both only call the host."
6199
6432
  },
6200
6433
  "instanceId": {
6201
6434
  "attr": "data-component-id",
@@ -9574,6 +9807,53 @@
9574
9807
  }
9575
9808
  }
9576
9809
  },
9810
+ {
9811
+ "kind": "component",
9812
+ "id": "keypad",
9813
+ "capabilities": [],
9814
+ "state": [],
9815
+ "actions": [],
9816
+ "domHooks": {
9817
+ "root": {
9818
+ "attr": "data-component",
9819
+ "value": "keypad",
9820
+ "description": "Marks the 3 × 4 number pad (role=\"group\"). Its keys are KeypadButtons in fixed phone order."
9821
+ },
9822
+ "instanceId": {
9823
+ "attr": "data-component-id",
9824
+ "sourceProp": "id",
9825
+ "description": "Sourced from the id prop."
9826
+ },
9827
+ "item": {
9828
+ "attr": "data-key-id",
9829
+ "description": "On each key: \"0\" to \"9\" for the digits, \"delete\" for Delete. For tests and scripted demos only: an agent never presses these keys to type a PIN. The root carries a session-replay mask class (maskClassName, default ph-no-capture)."
9830
+ }
9831
+ }
9832
+ },
9833
+ {
9834
+ "kind": "component",
9835
+ "id": "keypad-button",
9836
+ "capabilities": [],
9837
+ "state": [],
9838
+ "actions": [],
9839
+ "domHooks": {
9840
+ "root": {
9841
+ "attr": "data-component",
9842
+ "value": "keypad-button",
9843
+ "description": "Marks one keypad key. `data-variant` is digit, action or spacer; a spacer is aria-hidden and never a target."
9844
+ },
9845
+ "instanceId": {
9846
+ "attr": "data-component-id",
9847
+ "sourceProp": "id",
9848
+ "description": "Sourced from the id prop."
9849
+ },
9850
+ "item": {
9851
+ "attr": "data-key-id",
9852
+ "sourceProp": "digit",
9853
+ "description": "The digit a digit key types. Action keys carry no data-key-id of their own; Keypad sets data-key-id=\"delete\" on its Delete key."
9854
+ }
9855
+ }
9856
+ },
9577
9857
  {
9578
9858
  "kind": "component",
9579
9859
  "id": "link",
@@ -12163,7 +12443,8 @@
12163
12443
  "domHooks": {
12164
12444
  "root": {
12165
12445
  "attr": "data-component",
12166
- "value": "pdf-viewer"
12446
+ "value": "pdf-viewer",
12447
+ "description": "Marks the PDFViewer. Each toolbar button carries a data-action: previous-page, next-page, zoom-out, zoom-in, open-search, close-search (the find bar) and print. go_to_page, set_zoom and print on this adapter do the same work through the handle."
12167
12448
  },
12168
12449
  "instanceId": {
12169
12450
  "attr": "data-component-id",
@@ -13083,6 +13364,82 @@
13083
13364
  }
13084
13365
  }
13085
13366
  },
13367
+ {
13368
+ "kind": "component",
13369
+ "id": "pin-entry",
13370
+ "capabilities": [],
13371
+ "state": [
13372
+ {
13373
+ "name": "filledCount",
13374
+ "type": "number",
13375
+ "description": "How many digits are typed. Never the digits themselves.",
13376
+ "descriptionKey": "ui.agent.pinEntry.state.filledCount"
13377
+ },
13378
+ {
13379
+ "name": "length",
13380
+ "type": "number",
13381
+ "description": "How many digits the PIN has.",
13382
+ "descriptionKey": "ui.agent.pinEntry.state.length"
13383
+ },
13384
+ {
13385
+ "name": "isComplete",
13386
+ "type": "boolean",
13387
+ "description": "Whether every digit is typed.",
13388
+ "descriptionKey": "ui.agent.pinEntry.state.isComplete"
13389
+ }
13390
+ ],
13391
+ "actions": [
13392
+ {
13393
+ "name": "clear",
13394
+ "safety": "destructive",
13395
+ "idempotent": true,
13396
+ "description": "Empty the PIN. Loses the digits typed so far.",
13397
+ "descriptionKey": "ui.agent.pinEntry.actions.clear"
13398
+ },
13399
+ {
13400
+ "name": "focus",
13401
+ "safety": "read",
13402
+ "idempotent": true,
13403
+ "description": "Move keyboard focus to the PIN field, so physical digits type into it.",
13404
+ "descriptionKey": "ui.agent.pinEntry.actions.focus"
13405
+ }
13406
+ ],
13407
+ "domHooks": {
13408
+ "root": {
13409
+ "attr": "data-component",
13410
+ "value": "pin-entry",
13411
+ "description": "Marks the PIN control: a label, the PIN dots over a real password field (inputmode=\"none\") and a Keypad."
13412
+ },
13413
+ "instanceId": {
13414
+ "attr": "data-component-id",
13415
+ "sourceProp": "id",
13416
+ "description": "Sourced from the id prop."
13417
+ }
13418
+ }
13419
+ },
13420
+ {
13421
+ "kind": "component",
13422
+ "id": "pin-indicator",
13423
+ "capabilities": [],
13424
+ "state": [],
13425
+ "actions": [],
13426
+ "domHooks": {
13427
+ "root": {
13428
+ "attr": "data-component",
13429
+ "value": "pin-indicator",
13430
+ "description": "Marks the PIN dots. data-state is idle, complete or error; data-filled and data-length give the count. The indicator never renders a digit."
13431
+ },
13432
+ "instanceId": {
13433
+ "attr": "data-component-id",
13434
+ "sourceProp": "id",
13435
+ "description": "Sourced from the id prop."
13436
+ },
13437
+ "item": {
13438
+ "attr": "data-dot-id",
13439
+ "description": "On each dot: its position, from 0. A dot also carries data-filled when that dot is filled; the root carries the number of digits typed."
13440
+ }
13441
+ }
13442
+ },
13086
13443
  {
13087
13444
  "kind": "component",
13088
13445
  "id": "popover",
@@ -15258,7 +15615,7 @@
15258
15615
  "root": {
15259
15616
  "attr": "data-component",
15260
15617
  "value": "session-countdown",
15261
- "description": "Marks the element as a kit SessionCountdown banner. The root also emits `data-tone=\"running\" | \"warning\" | \"expired\"` (derived from the remaining time). The accessible remaining-time announcement is surfaced via the region's aria-label and a nested polite live region."
15618
+ "description": "Marks the element as a kit SessionCountdown banner. The root also emits `data-tone=\"running\" | \"warning\" | \"expired\"` (derived from the remaining time). When the session has expired and the host passes onRestart, the only button carries data-action=\"restart-session\"; it only calls the host. The accessible remaining-time announcement is surfaced via the region's aria-label and a nested polite live region."
15262
15619
  }
15263
15620
  }
15264
15621
  },
@@ -16104,20 +16461,79 @@
16104
16461
  },
16105
16462
  {
16106
16463
  "kind": "component",
16107
- "id": "social-sign-in-button",
16464
+ "id": "sms-code-entry",
16108
16465
  "capabilities": [],
16109
- "state": [],
16110
- "actions": [],
16111
- "domHooks": {
16112
- "root": {
16113
- "attr": "data-component",
16114
- "value": "social-sign-in-button",
16115
- "description": "Marks the branded provider sign-in trigger (Apple / Google). The active provider is on `data-provider`. Safety is declared by the host auth pattern."
16116
- }
16117
- }
16118
- },
16119
- {
16120
- "kind": "component",
16466
+ "state": [
16467
+ {
16468
+ "name": "filledCount",
16469
+ "type": "number",
16470
+ "description": "How many digits are typed. Never the digits themselves.",
16471
+ "descriptionKey": "ui.agent.smsCodeEntry.state.filledCount"
16472
+ },
16473
+ {
16474
+ "name": "length",
16475
+ "type": "number",
16476
+ "description": "How many digits the code has.",
16477
+ "descriptionKey": "ui.agent.smsCodeEntry.state.length"
16478
+ },
16479
+ {
16480
+ "name": "isComplete",
16481
+ "type": "boolean",
16482
+ "description": "Whether every box is filled, so the person can press the submit button.",
16483
+ "descriptionKey": "ui.agent.smsCodeEntry.state.isComplete"
16484
+ },
16485
+ {
16486
+ "name": "error",
16487
+ "type": "'wrong' | 'expired' | 'locked' | 'send-failed' | 'resend-limit' | null",
16488
+ "description": "What the host reported about the code: wrong, expired, locked, send-failed or resend-limit, or null when it reported nothing.",
16489
+ "descriptionKey": "ui.agent.smsCodeEntry.state.error"
16490
+ }
16491
+ ],
16492
+ "actions": [
16493
+ {
16494
+ "name": "clear",
16495
+ "safety": "destructive",
16496
+ "idempotent": true,
16497
+ "description": "Empty the boxes. Loses the digits typed so far.",
16498
+ "descriptionKey": "ui.agent.smsCodeEntry.actions.clear"
16499
+ },
16500
+ {
16501
+ "name": "focus",
16502
+ "safety": "read",
16503
+ "idempotent": true,
16504
+ "description": "Move keyboard focus to the code boxes, so the person can type or paste the code. Does nothing while the boxes are disabled.",
16505
+ "descriptionKey": "ui.agent.smsCodeEntry.actions.focus"
16506
+ }
16507
+ ],
16508
+ "domHooks": {
16509
+ "root": {
16510
+ "attr": "data-component",
16511
+ "value": "sms-code-entry",
16512
+ "description": "Marks the SMS code step: the sentence naming the masked mobile, the code boxes (an OTPInput), the notes, \"Send a new code\" and the submit button."
16513
+ },
16514
+ "instanceId": {
16515
+ "attr": "data-component-id",
16516
+ "sourceProp": "id",
16517
+ "description": "Sourced from the id prop."
16518
+ }
16519
+ }
16520
+ },
16521
+ {
16522
+ "kind": "component",
16523
+ "id": "social-sign-in-button",
16524
+ "capabilities": [],
16525
+ "state": [],
16526
+ "actions": [],
16527
+ "domHooks": {
16528
+ "root": {
16529
+ "attr": "data-component",
16530
+ "value": "social-sign-in-button",
16531
+ "description": "Marks the branded provider sign-in trigger (Apple / Google). The active provider is on `data-provider`. Safety is declared by the host auth pattern."
16532
+ }
16533
+ }
16534
+ },
16535
+ {
16536
+ "kind": "component",
16121
16537
  "id": "sparkline",
16122
16538
  "capabilities": [],
16123
16539
  "state": [
@@ -16271,6 +16687,29 @@
16271
16687
  }
16272
16688
  }
16273
16689
  },
16690
+ {
16691
+ "kind": "component",
16692
+ "id": "step-up-dialog",
16693
+ "capabilities": [
16694
+ "open",
16695
+ "close",
16696
+ "dismiss"
16697
+ ],
16698
+ "state": [],
16699
+ "actions": [],
16700
+ "domHooks": {
16701
+ "root": {
16702
+ "attr": "data-component",
16703
+ "value": "step-up-dialog",
16704
+ "description": "Marks the body wrapper inside the dialog surface: the title, the subject, the code entry (or the no-mobile refusal) and Cancel. The surrounding Dialog, with its own data-component=\"dialog\", owns the open-state handle."
16705
+ },
16706
+ "instanceId": {
16707
+ "attr": "data-component-id",
16708
+ "sourceProp": "id",
16709
+ "description": "Sourced from the id prop. Emitted on this body wrapper AND on the composed Dialog content, which registers `dialogAgent` under the same id, so one id addresses both the step-up body and the open-state handle."
16710
+ }
16711
+ }
16712
+ },
16274
16713
  {
16275
16714
  "kind": "component",
16276
16715
  "id": "stepper-accordion",
@@ -21959,6 +22398,54 @@
21959
22398
  }
21960
22399
  ]
21961
22400
  },
22401
+ {
22402
+ "kind": "pattern",
22403
+ "id": "check-in-documents",
22404
+ "composes": [
22405
+ {
22406
+ "component": "card",
22407
+ "as": "card"
22408
+ },
22409
+ {
22410
+ "component": "badge",
22411
+ "as": "status"
22412
+ },
22413
+ {
22414
+ "component": "alert",
22415
+ "as": "notice"
22416
+ },
22417
+ {
22418
+ "component": "button",
22419
+ "as": "action"
22420
+ }
22421
+ ],
22422
+ "workflows": [
22423
+ {
22424
+ "name": "read_documents",
22425
+ "safety": "read",
22426
+ "description": "Read which documents are due and which are signed. The screen is `data-component=\"check-in-documents\"`. Each document is a list item with `data-document-id` (its id) and a status badge: \"To sign\", \"Signed\" or \"Sign again\". A document that changed since it was signed has a notice naming it and the date. The count \"N of M signed\" is a status region above the list. Never invent a document that is not listed.",
22427
+ "descriptionKey": "ui.agent.checkInDocuments.workflows.readDocuments",
22428
+ "uiActions": [],
22429
+ "apiActions": []
22430
+ },
22431
+ {
22432
+ "name": "start_signing",
22433
+ "safety": "write",
22434
+ "description": "Open the signing round for every unsigned document (`data-action=\"sign-all\"`, \"Read and sign\"). The button shows only while a document is unsigned, the patient has a verified mobile and the host handles it; without one the screen says \"Contact the practice\" and has no such button. The person reads and signs the documents in one round, then presses Sign; the round has no code of its own (D133). The host opens the round.",
22435
+ "descriptionKey": "ui.agent.checkInDocuments.workflows.startSigning",
22436
+ "uiActions": [],
22437
+ "apiActions": []
22438
+ },
22439
+ {
22440
+ "name": "continue_check_in",
22441
+ "safety": "write",
22442
+ "description": "Move on to the next step (`data-action=\"documents-continue\"`, \"Continue\"). The button shows only when every listed document is signed. The host decides what comes next and may save progress.",
22443
+ "descriptionKey": "ui.agent.checkInDocuments.workflows.continueCheckIn",
22444
+ "uiActions": [],
22445
+ "apiActions": []
22446
+ }
22447
+ ]
22448
+ },
21962
22449
  {
21963
22450
  "kind": "pattern",
21964
22451
  "id": "confirm-phone",
@@ -22719,6 +23206,96 @@
22719
23206
  }
22720
23207
  ]
22721
23208
  },
23209
+ {
23210
+ "kind": "pattern",
23211
+ "id": "patient-account-settings",
23212
+ "composes": [
23213
+ {
23214
+ "component": "pin-entry",
23215
+ "as": "pin"
23216
+ },
23217
+ {
23218
+ "component": "email-input",
23219
+ "as": "email"
23220
+ },
23221
+ {
23222
+ "component": "phone-input",
23223
+ "as": "mobile"
23224
+ },
23225
+ {
23226
+ "component": "form-field",
23227
+ "as": "field"
23228
+ },
23229
+ {
23230
+ "component": "step-up-dialog",
23231
+ "as": "smsCheck"
23232
+ },
23233
+ {
23234
+ "component": "empty-state",
23235
+ "as": "message"
23236
+ },
23237
+ {
23238
+ "component": "skeleton",
23239
+ "as": "loading"
23240
+ },
23241
+ {
23242
+ "component": "alert",
23243
+ "as": "alert"
23244
+ },
23245
+ {
23246
+ "component": "button",
23247
+ "as": "action"
23248
+ }
23249
+ ],
23250
+ "workflows": [
23251
+ {
23252
+ "name": "read_screen",
23253
+ "safety": "phi",
23254
+ "description": "Read the account settings. The screen is `data-component=\"patient-account-settings\"`; each row is `data-component=\"patient-account-settings-row\"` with `data-row-id` and `data-kind` (`email`, `mobile`, `pin` or `readonly`). Rows sit in sections, each carrying an opaque id as `data-section-id`. The state is ids and kinds only: no attribute holds the email or the mobile. Reading the row text reads the login email and the masked mobile back, so it is `phi`; under privacy the values are masked and the Change buttons are hidden. The PIN is never shown. A loading or message placeholder carries `data-state` `loading`, `empty` or `error`. It returns row ids, row kinds and that state, and no email or mobile value. Never read or repeat a PIN or an SMS code.",
23255
+ "descriptionKey": "ui.agent.patientAccountSettings.workflows.readScreen",
23256
+ "uiActions": [],
23257
+ "apiActions": []
23258
+ },
23259
+ {
23260
+ "name": "change_email",
23261
+ "safety": "phi",
23262
+ "description": "Change the login email: \"Change email\" (`data-action=\"change-email\"`) opens a panel, type the new email, then Save (`data-action=\"save-change\"`) or Cancel (`data-action=\"cancel-change\"`). The host asks for an SMS code before it saves; the old email stays until it does. The SMS step is for the person only: an agent does not read, type or resend the code.",
23263
+ "descriptionKey": "ui.agent.patientAccountSettings.workflows.changeEmail",
23264
+ "uiActions": [],
23265
+ "apiActions": [
23266
+ "account.changeEmail"
23267
+ ]
23268
+ },
23269
+ {
23270
+ "name": "change_mobile",
23271
+ "safety": "phi",
23272
+ "description": "Change the mobile: \"Change mobile\" (`data-action=\"change-mobile\"`) opens a panel that asks the current PIN on the keypad and the new number, then Save (`data-action=\"save-change\"`). The SMS code goes to the current mobile. The person types the PIN and the code.",
23273
+ "descriptionKey": "ui.agent.patientAccountSettings.workflows.changeMobile",
23274
+ "uiActions": [],
23275
+ "apiActions": [
23276
+ "account.changeMobile"
23277
+ ]
23278
+ },
23279
+ {
23280
+ "name": "change_pin",
23281
+ "safety": "phi",
23282
+ "description": "Change the PIN in three keypad steps (current, new, new again): \"Change PIN\" (`data-action=\"change-pin\"`), Continue (`data-action=\"continue-change\"`), then Save (`data-action=\"save-change\"`). The host compares the two new PINs and may refuse the PIN. The person types every PIN and the SMS code.",
23283
+ "descriptionKey": "ui.agent.patientAccountSettings.workflows.changePin",
23284
+ "uiActions": [],
23285
+ "apiActions": [
23286
+ "account.changePin"
23287
+ ]
23288
+ },
23289
+ {
23290
+ "name": "retry",
23291
+ "safety": "read",
23292
+ "description": "Read the settings again after an error (`data-action=\"retry\"`). Present only when the host gives a handler.",
23293
+ "descriptionKey": "ui.agent.patientAccountSettings.workflows.retry",
23294
+ "uiActions": [],
23295
+ "apiActions": []
23296
+ }
23297
+ ]
23298
+ },
22722
23299
  {
22723
23300
  "kind": "pattern",
22724
23301
  "id": "patient-ai-summary",
@@ -22848,215 +23425,172 @@
22848
23425
  "id": "patient-check-in",
22849
23426
  "composes": [
22850
23427
  {
22851
- "component": "qr-code",
22852
- "as": "checkInQr"
22853
- },
22854
- {
22855
- "component": "locale-picker",
22856
- "as": "languagePicker"
22857
- },
22858
- {
22859
- "component": "social-sign-in-button",
22860
- "as": "ssoSignIn"
22861
- },
22862
- {
22863
- "component": "email-input",
22864
- "as": "signInEmail"
22865
- },
22866
- {
22867
- "component": "phone-input",
22868
- "as": "signInPhone"
23428
+ "component": "card",
23429
+ "as": "card"
22869
23430
  },
22870
23431
  {
22871
- "component": "otp-input",
22872
- "as": "verifyCode"
23432
+ "component": "appointment-card",
23433
+ "as": "appointment",
23434
+ "entity": "appointment"
22873
23435
  },
22874
23436
  {
22875
- "component": "card",
22876
- "as": "appointmentHub",
22877
- "entity": "appointment"
23437
+ "component": "session-countdown",
23438
+ "as": "sessionBanner"
22878
23439
  },
22879
23440
  {
22880
- "component": "dependent-selector",
22881
- "as": "whoIsCheckingIn",
22882
- "entity": "person"
23441
+ "component": "description-list",
23442
+ "as": "details"
22883
23443
  },
22884
23444
  {
22885
23445
  "component": "form-field",
22886
- "as": "detailsField"
23446
+ "as": "field"
22887
23447
  },
22888
23448
  {
22889
23449
  "component": "text-input",
22890
- "as": "detailsName"
22891
- },
22892
- {
22893
- "component": "fiscal-code-input",
22894
- "as": "detailsFiscalCode"
23450
+ "as": "text"
22895
23451
  },
22896
23452
  {
22897
- "component": "address-autocomplete",
22898
- "as": "detailsAddress"
23453
+ "component": "email-input",
23454
+ "as": "email"
22899
23455
  },
22900
23456
  {
22901
- "component": "date-picker",
22902
- "as": "detailsBirthDate"
23457
+ "component": "country-select",
23458
+ "as": "country"
22903
23459
  },
22904
23460
  {
22905
23461
  "component": "select",
22906
- "as": "detailsCountry"
22907
- },
22908
- {
22909
- "component": "radio-group",
22910
- "as": "detailsGender"
22911
- },
22912
- {
22913
- "component": "document-scanner",
22914
- "as": "idCapture"
23462
+ "as": "source"
22915
23463
  },
22916
23464
  {
22917
- "component": "file-upload",
22918
- "as": "idUpload"
22919
- },
22920
- {
22921
- "component": "sign-document",
22922
- "as": "consentDoc"
22923
- },
22924
- {
22925
- "component": "signature-capture",
22926
- "as": "consentSignature"
22927
- },
22928
- {
22929
- "component": "payment-form",
22930
- "as": "visitPayment"
23465
+ "component": "step-up-dialog",
23466
+ "as": "smsCheck"
22931
23467
  },
22932
23468
  {
22933
- "component": "wallet-pay-button",
22934
- "as": "walletPay"
23469
+ "component": "finished-terminal",
23470
+ "as": "endScreen"
22935
23471
  },
22936
23472
  {
22937
- "component": "session-countdown",
22938
- "as": "sessionGuard"
23473
+ "component": "badge",
23474
+ "as": "status"
22939
23475
  },
22940
23476
  {
22941
23477
  "component": "alert",
22942
- "as": "statusNotice"
22943
- },
22944
- {
22945
- "component": "badge",
22946
- "as": "appointmentBadge"
23478
+ "as": "notice"
22947
23479
  },
22948
23480
  {
22949
- "component": "separator",
22950
- "as": "stepDivider"
23481
+ "component": "button",
23482
+ "as": "action"
22951
23483
  }
22952
23484
  ],
22953
23485
  "workflows": [
22954
23486
  {
22955
- "name": "sign_in_with_code",
23487
+ "name": "read_screen",
23488
+ "safety": "phi",
23489
+ "description": "Read which check-in screen is showing. The roots are `check-in-entry`, `check-in-hub`, `check-in-hub-empty`, `check-in-personal-data`, `check-in-done`, `check-in-appointment-changed` and `check-in-resume`, inside `check-in-shell`; a lost connection adds `check-in-connection-notice` above the current step. On the hub each due item is a list item with `data-step-id` and a status badge, \"Open\" or \"Done\". When the session timed out the shell shows only `patient-session-ended`. The personal data step shows the same fields and the masked mobile, and the hub lists the due treatments, so reading it is `phi`; under privacy the values are masked. Paperwork done is not arrival: never tell the person they are checked in.",
23490
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.readScreen",
23491
+ "uiActions": [],
23492
+ "apiActions": []
23493
+ },
23494
+ {
23495
+ "name": "sign_in",
22956
23496
  "safety": "write",
22957
- "description": "Request a one-time SMS/email code, enter it, and authenticate into the check-in flow.",
22958
- "descriptionKey": "ui.agent.patientCheckIn.workflows.signInWithCode",
22959
- "uiActions": [
22960
- "otp-input.set_value"
22961
- ],
22962
- "stateReads": [
22963
- "otp-input.isComplete",
22964
- "email-input.value"
22965
- ],
23497
+ "description": "Start sign-in from the entry screen (`data-action=\"sign-in\"`). The screen names no patient, appointment or practice. The host opens the sign-in; the person types their own PIN and SMS code.",
23498
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.signIn",
23499
+ "uiActions": [],
22966
23500
  "apiActions": [
22967
- "auth.requestOtp",
22968
- "auth.verifyOtp"
23501
+ "auth.signIn"
22969
23502
  ]
22970
23503
  },
22971
23504
  {
22972
- "name": "set_language",
22973
- "safety": "read",
22974
- "description": "Pick the kiosk language for the check-in session.",
22975
- "descriptionKey": "ui.agent.patientCheckIn.workflows.setLanguage",
22976
- "uiActions": [
22977
- "locale-picker.set_locale"
22978
- ],
22979
- "apiActions": []
22980
- },
22981
- {
22982
- "name": "select_subject",
23505
+ "name": "continue_check_in",
22983
23506
  "safety": "write",
22984
- "description": "Choose who is checking in (self or a dependent) and confirm their personal data.",
22985
- "descriptionKey": "ui.agent.patientCheckIn.workflows.selectSubject",
22986
- "uiActions": [
22987
- "dependent-selector.set_value",
22988
- "text-input.set_value",
22989
- "fiscal-code-input.set_value",
22990
- "address-autocomplete.set_value",
22991
- "date-picker.set_date",
22992
- "select.set_value",
22993
- "radio-group.set_value"
22994
- ],
22995
- "stateReads": [
22996
- "dependent-selector.value",
22997
- "fiscal-code-input.isValid"
22998
- ],
23507
+ "description": "Move on from the hub (`data-action=\"continue\"`, \"Continue\"). It is disabled while online check-in is off and absent once the host says the paperwork is done. It selects and marks nothing: the host opens the next step.",
23508
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.continueCheckIn",
23509
+ "uiActions": [],
22999
23510
  "apiActions": [
23000
- "patient.updateDetails"
23511
+ "checkIn.continue"
23001
23512
  ]
23002
23513
  },
23003
23514
  {
23004
- "name": "capture_id_document",
23515
+ "name": "not_me",
23005
23516
  "safety": "write",
23006
- "description": "Photograph or upload the health card / ID document for the visit.",
23007
- "descriptionKey": "ui.agent.patientCheckIn.workflows.captureIdDocument",
23008
- "uiActions": [
23009
- "document-scanner.start_camera",
23010
- "document-scanner.capture",
23011
- "document-scanner.submit",
23012
- "file-upload.clear"
23013
- ],
23014
- "stateReads": [
23015
- "document-scanner.hasCapture",
23016
- "file-upload.files"
23017
- ],
23517
+ "description": "Say the appointment shown is not the signed-in person (`data-action=\"not-me\"`, \"Not me\"). The host decides where this leads and changes no status.",
23518
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.notMe",
23519
+ "uiActions": [],
23018
23520
  "apiActions": [
23019
- "document.upload"
23521
+ "checkIn.notMe"
23020
23522
  ]
23021
23523
  },
23022
23524
  {
23023
- "name": "sign_consents",
23024
- "safety": "write",
23025
- "description": "Read each consent form, add the signature, and submit the signed consents.",
23026
- "descriptionKey": "ui.agent.patientCheckIn.workflows.signConsents",
23027
- "uiActions": [
23028
- "signature-capture.confirm",
23029
- "signature-capture.clear",
23030
- "sign-document.submit"
23031
- ],
23032
- "stateReads": [
23033
- "signature-capture.isEmpty",
23034
- "sign-document.isReadComplete"
23035
- ],
23525
+ "name": "open_documents",
23526
+ "safety": "read",
23527
+ "description": "Open the documents step from the hub (`data-action=\"documents\"`). The button shows only when the host handles it.",
23528
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.openDocuments",
23529
+ "uiActions": [],
23530
+ "apiActions": []
23531
+ },
23532
+ {
23533
+ "name": "cancel_appointment",
23534
+ "safety": "destructive",
23535
+ "description": "Ask to cancel the appointment from the hub (`data-action=\"cancel-appointment\"`). The button shows only when the host handles it; the host decides, and may ask for an SMS code first.",
23536
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.cancelAppointment",
23537
+ "uiActions": [],
23036
23538
  "apiActions": [
23037
- "consent.sign"
23539
+ "appointment.cancel"
23038
23540
  ]
23039
23541
  },
23040
23542
  {
23041
- "name": "pay_for_visit",
23543
+ "name": "confirm_details",
23544
+ "safety": "phi",
23545
+ "description": "Check the personal details and press \"Continue\" (`data-action=\"details-continue\"`). Values from the record are marked \"From your record\"; the date of birth, codice fiscale and mobile are read-only. When the practice asks, choose a source (Fonte). The kit validates nothing: the host answers with field errors. A change may wait for an SMS code. Without a verified mobile the details are read-only, there is no Continue, and the person is sent to the front desk.",
23546
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.confirmDetails",
23547
+ "uiActions": [],
23548
+ "apiActions": [
23549
+ "patient.updateDetails"
23550
+ ]
23551
+ },
23552
+ {
23553
+ "name": "open_portal",
23554
+ "safety": "read",
23555
+ "description": "Open the patient portal from the end screen, an empty hub or the appointment-changed screen (`data-action=\"portal\"`; on the end screen with a portal link it is `data-action=\"next-step\"`). On the timed-out screen `data-action=\"next-step\"` is \"Restart\", not the portal: see `restart_after_timeout`. The host routes.",
23556
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.openPortal",
23557
+ "uiActions": [],
23558
+ "apiActions": []
23559
+ },
23560
+ {
23561
+ "name": "resume_check_in",
23042
23562
  "safety": "write",
23043
- "description": "Pay the visit fee by card or digital wallet.",
23044
- "descriptionKey": "ui.agent.patientCheckIn.workflows.payForVisit",
23045
- "uiActions": [
23046
- "payment-form.submit"
23047
- ],
23563
+ "description": "Pick up an earlier check-in with \"Resume check-in\" (`data-action=\"resume\"`) or begin again with \"Start over\" (`data-action=\"start-over\"`). The host opens the first step that is not done.",
23564
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.resumeCheckIn",
23565
+ "uiActions": [],
23048
23566
  "apiActions": [
23049
- "payment.charge"
23567
+ "checkIn.resume"
23050
23568
  ]
23051
23569
  },
23052
23570
  {
23053
- "name": "complete_check_in",
23571
+ "name": "retry",
23572
+ "safety": "write",
23573
+ "description": "Try the last step again after a lost connection (`data-action=\"retry\"` in the connection notice). What the person typed stays on screen.",
23574
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.retry",
23575
+ "uiActions": [],
23576
+ "apiActions": []
23577
+ },
23578
+ {
23579
+ "name": "restart_after_timeout",
23580
+ "safety": "write",
23581
+ "description": "On the timed-out screen (the session ended because of inactivity) press \"Restart\" (`data-action=\"next-step\"`, the only button) to begin again. The host decides what Restart does; the kit calls nothing.",
23582
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.restartAfterTimeout",
23583
+ "uiActions": [],
23584
+ "apiActions": []
23585
+ },
23586
+ {
23587
+ "name": "sign_out",
23054
23588
  "safety": "write",
23055
- "description": "Finalise the check-in once all steps are done; marks the patient as arrived.",
23056
- "descriptionKey": "ui.agent.patientCheckIn.workflows.completeCheckIn",
23589
+ "description": "Sign out (`data-action=\"sign-out\"` in the session banner). It is visible in every tone of the banner. The host ends the session. After a timeout the session-ended screen shows only \"Restart\" (`data-action=\"next-step\"`).",
23590
+ "descriptionKey": "ui.agent.patientCheckIn.workflows.signOut",
23057
23591
  "uiActions": [],
23058
23592
  "apiActions": [
23059
- "appointment.checkIn"
23593
+ "auth.signOut"
23060
23594
  ]
23061
23595
  }
23062
23596
  ]
@@ -23595,177 +24129,162 @@
23595
24129
  "id": "patient-portal",
23596
24130
  "composes": [
23597
24131
  {
23598
- "component": "social-sign-in-button",
23599
- "as": "ssoSignIn"
23600
- },
23601
- {
23602
- "component": "email-input",
23603
- "as": "signInEmail"
24132
+ "component": "tab-bar",
24133
+ "as": "tabs"
23604
24134
  },
23605
24135
  {
23606
- "component": "phone-input",
23607
- "as": "signInPhone"
24136
+ "component": "session-countdown",
24137
+ "as": "sessionBanner"
23608
24138
  },
23609
24139
  {
23610
- "component": "otp-input",
23611
- "as": "verifyCode"
24140
+ "component": "appointment-card",
24141
+ "as": "appointment",
24142
+ "entity": "appointment"
23612
24143
  },
23613
24144
  {
23614
- "component": "tab-bar",
23615
- "as": "sectionNav"
24145
+ "component": "whatsapp-button",
24146
+ "as": "practiceContact"
23616
24147
  },
23617
24148
  {
23618
- "component": "card",
23619
- "as": "sectionCard"
24149
+ "component": "document-preview",
24150
+ "as": "documentViewer"
23620
24151
  },
23621
24152
  {
23622
- "component": "badge",
23623
- "as": "appointmentBadge"
24153
+ "component": "step-up-dialog",
24154
+ "as": "smsCheck"
23624
24155
  },
23625
24156
  {
23626
24157
  "component": "dialog",
23627
24158
  "as": "cancelConfirm"
23628
24159
  },
23629
24160
  {
23630
- "component": "button",
23631
- "as": "cancelAppointment"
23632
- },
23633
- {
23634
- "component": "alert",
23635
- "as": "cancelTooLate"
24161
+ "component": "description-list",
24162
+ "as": "details"
23636
24163
  },
23637
24164
  {
23638
- "component": "file-upload",
23639
- "as": "documentUpload"
24165
+ "component": "form-field",
24166
+ "as": "field"
23640
24167
  },
23641
24168
  {
23642
- "component": "progress",
23643
- "as": "uploadProgress"
24169
+ "component": "text-input",
24170
+ "as": "text"
23644
24171
  },
23645
24172
  {
23646
- "component": "form-field",
23647
- "as": "detailsField"
24173
+ "component": "email-input",
24174
+ "as": "email"
23648
24175
  },
23649
24176
  {
23650
- "component": "text-input",
23651
- "as": "detailsName"
24177
+ "component": "country-select",
24178
+ "as": "country"
23652
24179
  },
23653
24180
  {
23654
- "component": "fiscal-code-input",
23655
- "as": "detailsFiscalCode"
24181
+ "component": "checkbox",
24182
+ "as": "consent"
23656
24183
  },
23657
24184
  {
23658
- "component": "address-autocomplete",
23659
- "as": "detailsAddress"
24185
+ "component": "empty-state",
24186
+ "as": "message"
23660
24187
  },
23661
24188
  {
23662
- "component": "date-picker",
23663
- "as": "detailsBirthDate"
24189
+ "component": "skeleton",
24190
+ "as": "loading"
23664
24191
  },
23665
24192
  {
23666
- "component": "select",
23667
- "as": "detailsCountry"
24193
+ "component": "alert",
24194
+ "as": "alert"
23668
24195
  },
23669
24196
  {
23670
- "component": "radio-group",
23671
- "as": "detailsGender"
24197
+ "component": "button",
24198
+ "as": "action"
23672
24199
  },
23673
24200
  {
23674
- "component": "separator",
23675
- "as": "sectionDivider"
24201
+ "component": "finished-terminal",
24202
+ "as": "endScreen"
23676
24203
  }
23677
24204
  ],
23678
24205
  "workflows": [
23679
24206
  {
23680
- "name": "sign_in_with_code",
23681
- "safety": "write",
23682
- "description": "Request a one-time SMS/email code, enter it, and authenticate into the portal.",
23683
- "descriptionKey": "ui.agent.patientPortal.workflows.signInWithCode",
23684
- "uiActions": [
23685
- "otp-input.set_value"
23686
- ],
23687
- "stateReads": [
23688
- "otp-input.isComplete",
23689
- "email-input.value"
23690
- ],
23691
- "apiActions": [
23692
- "auth.requestOtp",
23693
- "auth.verifyOtp"
23694
- ]
24207
+ "name": "read_screen",
24208
+ "safety": "phi",
24209
+ "description": "Read which portal screen is showing and its state. The shell is `data-component=\"portal-shell\"`; the screens are `portal-home`, `portal-appointments`, `portal-documents` and `portal-details`, and the shell content area carries `data-state` (`ready`, `loading` or `error`) for the state of the read; a loading or message placeholder inside it carries `data-state` `loading`, `empty` or `error`, and a polite status (`data-live=\"portal\"`) says loading, errors and a cancelled visit. When the session has ended the shell shows `patient-session-ended` and nothing else. The parts inside a screen carry their own `data-component`: `portal-practice-contact` on Home, `portal-details-fields` and `portal-details-read-only-list` on My details. Reading My details reads the name, address, email, phone, birth date and codice fiscale back, so it is `phi`; under privacy the values are masked. Never read or repeat an SMS code.",
24210
+ "descriptionKey": "ui.agent.patientPortal.workflows.readScreen",
24211
+ "uiActions": [],
24212
+ "apiActions": []
23695
24213
  },
23696
24214
  {
23697
- "name": "navigate_section",
24215
+ "name": "navigate_tab",
23698
24216
  "safety": "read",
23699
- "description": "Switch between the Appointments, Documents, and My details portal sections.",
23700
- "descriptionKey": "ui.agent.patientPortal.workflows.navigateSection",
24217
+ "description": "Move between Home, Appointments, Documents and My details with the tab bar (`[data-tab-id]`). The host routes; the shell only reports the chosen tab.",
24218
+ "descriptionKey": "ui.agent.patientPortal.workflows.navigateTab",
23701
24219
  "uiActions": [],
23702
24220
  "apiActions": []
23703
24221
  },
23704
24222
  {
23705
24223
  "name": "check_in",
23706
24224
  "safety": "write",
23707
- "description": "Start the day-of check-in for an upcoming appointment from the portal home.",
24225
+ "description": "Start check-in for an appointment with paperwork due (`data-action=\"check-in\"` on Home). The button names the visit; the host opens check-in.",
23708
24226
  "descriptionKey": "ui.agent.patientPortal.workflows.checkIn",
23709
24227
  "uiActions": [],
23710
24228
  "apiActions": [
23711
- "appointment.checkIn"
24229
+ "checkIn.start"
23712
24230
  ]
23713
24231
  },
23714
24232
  {
23715
24233
  "name": "cancel_appointment",
23716
24234
  "safety": "destructive",
23717
- "description": "Cancel an upcoming appointment after confirming in the dialog. Frees the slot.",
24235
+ "description": "Cancel an upcoming appointment: \"Cancel appointment\" (`data-action=\"cancel-appointment\"`) opens a confirm step, \"Yes, cancel it\" (`data-action=\"confirm-cancel\"`) asks the host, which may ask for an SMS code first. \"Keep appointment\" (`data-action=\"keep-appointment\"`) closes the confirm step and changes nothing. Inside the practice cut-off there is no Cancel: only a call to the practice (`data-action=\"call-practice\"`). A cancelled visit may offer \"Book a new appointment\" (`data-action=\"rebook\"`), a link to the practice's booking page in a new tab.",
23718
24236
  "descriptionKey": "ui.agent.patientPortal.workflows.cancelAppointment",
23719
- "uiActions": [
23720
- "dialog.open",
23721
- "dialog.close"
23722
- ],
23723
- "stateReads": [
23724
- "dialog.isOpen"
23725
- ],
24237
+ "uiActions": [],
23726
24238
  "apiActions": [
23727
24239
  "appointment.cancel"
23728
24240
  ]
23729
24241
  },
23730
24242
  {
23731
- "name": "upload_document",
23732
- "safety": "write",
23733
- "description": "Upload a file (PDF/JPG/PNG) to the patient document library.",
23734
- "descriptionKey": "ui.agent.patientPortal.workflows.uploadDocument",
23735
- "uiActions": [
23736
- "file-upload.clear"
23737
- ],
23738
- "stateReads": [
23739
- "file-upload.files"
23740
- ],
24243
+ "name": "open_document",
24244
+ "safety": "phi",
24245
+ "description": "Open (`data-action=\"open-document\"`) or download (`data-action=\"download-document\"`) a shared document. The host may ask for an SMS code first. An opened file shows inside the page and closes with its Close button (`data-action=\"close-document\"`).",
24246
+ "descriptionKey": "ui.agent.patientPortal.workflows.openDocument",
24247
+ "uiActions": [],
23741
24248
  "apiActions": [
23742
- "document.upload"
24249
+ "document.open",
24250
+ "document.download"
23743
24251
  ]
23744
24252
  },
23745
24253
  {
23746
- "name": "save_details",
23747
- "safety": "write",
23748
- "description": "Edit and save the patient personal details (contact, address, fiscal code).",
23749
- "descriptionKey": "ui.agent.patientPortal.workflows.saveDetails",
23750
- "uiActions": [
23751
- "text-input.set_value",
23752
- "fiscal-code-input.set_value",
23753
- "address-autocomplete.set_value",
23754
- "date-picker.set_date",
23755
- "select.set_value",
23756
- "radio-group.set_value"
23757
- ],
23758
- "stateReads": [
23759
- "text-input.value",
23760
- "fiscal-code-input.isValid",
23761
- "address-autocomplete.value",
23762
- "date-picker.value",
23763
- "select.value",
23764
- "radio-group.value"
23765
- ],
24254
+ "name": "edit_details",
24255
+ "safety": "phi",
24256
+ "description": "Edit the personal details: Edit (`data-action=\"edit-details\"`), change the fields, then Save (`data-action=\"save-details\"`) or Discard (`data-action=\"discard-details\"`). The codice fiscale and date of birth are read-only. Saving may wait for an SMS code. The host reports field errors and the outcome.",
24257
+ "descriptionKey": "ui.agent.patientPortal.workflows.editDetails",
24258
+ "uiActions": [],
23766
24259
  "apiActions": [
23767
24260
  "patient.updateDetails"
23768
24261
  ]
24262
+ },
24263
+ {
24264
+ "name": "contact_practice",
24265
+ "safety": "read",
24266
+ "description": "Contact a practice: the WhatsApp button (`data-action=\"whatsapp\"`) opens a chat in a new tab, or, with no WhatsApp number, a phone link (`data-action=\"call-practice\"`).",
24267
+ "descriptionKey": "ui.agent.patientPortal.workflows.contactPractice",
24268
+ "uiActions": [],
24269
+ "apiActions": []
24270
+ },
24271
+ {
24272
+ "name": "sign_out",
24273
+ "safety": "write",
24274
+ "description": "Sign out (`data-action=\"sign-out\"`). It is visible in every state of the session banner. The host ends the session.",
24275
+ "descriptionKey": "ui.agent.patientPortal.workflows.signOut",
24276
+ "uiActions": [],
24277
+ "apiActions": [
24278
+ "auth.signOut"
24279
+ ]
24280
+ },
24281
+ {
24282
+ "name": "retry",
24283
+ "safety": "read",
24284
+ "description": "Read a list again after an error (`data-action=\"retry\"`). Present only when the host gives a handler.",
24285
+ "descriptionKey": "ui.agent.patientPortal.workflows.retry",
24286
+ "uiActions": [],
24287
+ "apiActions": []
23769
24288
  }
23770
24289
  ]
23771
24290
  },
@@ -23895,6 +24414,116 @@
23895
24414
  }
23896
24415
  ]
23897
24416
  },
24417
+ {
24418
+ "kind": "pattern",
24419
+ "id": "patient-sign-in",
24420
+ "composes": [
24421
+ {
24422
+ "component": "card",
24423
+ "as": "card"
24424
+ },
24425
+ {
24426
+ "component": "alert",
24427
+ "as": "message"
24428
+ },
24429
+ {
24430
+ "component": "form-field",
24431
+ "as": "field"
24432
+ },
24433
+ {
24434
+ "component": "email-input",
24435
+ "as": "email"
24436
+ },
24437
+ {
24438
+ "component": "pin-entry",
24439
+ "as": "pin"
24440
+ },
24441
+ {
24442
+ "component": "button",
24443
+ "as": "action"
24444
+ },
24445
+ {
24446
+ "component": "finished-terminal",
24447
+ "as": "endScreen"
24448
+ },
24449
+ {
24450
+ "component": "session-countdown",
24451
+ "as": "sessionBanner"
24452
+ }
24453
+ ],
24454
+ "workflows": [
24455
+ {
24456
+ "name": "read_screen",
24457
+ "safety": "phi",
24458
+ "description": "Read which sign-in screen is showing and what is wrong with it. Each screen has its own `data-component`: `patient-sign-in-email`, `patient-sign-in-pin`, `patient-sign-in-code`, `patient-set-pin`, `patient-forgot-pin`, `patient-forgot-pin-sent`, `patient-pin-changed`, `patient-no-mobile`, `patient-session-ended`. A refusal from the host is an alert inside the screen. Reading the screen reads the login email back (\"Signing in as\", \"We sent a link to\"), so it is `phi`. Never read or repeat the PIN or the code.",
24459
+ "descriptionKey": "ui.agent.patientSignIn.workflows.readScreen",
24460
+ "uiActions": [],
24461
+ "apiActions": []
24462
+ },
24463
+ {
24464
+ "name": "submit_email",
24465
+ "safety": "write",
24466
+ "description": "Continue from the email screen (`data-action=\"sign-in-email\"`) or send the PIN reset link (`data-action=\"send-link\"`). The person types the email; the button is off while the field is empty. The host looks the account up and answers with \"no account\" or \"too many tries\".",
24467
+ "descriptionKey": "ui.agent.patientSignIn.workflows.submitEmail",
24468
+ "uiActions": [],
24469
+ "apiActions": [
24470
+ "auth.lookupEmail"
24471
+ ]
24472
+ },
24473
+ {
24474
+ "name": "submit_pin",
24475
+ "safety": "write",
24476
+ "description": "Continue from the PIN screen (`data-action=\"sign-in-submit\"`) or the set-PIN screen (`data-action=\"set-pin-continue\"`). The person types the PIN on the keypad; the button is off until every digit is typed, and the PIN is never auto-submitted. The host compares the PIN.",
24477
+ "descriptionKey": "ui.agent.patientSignIn.workflows.submitPin",
24478
+ "uiActions": [
24479
+ "pin-entry.focus"
24480
+ ],
24481
+ "stateReads": [
24482
+ "pin-entry.isComplete"
24483
+ ],
24484
+ "apiActions": [
24485
+ "auth.verifyPin",
24486
+ "auth.setPin"
24487
+ ]
24488
+ },
24489
+ {
24490
+ "name": "reset_pin",
24491
+ "safety": "write",
24492
+ "description": "Start a PIN reset: \"Forgot your PIN?\" (`data-action=\"forgot-pin\"`) or, when sign-in is paused, \"Reset my PIN\" (`data-action=\"paused-reset\"`). Both only tell the host; the host sends the link.",
24493
+ "descriptionKey": "ui.agent.patientSignIn.workflows.resetPin",
24494
+ "uiActions": [],
24495
+ "apiActions": [
24496
+ "auth.requestPinReset"
24497
+ ]
24498
+ },
24499
+ {
24500
+ "name": "navigate_back",
24501
+ "safety": "read",
24502
+ "description": "Go back a step: `data-action=\"back\"` or `data-action=\"change-email\"`. On the end screens `patient-forgot-pin-sent`, `patient-no-mobile` and `patient-pin-changed`, the one button is `data-action=\"next-step\"` and returns to sign in. Each is present only when the host gives its handler.",
24503
+ "descriptionKey": "ui.agent.patientSignIn.workflows.navigateBack",
24504
+ "uiActions": [],
24505
+ "apiActions": []
24506
+ },
24507
+ {
24508
+ "name": "sign_out",
24509
+ "safety": "write",
24510
+ "description": "Sign out (`data-action=\"sign-out\"`, in `data-component=\"patient-session-bar\"`). The bar stays visible in every tone, running, warning and expired. The host ends the session.",
24511
+ "descriptionKey": "ui.agent.patientSignIn.workflows.signOut",
24512
+ "uiActions": [],
24513
+ "apiActions": [
24514
+ "auth.signOut"
24515
+ ]
24516
+ },
24517
+ {
24518
+ "name": "sign_in_again",
24519
+ "safety": "read",
24520
+ "description": "Start sign-in again from the session-ended screen (`data-action=\"next-step\"`, in `data-component=\"patient-session-ended\"`). There is no countdown and no automatic redirect.",
24521
+ "descriptionKey": "ui.agent.patientSignIn.workflows.signInAgain",
24522
+ "uiActions": [],
24523
+ "apiActions": []
24524
+ }
24525
+ ]
24526
+ },
23898
24527
  {
23899
24528
  "kind": "pattern",
23900
24529
  "id": "patients",
@@ -25952,28 +26581,12 @@
25952
26581
  "as": "captureDialog"
25953
26582
  },
25954
26583
  {
25955
- "component": "signature-capture",
25956
- "as": "capturePad"
25957
- },
25958
- {
25959
- "component": "otp-input",
25960
- "as": "gateCode"
25961
- },
25962
- {
25963
- "component": "checkbox",
25964
- "as": "gateConfirm"
25965
- },
25966
- {
25967
- "component": "alert",
25968
- "as": "gateNotice"
25969
- },
25970
- {
25971
- "component": "card",
25972
- "as": "gateCard"
26584
+ "component": "sheet",
26585
+ "as": "checkboxSheet"
25973
26586
  },
25974
26587
  {
25975
- "component": "button",
25976
- "as": "gateVerify"
26588
+ "component": "signature-capture",
26589
+ "as": "capturePad"
25977
26590
  },
25978
26591
  {
25979
26592
  "component": "finished-terminal",
@@ -25990,8 +26603,12 @@
25990
26603
  "entity": "signer"
25991
26604
  },
25992
26605
  {
25993
- "component": "empty-state",
25994
- "as": "invalidLink"
26606
+ "component": "button",
26607
+ "as": "action"
26608
+ },
26609
+ {
26610
+ "component": "alert",
26611
+ "as": "captureError"
25995
26612
  },
25996
26613
  {
25997
26614
  "component": "spinner",
@@ -25999,24 +26616,6 @@
25999
26616
  }
26000
26617
  ],
26001
26618
  "workflows": [
26002
- {
26003
- "name": "verify_identity",
26004
- "safety": "write",
26005
- "description": "Pass the identity gate before the document is shown: enter the 5-character SMS code, or tick the confirm-identity checkbox when no mobile number is on file, then verify.",
26006
- "descriptionKey": "ui.agent.signing.workflows.verifyIdentity",
26007
- "uiActions": [
26008
- "otp-input.set_value",
26009
- "checkbox.set_checked"
26010
- ],
26011
- "stateReads": [
26012
- "otp-input.isComplete",
26013
- "checkbox.checked"
26014
- ],
26015
- "apiActions": [
26016
- "signing.verifyIdentity",
26017
- "signing.resendCode"
26018
- ]
26019
- },
26020
26619
  {
26021
26620
  "name": "read_document",
26022
26621
  "safety": "read",
@@ -26030,8 +26629,8 @@
26030
26629
  },
26031
26630
  {
26032
26631
  "name": "sign_field",
26033
- "safety": "write",
26034
- "description": "Activate a signature / initial / date field overlay, draw or type the signature in the capture dialog, and confirm it. Signing the last field auto-advances to the success terminal.",
26632
+ "safety": "phi",
26633
+ "description": "Activate a signature / initial / date field overlay, draw or type the signature in the capture dialog, and confirm it. A signed field cannot be reopened. Signing the last field arms the Sign button in the footer.",
26035
26634
  "descriptionKey": "ui.agent.signing.workflows.signField",
26036
26635
  "uiActions": [
26037
26636
  "dialog.open",
@@ -26049,8 +26648,8 @@
26049
26648
  },
26050
26649
  {
26051
26650
  "name": "complete_envelope",
26052
- "safety": "write",
26053
- "description": "Finalise the envelope once every required field carries a signature (with two signees: once both the primary and the secondary have signed all of their fields), persisting the completed document.",
26651
+ "safety": "phi",
26652
+ "description": "Once every field of the active signee is signed, the Sign button in the footer (`data-action=\"sign\"`) is armed (`data-armed=\"true\"`, accent). The person presses it themselves; the host signs the envelope and the footer shows \"Completing your document…\". No code is asked at the end: the person was checked before the document opened (D133). With two signees, each signee presses Sign for their own fields, and the envelope is complete once both have. Never press Sign on a person's behalf without their explicit instruction.",
26054
26653
  "descriptionKey": "ui.agent.signing.workflows.completeEnvelope",
26055
26654
  "uiActions": [],
26056
26655
  "apiActions": [
@@ -26058,21 +26657,18 @@
26058
26657
  ]
26059
26658
  },
26060
26659
  {
26061
- "name": "verify_signee_identity",
26062
- "safety": "write",
26063
- "description": "The active signee (primary or secondary) passes its own identity gate: enter the 5-character SMS code, or tick the confirm-identity checkbox when no mobile number is on file, then verify.",
26064
- "descriptionKey": "ui.agent.signing.workflows.verifySigneeIdentity",
26660
+ "name": "set_document_checkbox",
26661
+ "safety": "phi",
26662
+ "description": "Activate a checkbox pill printed in the document (`data-action=\"set-document-checkbox\"`), read the sheet, and press Confirm (`data-action=\"confirm-document-checkbox\"`) to tick or untick it. Pressing the pill is the only way to open the sheet. Nothing changes until Confirm. The host saves the value. Never press Confirm on a person's behalf without their explicit instruction. This is a document consent box, not an identity check.",
26663
+ "descriptionKey": "ui.agent.signing.workflows.setDocumentCheckbox",
26065
26664
  "uiActions": [
26066
- "otp-input.set_value",
26067
- "checkbox.set_checked"
26665
+ "sheet.close"
26068
26666
  ],
26069
26667
  "stateReads": [
26070
- "otp-input.isComplete",
26071
- "checkbox.checked"
26668
+ "sheet.isOpen"
26072
26669
  ],
26073
26670
  "apiActions": [
26074
- "signing.verifySigneeIdentity",
26075
- "signing.resendCode"
26671
+ "signing.setDocumentCheckbox"
26076
26672
  ]
26077
26673
  },
26078
26674
  {
@@ -26098,12 +26694,25 @@
26098
26694
  {
26099
26695
  "name": "hand_off_to_secondary_signee",
26100
26696
  "safety": "write",
26101
- "description": "After the primary signee finishes, hand the device to the secondary signee (same-device flow), switching the active session and re-filtering the surface to the secondary signee’s fields.",
26697
+ "description": "After the primary signee presses Sign, hand the device to the secondary signee (same-device flow). The secondary signee passes their own check before their document shows (D133); the host then switches the active session and re-filters the surface to the secondary signee’s fields.",
26102
26698
  "descriptionKey": "ui.agent.signing.workflows.handOffToSecondarySignee",
26103
26699
  "uiActions": [],
26104
26700
  "apiActions": [
26105
26701
  "signing.handOffToSecondarySignee"
26106
26702
  ]
26703
+ },
26704
+ {
26705
+ "name": "confirm_staff_id",
26706
+ "safety": "phi",
26707
+ "description": "On a practice device, when the patient has no mobile for a code, the logged-in staff member presses \"I have seen the ID\" (`data-action=\"confirm-staff-id\"`) in the dialog `data-component=\"signing-staff-id-confirmation\"`, before the document opens (D133). It is recorded against the staff member's name, the time and the document; only then does the host open the document. There is no tick box. An agent never presses it on a person's behalf without the staff member's explicit instruction.",
26708
+ "descriptionKey": "ui.agent.signing.workflows.confirmStaffId",
26709
+ "uiActions": [],
26710
+ "stateReads": [
26711
+ "dialog.isOpen"
26712
+ ],
26713
+ "apiActions": [
26714
+ "signing.confirmStaffId"
26715
+ ]
26107
26716
  }
26108
26717
  ]
26109
26718
  },