@alfadocs/ui-kit 1.138.0 → 1.140.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 (246) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-YJGs2uWD.js} +5 -5
  4. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  5. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  6. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRStPNDd.js} +4 -4
  7. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DTqXdBED.js} +3 -3
  8. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  9. package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-BBrJlmyd.js} +7 -7
  11. package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
  12. package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-Cdg9YssA.js} +3 -3
  13. package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-DbMOO7YV.js} +113 -112
  14. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  15. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  16. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  17. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  18. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  19. package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
  20. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-CRUSZcVT.js} +16 -8
  21. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  22. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-CRbVCDSU.js} +3 -3
  23. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  24. package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
  25. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  26. package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
  31. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  32. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-BR6vycF7.js} +3 -3
  33. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-QddOSnIq.js} +7 -7
  34. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-hAJplRFF.js} +6 -6
  35. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  36. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  37. package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
  38. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  39. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  40. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  41. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  42. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  43. package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
  44. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-GzeK_2cf.js} +3 -3
  45. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  46. package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
  47. package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
  48. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-D0PjzALT.js} +2 -2
  49. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-DlpIModg.js} +7 -7
  50. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  51. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  52. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-BP_K7g_q.js} +2 -2
  53. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  54. package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
  55. package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
  56. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-a6WIg4oy.js} +3 -3
  57. package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
  58. package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
  59. package/dist/_chunks/print-sheet-gaxObGcm.js +328 -0
  60. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  61. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  62. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  63. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  64. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  65. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  66. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  67. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  68. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  69. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  70. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  71. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  72. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  73. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  74. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-B7UHCMSr.js} +2 -2
  75. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-OBhSDXee.js} +3 -3
  76. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
  77. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  78. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  79. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  80. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  81. package/dist/agent-catalog.json +449 -1
  82. package/dist/agent-i18n/en.json +53 -0
  83. package/dist/appointment-editor-panel/index.js +2 -2
  84. package/dist/browser-support.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-details-panel/index.js +1 -1
  91. package/dist/components/audio-recorder/index.js +1 -1
  92. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  93. package/dist/components/autocomplete/index.d.ts +1 -1
  94. package/dist/components/autocomplete/index.js +1 -1
  95. package/dist/components/bill-line-table/index.js +1 -1
  96. package/dist/components/bill-table/index.js +1 -1
  97. package/dist/components/bishop-score/index.js +1 -1
  98. package/dist/components/bmi-calculator/index.js +1 -1
  99. package/dist/components/booking/index.js +1 -1
  100. package/dist/components/calls-panel/index.js +1 -1
  101. package/dist/components/city-input/index.js +1 -1
  102. package/dist/components/combobox/index.js +1 -1
  103. package/dist/components/communications-panel/index.js +1 -1
  104. package/dist/components/country-select/index.js +1 -1
  105. package/dist/components/cycle-calculator/index.js +1 -1
  106. package/dist/components/data-grid/index.js +2 -2
  107. package/dist/components/data-table/index.js +2 -2
  108. package/dist/components/document-preview/index.js +1 -1
  109. package/dist/components/due-date-calculator/index.js +1 -1
  110. package/dist/components/face-scheme/index.js +1 -1
  111. package/dist/components/fetal-weight/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/hcg-doubling/index.js +1 -1
  115. package/dist/components/heatmap/index.js +1 -1
  116. package/dist/components/index.d.ts +5 -0
  117. package/dist/components/invoice-upload-list/index.js +1 -1
  118. package/dist/components/medication-line/index.d.ts +6 -0
  119. package/dist/components/medication-line/index.js +7 -0
  120. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  121. package/dist/components/medication-line/medication-line.d.ts +46 -0
  122. package/dist/components/medication-search/index.d.ts +6 -0
  123. package/dist/components/medication-search/index.js +10 -0
  124. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  125. package/dist/components/medication-search/medication-search.d.ts +49 -0
  126. package/dist/components/multi-select/index.js +1 -1
  127. package/dist/components/muscle-scheme/index.js +1 -1
  128. package/dist/components/notes-panel/index.js +1 -1
  129. package/dist/components/number-input/index.js +1 -1
  130. package/dist/components/optical-prescription/index.js +1 -1
  131. package/dist/components/patient-details/index.js +1 -1
  132. package/dist/components/patient-search/index.js +1 -1
  133. package/dist/components/patient-summary-card/index.js +1 -1
  134. package/dist/components/patient-table/index.js +1 -1
  135. package/dist/components/phone-input/index.js +1 -1
  136. package/dist/components/pregnancy-dating/index.js +1 -1
  137. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  138. package/dist/components/print-sheet/index.d.ts +5 -0
  139. package/dist/components/print-sheet/index.js +6 -0
  140. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  141. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  142. package/dist/components/print-sheet/print-sheet.d.ts +61 -0
  143. package/dist/components/province-select/index.js +1 -1
  144. package/dist/components/rich-text-editor/index.js +2 -2
  145. package/dist/components/search-bar/index.js +1 -1
  146. package/dist/components/select/index.js +1 -1
  147. package/dist/components/skeleton-scheme/index.js +1 -1
  148. package/dist/components/sync-tray/index.d.ts +4 -0
  149. package/dist/components/sync-tray/index.js +7 -0
  150. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  151. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  152. package/dist/components/tabs/index.js +1 -1
  153. package/dist/components/task-editor/index.js +1 -1
  154. package/dist/components/tasks-panel/index.js +1 -1
  155. package/dist/components/unit-converter/index.js +1 -1
  156. package/dist/components/variables-menu/index.js +1 -1
  157. package/dist/components/voice-control-panel/index.js +1 -1
  158. package/dist/core.css +1 -1
  159. package/dist/find-free-slots-panel/index.js +1 -1
  160. package/dist/host-compat.css +18 -1
  161. package/dist/i18n/locales/ar.d.ts +151 -0
  162. package/dist/i18n/locales/ar.js +151 -0
  163. package/dist/i18n/locales/de.d.ts +151 -0
  164. package/dist/i18n/locales/de.js +151 -0
  165. package/dist/i18n/locales/el.d.ts +151 -0
  166. package/dist/i18n/locales/el.js +151 -0
  167. package/dist/i18n/locales/en.d.ts +151 -0
  168. package/dist/i18n/locales/en.js +151 -0
  169. package/dist/i18n/locales/es.d.ts +151 -0
  170. package/dist/i18n/locales/es.js +151 -0
  171. package/dist/i18n/locales/fr.d.ts +151 -0
  172. package/dist/i18n/locales/fr.js +151 -0
  173. package/dist/i18n/locales/hi.d.ts +151 -0
  174. package/dist/i18n/locales/hi.js +151 -0
  175. package/dist/i18n/locales/it.d.ts +151 -0
  176. package/dist/i18n/locales/it.js +151 -0
  177. package/dist/i18n/locales/ja.d.ts +151 -0
  178. package/dist/i18n/locales/ja.js +151 -0
  179. package/dist/i18n/locales/nl.d.ts +151 -0
  180. package/dist/i18n/locales/nl.js +151 -0
  181. package/dist/i18n/locales/pl.d.ts +151 -0
  182. package/dist/i18n/locales/pl.js +151 -0
  183. package/dist/i18n/locales/pt.d.ts +151 -0
  184. package/dist/i18n/locales/pt.js +151 -0
  185. package/dist/i18n/locales/ro.d.ts +151 -0
  186. package/dist/i18n/locales/ro.js +151 -0
  187. package/dist/i18n/locales/ru.d.ts +151 -0
  188. package/dist/i18n/locales/ru.js +151 -0
  189. package/dist/i18n/locales/sq.d.ts +151 -0
  190. package/dist/i18n/locales/sq.js +151 -0
  191. package/dist/i18n/locales/sv.d.ts +151 -0
  192. package/dist/i18n/locales/sv.js +151 -0
  193. package/dist/i18n/locales/tr.d.ts +151 -0
  194. package/dist/i18n/locales/tr.js +151 -0
  195. package/dist/i18n/locales/zh.d.ts +151 -0
  196. package/dist/i18n/locales/zh.js +151 -0
  197. package/dist/index.js +1006 -978
  198. package/dist/locales/ar.json +151 -0
  199. package/dist/locales/de.json +151 -0
  200. package/dist/locales/el.json +151 -0
  201. package/dist/locales/en.json +151 -0
  202. package/dist/locales/es.json +151 -0
  203. package/dist/locales/fr.json +151 -0
  204. package/dist/locales/hi.json +151 -0
  205. package/dist/locales/it.json +151 -0
  206. package/dist/locales/ja.json +151 -0
  207. package/dist/locales/nl.json +151 -0
  208. package/dist/locales/pl.json +151 -0
  209. package/dist/locales/pt.json +151 -0
  210. package/dist/locales/ro.json +151 -0
  211. package/dist/locales/ru.json +151 -0
  212. package/dist/locales/sq.json +151 -0
  213. package/dist/locales/sv.json +151 -0
  214. package/dist/locales/tr.json +151 -0
  215. package/dist/locales/zh.json +151 -0
  216. package/dist/online-bookings-panel/index.js +1 -1
  217. package/dist/patterns/anamnesis/index.js +1 -1
  218. package/dist/patterns/calendar/index.js +3 -3
  219. package/dist/patterns/forgot-password-form/index.js +1 -1
  220. package/dist/patterns/login-form/index.js +1 -1
  221. package/dist/patterns/patient-account-settings/index.js +1 -1
  222. package/dist/patterns/patient-check-in/index.js +1 -1
  223. package/dist/patterns/patient-portal/index.js +2 -2
  224. package/dist/patterns/prescription/index.d.ts +11 -0
  225. package/dist/patterns/prescription/index.js +13 -0
  226. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  227. package/dist/patterns/prescription/prescription-composer-item.d.ts +41 -0
  228. package/dist/patterns/prescription/prescription-composer.d.ts +94 -0
  229. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  230. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  231. package/dist/patterns/prescription/prescription-sheet.d.ts +71 -0
  232. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  233. package/dist/patterns/prescription/prescription-types.d.ts +122 -0
  234. package/dist/patterns/prescription/prescription-validation.d.ts +46 -0
  235. package/dist/patterns/registration-form/index.js +1 -1
  236. package/dist/patterns/reset-password-form/index.js +1 -1
  237. package/dist/patterns/send-registration-link-form/index.js +1 -1
  238. package/dist/patterns/signature-request/index.js +1 -1
  239. package/dist/tokens.css +1 -1
  240. package/dist/waiting-list-panel/index.js +2 -2
  241. package/package.json +21 -1
  242. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  243. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  244. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  245. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  246. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -7493,5 +7493,156 @@
