@alfadocs/ui-kit 1.139.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 (130) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-BgfBnjp0.js → anamnesis-summary-rows-YJGs2uWD.js} +2 -2
  2. package/dist/_chunks/{balance-badge-cell-CRrIv2hy.js → balance-badge-cell-CRStPNDd.js} +2 -2
  3. package/dist/_chunks/{bill-line-table-DCqxhode.js → bill-line-table-DTqXdBED.js} +2 -2
  4. package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-GdnaPIOV.js → calendar-appointment-editor-dialog-BBrJlmyd.js} +4 -4
  6. package/dist/_chunks/{calendar-waiting-list-panel-CkZBAv_E.js → calendar-waiting-list-panel-Cdg9YssA.js} +2 -2
  7. package/dist/_chunks/{calendar.sheets-B0jP2Yt0.js → calendar.sheets-DbMOO7YV.js} +2 -2
  8. package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
  9. package/dist/_chunks/{data-grid-bQ6iFm10.js → data-grid-CRUSZcVT.js} +2 -2
  10. package/dist/_chunks/{default-tabs-Dm_vk6hd.js → default-tabs-CRbVCDSU.js} +3 -3
  11. package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
  12. package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
  13. package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
  14. package/dist/_chunks/{invoice-upload-list-Dz3CXHPP.js → invoice-upload-list-BR6vycF7.js} +3 -3
  15. package/dist/_chunks/{kit-extensions-BB_ksnVl.js → kit-extensions-QddOSnIq.js} +6 -6
  16. package/dist/_chunks/{link-cell-renderer-CSA0KKPe.js → link-cell-renderer-hAJplRFF.js} +2 -2
  17. package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
  18. package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
  19. package/dist/_chunks/{optical-prescription-C4jpDFOE.js → optical-prescription-GzeK_2cf.js} +2 -2
  20. package/dist/_chunks/{patient-details-DQTxSWY4.js → patient-details-D0PjzALT.js} +2 -2
  21. package/dist/_chunks/{patient-field-row-CXuWQeQJ.js → patient-field-row-DlpIModg.js} +2 -2
  22. package/dist/_chunks/{patient-summary-card-j5u7c5Us.js → patient-summary-card-BP_K7g_q.js} +2 -2
  23. package/dist/_chunks/{pregnancy-dating-C-3NLI6K.js → pregnancy-dating-a6WIg4oy.js} +2 -2
  24. package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
  25. package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
  26. package/dist/_chunks/{print-sheet-CSeqkM3_.js → print-sheet-gaxObGcm.js} +110 -100
  27. package/dist/_chunks/{toolbar-Dz_hAUIZ.js → toolbar-B7UHCMSr.js} +2 -2
  28. package/dist/_chunks/{unit-converter-CBy7S4Tl.js → unit-converter-OBhSDXee.js} +2 -2
  29. package/dist/_chunks/{use-appointment-details-read-CBSpX4DI.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
  30. package/dist/agent-catalog.json +8 -14
  31. package/dist/agent-i18n/en.json +3 -3
  32. package/dist/appointment-editor-panel/index.js +1 -1
  33. package/dist/browser-support.js +1 -1
  34. package/dist/components/appointment-details-panel/index.js +1 -1
  35. package/dist/components/bill-line-table/index.js +1 -1
  36. package/dist/components/bill-table/index.js +1 -1
  37. package/dist/components/bmi-calculator/index.js +1 -1
  38. package/dist/components/cycle-calculator/index.js +1 -1
  39. package/dist/components/data-grid/index.js +2 -2
  40. package/dist/components/data-table/index.js +1 -1
  41. package/dist/components/due-date-calculator/index.js +1 -1
  42. package/dist/components/fetal-weight/index.js +1 -1
  43. package/dist/components/hcg-doubling/index.js +1 -1
  44. package/dist/components/invoice-upload-list/index.js +1 -1
  45. package/dist/components/medication-line/index.js +1 -1
  46. package/dist/components/medication-line/medication-line.d.ts +6 -0
  47. package/dist/components/number-input/index.js +1 -1
  48. package/dist/components/optical-prescription/index.js +1 -1
  49. package/dist/components/patient-details/index.js +1 -1
  50. package/dist/components/patient-summary-card/index.js +1 -1
  51. package/dist/components/patient-table/index.js +1 -1
  52. package/dist/components/pregnancy-dating/index.js +1 -1
  53. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  54. package/dist/components/print-sheet/index.js +1 -1
  55. package/dist/components/print-sheet/print-sheet.d.ts +7 -0
  56. package/dist/components/rich-text-editor/index.js +1 -1
  57. package/dist/components/unit-converter/index.js +1 -1
  58. package/dist/core.css +1 -1
  59. package/dist/find-free-slots-panel/index.js +1 -1
  60. package/dist/host-compat.css +6 -1
  61. package/dist/i18n/locales/ar.d.ts +27 -10
  62. package/dist/i18n/locales/ar.js +32 -15
  63. package/dist/i18n/locales/de.d.ts +27 -10
  64. package/dist/i18n/locales/de.js +32 -15
  65. package/dist/i18n/locales/el.d.ts +27 -10
  66. package/dist/i18n/locales/el.js +32 -15
  67. package/dist/i18n/locales/en.d.ts +27 -10
  68. package/dist/i18n/locales/en.js +32 -15
  69. package/dist/i18n/locales/es.d.ts +27 -10
  70. package/dist/i18n/locales/es.js +32 -15
  71. package/dist/i18n/locales/fr.d.ts +27 -10
  72. package/dist/i18n/locales/fr.js +32 -15
  73. package/dist/i18n/locales/hi.d.ts +27 -10
  74. package/dist/i18n/locales/hi.js +32 -15
  75. package/dist/i18n/locales/it.d.ts +27 -10
  76. package/dist/i18n/locales/it.js +32 -15
  77. package/dist/i18n/locales/ja.d.ts +27 -10
  78. package/dist/i18n/locales/ja.js +32 -15
  79. package/dist/i18n/locales/nl.d.ts +27 -10
  80. package/dist/i18n/locales/nl.js +32 -15
  81. package/dist/i18n/locales/pl.d.ts +27 -10
  82. package/dist/i18n/locales/pl.js +32 -15
  83. package/dist/i18n/locales/pt.d.ts +27 -10
  84. package/dist/i18n/locales/pt.js +32 -15
  85. package/dist/i18n/locales/ro.d.ts +27 -10
  86. package/dist/i18n/locales/ro.js +32 -15
  87. package/dist/i18n/locales/ru.d.ts +27 -10
  88. package/dist/i18n/locales/ru.js +32 -15
  89. package/dist/i18n/locales/sq.d.ts +27 -10
  90. package/dist/i18n/locales/sq.js +32 -15
  91. package/dist/i18n/locales/sv.d.ts +27 -10
  92. package/dist/i18n/locales/sv.js +32 -15
  93. package/dist/i18n/locales/tr.d.ts +27 -10
  94. package/dist/i18n/locales/tr.js +32 -15
  95. package/dist/i18n/locales/zh.d.ts +27 -10
  96. package/dist/i18n/locales/zh.js +32 -15
  97. package/dist/index.js +27 -27
  98. package/dist/locales/ar.json +32 -15
  99. package/dist/locales/de.json +32 -15
  100. package/dist/locales/el.json +32 -15
  101. package/dist/locales/en.json +32 -15
  102. package/dist/locales/es.json +32 -15
  103. package/dist/locales/fr.json +32 -15
  104. package/dist/locales/hi.json +32 -15
  105. package/dist/locales/it.json +32 -15
  106. package/dist/locales/ja.json +32 -15
  107. package/dist/locales/nl.json +32 -15
  108. package/dist/locales/pl.json +32 -15
  109. package/dist/locales/pt.json +32 -15
  110. package/dist/locales/ro.json +32 -15
  111. package/dist/locales/ru.json +32 -15
  112. package/dist/locales/sq.json +32 -15
  113. package/dist/locales/sv.json +32 -15
  114. package/dist/locales/tr.json +32 -15
  115. package/dist/locales/zh.json +32 -15
  116. package/dist/online-bookings-panel/index.js +1 -1
  117. package/dist/patterns/anamnesis/index.js +1 -1
  118. package/dist/patterns/calendar/index.js +2 -2
  119. package/dist/patterns/prescription/index.d.ts +1 -1
  120. package/dist/patterns/prescription/index.js +1 -1
  121. package/dist/patterns/prescription/prescription-composer-item.d.ts +8 -1
  122. package/dist/patterns/prescription/prescription-composer.d.ts +14 -9
  123. package/dist/patterns/prescription/prescription-sheet.d.ts +23 -4
  124. package/dist/patterns/prescription/prescription-types.d.ts +35 -10
  125. package/dist/patterns/prescription/prescription-validation.d.ts +17 -11
  126. package/dist/tokens.css +1 -1
  127. package/dist/waiting-list-panel/index.js +2 -2
  128. package/package.json +1 -1
  129. package/dist/_chunks/medication-line-CHdlh-F7.js +0 -222
  130. package/dist/_chunks/prescription-history-748qDVwZ.js +0 -1544
@@ -7508,7 +7508,10 @@
7508
7508
  "medicationLine": {
7509
7509
  "dosage": "Dosering",
7510
7510
  "notes": "Anteckningar",
7511
- "remove": "Ta bort {{name}}"
7511
+ "remove": "Ta bort {{name}}",
7512
+ "quantity": "Förpackningar",
7513
+ "duration": "Varaktighet",
7514
+ "notSubstitutable": "Ej utbytbart"
7512
7515
  },
7513
7516
  "printSheet": {
7514
7517
  "label": "Utskrivbart dokument",
@@ -7529,11 +7532,6 @@
7529
7532
  "patientPlaceholder": "Sök på förnamn eller efternamn",
7530
7533
  "choosePatientTitle": "Välj en patient",
7531
7534
  "choosePatientBody": "Sök på förnamn eller efternamn för att påbörja ett recept.",
7532
- "link": "Kopplat till",
7533
- "linkPlaceholder": "Välj en behandling eller en vårdplan",
7534
- "linkEmpty": "Patienten har inga behandlingar eller vårdplaner.",
7535
- "treatments": "Behandlingar",
7536
- "carePlans": "Vårdplaner",
7537
7535
  "prescriber": "Förskrivare",
7538
7536
  "prescriberPlaceholder": "Välj en förskrivare",
7539
7537
  "medications": "Läkemedel",
@@ -7551,15 +7549,28 @@
7551
7549
  "errors": {
7552
7550
  "patient": "Välj en patient.",
7553
7551
  "prescriber": "Välj en förskrivare.",
7554
- "link": "Välj en behandling eller en vårdplan.",
7555
- "linkInvalid": "Välj en behandling eller en vårdplan som tillhör patienten.",
7556
7552
  "items": "Lägg till minst ett läkemedel.",
7557
7553
  "medication": "Välj ett läkemedel.",
7558
7554
  "dosage": "Ange doseringen.",
7559
7555
  "medicationLine": "Läkemedel {{number}}: välj ett läkemedel.",
7560
7556
  "dosageLine": "Läkemedel {{number}}: ange doseringen.",
7561
- "submit": "Receptet sparades inte. Försök igen."
7562
- }
7557
+ "submit": "Receptet sparades inte. Försök igen.",
7558
+ "treatment": "Välj en behandling.",
7559
+ "treatmentInvalid": "Välj en av patientens behandlingar.",
7560
+ "quantity": "Ange antal förpackningar.",
7561
+ "quantityLine": "Läkemedel {{number}}: ange antal förpackningar.",
7562
+ "quantityInvalid": "Ange ett helt antal förpackningar, 1 eller fler.",
7563
+ "quantityInvalidLine": "Läkemedel {{number}}: ange ett helt antal förpackningar, 1 eller fler."
7564
+ },
7565
+ "treatment": "Behandling",
7566
+ "treatmentPlaceholder": "Välj en behandling",
7567
+ "treatmentEmpty": "Patienten har inga behandlingar. Lägg till en behandling innan du skriver ett recept.",
7568
+ "treatmentsStandalone": "Inte i någon vårdplan",
7569
+ "carePlanGroup": "Vårdplan: {{label}}",
7570
+ "quantity": "Förpackningar",
7571
+ "duration": "Behandlingstid",
7572
+ "notSubstitutable": "Ej utbytbart",
7573
+ "notSubstitutableNeedsCode": "Välj först ett läkemedel som har en kod."
7563
7574
  },
