@alfadocs/ui-kit 1.138.0 → 1.139.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.
- package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +7 -7
- package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
- package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-CkZBAv_E.js} +3 -3
- package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-B0jP2Yt0.js} +112 -111
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
- package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
- package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
- package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +455 -1
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +40 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +54 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +134 -0
- package/dist/i18n/locales/ar.js +134 -0
- package/dist/i18n/locales/de.d.ts +134 -0
- package/dist/i18n/locales/de.js +134 -0
- package/dist/i18n/locales/el.d.ts +134 -0
- package/dist/i18n/locales/el.js +134 -0
- package/dist/i18n/locales/en.d.ts +134 -0
- package/dist/i18n/locales/en.js +134 -0
- package/dist/i18n/locales/es.d.ts +134 -0
- package/dist/i18n/locales/es.js +134 -0
- package/dist/i18n/locales/fr.d.ts +134 -0
- package/dist/i18n/locales/fr.js +134 -0
- package/dist/i18n/locales/hi.d.ts +134 -0
- package/dist/i18n/locales/hi.js +134 -0
- package/dist/i18n/locales/it.d.ts +134 -0
- package/dist/i18n/locales/it.js +134 -0
- package/dist/i18n/locales/ja.d.ts +134 -0
- package/dist/i18n/locales/ja.js +134 -0
- package/dist/i18n/locales/nl.d.ts +134 -0
- package/dist/i18n/locales/nl.js +134 -0
- package/dist/i18n/locales/pl.d.ts +134 -0
- package/dist/i18n/locales/pl.js +134 -0
- package/dist/i18n/locales/pt.d.ts +134 -0
- package/dist/i18n/locales/pt.js +134 -0
- package/dist/i18n/locales/ro.d.ts +134 -0
- package/dist/i18n/locales/ro.js +134 -0
- package/dist/i18n/locales/ru.d.ts +134 -0
- package/dist/i18n/locales/ru.js +134 -0
- package/dist/i18n/locales/sq.d.ts +134 -0
- package/dist/i18n/locales/sq.js +134 -0
- package/dist/i18n/locales/sv.d.ts +134 -0
- package/dist/i18n/locales/sv.js +134 -0
- package/dist/i18n/locales/tr.d.ts +134 -0
- package/dist/i18n/locales/tr.js +134 -0
- package/dist/i18n/locales/zh.d.ts +134 -0
- package/dist/i18n/locales/zh.js +134 -0
- package/dist/index.js +1002 -974
- package/dist/locales/ar.json +134 -0
- package/dist/locales/de.json +134 -0
- package/dist/locales/el.json +134 -0
- package/dist/locales/en.json +134 -0
- package/dist/locales/es.json +134 -0
- package/dist/locales/fr.json +134 -0
- package/dist/locales/hi.json +134 -0
- package/dist/locales/it.json +134 -0
- package/dist/locales/ja.json +134 -0
- package/dist/locales/nl.json +134 -0
- package/dist/locales/pl.json +134 -0
- package/dist/locales/pt.json +134 -0
- package/dist/locales/ro.json +134 -0
- package/dist/locales/ru.json +134 -0
- package/dist/locales/sq.json +134 -0
- package/dist/locales/sv.json +134 -0
- package/dist/locales/tr.json +134 -0
- package/dist/locales/zh.json +134 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +97 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
package/dist/locales/tr.json
CHANGED
|
@@ -7493,5 +7493,139 @@
|
|
|
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
|
+
},
|
|
7513
|
+
"printSheet": {
|
|
7514
|
+
"label": "Yazdırılabilir belge",
|
|
7515
|
+
"date": "Tarih",
|
|
7516
|
+
"signature": "İmza"
|
|
7517
|
+
},
|
|
7518
|
+
"prescription": {
|
|
7519
|
+
"patient": {
|
|
7520
|
+
"details": "Hasta bilgileri",
|
|
7521
|
+
"firstName": "Ad",
|
|
7522
|
+
"lastName": "Soyadı",
|
|
7523
|
+
"dateOfBirth": "Doğum tarihi",
|
|
7524
|
+
"fiscalCode": "İtalyan vergi kimlik kodu"
|
|
7525
|
+
},
|
|
7526
|
+
"composer": {
|
|
7527
|
+
"title": "Yeni reçete",
|
|
7528
|
+
"patient": "Hasta",
|
|
7529
|
+
"patientPlaceholder": "Ada veya soyada göre ara",
|
|
7530
|
+
"choosePatientTitle": "Hasta seçin",
|
|
7531
|
+
"choosePatientBody": "Reçete oluşturmaya başlamak için ada veya soyada göre arayın.",
|
|
7532
|
+
"link": "Bağlı kayıt",
|
|
7533
|
+
"linkPlaceholder": "Bir tedavi veya tedavi planı seçin",
|
|
7534
|
+
"linkEmpty": "Bu hastanın tedavisi veya tedavi planı yok.",
|
|
7535
|
+
"treatments": "Tedaviler",
|
|
7536
|
+
"carePlans": "Tedavi planları",
|
|
7537
|
+
"prescriber": "Reçete yazan hekim",
|
|
7538
|
+
"prescriberPlaceholder": "Reçete yazan hekimi seçin",
|
|
7539
|
+
"medications": "İlaçlar",
|
|
7540
|
+
"medicationLegend": "İlaç {{number}}",
|
|
7541
|
+
"medication": "İlaç",
|
|
7542
|
+
"addMedication": "İlaç ekle",
|
|
7543
|
+
"removeMedication": "İlaç {{number}} öğesini kaldır",
|
|
7544
|
+
"dosage": "Dozaj",
|
|
7545
|
+
"dosageSuggestions": "Önerilen dozajlar",
|
|
7546
|
+
"dosageSuggestionsHint": "Yalnızca öneridir. Kullanmadan önce her birini kontrol edin.",
|
|
7547
|
+
"notes": "Notlar",
|
|
7548
|
+
"save": "Reçeteyi kaydet",
|
|
7549
|
+
"loading": "Reçete formu yükleniyor",
|
|
7550
|
+
"errorTitle": "Reçeteyi kontrol edin",
|
|
7551
|
+
"errors": {
|
|
7552
|
+
"patient": "Hasta seçin.",
|
|
7553
|
+
"prescriber": "Reçete yazan hekimi seçin.",
|
|
7554
|
+
"link": "Bir tedavi veya tedavi planı seçin.",
|
|
7555
|
+
"linkInvalid": "Bu hastaya ait bir tedavi veya tedavi planı seçin.",
|
|
7556
|
+
"items": "En az bir ilaç ekleyin.",
|
|
7557
|
+
"medication": "Bir ilaç seçin.",
|
|
7558
|
+
"dosage": "Dozajı girin.",
|
|
7559
|
+
"medicationLine": "İlaç {{number}}: bir ilaç seçin.",
|
|
7560
|
+
"dosageLine": "İlaç {{number}}: dozajı girin.",
|
|
7561
|
+
"submit": "Reçete kaydedilmedi. Tekrar deneyin."
|
|
7562
|
+
}
|
|
7563
|
+
},
|
|
7564
|
+
"sheet": {
|
|
7565
|
+
"title": "Tıbbi reçete",
|
|
7566
|
+
"treatment": "Tedavi",
|
|
7567
|
+
"carePlan": "Tedavi planı",
|
|
7568
|
+
"patient": "Hasta",
|
|
7569
|
+
"medications": "İlaçlar",
|
|
7570
|
+
"actions": "Reçete işlemleri",
|
|
7571
|
+
"print": "Yazdır",
|
|
7572
|
+
"downloadPdf": "PDF indir",
|
|
7573
|
+
"sendEmail": "E-posta ile gönder",
|
|
7574
|
+
"sendWhatsApp": "WhatsApp ile gönder",
|
|
7575
|
+
"moreActions": "Diğer işlemler",
|
|
7576
|
+
"shareActions": "Yazdırma ve paylaşma",
|
|
7577
|
+
"number": "Reçete numarası",
|
|
7578
|
+
"sentAt": "Gönderim tarihi",
|
|
7579
|
+
"sendingTitle": "Reçete gönderiliyor",
|
|
7580
|
+
"sendFailedTitle": "Reçete gönderilmedi",
|
|
7581
|
+
"sendFailedBody": "Yeniden gönderin. Gönderilene kadar yazdırılamaz veya paylaşılamaz.",
|
|
7582
|
+
"resend": "Tekrar gönder",
|
|
7583
|
+
"sendSms": "SMS ile gönder"
|
|
7584
|
+
},
|
|
7585
|
+
"history": {
|
|
7586
|
+
"caption": "Reçeteler",
|
|
7587
|
+
"date": "Tarih",
|
|
7588
|
+
"link": "Bağlı kayıt",
|
|
7589
|
+
"medications": "İlaçlar",
|
|
7590
|
+
"prescriber": "Reçete yazan hekim",
|
|
7591
|
+
"actions": "İşlemler",
|
|
7592
|
+
"open": "Aç",
|
|
7593
|
+
"reprint": "Yeniden yazdır",
|
|
7594
|
+
"notLinked": "Bağlı değil",
|
|
7595
|
+
"rowLabel": "Reçete: {{date}}",
|
|
7596
|
+
"emptyTitle": "Henüz reçete yok",
|
|
7597
|
+
"emptyBody": "Bu hastanın kaydedilen reçeteleri burada görünür.",
|
|
7598
|
+
"errorTitle": "Reçeteler yüklenemedi",
|
|
7599
|
+
"patient": "Hasta",
|
|
7600
|
+
"number": "Numara",
|
|
7601
|
+
"status": "Durum",
|
|
7602
|
+
"linkKind": "Bağlı kayıt türü",
|
|
7603
|
+
"specialty": "Uzmanlık alanı"
|
|
7604
|
+
},
|
|
7605
|
+
"status": {
|
|
7606
|
+
"label": "Durum",
|
|
7607
|
+
"sent": "Gönderildi",
|
|
7608
|
+
"sending": "Gönderiliyor",
|
|
7609
|
+
"failed": "Gönderilmedi"
|
|
7610
|
+
}
|
|
7611
|
+
},
|
|
7612
|
+
"syncTray": {
|
|
7613
|
+
"label": "Senkronizasyon durumu",
|
|
7614
|
+
"labelWithFailures": "Senkronizasyon durumu. Başarısız: {{count}}",
|
|
7615
|
+
"title": "Senkronizasyon durumu",
|
|
7616
|
+
"status": {
|
|
7617
|
+
"sent": "Gönderildi",
|
|
7618
|
+
"pending": "Gönderiliyor",
|
|
7619
|
+
"failed": "Başarısız",
|
|
7620
|
+
"scheduled": "Planlandı"
|
|
7621
|
+
},
|
|
7622
|
+
"lastSent": "Son gönderim",
|
|
7623
|
+
"nextDue": "Sıradaki son tarih",
|
|
7624
|
+
"neverSent": "Henüz hiçbir şey gönderilmedi",
|
|
7625
|
+
"empty": "Henüz gösterilecek bir şey yok",
|
|
7626
|
+
"retry": "Tekrar dene",
|
|
7627
|
+
"retryLabel": "Tekrar dene: {{title}}",
|
|
7628
|
+
"viewAll": "Tümünü görüntüle",
|
|
7629
|
+
"loading": "Senkronizasyon durumu yükleniyor"
|
|
7496
7630
|
}
|
|
7497
7631
|
}
|
package/dist/locales/zh.json
CHANGED
|
@@ -7493,5 +7493,139 @@
|
|
|
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
|
+
},
|
|
7513
|
+
"printSheet": {
|
|
7514
|
+
"label": "可打印文档",
|
|
7515
|
+
"date": "日期",
|
|
7516
|
+
"signature": "签名"
|
|
7517
|
+
},
|
|
7518
|
+
"prescription": {
|
|
7519
|
+
"patient": {
|
|
7520
|
+
"details": "患者信息",
|
|
7521
|
+
"firstName": "名",
|
|
7522
|
+
"lastName": "姓",
|
|
7523
|
+
"dateOfBirth": "出生日期",
|
|
7524
|
+
"fiscalCode": "税号"
|
|
7525
|
+
},
|
|
7526
|
+
"composer": {
|
|
7527
|
+
"title": "新建处方",
|
|
7528
|
+
"patient": "患者",
|
|
7529
|
+
"patientPlaceholder": "按姓或名搜索",
|
|
7530
|
+
"choosePatientTitle": "请选择患者",
|
|
7531
|
+
"choosePatientBody": "按姓或名搜索,开始开具处方。",
|
|
7532
|
+
"link": "关联到",
|
|
7533
|
+
"linkPlaceholder": "选择治疗或诊疗计划",
|
|
7534
|
+
"linkEmpty": "该患者没有治疗或诊疗计划。",
|
|
7535
|
+
"treatments": "治疗",
|
|
7536
|
+
"carePlans": "诊疗计划",
|
|
7537
|
+
"prescriber": "处方医生",
|
|
7538
|
+
"prescriberPlaceholder": "选择处方医生",
|
|
7539
|
+
"medications": "药品",
|
|
7540
|
+
"medicationLegend": "药品 {{number}}",
|
|
7541
|
+
"medication": "药品",
|
|
7542
|
+
"addMedication": "添加药品",
|
|
7543
|
+
"removeMedication": "删除药品 {{number}}",
|
|
7544
|
+
"dosage": "用法用量",
|
|
7545
|
+
"dosageSuggestions": "推荐用法用量",
|
|
7546
|
+
"dosageSuggestionsHint": "仅为建议。使用前请逐项核对。",
|
|
7547
|
+
"notes": "备注",
|
|
7548
|
+
"save": "保存处方",
|
|
7549
|
+
"loading": "正在加载处方表单",
|
|
7550
|
+
"errorTitle": "请检查处方",
|
|
7551
|
+
"errors": {
|
|
7552
|
+
"patient": "请选择患者。",
|
|
7553
|
+
"prescriber": "请选择处方医生。",
|
|
7554
|
+
"link": "请选择治疗或诊疗计划。",
|
|
7555
|
+
"linkInvalid": "请选择该患者的治疗或诊疗计划。",
|
|
7556
|
+
"items": "请至少添加一种药品。",
|
|
7557
|
+
"medication": "请选择药品。",
|
|
7558
|
+
"dosage": "请填写用法用量。",
|
|
7559
|
+
"medicationLine": "药品 {{number}}:请选择药品。",
|
|
7560
|
+
"dosageLine": "药品 {{number}}:请填写用法用量。",
|
|
7561
|
+
"submit": "处方未保存,请重试。"
|
|
7562
|
+
}
|
|
7563
|
+
},
|
|
7564
|
+
"sheet": {
|
|
7565
|
+
"title": "医疗处方",
|
|
7566
|
+
"treatment": "治疗",
|
|
7567
|
+
"carePlan": "诊疗计划",
|
|
7568
|
+
"patient": "患者",
|
|
7569
|
+
"medications": "药品",
|
|
7570
|
+
"actions": "处方操作",
|
|
7571
|
+
"print": "打印",
|
|
7572
|
+
"downloadPdf": "下载 PDF",
|
|
7573
|
+
"sendEmail": "通过电子邮件发送",
|
|
7574
|
+
"sendWhatsApp": "通过 WhatsApp 发送",
|
|
7575
|
+
"moreActions": "更多操作",
|
|
7576
|
+
"shareActions": "打印和分享",
|
|
7577
|
+
"number": "处方编号",
|
|
7578
|
+
"sentAt": "发送时间",
|
|
7579
|
+
"sendingTitle": "正在发送处方",
|
|
7580
|
+
"sendFailedTitle": "处方未发送",
|
|
7581
|
+
"sendFailedBody": "请重新发送。发送成功前,无法打印或分享。",
|
|
7582
|
+
"resend": "重新发送",
|
|
7583
|
+
"sendSms": "通过短信发送"
|
|
7584
|
+
},
|
|
7585
|
+
"history": {
|
|
7586
|
+
"caption": "处方",
|
|
7587
|
+
"date": "日期",
|
|
7588
|
+
"link": "关联到",
|
|
7589
|
+
"medications": "药品",
|
|
7590
|
+
"prescriber": "处方医生",
|
|
7591
|
+
"actions": "操作",
|
|
7592
|
+
"open": "打开",
|
|
7593
|
+
"reprint": "重新打印",
|
|
7594
|
+
"notLinked": "未关联",
|
|
7595
|
+
"rowLabel": "{{date}} 的处方",
|
|
7596
|
+
"emptyTitle": "暂无处方",
|
|
7597
|
+
"emptyBody": "此患者已保存的处方会显示在这里。",
|
|
7598
|
+
"errorTitle": "处方加载失败",
|
|
7599
|
+
"patient": "患者",
|
|
7600
|
+
"number": "编号",
|
|
7601
|
+
"status": "状态",
|
|
7602
|
+
"linkKind": "关联类型",
|
|
7603
|
+
"specialty": "专科"
|
|
7604
|
+
},
|
|
7605
|
+
"status": {
|
|
7606
|
+
"label": "状态",
|
|
7607
|
+
"sent": "已发送",
|
|
7608
|
+
"sending": "发送中",
|
|
7609
|
+
"failed": "未发送"
|
|
7610
|
+
}
|
|
7611
|
+
},
|
|
7612
|
+
"syncTray": {
|
|
7613
|
+
"label": "同步状态",
|
|
7614
|
+
"labelWithFailures": "同步状态。失败:{{count}}",
|
|
7615
|
+
"title": "同步状态",
|
|
7616
|
+
"status": {
|
|
7617
|
+
"sent": "已发送",
|
|
7618
|
+
"pending": "发送中",
|
|
7619
|
+
"failed": "失败",
|
|
7620
|
+
"scheduled": "已计划"
|
|
7621
|
+
},
|
|
7622
|
+
"lastSent": "上次发送",
|
|
7623
|
+
"nextDue": "下次截止",
|
|
7624
|
+
"neverSent": "尚未发送任何内容",
|
|
7625
|
+
"empty": "暂无内容可显示",
|
|
7626
|
+
"retry": "重试",
|
|
7627
|
+
"retryLabel": "重试:{{title}}",
|
|
7628
|
+
"viewAll": "查看全部",
|
|
7629
|
+
"loading": "正在加载同步状态"
|
|
7496
7630
|
}
|
|
7497
7631
|
}
|
|
@@ -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-
|
|
5
|
+
import { S as B, B as O } from "../_chunks/calendar.sheets-B0jP2Yt0.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-
|
|
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-BgfBnjp0.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-
|
|
2
|
-
import { C, a as S, b as E } from "../../_chunks/calendar-editor-discard-host-
|
|
1
|
+
import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-GdnaPIOV.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-
|
|
4
|
+
import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-B0jP2Yt0.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 { 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-
|
|
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-
|
|
2
|
-
import { P as i, a as c, b as m } from "../../_chunks/portal-details-
|
|
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, PrescriptionLink, PrescriptionLinkKind, PrescriptionLinkOption, 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-748qDVwZ.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,34 @@
|
|
|
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
|
+
medicationError?: string;
|
|
14
|
+
dosageError?: string;
|
|
15
|
+
/** False while the error summary lists the field. */
|
|
16
|
+
announceMedicationError: boolean;
|
|
17
|
+
announceDosageError: boolean;
|
|
18
|
+
searchMedications: PrescriptionMedicationSearch;
|
|
19
|
+
codeLabel?: string;
|
|
20
|
+
catalogueStatus: 'ready' | 'loading' | 'error';
|
|
21
|
+
onCatalogueRetry?: () => void;
|
|
22
|
+
suggestions: readonly string[];
|
|
23
|
+
onMedicationChange: (medication: MedicationOption | null) => void;
|
|
24
|
+
onDosageChange: (dosage: string) => void;
|
|
25
|
+
onNotesChange: (notes: string) => void;
|
|
26
|
+
/** Structural id for the catalogue search. The free-text fields carry none: they are not registered with the agent runtime. */
|
|
27
|
+
medicationSearchId: string;
|
|
28
|
+
medicationRef: Ref<MedicationSearchHandle>;
|
|
29
|
+
dosageInputRef: Ref<HTMLInputElement>;
|
|
30
|
+
/** A suggestion chip was chosen: the parent writes it, then moves focus. */
|
|
31
|
+
onSuggestionChosen: (text: string) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function PrescriptionComposerItem({ index, item, medication, medicationFieldId, dosageFieldId, medicationError, dosageError, announceMedicationError, announceDosageError, searchMedications, codeLabel, catalogueStatus, onCatalogueRetry, suggestions, onMedicationChange, onDosageChange, onNotesChange, medicationSearchId, medicationRef, dosageInputRef, onSuggestionChosen, }: PrescriptionComposerItemProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=prescription-composer-item.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type MedicationOption, type PrescriptionDraft, type PrescriptionItem, type PrescriptionLink, type PrescriptionLinkOption, 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 and care plans of the CHOSEN patient. The host updates it
|
|
11
|
+
* after `onPatientChange`. With `requireLink` true (the default), a patient
|
|
12
|
+
* with none cannot be saved: pass `requireLink={false}` when a prescription
|
|
13
|
+
* may stand alone.
|
|
14
|
+
*/
|
|
15
|
+
linkOptions?: readonly PrescriptionLinkOption[];
|
|
16
|
+
/** People allowed to prescribe. */
|
|
17
|
+
prescribers: readonly PrescriptionPrescriber[];
|
|
18
|
+
/**
|
|
19
|
+
* Preselected when the signed-in user may prescribe. Omit it otherwise: the
|
|
20
|
+
* field starts empty and is required. It is applied once: at mount if the id
|
|
21
|
+
* is in `prescribers`, else the first time it appears there (a list that
|
|
22
|
+
* arrives late), and only while the prescriber is still empty and nobody has
|
|
23
|
+
* chosen one. Uncontrolled, it sets the draft's prescriber; controlled, it
|
|
24
|
+
* calls `onChange` once with the preselection and never overrides a
|
|
25
|
+
* prescriber already in `value`.
|
|
26
|
+
*/
|
|
27
|
+
defaultPrescriberId?: string;
|
|
28
|
+
searchMedications: PrescriptionMedicationSearch;
|
|
29
|
+
/** Resolves a medication id the composer has not seen in a search (a draft passed in through `value`). */
|
|
30
|
+
resolveMedication?: (id: string) => MedicationOption | undefined;
|
|
31
|
+
/** Host dosage suggestions for a chosen medication. The kit ships none. At most five are shown. */
|
|
32
|
+
suggestDosages?: (medication: MedicationOption) => readonly string[];
|
|
33
|
+
/** Label printed before a medication code, for example "AIC". */
|
|
34
|
+
codeLabel?: string;
|
|
35
|
+
/** State of the medication catalogue, passed to every MedicationSearch. Default 'ready'. */
|
|
36
|
+
catalogueStatus?: 'ready' | 'loading' | 'error';
|
|
37
|
+
onCatalogueRetry?: () => void;
|
|
38
|
+
/** Controlled draft, or uncontrolled with `defaultValue`. */
|
|
39
|
+
value?: PrescriptionDraft;
|
|
40
|
+
defaultValue?: PrescriptionDraft;
|
|
41
|
+
onChange?: (draft: PrescriptionDraft) => void;
|
|
42
|
+
/** Called with a valid, normalised draft. A promise keeps the Save button loading until it settles; a rejection shows the save error. */
|
|
43
|
+
onSubmit: (draft: PrescriptionDraft) => Promise<PrescriptionRecord | void> | PrescriptionRecord | void;
|
|
44
|
+
onPatientChange?: (patientId: string) => void;
|
|
45
|
+
/** A treatment or care plan must be chosen. Default true. */
|
|
46
|
+
requireLink?: boolean;
|
|
47
|
+
/** Whole-form loading state (skeleton). */
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
/** A host error to show above the Save button, already translated. */
|
|
50
|
+
error?: string;
|
|
51
|
+
/** Masks the patient's name, fiscal code and date of birth. */
|
|
52
|
+
privacyMode?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Fix the patient, for a form opened from inside a patient's record. When
|
|
55
|
+
* true and a patient is set (through `value` or `defaultValue`, and found in
|
|
56
|
+
* `patients` or already seen in a search), no picker is shown: the details
|
|
57
|
+
* block shows, and the UI cannot change or clear the patient.
|
|
58
|
+
* `handle.setPatient` still works. When true and no patient is set, the
|
|
59
|
+
* normal picker shows. Default false.
|
|
60
|
+
*/
|
|
61
|
+
lockPatient?: boolean;
|
|
62
|
+
/** Text of the submit button, already translated. Default "Save prescription". A host that sends on save passes, say, "Send to Sistema TS". */
|
|
63
|
+
submitLabel?: string;
|
|
64
|
+
id?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface PrescriptionComposerHandle {
|
|
67
|
+
/**
|
|
68
|
+
* The draft as the composer holds it. In controlled mode it can be ahead of
|
|
69
|
+
* your `value` for a moment: it includes an edit your `onChange` has not
|
|
70
|
+
* been given back yet. The same goes for what `submit()` sends.
|
|
71
|
+
*/
|
|
72
|
+
getDraft(): PrescriptionDraft;
|
|
73
|
+
setPatient(patientId: string): void;
|
|
74
|
+
setPrescriber(prescriberId: string): void;
|
|
75
|
+
setLink(link: PrescriptionLink | null): void;
|
|
76
|
+
/** Appends a line (blank when no argument) and returns its index. */
|
|
77
|
+
addItem(item?: Partial<PrescriptionItem>): number;
|
|
78
|
+
updateItem(index: number, patch: Partial<PrescriptionItem>): void;
|
|
79
|
+
removeItem(index: number): void;
|
|
80
|
+
/** Runs the rules and shows the errors, without saving. */
|
|
81
|
+
validate(): PrescriptionDraftErrors;
|
|
82
|
+
/** Same as pressing Save. Resolves to the record the host returned, or undefined when validation refused the draft. */
|
|
83
|
+
submit(): Promise<PrescriptionRecord | undefined>;
|
|
84
|
+
reset(): void;
|
|
85
|
+
/** Moves focus to the form's heading, for use after a change of view. */
|
|
86
|
+
focusTitle(): void;
|
|
87
|
+
}
|
|
88
|
+
export declare const PrescriptionComposer: import("react").ForwardRefExoticComponent<PrescriptionComposerProps & import("react").RefAttributes<PrescriptionComposerHandle>>;
|
|
89
|
+
//# 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
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { PrescriptionRecord } from './prescription-types';
|
|
3
|
+
export type PrescriptionSheetAction = 'resend' | 'print' | 'downloadPdf' | 'sendEmail' | 'sendSms' | 'sendWhatsApp';
|
|
4
|
+
type ActionHandler = (record: PrescriptionRecord) => void | Promise<void>;
|
|
5
|
+
export interface PrescriptionSheetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
6
|
+
record: PrescriptionRecord;
|
|
7
|
+
/** Letterhead slot, passed to PrintSheet's header. The kit ships no practice data. */
|
|
8
|
+
practiceHeader?: ReactNode;
|
|
9
|
+
/** Paper size. Default 'a4'. */
|
|
10
|
+
size?: 'a4' | 'a5';
|
|
11
|
+
/** 'compact' tightens the sheet for print. Default 'default'. */
|
|
12
|
+
density?: 'default' | 'compact';
|
|
13
|
+
/** Label printed before a medication code, for example "AIC". */
|
|
14
|
+
codeLabel?: string;
|
|
15
|
+
/** Masks the patient's identity. The sheet prints exactly what it shows. */
|
|
16
|
+
privacyMode?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Print only this sheet when the user prints from the browser itself
|
|
19
|
+
* (Ctrl or Cmd+P). Off by default, so other prints on the page are not taken
|
|
20
|
+
* over. The Print button and `handle.print()` always print only the sheet.
|
|
21
|
+
*/
|
|
22
|
+
isolateBrowserPrint?: boolean;
|
|
23
|
+
/** Replaces the label of the prescription number line, for example "NRBE". Default "Prescription number". Already translated. */
|
|
24
|
+
numberLabel?: string;
|
|
25
|
+
/** Each share button renders ONLY when its callback is passed. */
|
|
26
|
+
/**
|
|
27
|
+
* Given: a Print button. It prints this sheet through PrintSheet (the
|
|
28
|
+
* browser print dialog, only the sheet), then calls `onPrint(record)`.
|
|
29
|
+
*/
|
|
30
|
+
onPrint?: ActionHandler;
|
|
31
|
+
onDownloadPdf?: ActionHandler;
|
|
32
|
+
onSendEmail?: ActionHandler;
|
|
33
|
+
onSendSms?: ActionHandler;
|
|
34
|
+
onSendWhatsApp?: ActionHandler;
|
|
35
|
+
/**
|
|
36
|
+
* Given: a failed send shows "Send again". A promise puts the button in its
|
|
37
|
+
* loading state until it settles. The host sends and passes the updated
|
|
38
|
+
* record.
|
|
39
|
+
*/
|
|
40
|
+
onResend?: ActionHandler;
|
|
41
|
+
id?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PrescriptionSheetHandle {
|
|
44
|
+
/** Prints only the sheet. Works whether or not `onPrint` is passed. */
|
|
45
|
+
print(): void;
|
|
46
|
+
getRecordId(): string;
|
|
47
|
+
/** Moves focus to the sheet's title, after a change of view. */
|
|
48
|
+
focusTitle(): void;
|
|
49
|
+
}
|
|
50
|
+
export declare const PrescriptionSheet: import("react").ForwardRefExoticComponent<PrescriptionSheetProps & import("react").RefAttributes<PrescriptionSheetHandle>>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=prescription-sheet.d.ts.map
|