7493
7493
  "loggedAutomaticallyBy": "{{app}} tarafından otomatik olarak kaydedildi",
7494
7494
  "recording": "Ses kaydı",
7495
7495
  "transcript": "Döküm"
7496
+ },
7497
+ "medicationSearch": {
7498
+ "label": "İlaç",
7499
+ "placeholder": "Ada, etkin maddeye veya koda göre ara",
7500
+ "loading": "Katalog yükleniyor",
7501
+ "error": "Katalog yüklenemedi.",
7502
+ "retry": "Tekrar dene",
7503
+ "empty": "İlaç bulunamadı",
7504
+ "activeIngredient": "Etkin madde: {{value}}",
7505
+ "code": "{{label}} {{code}}",
7506
+ "codeFallbackLabel": "Kod"
7507
+ },
7508
+ "medicationLine": {
7509
+ "dosage": "Dozaj",
7510
+ "notes": "Notlar",
7511
+ "remove": "{{name}} öğesini kaldır",
7512
+ "quantity": "Kutu sayısı",
7513
+ "duration": "Süre",
7514
+ "notSubstitutable": "Muadil verilemez"
7515
+ },
7516
+ "printSheet": {
7517
+ "label": "Yazdırılabilir belge",
7518
+ "date": "Tarih",
7519
+ "signature": "İmza"
7520
+ },
7521
+ "prescription": {
7522
+ "patient": {
7523
+ "details": "Hasta bilgileri",
7524
+ "firstName": "Ad",
7525
+ "lastName": "Soyadı",
7526
+ "dateOfBirth": "Doğum tarihi",
7527
+ "fiscalCode": "İtalyan vergi kimlik kodu"
7528
+ },
7529
+ "composer": {
7530
+ "title": "Yeni reçete",
7531
+ "patient": "Hasta",
7532
+ "patientPlaceholder": "Ada veya soyada göre ara",
7533
+ "choosePatientTitle": "Hasta seçin",
7534
+ "choosePatientBody": "Reçete oluşturmaya başlamak için ada veya soyada göre arayın.",
7535
+ "prescriber": "Reçete yazan hekim",
7536
+ "prescriberPlaceholder": "Reçete yazan hekimi seçin",
7537
+ "medications": "İlaçlar",
7538
+ "medicationLegend": "İlaç {{number}}",
7539
+ "medication": "İlaç",
7540
+ "addMedication": "İlaç ekle",
7541
+ "removeMedication": "İlaç {{number}} öğesini kaldır",
7542
+ "dosage": "Dozaj",
7543
+ "dosageSuggestions": "Önerilen dozajlar",
7544
+ "dosageSuggestionsHint": "Yalnızca öneridir. Kullanmadan önce her birini kontrol edin.",
7545
+ "notes": "Notlar",
7546
+ "save": "Reçeteyi kaydet",
7547
+ "loading": "Reçete formu yükleniyor",
7548
+ "errorTitle": "Reçeteyi kontrol edin",
7549
+ "errors": {
7550
+ "patient": "Hasta seçin.",
7551
+ "prescriber": "Reçete yazan hekimi seçin.",
7552
+ "items": "En az bir ilaç ekleyin.",
7553
+ "medication": "Bir ilaç seçin.",
7554
+ "dosage": "Dozajı girin.",
7555
+ "medicationLine": "İlaç {{number}}: bir ilaç seçin.",
7556
+ "dosageLine": "İlaç {{number}}: dozajı girin.",
7557
+ "submit": "Reçete kaydedilmedi. Tekrar deneyin.",
7558
+ "treatment": "Bir tedavi seçin.",
7559
+ "treatmentInvalid": "Bu hastanın tedavilerinden birini seçin.",
7560
+ "quantity": "Kutu sayısını girin.",
7561
+ "quantityLine": "İlaç {{number}}: kutu sayısını girin.",
7562
+ "quantityInvalid": "Kutu sayısı olarak 1 veya daha büyük bir tam sayı girin.",
7563
+ "quantityInvalidLine": "İlaç {{number}}: kutu sayısı olarak 1 veya daha büyük bir tam sayı girin."
7564
+ },
7565
+ "treatment": "Tedavi",
7566
+ "treatmentPlaceholder": "Bir tedavi seçin",
7567
+ "treatmentEmpty": "Bu hastanın tedavisi yok. Reçete yazmadan önce bir tedavi ekleyin.",
7568
+ "treatmentsStandalone": "Tedavi planı dışında",
7569
+ "carePlanGroup": "Tedavi planı: {{label}}",
7570
+ "quantity": "Kutu sayısı",
7571
+ "duration": "Tedavi süresi",
7572
+ "notSubstitutable": "Muadil verilemez",
7573
+ "notSubstitutableNeedsCode": "Önce kodu olan bir ilaç seçin."
7574
+ },
7575
+ "sheet": {
7576
+ "title": "Tıbbi reçete",
7577
+ "treatment": "Tedavi",
7578
+ "carePlan": "Tedavi planı",
7579
+ "patient": "Hasta",
7580
+ "medications": "İlaçlar",
7581
+ "actions": "Reçete işlemleri",
7582
+ "print": "Yazdır",
7583
+ "downloadPdf": "PDF indir",
7584
+ "sendEmail": "E-posta ile gönder",
7585
+ "sendWhatsApp": "WhatsApp ile gönder",
7586
+ "moreActions": "Diğer işlemler",
7587
+ "shareActions": "Yazdırma ve paylaşma",
7588
+ "number": "Reçete numarası",
7589
+ "sentAt": "Gönderim tarihi",
7590
+ "sendingTitle": "Reçete gönderiliyor",
7591
+ "sendFailedTitle": "Reçete gönderilmedi",
7592
+ "sendFailedBody": "Yeniden gönderin. Gönderilene kadar yazdırılamaz veya paylaşılamaz.",
7593
+ "resend": "Tekrar gönder",
7594
+ "sendSms": "SMS ile gönder",
7595
+ "pin": "PIN",
7596
+ "prescriber": "Reçete yazan hekim",
7597
+ "prescriberFiscalCode": "İtalyan vergi kimlik kodu",
7598
+ "registrationNumber": "Sicil numarası",
7599
+ "summaryNote": "Muayenehane için özet. Resmî reçete, reçete kayıt sisteminin düzenlediği belgedir.",
7600
+ "prescriberName": "Ad soyad"
7601
+ },
7602
+ "history": {
7603
+ "caption": "Reçeteler",
7604
+ "date": "Tarih",
7605
+ "medications": "İlaçlar",
7606
+ "prescriber": "Reçete yazan hekim",
7607
+ "actions": "İşlemler",
7608
+ "open": "Aç",
7609
+ "reprint": "Yeniden yazdır",
7610
+ "rowLabel": "Reçete: {{date}}",
7611
+ "emptyTitle": "Henüz reçete yok",
7612
+ "emptyBody": "Bu hastanın kaydedilen reçeteleri burada görünür.",
7613
+ "errorTitle": "Reçeteler yüklenemedi",
7614
+ "patient": "Hasta",
7615
+ "number": "Numara",
7616
+ "status": "Durum",
7617
+ "specialty": "Uzmanlık alanı",
7618
+ "treatment": "Tedavi",
7619
+ "carePlan": "Tedavi planı",
7620
+ "noCarePlan": "Tedavi planı yok"
7621
+ },
7622
+ "status": {
7623
+ "label": "Durum",
7624
+ "sent": "Gönderildi",
7625
+ "sending": "Gönderiliyor",
7626
+ "failed": "Gönderilmedi"
7627
+ }
7628
+ },
7629
+ "syncTray": {
7630
+ "label": "Senkronizasyon durumu",
7631
+ "labelWithFailures": "Senkronizasyon durumu. Başarısız: {{count}}",
7632
+ "title": "Senkronizasyon durumu",
7633
+ "status": {
7634
+ "sent": "Gönderildi",
7635
+ "pending": "Gönderiliyor",
7636
+ "failed": "Başarısız",
7637
+ "scheduled": "Planlandı"
7638
+ },
7639
+ "lastSent": "Son gönderim",
7640
+ "nextDue": "Sıradaki son tarih",
7641
+ "neverSent": "Henüz hiçbir şey gönderilmedi",
7642
+ "empty": "Henüz gösterilecek bir şey yok",
7643
+ "retry": "Tekrar dene",
7644
+ "retryLabel": "Tekrar dene: {{title}}",
7645
+ "viewAll": "Tümünü görüntüle",
7646
+ "loading": "Senkronizasyon durumu yükleniyor"
7496
7647
  }