7564
7575
  "sheet": {
7565
7576
  "title": "Läkarrecept",
@@ -7580,18 +7591,22 @@
7580
7591
  "sendFailedTitle": "Receptet skickades inte",
7581
7592
  "sendFailedBody": "Skicka det igen. Det går inte att skriva ut eller dela det förrän det har skickats.",
7582
7593
  "resend": "Skicka igen",
7583
- "sendSms": "Skicka via SMS"
7594
+ "sendSms": "Skicka via SMS",
7595
+ "pin": "PIN",
7596
+ "prescriber": "Förskrivare",
7597
+ "prescriberFiscalCode": "Skattenummer",
7598
+ "registrationNumber": "Nummer i läkarregistret",
7599
+ "summaryNote": "Sammanfattning för mottagningen. Det officiella receptet är dokumentet som registret utfärdar.",
7600
+ "prescriberName": "Namn"
7584
7601
  },
7585
7602
  "history": {
7586
7603
  "caption": "Recept",
7587
7604
  "date": "Datum",
7588
- "link": "Kopplat till",
7589
7605
  "medications": "Läkemedel",
7590
7606
  "prescriber": "Förskrivare",
7591
7607
  "actions": "Åtgärder",
7592
7608
  "open": "Öppna",
7593
7609
  "reprint": "Skriv ut igen",
7594
- "notLinked": "Inte kopplat",
7595
7610
  "rowLabel": "Recept från {{date}}",
7596
7611
  "emptyTitle": "Inga recept än",
7597
7612
  "emptyBody": "Sparade recept för den här patienten visas här.",
@@ -7599,8 +7614,10 @@
7599
7614
  "patient": "Patient",
7600
7615
  "number": "Nummer",
7601
7616
  "status": "Status",
7602
- "linkKind": "Kopplingstyp",
7603
- "specialty": "Specialitet"
7617
+ "specialty": "Specialitet",
7618
+ "treatment": "Behandling",
7619
+ "carePlan": "Vårdplan",
7620
+ "noCarePlan": "Ingen vårdplan"
7604
7621
  },
