@alfadocs/ui-kit 1.145.0 → 1.146.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/prescription-history-CYCg6nxp.js +1772 -0
- package/dist/_chunks/registry-connection-panel-BEAkwivy.js +503 -0
- package/dist/agent-catalog.json +115 -1
- package/dist/agent-i18n/en.json +12 -0
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/medication.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/registry-connection-panel/index.d.ts +3 -0
- package/dist/components/registry-connection-panel/index.js +5 -0
- package/dist/components/registry-connection-panel/registry-connection-panel.agent.d.ts +4 -0
- package/dist/components/registry-connection-panel/registry-connection-panel.d.ts +67 -0
- package/dist/i18n/locales/ar.d.ts +30 -0
- package/dist/i18n/locales/ar.js +31 -1
- package/dist/i18n/locales/de.d.ts +30 -0
- package/dist/i18n/locales/de.js +31 -1
- package/dist/i18n/locales/el.d.ts +30 -0
- package/dist/i18n/locales/el.js +31 -1
- package/dist/i18n/locales/en.d.ts +30 -0
- package/dist/i18n/locales/en.js +31 -1
- package/dist/i18n/locales/es.d.ts +30 -0
- package/dist/i18n/locales/es.js +31 -1
- package/dist/i18n/locales/fr.d.ts +30 -0
- package/dist/i18n/locales/fr.js +31 -1
- package/dist/i18n/locales/hi.d.ts +30 -0
- package/dist/i18n/locales/hi.js +31 -1
- package/dist/i18n/locales/it.d.ts +30 -0
- package/dist/i18n/locales/it.js +31 -1
- package/dist/i18n/locales/ja.d.ts +30 -0
- package/dist/i18n/locales/ja.js +31 -1
- package/dist/i18n/locales/nl.d.ts +30 -0
- package/dist/i18n/locales/nl.js +31 -1
- package/dist/i18n/locales/pl.d.ts +30 -0
- package/dist/i18n/locales/pl.js +31 -1
- package/dist/i18n/locales/pt.d.ts +30 -0
- package/dist/i18n/locales/pt.js +31 -1
- package/dist/i18n/locales/ro.d.ts +30 -0
- package/dist/i18n/locales/ro.js +31 -1
- package/dist/i18n/locales/ru.d.ts +30 -0
- package/dist/i18n/locales/ru.js +31 -1
- package/dist/i18n/locales/sq.d.ts +30 -0
- package/dist/i18n/locales/sq.js +31 -1
- package/dist/i18n/locales/sv.d.ts +30 -0
- package/dist/i18n/locales/sv.js +31 -1
- package/dist/i18n/locales/tr.d.ts +30 -0
- package/dist/i18n/locales/tr.js +31 -1
- package/dist/i18n/locales/zh.d.ts +30 -0
- package/dist/i18n/locales/zh.js +31 -1
- package/dist/index.js +859 -857
- package/dist/locales/ar.json +31 -1
- package/dist/locales/de.json +31 -1
- package/dist/locales/el.json +31 -1
- package/dist/locales/en.json +31 -1
- package/dist/locales/es.json +31 -1
- package/dist/locales/fr.json +31 -1
- package/dist/locales/hi.json +31 -1
- package/dist/locales/it.json +31 -1
- package/dist/locales/ja.json +31 -1
- package/dist/locales/nl.json +31 -1
- package/dist/locales/pl.json +31 -1
- package/dist/locales/pt.json +31 -1
- package/dist/locales/ro.json +31 -1
- package/dist/locales/ru.json +31 -1
- package/dist/locales/sq.json +31 -1
- package/dist/locales/sv.json +31 -1
- package/dist/locales/tr.json +31 -1
- package/dist/locales/zh.json +31 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-sheet.d.ts +7 -1
- package/dist/patterns/prescription/prescription-validation.d.ts +7 -3
- package/package.json +5 -1
- package/dist/_chunks/prescription-history-CD3e3U3I.js +0 -1719
package/dist/locales/ro.json
CHANGED
|
@@ -5433,6 +5433,34 @@
|
|
|
5433
5433
|
"regenerate": "Regenerează",
|
|
5434
5434
|
"disclaimer": "Nu înlocuiește judecata clinică · verificați acuratețea înainte de utilizarea clinică · BETA"
|
|
5435
5435
|
},
|
|
5436
|
+
"registryConnectionPanel": {
|
|
5437
|
+
"title": "Conexiune la {{registryName}}",
|
|
5438
|
+
"connectTitle": "Conectare la {{registryName}}",
|
|
5439
|
+
"status": {
|
|
5440
|
+
"connected": "Conectat",
|
|
5441
|
+
"connectedUntil": "Conectat până la {{time}}",
|
|
5442
|
+
"disconnected": "Neconectat",
|
|
5443
|
+
"incomplete": "Setări lipsă"
|
|
5444
|
+
},
|
|
5445
|
+
"help": {
|
|
5446
|
+
"disconnected": "Conectați-vă la {{registryName}} pentru a trimite rețete.",
|
|
5447
|
+
"incomplete": "Salvați mai întâi setările {{registryName}}, apoi conectați-vă."
|
|
5448
|
+
},
|
|
5449
|
+
"connect": "Conectează",
|
|
5450
|
+
"connectAgain": "Conectează din nou",
|
|
5451
|
+
"settings": "Setări",
|
|
5452
|
+
"save": "Salvează setările",
|
|
5453
|
+
"secretStored": "O valoare este salvată. Lăsați câmpul gol pentru a o păstra.",
|
|
5454
|
+
"choose": "Alegeți o opțiune",
|
|
5455
|
+
"back": "Înapoi la setări",
|
|
5456
|
+
"codeLabel": "Cod",
|
|
5457
|
+
"sendCode": "Trimite-mi codul",
|
|
5458
|
+
"sendCodeAgain": "Trimite codul din nou",
|
|
5459
|
+
"errors": {
|
|
5460
|
+
"required": "Completați acest câmp.",
|
|
5461
|
+
"codeRequired": "Introduceți codul."
|
|
5462
|
+
}
|
|
5463
|
+
},
|
|
5436
5464
|
"notesPanel": {
|
|
5437
5465
|
"title": "Note",
|
|
5438
5466
|
"placeholder": "Adaugă o notă…",
|
|
@@ -7622,7 +7650,8 @@
|
|
|
7622
7650
|
"quantity": "Introduceți numărul de cutii.",
|
|
7623
7651
|
"quantityLine": "Medicamentul {{number}}: introduceți numărul de cutii.",
|
|
7624
7652
|
"quantityInvalid": "Introduceți un număr întreg de cutii, 1 sau mai mult.",
|
|
7625
|
-
"quantityInvalidLine": "Medicamentul {{number}}: introduceți un număr întreg de cutii, 1 sau mai mult."
|
|
7653
|
+
"quantityInvalidLine": "Medicamentul {{number}}: introduceți un număr întreg de cutii, 1 sau mai mult.",
|
|
7654
|
+
"quantityMax": "Numărul maxim de cutii permis pentru acest medicament este {{max}}."
|
|
7626
7655
|
},
|
|
7627
7656
|
"treatment": "Tratament",
|
|
7628
7657
|
"treatmentPlaceholder": "Alege un tratament",
|
|
@@ -7653,6 +7682,7 @@
|
|
|
7653
7682
|
"sendFailedTitle": "Rețeta nu a fost trimisă",
|
|
7654
7683
|
"sendFailedBody": "Trimiteți-o din nou. Până când este trimisă, nu poate fi tipărită sau partajată.",
|
|
7655
7684
|
"resend": "Trimite din nou",
|
|
7685
|
+
"edit": "Editează",
|
|
7656
7686
|
"sendSms": "Trimite prin SMS",
|
|
7657
7687
|
"pin": "PIN",
|
|
7658
7688
|
"prescriber": "Medic prescriptor",
|
package/dist/locales/ru.json
CHANGED
|
@@ -5436,6 +5436,34 @@
|
|
|
5436
5436
|
"regenerate": "Сгенерировать заново",
|
|
5437
5437
|
"disclaimer": "Не заменяет клиническую оценку · проверьте точность перед клиническим использованием · BETA"
|
|
5438
5438
|
},
|
|
5439
|
+
"registryConnectionPanel": {
|
|
5440
|
+
"title": "Подключение к {{registryName}}",
|
|
5441
|
+
"connectTitle": "Подключиться к {{registryName}}",
|
|
5442
|
+
"status": {
|
|
5443
|
+
"connected": "Подключено",
|
|
5444
|
+
"connectedUntil": "Подключено до {{time}}",
|
|
5445
|
+
"disconnected": "Не подключено",
|
|
5446
|
+
"incomplete": "Настройки не заполнены"
|
|
5447
|
+
},
|
|
5448
|
+
"help": {
|
|
5449
|
+
"disconnected": "Подключитесь к {{registryName}}, чтобы отправлять рецепты.",
|
|
5450
|
+
"incomplete": "Сначала сохраните настройки {{registryName}}, затем подключитесь."
|
|
5451
|
+
},
|
|
5452
|
+
"connect": "Подключиться",
|
|
5453
|
+
"connectAgain": "Подключиться снова",
|
|
5454
|
+
"settings": "Настройки",
|
|
5455
|
+
"save": "Сохранить настройки",
|
|
5456
|
+
"secretStored": "Значение сохранено. Оставьте поле пустым, чтобы сохранить его.",
|
|
5457
|
+
"choose": "Выберите вариант",
|
|
5458
|
+
"back": "Назад к настройкам",
|
|
5459
|
+
"codeLabel": "Код",
|
|
5460
|
+
"sendCode": "Отправить мне код",
|
|
5461
|
+
"sendCodeAgain": "Отправить код снова",
|
|
5462
|
+
"errors": {
|
|
5463
|
+
"required": "Заполните это поле.",
|
|
5464
|
+
"codeRequired": "Введите код."
|
|
5465
|
+
}
|
|
5466
|
+
},
|
|
5439
5467
|
"notesPanel": {
|
|
5440
5468
|
"title": "Заметки",
|
|
5441
5469
|
"placeholder": "Добавить заметку…",
|
|
@@ -7625,7 +7653,8 @@
|
|
|
7625
7653
|
"quantity": "Укажите количество упаковок.",
|
|
7626
7654
|
"quantityLine": "Препарат {{number}}: укажите количество упаковок.",
|
|
7627
7655
|
"quantityInvalid": "Укажите целое число упаковок, 1 или больше.",
|
|
7628
|
-
"quantityInvalidLine": "Препарат {{number}}: укажите целое число упаковок, 1 или больше."
|
|
7656
|
+
"quantityInvalidLine": "Препарат {{number}}: укажите целое число упаковок, 1 или больше.",
|
|
7657
|
+
"quantityMax": "Максимально допустимое количество упаковок этого препарата: {{max}}."
|
|
7629
7658
|
},
|
|
7630
7659
|
"treatment": "Услуга",
|
|
7631
7660
|
"treatmentPlaceholder": "Выберите услугу",
|
|
@@ -7656,6 +7685,7 @@
|
|
|
7656
7685
|
"sendFailedTitle": "Рецепт не отправлен",
|
|
7657
7686
|
"sendFailedBody": "Отправьте его ещё раз. Пока рецепт не отправлен, его нельзя напечатать или передать.",
|
|
7658
7687
|
"resend": "Отправить снова",
|
|
7688
|
+
"edit": "Изменить",
|
|
7659
7689
|
"sendSms": "Отправить по SMS",
|
|
7660
7690
|
"pin": "PIN",
|
|
7661
7691
|
"prescriber": "Врач",
|
package/dist/locales/sq.json
CHANGED
|
@@ -5430,6 +5430,34 @@
|
|
|
5430
5430
|
"regenerate": "Rigjenero",
|
|
5431
5431
|
"disclaimer": "Nuk zëvendëson gjykimin klinik · verifikoni saktësinë para përdorimit klinik · BETA"
|
|
5432
5432
|
},
|
|
5433
|
+
"registryConnectionPanel": {
|
|
5434
|
+
"title": "Lidhja me {{registryName}}",
|
|
5435
|
+
"connectTitle": "Lidhuni me {{registryName}}",
|
|
5436
|
+
"status": {
|
|
5437
|
+
"connected": "I lidhur",
|
|
5438
|
+
"connectedUntil": "I lidhur deri në {{time}}",
|
|
5439
|
+
"disconnected": "Nuk është i lidhur",
|
|
5440
|
+
"incomplete": "Mungojnë cilësimet"
|
|
5441
|
+
},
|
|
5442
|
+
"help": {
|
|
5443
|
+
"disconnected": "Lidhuni me {{registryName}} për të dërguar receta.",
|
|
5444
|
+
"incomplete": "Ruani së pari cilësimet e {{registryName}}, pastaj lidhuni."
|
|
5445
|
+
},
|
|
5446
|
+
"connect": "Lidh",
|
|
5447
|
+
"connectAgain": "Lidh përsëri",
|
|
5448
|
+
"settings": "Cilësimet",
|
|
5449
|
+
"save": "Ruaj cilësimet",
|
|
5450
|
+
"secretStored": "Një vlerë është ruajtur. Lëreni bosh që ta mbani.",
|
|
5451
|
+
"choose": "Zgjidhni një opsion",
|
|
5452
|
+
"back": "Kthehu te cilësimet",
|
|
5453
|
+
"codeLabel": "Kodi",
|
|
5454
|
+
"sendCode": "Më dërgo kodin",
|
|
5455
|
+
"sendCodeAgain": "Dërgo kodin përsëri",
|
|
5456
|
+
"errors": {
|
|
5457
|
+
"required": "Plotësoni këtë fushë.",
|
|
5458
|
+
"codeRequired": "Shkruani kodin."
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5433
5461
|
"notesPanel": {
|
|
5434
5462
|
"title": "Shënime",
|
|
5435
5463
|
"placeholder": "Shto një shënim…",
|
|
@@ -7610,7 +7638,8 @@
|
|
|
7610
7638
|
"quantity": "Shkruani numrin e kutive.",
|
|
7611
7639
|
"quantityLine": "Ilaçi {{number}}: shkruani numrin e kutive.",
|
|
7612
7640
|
"quantityInvalid": "Shkruani një numër të plotë kutish, 1 ose më shumë.",
|
|
7613
|
-
"quantityInvalidLine": "Ilaçi {{number}}: shkruani një numër të plotë kutish, 1 ose më shumë."
|
|
7641
|
+
"quantityInvalidLine": "Ilaçi {{number}}: shkruani një numër të plotë kutish, 1 ose më shumë.",
|
|
7642
|
+
"quantityMax": "Numri maksimal i lejuar i kutive për këtë ilaç është {{max}}."
|
|
7614
7643
|
},
|
|
7615
7644
|
"treatment": "Trajtimi",
|
|
7616
7645
|
"treatmentPlaceholder": "Zgjidhni një trajtim",
|
|
@@ -7641,6 +7670,7 @@
|
|
|
7641
7670
|
"sendFailedTitle": "Receta nuk u dërgua",
|
|
7642
7671
|
"sendFailedBody": "Dërgojeni përsëri. Derisa të dërgohet, nuk mund të printohet ose të ndahet.",
|
|
7643
7672
|
"resend": "Dërgo përsëri",
|
|
7673
|
+
"edit": "Modifiko",
|
|
7644
7674
|
"sendSms": "Dërgo me SMS",
|
|
7645
7675
|
"pin": "PIN",
|
|
7646
7676
|
"prescriber": "Mjeku përshkrues",
|
package/dist/locales/sv.json
CHANGED
|
@@ -5430,6 +5430,34 @@
|
|
|
5430
5430
|
"regenerate": "Generera igen",
|
|
5431
5431
|
"disclaimer": "Ersätter inte klinisk bedömning · verifiera noggrannheten före klinisk användning · BETA"
|
|
5432
5432
|
},
|
|
5433
|
+
"registryConnectionPanel": {
|
|
5434
|
+
"title": "Anslutning till {{registryName}}",
|
|
5435
|
+
"connectTitle": "Anslut till {{registryName}}",
|
|
5436
|
+
"status": {
|
|
5437
|
+
"connected": "Ansluten",
|
|
5438
|
+
"connectedUntil": "Ansluten till {{time}}",
|
|
5439
|
+
"disconnected": "Inte ansluten",
|
|
5440
|
+
"incomplete": "Inställningar saknas"
|
|
5441
|
+
},
|
|
5442
|
+
"help": {
|
|
5443
|
+
"disconnected": "Anslut till {{registryName}} för att skicka recept.",
|
|
5444
|
+
"incomplete": "Spara dina {{registryName}}-inställningar först och anslut sedan."
|
|
5445
|
+
},
|
|
5446
|
+
"connect": "Anslut",
|
|
5447
|
+
"connectAgain": "Anslut igen",
|
|
5448
|
+
"settings": "Inställningar",
|
|
5449
|
+
"save": "Spara inställningar",
|
|
5450
|
+
"secretStored": "Ett värde är sparat. Lämna fältet tomt för att behålla det.",
|
|
5451
|
+
"choose": "Välj ett alternativ",
|
|
5452
|
+
"back": "Tillbaka till inställningar",
|
|
5453
|
+
"codeLabel": "Kod",
|
|
5454
|
+
"sendCode": "Skicka koden till mig",
|
|
5455
|
+
"sendCodeAgain": "Skicka koden igen",
|
|
5456
|
+
"errors": {
|
|
5457
|
+
"required": "Fyll i det här fältet.",
|
|
5458
|
+
"codeRequired": "Ange koden."
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5433
5461
|
"notesPanel": {
|
|
5434
5462
|
"title": "Anteckningar",
|
|
5435
5463
|
"placeholder": "Lägg till en anteckning…",
|
|
@@ -7610,7 +7638,8 @@
|
|
|
7610
7638
|
"quantity": "Ange antal förpackningar.",
|
|
7611
7639
|
"quantityLine": "Läkemedel {{number}}: ange antal förpackningar.",
|
|
7612
7640
|
"quantityInvalid": "Ange ett helt antal förpackningar, 1 eller fler.",
|
|
7613
|
-
"quantityInvalidLine": "Läkemedel {{number}}: ange ett helt antal förpackningar, 1 eller fler."
|
|
7641
|
+
"quantityInvalidLine": "Läkemedel {{number}}: ange ett helt antal förpackningar, 1 eller fler.",
|
|
7642
|
+
"quantityMax": "Det högsta tillåtna antalet förpackningar för detta läkemedel är {{max}}."
|
|
7614
7643
|
},
|
|
7615
7644
|
"treatment": "Behandling",
|
|
7616
7645
|
"treatmentPlaceholder": "Välj en behandling",
|
|
@@ -7641,6 +7670,7 @@
|
|
|
7641
7670
|
"sendFailedTitle": "Receptet skickades inte",
|
|
7642
7671
|
"sendFailedBody": "Skicka det igen. Det går inte att skriva ut eller dela det förrän det har skickats.",
|
|
7643
7672
|
"resend": "Skicka igen",
|
|
7673
|
+
"edit": "Redigera",
|
|
7644
7674
|
"sendSms": "Skicka via SMS",
|
|
7645
7675
|
"pin": "PIN",
|
|
7646
7676
|
"prescriber": "Förskrivare",
|
package/dist/locales/tr.json
CHANGED
|
@@ -5430,6 +5430,34 @@
|
|
|
5430
5430
|
"regenerate": "Yeniden oluştur",
|
|
5431
5431
|
"disclaimer": "Klinik muhakemenin yerini tutmaz · klinik kullanımdan önce doğruluğunu teyit edin · BETA"
|
|
5432
5432
|
},
|
|
5433
|
+
"registryConnectionPanel": {
|
|
5434
|
+
"title": "{{registryName}} bağlantısı",
|
|
5435
|
+
"connectTitle": "{{registryName}} ile bağlantı kur",
|
|
5436
|
+
"status": {
|
|
5437
|
+
"connected": "Bağlı",
|
|
5438
|
+
"connectedUntil": "{{time}} saatine kadar bağlı",
|
|
5439
|
+
"disconnected": "Bağlı değil",
|
|
5440
|
+
"incomplete": "Ayarlar eksik"
|
|
5441
|
+
},
|
|
5442
|
+
"help": {
|
|
5443
|
+
"disconnected": "Reçeteleri göndermek için {{registryName}} ile bağlantı kurun.",
|
|
5444
|
+
"incomplete": "Önce {{registryName}} ayarlarınızı kaydedin, sonra bağlanın."
|
|
5445
|
+
},
|
|
5446
|
+
"connect": "Bağlan",
|
|
5447
|
+
"connectAgain": "Tekrar bağlan",
|
|
5448
|
+
"settings": "Ayarlar",
|
|
5449
|
+
"save": "Ayarları kaydet",
|
|
5450
|
+
"secretStored": "Kayıtlı bir değer var. Korumak için bu alanı boş bırakın.",
|
|
5451
|
+
"choose": "Bir seçenek seçin",
|
|
5452
|
+
"back": "Ayarlara dön",
|
|
5453
|
+
"codeLabel": "Kod",
|
|
5454
|
+
"sendCode": "Kodu bana gönder",
|
|
5455
|
+
"sendCodeAgain": "Kodu tekrar gönder",
|
|
5456
|
+
"errors": {
|
|
5457
|
+
"required": "Bu alanı doldurun.",
|
|
5458
|
+
"codeRequired": "Kodu girin."
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5433
5461
|
"notesPanel": {
|
|
5434
5462
|
"title": "Notlar",
|
|
5435
5463
|
"placeholder": "Not ekleyin…",
|
|
@@ -7610,7 +7638,8 @@
|
|
|
7610
7638
|
"quantity": "Kutu sayısını girin.",
|
|
7611
7639
|
"quantityLine": "İlaç {{number}}: kutu sayısını girin.",
|
|
7612
7640
|
"quantityInvalid": "Kutu sayısı olarak 1 veya daha büyük bir tam sayı girin.",
|
|
7613
|
-
"quantityInvalidLine": "İlaç {{number}}: kutu sayısı olarak 1 veya daha büyük bir tam sayı girin."
|
|
7641
|
+
"quantityInvalidLine": "İlaç {{number}}: kutu sayısı olarak 1 veya daha büyük bir tam sayı girin.",
|
|
7642
|
+
"quantityMax": "Bu ilaç için en fazla {{max}} kutuya izin verilir."
|
|
7614
7643
|
},
|
|
7615
7644
|
"treatment": "Tedavi",
|
|
7616
7645
|
"treatmentPlaceholder": "Bir tedavi seçin",
|
|
@@ -7641,6 +7670,7 @@
|
|
|
7641
7670
|
"sendFailedTitle": "Reçete gönderilmedi",
|
|
7642
7671
|
"sendFailedBody": "Yeniden gönderin. Gönderilene kadar yazdırılamaz veya paylaşılamaz.",
|
|
7643
7672
|
"resend": "Tekrar gönder",
|
|
7673
|
+
"edit": "Düzenle",
|
|
7644
7674
|
"sendSms": "SMS ile gönder",
|
|
7645
7675
|
"pin": "PIN",
|
|
7646
7676
|
"prescriber": "Reçete yazan hekim",
|
package/dist/locales/zh.json
CHANGED
|
@@ -5430,6 +5430,34 @@
|
|
|
5430
5430
|
"regenerate": "重新生成",
|
|
5431
5431
|
"disclaimer": "不能替代临床判断 · 临床使用前请核实准确性 · BETA"
|
|
5432
5432
|
},
|
|
5433
|
+
"registryConnectionPanel": {
|
|
5434
|
+
"title": "与 {{registryName}} 的连接",
|
|
5435
|
+
"connectTitle": "连接到 {{registryName}}",
|
|
5436
|
+
"status": {
|
|
5437
|
+
"connected": "已连接",
|
|
5438
|
+
"connectedUntil": "已连接至 {{time}}",
|
|
5439
|
+
"disconnected": "未连接",
|
|
5440
|
+
"incomplete": "缺少设置"
|
|
5441
|
+
},
|
|
5442
|
+
"help": {
|
|
5443
|
+
"disconnected": "连接到 {{registryName}} 后即可发送处方。",
|
|
5444
|
+
"incomplete": "请先保存 {{registryName}} 设置,然后再连接。"
|
|
5445
|
+
},
|
|
5446
|
+
"connect": "连接",
|
|
5447
|
+
"connectAgain": "重新连接",
|
|
5448
|
+
"settings": "设置",
|
|
5449
|
+
"save": "保存设置",
|
|
5450
|
+
"secretStored": "已保存一个值。留空则保持不变。",
|
|
5451
|
+
"choose": "请选择一个选项",
|
|
5452
|
+
"back": "返回设置",
|
|
5453
|
+
"codeLabel": "验证码",
|
|
5454
|
+
"sendCode": "给我发送验证码",
|
|
5455
|
+
"sendCodeAgain": "重新发送验证码",
|
|
5456
|
+
"errors": {
|
|
5457
|
+
"required": "请填写此字段。",
|
|
5458
|
+
"codeRequired": "请输入验证码。"
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5433
5461
|
"notesPanel": {
|
|
5434
5462
|
"title": "备注",
|
|
5435
5463
|
"placeholder": "添加备注…",
|
|
@@ -7610,7 +7638,8 @@
|
|
|
7610
7638
|
"quantity": "请填写盒数。",
|
|
7611
7639
|
"quantityLine": "药品 {{number}}:请填写盒数。",
|
|
7612
7640
|
"quantityInvalid": "请填写不小于 1 的整数盒数。",
|
|
7613
|
-
"quantityInvalidLine": "药品 {{number}}:请填写不小于 1 的整数盒数。"
|
|
7641
|
+
"quantityInvalidLine": "药品 {{number}}:请填写不小于 1 的整数盒数。",
|
|
7642
|
+
"quantityMax": "此药品最多可开 {{max}} 盒。"
|
|
7614
7643
|
},
|
|
7615
7644
|
"treatment": "治疗",
|
|
7616
7645
|
"treatmentPlaceholder": "选择治疗",
|
|
@@ -7641,6 +7670,7 @@
|
|
|
7641
7670
|
"sendFailedTitle": "处方未发送",
|
|
7642
7671
|
"sendFailedBody": "请重新发送。发送成功前,无法打印或分享。",
|
|
7643
7672
|
"resend": "重新发送",
|
|
7673
|
+
"edit": "编辑",
|
|
7644
7674
|
"sendSms": "通过短信发送",
|
|
7645
7675
|
"pin": "PIN",
|
|
7646
7676
|
"prescriber": "处方医生",
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CYCg6nxp.js";
|
|
2
2
|
export {
|
|
3
3
|
s as EMPTY_PRESCRIPTION_ITEM,
|
|
4
4
|
a as PrescriptionComposer,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { PrescriptionRecord } from './prescription-types';
|
|
3
|
-
export type PrescriptionSheetAction = 'resend' | 'print' | 'downloadPdf' | 'sendEmail' | 'sendSms' | 'sendWhatsApp';
|
|
3
|
+
export type PrescriptionSheetAction = 'resend' | 'edit' | 'print' | 'downloadPdf' | 'sendEmail' | 'sendSms' | 'sendWhatsApp';
|
|
4
4
|
type ActionHandler = (record: PrescriptionRecord) => void | Promise<void>;
|
|
5
5
|
export interface PrescriptionSheetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
6
6
|
record: PrescriptionRecord;
|
|
@@ -52,6 +52,12 @@ export interface PrescriptionSheetProps extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
52
52
|
* record.
|
|
53
53
|
*/
|
|
54
54
|
onResend?: ActionHandler;
|
|
55
|
+
/**
|
|
56
|
+
* Given: a failed send also shows "Edit", beside "Send again". The host
|
|
57
|
+
* reopens the prescription in the composer, prefilled, and sends it again.
|
|
58
|
+
* Without it nothing changes. A promise puts the button in its loading state.
|
|
59
|
+
*/
|
|
60
|
+
onEdit?: ActionHandler;
|
|
55
61
|
id?: string;
|
|
56
62
|
}
|
|
57
63
|
export interface PrescriptionSheetHandle {
|
|
@@ -2,11 +2,13 @@ import type { PrescriptionDraft, PrescriptionItem, PrescriptionTreatmentOption }
|
|
|
2
2
|
/** Why a field was refused. `invalid` is a treatment that is not one of the
|
|
3
3
|
* patient's treatments. */
|
|
4
4
|
export type PrescriptionFieldError = 'required' | 'invalid';
|
|
5
|
+
/** A quantity error also covers `tooMany`: more packs than the medication's `maxPacks`. */
|
|
6
|
+
export type PrescriptionQuantityError = PrescriptionFieldError | 'tooMany';
|
|
5
7
|
export interface PrescriptionItemErrors {
|
|
6
8
|
medicationId?: 'required';
|
|
7
9
|
dosage?: 'required';
|
|
8
|
-
/** `required`: empty or not a number. `invalid`: below 1 or not whole. */
|
|
9
|
-
quantity?:
|
|
10
|
+
/** `required`: empty or not a number. `invalid`: below 1 or not whole. `tooMany`: above the medication's `maxPacks`. */
|
|
11
|
+
quantity?: PrescriptionQuantityError;
|
|
10
12
|
}
|
|
11
13
|
export interface PrescriptionDraftErrors {
|
|
12
14
|
patientId?: 'required';
|
|
@@ -27,6 +29,8 @@ export interface PrescriptionValidationOptions {
|
|
|
27
29
|
* differs from the draft's `patientId`, a non-empty treatment is `invalid`.
|
|
28
30
|
*/
|
|
29
31
|
treatmentOptionsPatientId?: string;
|
|
32
|
+
/** The most packs of a medication, by catalogue id (its `maxPacks`). A line with more packs is `tooMany`. */
|
|
33
|
+
maxPacksFor?: (medicationId: string) => number | undefined;
|
|
30
34
|
}
|
|
31
35
|
/** True for a line the user has not touched: nothing to validate or save. */
|
|
32
36
|
export declare function isBlankPrescriptionItem(item: PrescriptionItem): boolean;
|
|
@@ -35,7 +39,7 @@ export declare function isBlankPrescriptionItem(item: PrescriptionItem): boolean
|
|
|
35
39
|
*
|
|
36
40
|
* Rules: a patient, a prescriber, a treatment of the patient and
|
|
37
41
|
* at least one medication line. Every line that is not blank needs a
|
|
38
|
-
* medication, a dosage and a whole number of packs of 1 or more. Blank lines are ignored, except that a draft of
|
|
42
|
+
* medication, a dosage and a whole number of packs of 1 or more, and no more than the medication's `maxPacks` when it has one. Blank lines are ignored, except that a draft of
|
|
39
43
|
* only blank lines has no medication at all, and its first line is marked.
|
|
40
44
|
*/
|
|
41
45
|
export declare function validatePrescriptionDraft(draft: PrescriptionDraft, options?: PrescriptionValidationOptions): PrescriptionDraftErrors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.146.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -573,6 +573,10 @@
|
|
|
573
573
|
"types": "./dist/components/notes-panel/index.d.ts",
|
|
574
574
|
"import": "./dist/components/notes-panel/index.js"
|
|
575
575
|
},
|
|
576
|
+
"./registry-connection-panel": {
|
|
577
|
+
"types": "./dist/components/registry-connection-panel/index.d.ts",
|
|
578
|
+
"import": "./dist/components/registry-connection-panel/index.js"
|
|
579
|
+
},
|
|
576
580
|
"./number-input": {
|
|
577
581
|
"types": "./dist/components/number-input/index.d.ts",
|
|
578
582
|
"import": "./dist/components/number-input/index.js"
|