7497
7648
  }
@@ -7493,5 +7493,156 @@
7493
7493
  "loggedAutomaticallyBy": "由 {{app}} 自动记录",
7494
7494
  "recording": "录音",
7495
7495
  "transcript": "转录"
7496
+ },
7497
+ "medicationSearch": {
7498
+ "label": "药品",
7499
+ "placeholder": "按名称、活性成分或编码搜索",
7500
+ "loading": "正在加载药品目录",
7501
+ "error": "药品目录加载失败。",
7502
+ "retry": "重试",
7503
+ "empty": "未找到药品",
7504
+ "activeIngredient": "活性成分:{{value}}",
7505
+ "code": "{{label}} {{code}}",
7506
+ "codeFallbackLabel": "编码"
7507
+ },
7508
+ "medicationLine": {
7509
+ "dosage": "用法用量",
7510
+ "notes": "备注",
7511
+ "remove": "删除 {{name}}",
7512
+ "quantity": "盒数",
7513
+ "duration": "疗程",
7514
+ "notSubstitutable": "不可替换"
7515
+ },
7516
+ "printSheet": {
7517
+ "label": "可打印文档",
7518
+ "date": "日期",
7519
+ "signature": "签名"
7520
+ },
7521
+ "prescription": {
7522
+ "patient": {
7523
+ "details": "患者信息",
7524
+ "firstName": "名",
7525
+ "lastName": "姓",
7526
+ "dateOfBirth": "出生日期",
7527
+ "fiscalCode": "税号"
7528
+ },
7529
+ "composer": {
7530
+ "title": "新建处方",
7531
+ "patient": "患者",
7532
+ "patientPlaceholder": "按姓或名搜索",
7533
+ "choosePatientTitle": "请选择患者",
7534
+ "choosePatientBody": "按姓或名搜索,开始开具处方。",
7535
+ "prescriber": "处方医生",
7536
+ "prescriberPlaceholder": "选择处方医生",
7537
+ "medications": "药品",
7538
+ "medicationLegend": "药品 {{number}}",
7539
+ "medication": "药品",
7540
+ "addMedication": "添加药品",
7541
+ "removeMedication": "删除药品 {{number}}",
7542
+ "dosage": "用法用量",
7543
+ "dosageSuggestions": "推荐用法用量",
7544
+ "dosageSuggestionsHint": "仅为建议。使用前请逐项核对。",
7545
+ "notes": "备注",
7546
+ "save": "保存处方",
7547
+ "loading": "正在加载处方表单",
7548
+ "errorTitle": "请检查处方",
7549
+ "errors": {
7550
+ "patient": "请选择患者。",
7551
+ "prescriber": "请选择处方医生。",
7552
+ "items": "请至少添加一种药品。",
7553
+ "medication": "请选择药品。",
7554
+ "dosage": "请填写用法用量。",
7555
+ "medicationLine": "药品 {{number}}:请选择药品。",
7556
+ "dosageLine": "药品 {{number}}:请填写用法用量。",
7557
+ "submit": "处方未保存,请重试。",
7558
+ "treatment": "请选择治疗。",
7559
+ "treatmentInvalid": "请选择该患者的治疗之一。",
7560
+ "quantity": "请填写盒数。",
7561
+ "quantityLine": "药品 {{number}}:请填写盒数。",
7562
+ "quantityInvalid": "请填写不小于 1 的整数盒数。",
7563
+ "quantityInvalidLine": "药品 {{number}}:请填写不小于 1 的整数盒数。"
7564
+ },
7565
+ "treatment": "治疗",
7566
+ "treatmentPlaceholder": "选择治疗",
7567
+ "treatmentEmpty": "该患者暂无治疗。开具处方前请先添加治疗。",
7568
+ "treatmentsStandalone": "不在诊疗计划中",
7569
+ "carePlanGroup": "诊疗计划:{{label}}",
7570
+ "quantity": "盒数",
7571
+ "duration": "用药疗程",
7572
+ "notSubstitutable": "不可替换",
7573
+ "notSubstitutableNeedsCode": "请先选择有编码的药品。"
7574
+ },
7575
+ "sheet": {
7576
+ "title": "医疗处方",
7577
+ "treatment": "治疗",
7578
+ "carePlan": "诊疗计划",
7579
+ "patient": "患者",
7580
+ "medications": "药品",
7581
+ "actions": "处方操作",
7582
+ "print": "打印",
7583
+ "downloadPdf": "下载 PDF",
7584
+ "sendEmail": "通过电子邮件发送",
7585
+ "sendWhatsApp": "通过 WhatsApp 发送",
7586
+ "moreActions": "更多操作",
7587
+ "shareActions": "打印和分享",
7588
+ "number": "处方编号",
7589
+ "sentAt": "发送时间",
7590
+ "sendingTitle": "正在发送处方",
7591
+ "sendFailedTitle": "处方未发送",
7592
+ "sendFailedBody": "请重新发送。发送成功前,无法打印或分享。",
7593
+ "resend": "重新发送",
7594
+ "sendSms": "通过短信发送",
7595
+ "pin": "PIN",
7596
+ "prescriber": "处方医生",
7597
+ "prescriberFiscalCode": "税号",
7598
+ "registrationNumber": "注册编号",
7599
+ "summaryNote": "供诊所使用的摘要。正式处方以处方登记系统出具的文件为准。",
7600
+ "prescriberName": "姓名"
7601
+ },
7602
+ "history": {
7603
+ "caption": "处方",
7604
+ "date": "日期",
7605
+ "medications": "药品",
7606
+ "prescriber": "处方医生",
7607
+ "actions": "操作",
7608
+ "open": "打开",
7609
+ "reprint": "重新打印",
7610
+ "rowLabel": "{{date}} 的处方",
7611
+ "emptyTitle": "暂无处方",
7612
+ "emptyBody": "此患者已保存的处方会显示在这里。",
7613
+ "errorTitle": "处方加载失败",
7614
+ "patient": "患者",
7615
+ "number": "编号",
7616
+ "status": "状态",
7617
+ "specialty": "专科",
7618
+ "treatment": "治疗",
7619
+ "carePlan": "诊疗计划",
7620
+ "noCarePlan": "无诊疗计划"
7621
+ },
7622
+ "status": {
7623
+ "label": "状态",
7624
+ "sent": "已发送",
7625
+ "sending": "发送中",
7626
+ "failed": "未发送"
7627
+ }
7628
+ },
7629
+ "syncTray": {
7630
+ "label": "同步状态",
7631
+ "labelWithFailures": "同步状态。失败:{{count}}",
7632
+ "title": "同步状态",
7633
+ "status": {
7634
+ "sent": "已发送",
7635
+ "pending": "发送中",
7636
+ "failed": "失败",
7637
+ "scheduled": "已计划"
7638
+ },
7639
+ "lastSent": "上次发送",
7640
+ "nextDue": "下次截止",
7641
+ "neverSent": "尚未发送任何内容",
7642
+ "empty": "暂无内容可显示",
7643
+ "retry": "重试",
7644
+ "retryLabel": "重试:{{title}}",
7645
+ "viewAll": "查看全部",
7646
+ "loading": "正在加载同步状态"
7496
7647
  }