7605
7622
  "status": {
7606
7623
  "label": "Status",
@@ -7508,7 +7508,10 @@
7508
7508
  "medicationLine": {
7509
7509
  "dosage": "Dozaj",
7510
7510
  "notes": "Notlar",
7511
- "remove": "{{name}} öğesini kaldır"
7511
+ "remove": "{{name}} öğesini kaldır",
7512
+ "quantity": "Kutu sayısı",
7513
+ "duration": "Süre",
7514
+ "notSubstitutable": "Muadil verilemez"
7512
7515
  },
7513
7516
  "printSheet": {
7514
7517
  "label": "Yazdırılabilir belge",
@@ -7529,11 +7532,6 @@
7529
7532
  "patientPlaceholder": "Ada veya soyada göre ara",
7530
7533
  "choosePatientTitle": "Hasta seçin",
7531
7534
  "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
7535
  "prescriber": "Reçete yazan hekim",
7538
7536
  "prescriberPlaceholder": "Reçete yazan hekimi seçin",
7539
7537
  "medications": "İlaçlar",
@@ -7551,15 +7549,28 @@
7551
7549
  "errors": {
7552
7550
  "patient": "Hasta seçin.",
7553
7551
  "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
7552
  "items": "En az bir ilaç ekleyin.",
7557
7553
  "medication": "Bir ilaç seçin.",
7558
7554
  "dosage": "Dozajı girin.",
7559
7555
  "medicationLine": "İlaç {{number}}: bir ilaç seçin.",
7560
7556
  "dosageLine": "İlaç {{number}}: dozajı girin.",
7561
- "submit": "Reçete kaydedilmedi. Tekrar deneyin."
7562
- }
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."
7563
7574
  },
7564
7575
  "sheet": {
7565
7576
  "title": "Tıbbi reçete",
@@ -7580,18 +7591,22 @@
7580
7591
  "sendFailedTitle": "Reçete gönderilmedi",
7581
7592
  "sendFailedBody": "Yeniden gönderin. Gönderilene kadar yazdırılamaz veya paylaşılamaz.",
7582
7593
  "resend": "Tekrar gönder",
7583
- "sendSms": "SMS ile 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"
7584
7601
  },
7585
7602
  "history": {
7586
7603
  "caption": "Reçeteler",
7587
7604
  "date": "Tarih",
7588
- "link": "Bağlı kayıt",
7589
7605
  "medications": "İlaçlar",
7590
7606
  "prescriber": "Reçete yazan hekim",
7591
7607
  "actions": "İşlemler",
7592
7608
  "open": "Aç",
7593
7609
  "reprint": "Yeniden yazdır",
7594
- "notLinked": "Bağlı değil",
7595
7610
  "rowLabel": "Reçete: {{date}}",
7596
7611
  "emptyTitle": "Henüz reçete yok",
7597
7612
  "emptyBody": "Bu hastanın kaydedilen reçeteleri burada görünür.",
@@ -7599,8 +7614,10 @@
7599
7614
  "patient": "Hasta",
7600
7615
  "number": "Numara",
7601
7616
  "status": "Durum",
7602
- "linkKind": "Bağlı kayıt türü",
7603
- "specialty": "Uzmanlık alanı"
7617
+ "specialty": "Uzmanlık alanı",
7618
+ "treatment": "Tedavi",
7619
+ "carePlan": "Tedavi planı",
7620
+ "noCarePlan": "Tedavi planı yok"
7604
7621
  },
7605
7622
  "status": {
7606
7623
  "label": "Durum",
@@ -7508,7 +7508,10 @@
7508
7508
  "medicationLine": {
7509
7509
  "dosage": "用法用量",
7510
7510
  "notes": "备注",
7511
- "remove": "删除 {{name}}"
7511
+ "remove": "删除 {{name}}",
7512
+ "quantity": "盒数",
7513
+ "duration": "疗程",
7514
+ "notSubstitutable": "不可替换"
7512
7515
  },
7513
7516
  "printSheet": {
7514
7517
  "label": "可打印文档",
@@ -7529,11 +7532,6 @@
7529
7532
  "patientPlaceholder": "按姓或名搜索",
7530
7533
  "choosePatientTitle": "请选择患者",
7531
7534
  "choosePatientBody": "按姓或名搜索,开始开具处方。",
7532
- "link": "关联到",
7533
- "linkPlaceholder": "选择治疗或诊疗计划",
7534
- "linkEmpty": "该患者没有治疗或诊疗计划。",
7535
- "treatments": "治疗",
7536
- "carePlans": "诊疗计划",
7537
7535
  "prescriber": "处方医生",
7538
7536
  "prescriberPlaceholder": "选择处方医生",
7539
7537
  "medications": "药品",
@@ -7551,15 +7549,28 @@
7551
7549
  "errors": {
7552
7550
  "patient": "请选择患者。",
7553
7551
  "prescriber": "请选择处方医生。",
7554
- "link": "请选择治疗或诊疗计划。",
7555
- "linkInvalid": "请选择该患者的治疗或诊疗计划。",
7556
7552
  "items": "请至少添加一种药品。",
7557
7553
  "medication": "请选择药品。",
7558
7554
  "dosage": "请填写用法用量。",
7559
7555
  "medicationLine": "药品 {{number}}:请选择药品。",
7560
7556
  "dosageLine": "药品 {{number}}:请填写用法用量。",
7561
- "submit": "处方未保存,请重试。"
7562
- }
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": "请先选择有编码的药品。"
7563
7574
  },
7564
7575
  "sheet": {
7565
7576
  "title": "医疗处方",
@@ -7580,18 +7591,22 @@
7580
7591
  "sendFailedTitle": "处方未发送",
7581
7592
  "sendFailedBody": "请重新发送。发送成功前,无法打印或分享。",
7582
7593
  "resend": "重新发送",
7583
- "sendSms": "通过短信发送"
7594
+ "sendSms": "通过短信发送",
7595
+ "pin": "PIN",
7596
+ "prescriber": "处方医生",
7597
+ "prescriberFiscalCode": "税号",
7598
+ "registrationNumber": "注册编号",
7599
+ "summaryNote": "供诊所使用的摘要。正式处方以处方登记系统出具的文件为准。",
7600
+ "prescriberName": "姓名"
7584
7601
  },
7585
7602
  "history": {
7586
7603
  "caption": "处方",
7587
7604
  "date": "日期",
7588
- "link": "关联到",
7589
7605
  "medications": "药品",
7590
7606
  "prescriber": "处方医生",
7591
7607
  "actions": "操作",
7592
7608
  "open": "打开",
7593
7609
  "reprint": "重新打印",
7594
- "notLinked": "未关联",
7595
7610
  "rowLabel": "{{date}} 的处方",
7596
7611
  "emptyTitle": "暂无处方",
7597
7612
  "emptyBody": "此患者已保存的处方会显示在这里。",
@@ -7599,8 +7614,10 @@
7599
7614
  "patient": "患者",
7600
7615
  "number": "编号",
7601
7616
  "status": "状态",
7602
- "linkKind": "关联类型",
7603
- "specialty": "专科"
7617
+ "specialty": "专科",
7618
+ "treatment": "治疗",
7619
+ "carePlan": "诊疗计划",
7620
+ "noCarePlan": "无诊疗计划"
7604
7621
  },
7605
7622
  "status": {
7606
7623
  "label": "状态",
@@ -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-B0jP2Yt0.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-BgfBnjp0.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-GdnaPIOV.js";
1
+ import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-BBrJlmyd.js";
2
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-B0jP2Yt0.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,
@@ -7,5 +7,5 @@ export type { PrescriptionHistoryProps } from './prescription-history';
7
7
  export { validatePrescriptionDraft, isPrescriptionDraftValid, normalisePrescriptionDraft, isBlankPrescriptionItem, } from './prescription-validation';
8
8
  export type { PrescriptionDraftErrors, PrescriptionItemErrors, PrescriptionFieldError, PrescriptionValidationOptions, } from './prescription-validation';
9
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';
10
+ export type { PrescriptionDraft, PrescriptionItem, PrescriptionTreatment, PrescriptionTreatmentOption, PrescriptionPatient, PrescriptionPrescriber, PrescriptionRecord, PrescriptionRecordItem, PrescriptionMedicationSearch, PrescriptionPatientSearch, } from './prescription-types';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -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-748qDVwZ.js";
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
2
  export {
3
3
  s as EMPTY_PRESCRIPTION_ITEM,
4
4
  a as PrescriptionComposer,
@@ -10,11 +10,14 @@ export interface PrescriptionComposerItemProps {
10
10
  /** Ids the error summary links to. */
11
11
  medicationFieldId: string;
12
12
  dosageFieldId: string;
13
+ quantityFieldId: string;
13
14
  medicationError?: string;
14
15
  dosageError?: string;
16
+ quantityError?: string;
15
17
  /** False while the error summary lists the field. */
16
18
  announceMedicationError: boolean;
17
19
  announceDosageError: boolean;
20
+ announceQuantityError: boolean;
18
21
  searchMedications: PrescriptionMedicationSearch;
19
22
  codeLabel?: string;
20
23
  catalogueStatus: 'ready' | 'loading' | 'error';
@@ -23,6 +26,10 @@ export interface PrescriptionComposerItemProps {
23
26
  onMedicationChange: (medication: MedicationOption | null) => void;
24
27
  onDosageChange: (dosage: string) => void;
25
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;
26
33
  /** Structural id for the catalogue search. The free-text fields carry none: they are not registered with the agent runtime. */
27
34
  medicationSearchId: string;
28
35
  medicationRef: Ref<MedicationSearchHandle>;
@@ -30,5 +37,5 @@ export interface PrescriptionComposerItemProps {
30
37
  /** A suggestion chip was chosen: the parent writes it, then moves focus. */
31
38
  onSuggestionChosen: (text: string) => void;
32
39
  }
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;
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;
34
41
  //# sourceMappingURL=prescription-composer-item.d.ts.map
@@ -1,5 +1,5 @@
1
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';
2
+ import { type MedicationOption, type PrescriptionDraft, type PrescriptionItem, type PrescriptionTreatmentOption, type PrescriptionMedicationSearch, type PrescriptionPatient, type PrescriptionPatientSearch, type PrescriptionPrescriber, type PrescriptionRecord } from './prescription-types';
3
3
  import { type PrescriptionDraftErrors } from './prescription-validation';
4
4
  export interface PrescriptionComposerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSubmit' | 'defaultValue' | 'children'> {
5
5
  /** Patients to choose from, filtered on the client by first or last name. Also used to resolve a preselected `patientId`. */
@@ -7,12 +7,19 @@ export interface PrescriptionComposerProps extends Omit<HTMLAttributes<HTMLDivEl
7
7
  /** Host typeahead. Wins over `patients` for listing. */
8
8
  searchPatients?: PrescriptionPatientSearch;
9
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.
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
14
  */
15
- linkOptions?: readonly PrescriptionLinkOption[];
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;
16
23
  /** People allowed to prescribe. */
17
24
  prescribers: readonly PrescriptionPrescriber[];
18
25
  /**
@@ -42,8 +49,6 @@ export interface PrescriptionComposerProps extends Omit<HTMLAttributes<HTMLDivEl
42
49
  /** Called with a valid, normalised draft. A promise keeps the Save button loading until it settles; a rejection shows the save error. */
43
50
  onSubmit: (draft: PrescriptionDraft) => Promise<PrescriptionRecord | void> | PrescriptionRecord | void;
44
51
  onPatientChange?: (patientId: string) => void;
45
- /** A treatment or care plan must be chosen. Default true. */
46
- requireLink?: boolean;
47
52
  /** Whole-form loading state (skeleton). */
48
53
  loading?: boolean;
49
54
  /** A host error to show above the Save button, already translated. */
@@ -72,7 +77,7 @@ export interface PrescriptionComposerHandle {
72
77
  getDraft(): PrescriptionDraft;
73
78
  setPatient(patientId: string): void;
74
79
  setPrescriber(prescriberId: string): void;
75
- setLink(link: PrescriptionLink | null): void;
80
+ setTreatment(treatmentId: string): void;
76
81
  /** Appends a line (blank when no argument) and returns its index. */
77
82
  addItem(item?: Partial<PrescriptionItem>): number;
78
83
  updateItem(index: number, patch: Partial<PrescriptionItem>): void;
@@ -17,15 +17,29 @@ export interface PrescriptionSheetProps extends Omit<HTMLAttributes<HTMLDivEleme
17
17
  /**
18
18
  * Print only this sheet when the user prints from the browser itself
19
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.
20
+ * over. Only in `printMode="sheet"`: the Print button and `handle.print()`
21
+ * print only the sheet. In host mode the kit never prints, so this does
22
+ * nothing there (it is forced off).
21
23
  */
22
24
  isolateBrowserPrint?: boolean;
25
+ /**
26
+ * Who prints. `'host'`: the Print action only calls `onPrint(record)`, and
27
+ * your app opens the official document the registry issues; the kit does
28
+ * not print the sheet, which is an on-screen summary (a note says so).
29
+ * `'sheet'`: the kit prints the sheet through PrintSheet, then calls
30
+ * `onPrint(record)`. Default `'host'` when the record has a `sendStatus`
31
+ * (an electronic prescription) and `'sheet'` when it has none.
32
+ */
33
+ printMode?: 'host' | 'sheet';
34
+ /** Replaces the label of the PIN line. Default "PIN". Already translated. */
35
+ pinLabel?: string;
23
36
  /** Replaces the label of the prescription number line, for example "NRBE". Default "Prescription number". Already translated. */
24
37
  numberLabel?: string;
25
38
  /** Each share button renders ONLY when its callback is passed. */
26
39
  /**
27
- * Given: a Print button. It prints this sheet through PrintSheet (the
28
- * browser print dialog, only the sheet), then calls `onPrint(record)`.
40
+ * Given: a Print button. In `'host'` print mode it only calls
41
+ * `onPrint(record)`. In `'sheet'` mode the kit prints this sheet through
42
+ * PrintSheet (the browser print dialog, only the sheet), then calls it.
29
43
  */
30
44
  onPrint?: ActionHandler;
31
45
  onDownloadPdf?: ActionHandler;
@@ -41,7 +55,12 @@ export interface PrescriptionSheetProps extends Omit<HTMLAttributes<HTMLDivEleme
41
55
  id?: string;
42
56
  }
43
57
  export interface PrescriptionSheetHandle {
44
- /** Prints only the sheet. Works whether or not `onPrint` is passed. */
58
+ /**
59
+ * Print mode `'sheet'`: prints only the sheet, whether or not `onPrint` is
60
+ * passed (and does not call it). Print mode `'host'`: calls `onPrint(record)`
61
+ * and does nothing without it; the kit prints nothing. In both modes it does
62
+ * nothing while the send is under way or failed.
63
+ */
45
64
  print(): void;
46
65
  getRecordId(): string;
47
66
  /** Moves focus to the sheet's title, after a change of view. */
@@ -18,18 +18,29 @@ export interface PrescriptionPrescriber {
18
18
  /** Display name, with any title the host wants printed. */
19
19
  name: string;
20
20
  specialty?: string;
21
+ /** The prescriber's own tax code: platform `DoctorOperator.italianFiscalCode`. The host needs it to send to the registry; the kit only shows it. Staff data, not masked. */
22
+ fiscalCode?: string;
23
+ /** The prescriber's registration number with the professional order: platform `DoctorOperator.professionalRegistrationNumber`. The host needs it to send to the registry; the kit only shows it. */
24
+ registrationNumber?: string;
21
25
  }
22
- export type PrescriptionLinkKind = 'treatment' | 'carePlan';
23
- /** What a prescription is linked to: one treatment or one care plan of the
24
- * patient, never both. */
25
- export interface PrescriptionLink {
26
- kind: PrescriptionLinkKind;
26
+ /** A treatment of the patient, as the Treatment select lists it. Every
27
+ * prescription is for one treatment.
28
+ * A treatment inside a care plan is the platform's `DoctorCarePlanEntry`,
29
+ * and `carePlan` its `DoctorCarePlan`. A treatment without a care plan is not
30
+ * yet mapped to a platform entity: the kit treats ids as opaque, and they
31
+ * must be unique within the list. */
32
+ export interface PrescriptionTreatmentOption {
27
33
  id: string;
28
- }
29
- /** One choice in the "Linked to" select, for the chosen patient. */
30
- export interface PrescriptionLinkOption extends PrescriptionLink {
31
34
  label: string;
35
+ /** The care plan the treatment belongs to, when it belongs to one. */
36
+ carePlan?: {
37
+ id: string;
38
+ label: string;
39
+ };
32
40
  }
41
+ /** The treatment a saved prescription is for: the same shape as the option
42
+ * the composer lists. */
43
+ export type PrescriptionTreatment = PrescriptionTreatmentOption;
33
44
  /** One medication line of a draft. */
34
45
  export interface PrescriptionItem {
35
46
  /** Catalogue id. Empty while the line has no medication yet. */
@@ -38,6 +49,12 @@ export interface PrescriptionItem {
38
49
  dosage: string;
39
50
  /** Optional free text. */
40
51
  notes: string;
52
+ /** Whole packs, at least 1. A new line starts at 1; required on every line that is not blank. */
53
+ quantity: number;
54
+ /** The medicine may not be replaced by another with the same active ingredient. Only possible when the medication has a code (the specification allows it only when the medicine is identified by its code). */
55
+ notSubstitutable: boolean;
56
+ /** Optional free text: how long the therapy lasts, for example "6 days". */
57
+ duration: string;
41
58
  }
42
59
  /** What the composer edits and hands to `onSubmit`. Ids only: the host
43
60
  * resolves them. */
@@ -46,7 +63,8 @@ export interface PrescriptionDraft {
46
63
  patientId: string;
47
64
  /** Empty while no prescriber is chosen. */
48
65
  prescriberId: string;
49
- link: PrescriptionLink | null;
66
+ /** The treatment the prescription is for. Empty while none is chosen. Required to save. */
67
+ treatmentId: string;
50
68
  items: PrescriptionItem[];
51
69
  }
52
70
  /** One line of a saved prescription, resolved so it can be shown and
@@ -55,6 +73,10 @@ export interface PrescriptionRecordItem {
55
73
  medication: MedicationOption;
56
74
  dosage: string;
57
75
  notes?: string;
76
+ /** Whole packs. */
77
+ quantity: number;
78
+ notSubstitutable?: boolean;
79
+ duration?: string;
58
80
  }
59
81
  /** Where a prescription is in its send to the national registry. */
60
82
  export type PrescriptionSendStatus = 'sending' | 'sent' | 'failed';
@@ -71,10 +93,13 @@ export interface PrescriptionRecord {
71
93
  createdAt: string;
72
94
  patient: PrescriptionPatient;
73
95
  prescriber: PrescriptionPrescriber;
74
- link: PrescriptionLinkOption | null;
96
+ /** The treatment the prescription is for, resolved, with its care plan if it has one. */
97
+ treatment: PrescriptionTreatment;
75
98
  items: PrescriptionRecordItem[];
76
99
  /** The number the registry gave the prescription (Italy: NRBE). Present once it is sent. */
77
100
  number?: string;
101
+ /** The PIN the registry returns with the number. With the number and the patient's tax code it is what the pharmacy needs. Sensitive: shown on the sheet only, never in a `data-*` attribute or agent state. */
102
+ pin?: string;
78
103
  /** State of the send to the national registry (Italy: Sistema TS). Omit when the host sends prescriptions nowhere. */
79
104
  sendStatus?: PrescriptionSendStatus;
80
105
  /** ISO 8601 instant it was sent. */
@@ -1,35 +1,41 @@
1
- import type { PrescriptionDraft, PrescriptionItem, PrescriptionLinkOption } from './prescription-types';
2
- /** Why a field was refused. `invalid` is a link that is malformed or is not
3
- * one of the patient's treatments or care plans. */
1
+ import type { PrescriptionDraft, PrescriptionItem, PrescriptionTreatmentOption } from './prescription-types';
2
+ /** Why a field was refused. `invalid` is a treatment that is not one of the
3
+ * patient's treatments. */
4
4
  export type PrescriptionFieldError = 'required' | 'invalid';
5
5
  export interface PrescriptionItemErrors {
6
6
  medicationId?: 'required';
7
7
  dosage?: 'required';
8
+ /** `required`: empty or not a number. `invalid`: below 1 or not whole. */
9
+ quantity?: PrescriptionFieldError;
8
10
  }
9
11
  export interface PrescriptionDraftErrors {
10
12
  patientId?: 'required';
11
13
  prescriberId?: 'required';
12
- link?: PrescriptionFieldError;
14
+ treatmentId?: PrescriptionFieldError;
13
15
  /** No line names a medication. */
14
16
  items?: 'required';
15
17
  /** One entry per draft line, in order; `undefined` for a valid line. */
16
18
  itemErrors?: (PrescriptionItemErrors | undefined)[];
17
19
  }
18
20
  export interface PrescriptionValidationOptions {
19
- /** A treatment or a care plan must be chosen. Default true. */
20
- requireLink?: boolean;
21
- /** The chosen patient's treatments and care plans. When given, a link
22
- * that is not in the list is `invalid`. */
23
- linkOptions?: readonly PrescriptionLinkOption[];
21
+ /** The chosen patient's treatments. When given, a treatment that is not in
22
+ * the list is `invalid`. */
23
+ treatmentOptions?: readonly PrescriptionTreatmentOption[];
24
+ /**
25
+ * The patient `treatmentOptions` belongs to. While the host reloads the list
26
+ * after a patient change, the list is still the previous patient's: when this
27
+ * differs from the draft's `patientId`, a non-empty treatment is `invalid`.
28
+ */
29
+ treatmentOptionsPatientId?: string;
24
30
  }
25
31
  /** True for a line the user has not touched: nothing to validate or save. */
26
32
  export declare function isBlankPrescriptionItem(item: PrescriptionItem): boolean;
27
33
  /**
28
34
  * Checks a draft. Returns an empty object when it can be saved.
29
35
  *
30
- * Rules: a patient, a prescriber, a link (unless `requireLink` is false) and
36
+ * Rules: a patient, a prescriber, a treatment of the patient and
31
37
  * at least one medication line. Every line that is not blank needs a
32
- * medication and a dosage. Blank lines are ignored, except that a draft of
38
+ * medication, a dosage and a whole number of packs of 1 or more. Blank lines are ignored, except that a draft of
33
39
  * only blank lines has no medication at all, and its first line is marked.
34
40
  */
35
41
  export declare function validatePrescriptionDraft(draft: PrescriptionDraft, options?: PrescriptionValidationOptions): PrescriptionDraftErrors;