7497
7648
  }
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { useState as h, useMemo as g } from "react";
3
3
  import { a as k } from "../_chunks/tooltip-uEBdD1-5.js";
4
4
  import { C as v } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
5
- import { S as B, B as O } from "../_chunks/calendar.sheets-aodjllWd.js";
5
+ import { S as B, B as O } from "../_chunks/calendar.sheets-DbMOO7YV.js";
6
6
  import { c as P, o as S } from "../_chunks/calendar-workspace.model-B8yPwuBv.js";
7
7
  function A({
8
8
  rows: e,
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-Dr2V1Rtf.js";
1
+ import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-YJGs2uWD.js";
2
2
  export {
3
3
  e as Anamnesis,
4
4
  i as AnamnesisConfigEditor,
@@ -1,7 +1,7 @@
1
- import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-SxSkOTnO.js";
2
- import { C, a as S, b as E } from "../../_chunks/calendar-editor-discard-host-DjUhoFr2.js";
1
+ import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-BBrJlmyd.js";
2
+ import { C, a as S, b as E } from "../../_chunks/calendar-editor-discard-host-BcMEgVEq.js";
3
3
  import { C as i, u as A } from "../../_chunks/calendar-editor-guard-9fShhNIA.js";
4
- import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-aodjllWd.js";
4
+ import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-DbMOO7YV.js";
5
5
  import { C as _, D as m, a as O, V as f, W as L, b as R, m as W, r as c, u as I } from "../../_chunks/calendar-workspace.model-B8yPwuBv.js";
6
6
  export {
7
7
  r as AppointmentEditorDialog,
@@ -1,4 +1,4 @@
1
- import { F as r, a } from "../../_chunks/forgot-password-form-YvI9vX-G.js";
1
+ import { F as r, a } from "../../_chunks/forgot-password-form-B4ufmBFn.js";
2
2
  export {
3
3
  r as FORGOT_PASSWORD_FORM_FIELDS,
4
4
  a as ForgotPasswordForm
@@ -1,4 +1,4 @@
1
- import { L, a as r, b as s } from "../../_chunks/login-dev-card-Dz3ezx1o.js";
1
+ import { L, a as r, b as s } from "../../_chunks/login-dev-card-oRh9h7N2.js";
2
2
  export {
3
3
  L as LOGIN_FORM_FIELDS,
4
4
  r as LoginDevCard,
@@ -1,4 +1,4 @@
1
- import { P as n } from "../../_chunks/patient-account-settings-Cs9y-pVA.js";
1
+ import { P as n } from "../../_chunks/patient-account-settings-DfEPHmCh.js";
2
2
  export {
3
3
  n as PatientAccountSettings
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as a, a as c, b as h, c as C, d as s, e as k, f as I, g as o, h as t } from "../../_chunks/patient-check-in-resume-4qi_klQV.js";
1
+ import { C as a, a as c, b as h, c as C, d as s, e as k, f as I, g as o, h as t } from "../../_chunks/patient-check-in-resume-TWs8CPQr.js";
2
2
  export {
3
3
  a as CheckInAppointmentChanged,
4
4
  c as CheckInConnectionNotice,
@@ -1,5 +1,5 @@
1
- import { P as o, a as l, b as s, c as r, d as e } from "../../_chunks/portal-documents-BSI1U5lI.js";
2
- import { P as i, a as c, b as m } from "../../_chunks/portal-details-BGc_FLQk.js";
1
+ import { P as o, a as l, b as s, c as r, d as e } from "../../_chunks/portal-documents-hGHlwmbv.js";
2
+ import { P as i, a as c, b as m } from "../../_chunks/portal-details-VfeOI4PB.js";
3
3
  export {
4
4
  o as PortalAppointments,
5
5
  i as PortalDetails,
@@ -0,0 +1,11 @@
1
+ export { PrescriptionComposer } from './prescription-composer';
2
+ export type { PrescriptionComposerProps, PrescriptionComposerHandle, } from './prescription-composer';
3
+ export { PrescriptionSheet } from './prescription-sheet';
4
+ export type { PrescriptionSheetProps, PrescriptionSheetHandle, PrescriptionSheetAction, } from './prescription-sheet';
5
+ export { PrescriptionHistory } from './prescription-history';
6
+ export type { PrescriptionHistoryProps } from './prescription-history';
7
+ export { validatePrescriptionDraft, isPrescriptionDraftValid, normalisePrescriptionDraft, isBlankPrescriptionItem, } from './prescription-validation';
8
+ export type { PrescriptionDraftErrors, PrescriptionItemErrors, PrescriptionFieldError, PrescriptionValidationOptions, } from './prescription-validation';
9
+ export { createEmptyPrescriptionDraft, EMPTY_PRESCRIPTION_ITEM, } from './prescription-types';
10
+ export type { PrescriptionDraft, PrescriptionItem, PrescriptionTreatment, PrescriptionTreatmentOption, PrescriptionPatient, PrescriptionPrescriber, PrescriptionRecord, PrescriptionRecordItem, PrescriptionMedicationSearch, PrescriptionPatientSearch, } from './prescription-types';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-Bp_JHhdF.js";
2
+ export {
3
+ s as EMPTY_PRESCRIPTION_ITEM,
4
+ a as PrescriptionComposer,
5
+ t as PrescriptionHistory,
6
+ e as PrescriptionSheet,
7
+ o as createEmptyPrescriptionDraft,
8
+ P as isBlankPrescriptionItem,
9
+ n as isPrescriptionDraftValid,
10
+ p as normalisePrescriptionDraft,
11
+ c as validatePrescriptionDraft
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ import type { PrescriptionDraftErrors } from './prescription-validation';
2
+ /** The errors in `shown` that `live` still reports. A field the user has
3
+ * fixed leaves the list; one fixed and then broken again does not come back
4
+ * until the next refused submit. */
5
+ export declare function keepStillFailing(shown: PrescriptionDraftErrors, live: PrescriptionDraftErrors): PrescriptionDraftErrors;
6
+ //# sourceMappingURL=prescription-composer-errors.d.ts.map
@@ -0,0 +1,41 @@
1
+ import type { Ref } from 'react';
2
+ import { type MedicationSearchHandle } from '../../components/medication-search';
3
+ import type { MedicationOption, PrescriptionItem, PrescriptionMedicationSearch } from './prescription-types';
4
+ export declare const MAX_DOSAGE_SUGGESTIONS = 5;
5
+ export interface PrescriptionComposerItemProps {
6
+ index: number;
7
+ item: PrescriptionItem;
8
+ /** The catalogue row for `item.medicationId`, when known. */
9
+ medication: MedicationOption | null;
10
+ /** Ids the error summary links to. */
11
+ medicationFieldId: string;
12
+ dosageFieldId: string;
13
+ quantityFieldId: string;
14
+ medicationError?: string;
15
+ dosageError?: string;
16
+ quantityError?: string;
17
+ /** False while the error summary lists the field. */
18
+ announceMedicationError: boolean;
19
+ announceDosageError: boolean;
20
+ announceQuantityError: boolean;
21
+ searchMedications: PrescriptionMedicationSearch;
22
+ codeLabel?: string;
23
+ catalogueStatus: 'ready' | 'loading' | 'error';
24
+ onCatalogueRetry?: () => void;
25
+ suggestions: readonly string[];
26
+ onMedicationChange: (medication: MedicationOption | null) => void;
27
+ onDosageChange: (dosage: string) => void;
28
+ onNotesChange: (notes: string) => void;
29
+ /** Whole packs; NaN while the field is empty. */
30
+ onQuantityChange: (quantity: number) => void;
31
+ onDurationChange: (duration: string) => void;
32
+ onNotSubstitutableChange: (value: boolean) => void;
33
+ /** Structural id for the catalogue search. The free-text fields carry none: they are not registered with the agent runtime. */
34
+ medicationSearchId: string;
35
+ medicationRef: Ref<MedicationSearchHandle>;
36
+ dosageInputRef: Ref<HTMLInputElement>;
37
+ /** A suggestion chip was chosen: the parent writes it, then moves focus. */
38
+ onSuggestionChosen: (text: string) => void;
39
+ }
40
+ export declare function PrescriptionComposerItem({ index, item, medication, medicationFieldId, dosageFieldId, quantityFieldId, medicationError, dosageError, quantityError, announceMedicationError, announceDosageError, announceQuantityError, searchMedications, codeLabel, catalogueStatus, onCatalogueRetry, suggestions, onMedicationChange, onDosageChange, onNotesChange, onQuantityChange, onDurationChange, onNotSubstitutableChange, medicationSearchId, medicationRef, dosageInputRef, onSuggestionChosen, }: PrescriptionComposerItemProps): import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=prescription-composer-item.d.ts.map
@@ -0,0 +1,94 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { type MedicationOption, type PrescriptionDraft, type PrescriptionItem, type PrescriptionTreatmentOption, type PrescriptionMedicationSearch, type PrescriptionPatient, type PrescriptionPatientSearch, type PrescriptionPrescriber, type PrescriptionRecord } from './prescription-types';
3
+ import { type PrescriptionDraftErrors } from './prescription-validation';
4
+ export interface PrescriptionComposerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSubmit' | 'defaultValue' | 'children'> {
5
+ /** Patients to choose from, filtered on the client by first or last name. Also used to resolve a preselected `patientId`. */
6
+ patients?: readonly PrescriptionPatient[];
7
+ /** Host typeahead. Wins over `patients` for listing. */
8
+ searchPatients?: PrescriptionPatientSearch;
9
+ /**
10
+ * Treatments of the CHOSEN patient, each with its care plan when it has
11
+ * one. The host updates it after `onPatientChange`. Every prescription is
12
+ * for one treatment, so a patient with none cannot be saved: the host adds
13
+ * a treatment first.
14
+ */
15
+ treatmentOptions?: readonly PrescriptionTreatmentOption[];
16
+ /**
17
+ * The patient `treatmentOptions` belongs to. After a patient change the list
18
+ * is still the previous patient's until your app swaps it: while this differs
19
+ * from the draft's patient, the Treatment select is disabled with no options
20
+ * and a chosen treatment is refused as invalid.
21
+ */
22
+ treatmentOptionsPatientId?: string;
23
+ /** People allowed to prescribe. */
24
+ prescribers: readonly PrescriptionPrescriber[];
25
+ /**
26
+ * Preselected when the signed-in user may prescribe. Omit it otherwise: the
27
+ * field starts empty and is required. It is applied once: at mount if the id
28
+ * is in `prescribers`, else the first time it appears there (a list that
29
+ * arrives late), and only while the prescriber is still empty and nobody has
30
+ * chosen one. Uncontrolled, it sets the draft's prescriber; controlled, it
31
+ * calls `onChange` once with the preselection and never overrides a
32
+ * prescriber already in `value`.
33
+ */
34
+ defaultPrescriberId?: string;
35
+ searchMedications: PrescriptionMedicationSearch;
36
+ /** Resolves a medication id the composer has not seen in a search (a draft passed in through `value`). */
37
+ resolveMedication?: (id: string) => MedicationOption | undefined;
38
+ /** Host dosage suggestions for a chosen medication. The kit ships none. At most five are shown. */
39
+ suggestDosages?: (medication: MedicationOption) => readonly string[];
40
+ /** Label printed before a medication code, for example "AIC". */
41
+ codeLabel?: string;
42
+ /** State of the medication catalogue, passed to every MedicationSearch. Default 'ready'. */
43
+ catalogueStatus?: 'ready' | 'loading' | 'error';
44
+ onCatalogueRetry?: () => void;
45
+ /** Controlled draft, or uncontrolled with `defaultValue`. */
46
+ value?: PrescriptionDraft;
47
+ defaultValue?: PrescriptionDraft;
48
+ onChange?: (draft: PrescriptionDraft) => void;
49
+ /** Called with a valid, normalised draft. A promise keeps the Save button loading until it settles; a rejection shows the save error. */
50
+ onSubmit: (draft: PrescriptionDraft) => Promise<PrescriptionRecord | void> | PrescriptionRecord | void;
51
+ onPatientChange?: (patientId: string) => void;
52
+ /** Whole-form loading state (skeleton). */
53
+ loading?: boolean;
54
+ /** A host error to show above the Save button, already translated. */
55
+ error?: string;
56
+ /** Masks the patient's name, fiscal code and date of birth. */
57
+ privacyMode?: boolean;
58
+ /**
59
+ * Fix the patient, for a form opened from inside a patient's record. When
60
+ * true and a patient is set (through `value` or `defaultValue`, and found in
61
+ * `patients` or already seen in a search), no picker is shown: the details
62
+ * block shows, and the UI cannot change or clear the patient.
63
+ * `handle.setPatient` still works. When true and no patient is set, the
64
+ * normal picker shows. Default false.
65
+ */
66
+ lockPatient?: boolean;
67
+ /** Text of the submit button, already translated. Default "Save prescription". A host that sends on save passes, say, "Send to Sistema TS". */
68
+ submitLabel?: string;
69
+ id?: string;
70
+ }
71
+ export interface PrescriptionComposerHandle {
72
+ /**
73
+ * The draft as the composer holds it. In controlled mode it can be ahead of
74
+ * your `value` for a moment: it includes an edit your `onChange` has not
75
+ * been given back yet. The same goes for what `submit()` sends.
76
+ */
77
+ getDraft(): PrescriptionDraft;
78
+ setPatient(patientId: string): void;
79
+ setPrescriber(prescriberId: string): void;
80
+ setTreatment(treatmentId: string): void;
81
+ /** Appends a line (blank when no argument) and returns its index. */
82
+ addItem(item?: Partial<PrescriptionItem>): number;
83
+ updateItem(index: number, patch: Partial<PrescriptionItem>): void;
84
+ removeItem(index: number): void;
85
+ /** Runs the rules and shows the errors, without saving. */
86
+ validate(): PrescriptionDraftErrors;
87
+ /** Same as pressing Save. Resolves to the record the host returned, or undefined when validation refused the draft. */
88
+ submit(): Promise<PrescriptionRecord | undefined>;
89
+ reset(): void;
90
+ /** Moves focus to the form's heading, for use after a change of view. */
91
+ focusTitle(): void;
92
+ }
93
+ export declare const PrescriptionComposer: import("react").ForwardRefExoticComponent<PrescriptionComposerProps & import("react").RefAttributes<PrescriptionComposerHandle>>;
94
+ //# sourceMappingURL=prescription-composer.d.ts.map
@@ -0,0 +1,48 @@
1
+ /**
2
+ * PrescriptionHistory: saved prescriptions, newest first, on the kit DataGrid
3
+ * with its standard toolbar (quick search, filter chips, column toggle,
4
+ * print). One patient's list by default; `showPatient` makes it the
5
+ * practice-wide list. One fact per cell: a person is an avatar and a name, a
6
+ * status is a badge, a medication is a tag. The kit fetches and stores
7
+ * nothing: the host passes the records and handles the callbacks.
8
+ *
9
+ * Per-patient mode renders no patient field (name, fiscal code, date of
10
+ * birth). With `showPatient` the name shows, and `privacyMode` masks it.
11
+ */
12
+ import { type HTMLAttributes } from 'react';
13
+ import type { PrescriptionRecord } from './prescription-types';
14
+ export interface PrescriptionHistoryProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
15
+ /** Saved prescriptions, in any order. Shown newest first until the user sorts. */
16
+ records: readonly PrescriptionRecord[];
17
+ /** 'loading' shows skeleton rows; 'error' shows the error state. Default 'ready'. */
18
+ status?: 'ready' | 'loading' | 'error';
19
+ /** Reopen a prescription. The "Open" action shows only when this is given. */
20
+ onOpen?: (record: PrescriptionRecord) => void;
21
+ /** Print a prescription again. The "Print again" action shows only when this is given. */
22
+ onReprint?: (record: PrescriptionRecord) => void;
23
+ /** Shown as "Try again" in the error state when given. */
24
+ onRetry?: () => void;
25
+ /** Accessible caption of the table. Default t('prescription.history.caption'). */
26
+ caption?: string;
27
+ /**
28
+ * Add a Patient column after the date, for a practice-wide list: an avatar
29
+ * and the name as "Last name First name". Default false: the table is one
30
+ * patient's and shows no patient field at all.
31
+ */
32
+ showPatient?: boolean;
33
+ /**
34
+ * Masks the Patient column with the kit mask and a visually hidden "Hidden
35
+ * in privacy mode"; the column leaves sorting and filtering, and no name or
36
+ * initials reach the DOM, a row label or an accessible name. Only matters
37
+ * with `showPatient`. Default false.
38
+ */
39
+ privacyMode?: boolean;
40
+ /**
41
+ * Show the Number and Status columns. Default: only when at least one
42
+ * record has a `sendStatus`, so a host that sends nothing sees neither.
43
+ */
44
+ showSendStatus?: boolean;
45
+ id?: string;
46
+ }
47
+ export declare const PrescriptionHistory: import("react").ForwardRefExoticComponent<PrescriptionHistoryProps & import("react").RefAttributes<HTMLDivElement>>;
48
+ //# sourceMappingURL=prescription-history.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { PrescriptionPatient } from './prescription-types';
3
+ export interface PrescriptionPatientBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
+ patient: PrescriptionPatient;
5
+ /** Masks first name, last name, date of birth and fiscal code. Default false. */
6
+ privacyMode?: boolean;
7
+ /** 'compact' for print and dense layouts. Default 'default'. */
8
+ density?: 'default' | 'compact';
9
+ /** Show the Avatar with the patient's initials (screen use). Default false. Never shown under privacy mode. */
10
+ showAvatar?: boolean;
11
+ }
12
+ export declare const PrescriptionPatientBlock: import("react").ForwardRefExoticComponent<PrescriptionPatientBlockProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ //# sourceMappingURL=prescription-patient-block.d.ts.map