@alfadocs/ui-kit 0.47.0 → 0.49.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-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/agent-catalog.json +367 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +5 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.js +10 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +561 -1
- package/dist/i18n/locales/ar.js +560 -2
- package/dist/i18n/locales/de.d.ts +561 -1
- package/dist/i18n/locales/de.js +560 -2
- package/dist/i18n/locales/el.d.ts +561 -1
- package/dist/i18n/locales/el.js +560 -2
- package/dist/i18n/locales/en.d.ts +561 -1
- package/dist/i18n/locales/en.js +560 -2
- package/dist/i18n/locales/es.d.ts +561 -1
- package/dist/i18n/locales/es.js +560 -2
- package/dist/i18n/locales/fr.d.ts +561 -1
- package/dist/i18n/locales/fr.js +560 -2
- package/dist/i18n/locales/hi.d.ts +561 -1
- package/dist/i18n/locales/hi.js +560 -2
- package/dist/i18n/locales/it.d.ts +561 -1
- package/dist/i18n/locales/it.js +560 -2
- package/dist/i18n/locales/ja.d.ts +561 -1
- package/dist/i18n/locales/ja.js +560 -2
- package/dist/i18n/locales/nl.d.ts +561 -1
- package/dist/i18n/locales/nl.js +560 -2
- package/dist/i18n/locales/pl.d.ts +561 -1
- package/dist/i18n/locales/pl.js +560 -2
- package/dist/i18n/locales/pt.d.ts +561 -1
- package/dist/i18n/locales/pt.js +560 -2
- package/dist/i18n/locales/ro.d.ts +561 -1
- package/dist/i18n/locales/ro.js +560 -2
- package/dist/i18n/locales/ru.d.ts +561 -1
- package/dist/i18n/locales/ru.js +560 -2
- package/dist/i18n/locales/sq.d.ts +561 -1
- package/dist/i18n/locales/sq.js +560 -2
- package/dist/i18n/locales/sv.d.ts +561 -1
- package/dist/i18n/locales/sv.js +560 -2
- package/dist/i18n/locales/tr.d.ts +561 -1
- package/dist/i18n/locales/tr.js +560 -2
- package/dist/i18n/locales/zh.d.ts +561 -1
- package/dist/i18n/locales/zh.js +560 -2
- package/dist/index.js +663 -600
- package/dist/locales/ar.json +562 -2
- package/dist/locales/de.json +562 -2
- package/dist/locales/el.json +562 -2
- package/dist/locales/en.json +562 -2
- package/dist/locales/es.json +562 -2
- package/dist/locales/fr.json +562 -2
- package/dist/locales/hi.json +562 -2
- package/dist/locales/it.json +562 -2
- package/dist/locales/ja.json +562 -2
- package/dist/locales/nl.json +562 -2
- package/dist/locales/pl.json +562 -2
- package/dist/locales/pt.json +562 -2
- package/dist/locales/ro.json +562 -2
- package/dist/locales/ru.json +562 -2
- package/dist/locales/sq.json +562 -2
- package/dist/locales/sv.json +562 -2
- package/dist/locales/tr.json +562 -2
- package/dist/locales/zh.json +562 -2
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +58 -1
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
- package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
/** Embryo age at transfer, in days (cleavage vs blastocyst). */
|
|
3
|
-
export type EmbryoAge = 3 | 5;
|
|
4
|
-
export type Trimester = 'preconception' | 'first' | 'second' | 'third' | 'postterm';
|
|
5
|
-
/** Naegele's rule: a term pregnancy is 280 days from the LMP. */
|
|
6
|
-
export declare const GESTATION_DAYS = 280;
|
|
7
|
-
/** Ovulation/conception sits ~14 days after the LMP in a 28-day cycle. */
|
|
8
|
-
export declare const CONCEPTION_OFFSET_DAYS = 14;
|
|
9
|
-
/** A term pregnancy is 266 days from conception. */
|
|
10
|
-
export declare const TERM_FROM_CONCEPTION_DAYS = 266;
|
|
11
|
-
/** Standard menstrual-cycle length Naegele assumes. */
|
|
12
|
-
export declare const DEFAULT_CYCLE_LENGTH = 28;
|
|
13
|
-
export interface DueDateInput {
|
|
14
|
-
method: DueDateMethod;
|
|
15
|
-
/** The reference date for the chosen method (LMP / conception / transfer). */
|
|
16
|
-
date: Date;
|
|
17
|
-
/** LMP only — average cycle length in days. Defaults to 28. */
|
|
18
|
-
cycleLength?: number;
|
|
19
|
-
/** IVF only — embryo age at transfer in days. Defaults to 5 (blastocyst). */
|
|
20
|
-
embryoAge?: EmbryoAge;
|
|
21
|
-
}
|
|
22
|
-
export interface GestationalAge {
|
|
23
|
-
weeks: number;
|
|
24
|
-
days: number;
|
|
25
|
-
totalDays: number;
|
|
26
|
-
}
|
|
27
|
-
export interface DueDateResult {
|
|
28
|
-
/** Estimated date of delivery. */
|
|
29
|
-
dueDate: Date;
|
|
30
|
-
/** GA day-0 anchor (notional LMP) the trimester maths counts from. */
|
|
31
|
-
gestationalStart: Date;
|
|
32
|
-
/** Gestational age as of `today`; `null` before conception. */
|
|
33
|
-
gestationalAge: GestationalAge | null;
|
|
34
|
-
trimester: Trimester;
|
|
35
|
-
}
|
|
36
|
-
/** Classify gestational age (in completed weeks) into a trimester. */
|
|
37
|
-
export declare function trimesterForWeeks(totalDays: number): Trimester;
|
|
38
|
-
/**
|
|
39
|
-
* Resolve the gestational start (notional LMP) and due date for a method.
|
|
40
|
-
* `cycleLength` shifts a longer/shorter cycle's ovulation, moving the due
|
|
41
|
-
* date while GA stays counted from the LMP — the standard convention.
|
|
42
|
-
*/
|
|
43
|
-
export declare function computeDueDate(input: DueDateInput, today: Date): DueDateResult;
|
|
44
|
-
/** Gestational weeks at which clinically notable milestones fall. */
|
|
45
|
-
export declare const MILESTONE_WEEKS: readonly [12, 24, 28, 37, 40];
|
|
46
|
-
export interface GestationalMilestone {
|
|
47
|
-
/** Stable key (`w12`, `w24`, …) for i18n lookup. */
|
|
48
|
-
key: string;
|
|
49
|
-
/** Completed gestational weeks. */
|
|
50
|
-
week: number;
|
|
51
|
-
/** Calendar date the milestone is reached. */
|
|
52
|
-
date: Date;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Project the standard milestone dates from a gestational start (notional
|
|
56
|
-
* LMP / GA day 0): end of first trimester (12w), viability (24w), third
|
|
57
|
-
* trimester (28w), term (37w) and the 40-week due date.
|
|
58
|
-
*/
|
|
59
|
-
export declare function gestationalMilestones(gestationalStart: Date): GestationalMilestone[];
|
|
1
|
+
export * from '../_shared/obstetrics';
|
|
60
2
|
//# sourceMappingURL=gestation.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DueDateCalculator } from './due-date-calculator';
|
|
2
2
|
export type { DueDateCalculatorProps } from './due-date-calculator';
|
|
3
|
-
export { computeDueDate, trimesterForWeeks, gestationalMilestones, MILESTONE_WEEKS, GESTATION_DAYS, TERM_FROM_CONCEPTION_DAYS, DEFAULT_CYCLE_LENGTH, type DueDateMethod, type EmbryoAge, type Trimester, type DueDateInput, type DueDateResult, type GestationalAge, type GestationalMilestone, } from './gestation';
|
|
3
|
+
export { computeDueDate, trimesterForWeeks, gestationalMilestones, plannedBirthWindow, crlToGestationalAgeDays, redatingThresholdDays, redateByCrl, MILESTONE_WEEKS, GESTATION_DAYS, TERM_FROM_CONCEPTION_DAYS, DEFAULT_CYCLE_LENGTH, CRL_DATING_MIN_MM, CRL_DATING_MAX_MM, type DueDateMethod, type EmbryoAge, type Trimester, type Plurality, type Chorionicity, type BirthGuideline, type BirthWindow, type CrlRedatingInput, type CrlRedatingResult, type DueDateInput, type DueDateResult, type GestationalAge, type GestationalMilestone, } from './gestation';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import {
|
|
1
|
+
import { D as e } from "../../_chunks/due-date-calculator-tDqZXPWO.js";
|
|
2
|
+
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-Dg0m0yFl.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
T as
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
r as CRL_DATING_MAX_MM,
|
|
5
|
+
o as CRL_DATING_MIN_MM,
|
|
6
|
+
D as DEFAULT_CYCLE_LENGTH,
|
|
7
|
+
e as DueDateCalculator,
|
|
8
|
+
_ as GESTATION_DAYS,
|
|
9
|
+
T as MILESTONE_WEEKS,
|
|
10
|
+
M as TERM_FROM_CONCEPTION_DAYS,
|
|
11
|
+
E as computeDueDate,
|
|
12
|
+
l as crlToGestationalAgeDays,
|
|
13
|
+
C as gestationalMilestones,
|
|
14
|
+
A as plannedBirthWindow,
|
|
15
|
+
N as redateByCrl,
|
|
16
|
+
i as redatingThresholdDays,
|
|
17
|
+
n as trimesterForWeeks
|
|
12
18
|
};
|
|
13
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface FetalBiometryInput {
|
|
2
|
+
/** Biparietal diameter, mm. */
|
|
3
|
+
bpdMm?: number | null;
|
|
4
|
+
/** Head circumference, mm. */
|
|
5
|
+
hcMm?: number | null;
|
|
6
|
+
/** Abdominal circumference, mm. */
|
|
7
|
+
acMm?: number | null;
|
|
8
|
+
/** Femur length, mm. */
|
|
9
|
+
flMm?: number | null;
|
|
10
|
+
}
|
|
11
|
+
/** Which Hadlock regression produced the estimate. */
|
|
12
|
+
export type EfwMethod = 'hadlock4' | 'hadlock1';
|
|
13
|
+
export interface EfwResult {
|
|
14
|
+
/** Estimated fetal weight, grams (rounded to the nearest gram). */
|
|
15
|
+
grams: number;
|
|
16
|
+
/** The Hadlock regression used, given the available measurements. */
|
|
17
|
+
method: EfwMethod;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Estimate fetal weight from biometry. Uses the Hadlock 4-parameter formula
|
|
21
|
+
* when BPD, HC, AC and FL are all present, else the AC+FL formula. Returns
|
|
22
|
+
* `null` when AC and FL (the minimum) aren't both available.
|
|
23
|
+
*/
|
|
24
|
+
export declare function estimateFetalWeight(input: FetalBiometryInput): EfwResult | null;
|
|
25
|
+
//# sourceMappingURL=efw.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
|
+
import { type EfwResult } from './efw';
|
|
4
|
+
declare const rootVariants: (props?: ({
|
|
5
|
+
width?: "auto" | "full" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface FetalWeightProps extends VariantProps<typeof rootVariants> {
|
|
8
|
+
/** Fires whenever an estimate can be computed (and `null` when it can't). */
|
|
9
|
+
onResultChange?: (result: EfwResult | null) => void;
|
|
10
|
+
/** When provided, shows the result-action buttons that emit / copy the result. */
|
|
11
|
+
onInsert?: (payload: InsertPayload) => void;
|
|
12
|
+
/** Which verb the result button performs. Defaults to `'insert'`. */
|
|
13
|
+
insertVariant?: InsertVariant;
|
|
14
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
15
|
+
onCopy?: (mode: InsertMode) => void;
|
|
16
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
17
|
+
onError?: (error: unknown) => void;
|
|
18
|
+
/** Brand wordmark printed in the inserted/copied result-card footer. */
|
|
19
|
+
insertBrand?: string | false;
|
|
20
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Extra class names on the wrapper. */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const FetalWeight: import("react").ForwardRefExoticComponent<FetalWeightProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=fetal-weight.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
|
-
import { type Trimester, type GestationalAge } from '../
|
|
3
|
+
import { type Trimester, type GestationalAge, type Plurality, type Chorionicity } from '../_shared/obstetrics';
|
|
4
|
+
import { type AntenatalScheduleOptions, type GdmRisk } from '../_shared/antenatal-schedule';
|
|
4
5
|
declare const rootVariants: (props?: ({
|
|
5
6
|
width?: "auto" | "full" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -13,6 +14,8 @@ export interface GestationalAgeResult {
|
|
|
13
14
|
export interface GestationalAgeCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
14
15
|
/** Whether the input date is the last period (`lmp`) or the due date (`edd`). */
|
|
15
16
|
defaultMethod?: DateMethod;
|
|
17
|
+
/** Pre-fill the reference date (e.g. a known LMP from the patient record). */
|
|
18
|
+
defaultReferenceDate?: Date;
|
|
16
19
|
/** Fires whenever a result can be computed (and `null` when it can't). */
|
|
17
20
|
onResultChange?: (result: GestationalAgeResult | null) => void;
|
|
18
21
|
/** When provided, shows the result-action buttons that emit / copy the result. */
|
|
@@ -33,6 +36,27 @@ export interface GestationalAgeCalculatorProps extends VariantProps<typeof rootV
|
|
|
33
36
|
* brand; `false` → no brand line. Brand is opt-in.
|
|
34
37
|
*/
|
|
35
38
|
insertBrand?: string | false;
|
|
39
|
+
/**
|
|
40
|
+
* Append the antenatal exam schedule (the time-sensitive screening windows)
|
|
41
|
+
* below the result, dated from the computed gestational start, and reveal the
|
|
42
|
+
* plurality / chorionicity inputs that drive it.
|
|
43
|
+
*/
|
|
44
|
+
showSchedule?: boolean;
|
|
45
|
+
/** `showSchedule` only — initial number of babies. Defaults to `'singleton'`. */
|
|
46
|
+
defaultPlurality?: Plurality;
|
|
47
|
+
/** `showSchedule` only — initial chorionicity for multiples. Defaults to `'unknown'`. */
|
|
48
|
+
defaultChorionicity?: Chorionicity;
|
|
49
|
+
/** `showSchedule` only — initial Rh-negative state (surfaces anti-D). */
|
|
50
|
+
defaultRhNegative?: boolean;
|
|
51
|
+
/** `showSchedule` only — initial gestational-diabetes risk tier (surfaces OGTT). */
|
|
52
|
+
defaultGdmRisk?: GdmRisk;
|
|
53
|
+
/**
|
|
54
|
+
* Passthrough options for the appended schedule (national `schedule`,
|
|
55
|
+
* `includeOnIndication`, `birthGuideline`). `today`, `plurality`,
|
|
56
|
+
* `chorionicity`, `rhNegative` and `gdmRisk` come from the component's own
|
|
57
|
+
* inputs. Ignored unless `showSchedule` is set.
|
|
58
|
+
*/
|
|
59
|
+
scheduleOptions?: Omit<AntenatalScheduleOptions, 'today' | 'plurality' | 'chorionicity' | 'rhNegative' | 'gdmRisk'>;
|
|
36
60
|
/** Opaque instance id, emitted as `data-component-id`. */
|
|
37
61
|
id?: string;
|
|
38
62
|
/** Extra class names on the wrapper. */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
|
+
import { type HcgResult } from './hcg';
|
|
4
|
+
declare const rootVariants: (props?: ({
|
|
5
|
+
width?: "auto" | "full" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface HcgDoublingProps extends VariantProps<typeof rootVariants> {
|
|
8
|
+
/** Pre-fill the first sample's date/time (e.g. from the lab record). */
|
|
9
|
+
defaultDate1?: Date;
|
|
10
|
+
/** Pre-fill the second sample's date/time. */
|
|
11
|
+
defaultDate2?: Date;
|
|
12
|
+
/** Fires whenever both timed values resolve (and `null` when not). */
|
|
13
|
+
onResultChange?: (result: HcgResult | null) => void;
|
|
14
|
+
/** When provided, shows the result-action buttons that emit / copy the result. */
|
|
15
|
+
onInsert?: (payload: InsertPayload) => void;
|
|
16
|
+
/** Which verb the result button performs. Defaults to `'insert'`. */
|
|
17
|
+
insertVariant?: InsertVariant;
|
|
18
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
19
|
+
onCopy?: (mode: InsertMode) => void;
|
|
20
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
21
|
+
onError?: (error: unknown) => void;
|
|
22
|
+
/** Brand wordmark printed in the inserted/copied result-card footer. */
|
|
23
|
+
insertBrand?: string | false;
|
|
24
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** Extra class names on the wrapper. */
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const HcgDoubling: import("react").ForwardRefExoticComponent<HcgDoublingProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=hcg-doubling.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Conservative minimal 48-hour rise for a potentially viable IUP, %. */
|
|
2
|
+
export declare const MINIMAL_48H_RISE_PERCENT = 35;
|
|
3
|
+
export interface HcgInput {
|
|
4
|
+
/** First β-hCG value, mIU/mL. */
|
|
5
|
+
hcg1: number;
|
|
6
|
+
/** When the first sample was drawn. */
|
|
7
|
+
date1: Date;
|
|
8
|
+
/** Second β-hCG value, mIU/mL. */
|
|
9
|
+
hcg2: number;
|
|
10
|
+
/** When the second sample was drawn (must be after `date1`). */
|
|
11
|
+
date2: Date;
|
|
12
|
+
}
|
|
13
|
+
export type HcgTrend = 'rising-normal' | 'rising-slow' | 'plateau-falling';
|
|
14
|
+
export interface HcgResult {
|
|
15
|
+
/** Hours between the two samples. */
|
|
16
|
+
intervalHours: number;
|
|
17
|
+
/** hcg2 / hcg1. */
|
|
18
|
+
ratio: number;
|
|
19
|
+
/** Rise over the actual interval, %. */
|
|
20
|
+
percentRise: number;
|
|
21
|
+
/** Rise normalised to a 48-hour window, % (comparable to the benchmark). */
|
|
22
|
+
twoDayRisePercent: number;
|
|
23
|
+
/** Doubling time in hours, or `null` when not rising. */
|
|
24
|
+
doublingTimeHours: number | null;
|
|
25
|
+
/** Trend band against the Barnhart minimal-rise benchmark. */
|
|
26
|
+
trend: HcgTrend;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Analyse a two-point β-hCG series. Returns `null` unless both values are
|
|
30
|
+
* positive and the second sample is strictly after the first.
|
|
31
|
+
*/
|
|
32
|
+
export declare function analyseHcg(input: HcgInput): HcgResult | null;
|
|
33
|
+
//# sourceMappingURL=hcg.d.ts.map
|
|
@@ -21,6 +21,9 @@ export * from './date-range-picker';
|
|
|
21
21
|
export * from './date-time-picker';
|
|
22
22
|
export * from './due-date-calculator';
|
|
23
23
|
export * from './gestational-age-calculator';
|
|
24
|
+
export * from './bishop-score';
|
|
25
|
+
export * from './fetal-weight';
|
|
26
|
+
export * from './hcg-doubling';
|
|
24
27
|
export * from './email-input';
|
|
25
28
|
export * from './file-upload';
|
|
26
29
|
export * from './form-field';
|
|
@@ -51,6 +54,7 @@ export * from './card';
|
|
|
51
54
|
export * from './carousel';
|
|
52
55
|
export * from './contact-card';
|
|
53
56
|
export * from './data-table';
|
|
57
|
+
export * from './clinical-note-card';
|
|
54
58
|
export * from './description-list';
|
|
55
59
|
export * from './empty-state';
|
|
56
60
|
export * from './flag';
|
|
@@ -67,6 +71,7 @@ export * from './stat';
|
|
|
67
71
|
export * from './tag';
|
|
68
72
|
export * from './timeline';
|
|
69
73
|
export * from './timestamp';
|
|
74
|
+
export * from './ai-tools-rail';
|
|
70
75
|
export * from './breadcrumb';
|
|
71
76
|
export * from './command-palette';
|
|
72
77
|
export * from './header';
|
|
@@ -85,7 +90,9 @@ export * from './tabs';
|
|
|
85
90
|
export * from './theme-toggle';
|
|
86
91
|
export * from './agenda-card';
|
|
87
92
|
export * from './agenda-tray';
|
|
93
|
+
export * from './ai-consent-banner';
|
|
88
94
|
export * from './alert';
|
|
95
|
+
export * from './appointment-card';
|
|
89
96
|
export * from './dialog';
|
|
90
97
|
export * from './dropdown-menu';
|
|
91
98
|
export * from './live-region';
|
|
@@ -97,6 +104,7 @@ export * from './notification-tray';
|
|
|
97
104
|
export * from './popover';
|
|
98
105
|
export * from './pregnancy-weight-gain';
|
|
99
106
|
export * from './privacy-lock';
|
|
107
|
+
export * from './product-hub-tray';
|
|
100
108
|
export * from './progress';
|
|
101
109
|
export * from './sheet';
|
|
102
110
|
export * from './spinner';
|
|
@@ -126,12 +134,18 @@ export * from './streaming-text';
|
|
|
126
134
|
export * from './suggestion-chip';
|
|
127
135
|
export * from './transcript-panel';
|
|
128
136
|
export * from './typing-indicator';
|
|
137
|
+
export * from './anamnesis-card';
|
|
129
138
|
export * from './booking';
|
|
130
139
|
export * from './calendar';
|
|
140
|
+
export * from './care-plan-card';
|
|
141
|
+
export * from './care-plan-entry-card';
|
|
131
142
|
export * from './operator-hero';
|
|
132
143
|
export * from './patient-search';
|
|
144
|
+
export * from './patient-summary-card';
|
|
145
|
+
export * from './periodontal-chart-card';
|
|
133
146
|
export * from './contact-profile-card';
|
|
134
147
|
export * from './practice-results';
|
|
148
|
+
export * from './payment-card';
|
|
135
149
|
export * from './payment-form';
|
|
136
150
|
export * from './pdf-viewer';
|
|
137
151
|
export * from './reviews-panel';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { M as a
|
|
2
|
-
import { m } from "../../_chunks/message-card.agent-4IeIgrnJ.js";
|
|
1
|
+
import { M as a } from "../../_chunks/message-card-Dvl1TgaN.js";
|
|
2
|
+
import { m as o } from "../../_chunks/message-card.agent-4IeIgrnJ.js";
|
|
3
|
+
import { i as f } from "../../_chunks/is-safe-url-DkETxeHz.js";
|
|
3
4
|
export {
|
|
4
5
|
a as MessageCard,
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
f as isSafeMessageUrl,
|
|
7
|
+
o as messageCardAgent
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export { isSafeEntityUrl as isSafeMessageUrl } from '../_shared/is-safe-url';
|
|
3
4
|
export interface MessageSender {
|
|
4
5
|
/** Display name — drives the avatar's deterministic colour + initials. */
|
|
5
6
|
name: string;
|
|
@@ -67,7 +68,5 @@ declare const cardVariants: (props?: ({
|
|
|
67
68
|
size?: "sm" | "md" | null | undefined;
|
|
68
69
|
state?: "read" | "unread" | null | undefined;
|
|
69
70
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
70
|
-
export declare function isSafeMessageUrl(url: string): boolean;
|
|
71
71
|
export declare const MessageCard: import("react").ForwardRefExoticComponent<MessageCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
72
|
-
export {};
|
|
73
72
|
//# sourceMappingURL=message-card.d.ts.map
|
|
@@ -20,10 +20,19 @@ export interface OperatorHeroRating {
|
|
|
20
20
|
}
|
|
21
21
|
export interface OperatorHeroHandle {
|
|
22
22
|
getName: () => string;
|
|
23
|
+
/** Structural flag — whether a calendar-colour dot is rendered. No PHI. */
|
|
24
|
+
getHasColor: () => boolean;
|
|
23
25
|
}
|
|
24
26
|
export interface OperatorHeroProps extends Omit<ComponentPropsWithoutRef<'div'>, 'aria-label' | 'children'> {
|
|
25
27
|
/** Operator's display name. Rendered as the H1 heading. */
|
|
26
28
|
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional calendar-colour identity for the operator. AlfaDocs assigns each
|
|
31
|
+
* operator a numeric colour id; when present, a small colour dot is rendered
|
|
32
|
+
* next to the name, tinted via `colorIdToToken(colorId)` (a `var(--…)` palette
|
|
33
|
+
* token — never a literal). The id itself is a structural identifier, not PHI.
|
|
34
|
+
*/
|
|
35
|
+
colorId?: string;
|
|
27
36
|
/** Specialty / tagline subtitle (e.g. "Dermatologa · 12 anni di esperienza"). */
|
|
28
37
|
tagline?: string;
|
|
29
38
|
/**
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PatientSummaryCard } from './patient-summary-card';
|
|
2
|
+
export type { PatientSummaryCardProps, PatientSummaryCardHandle, PatientSummaryCardPhone, PatientSummaryCardFamilyRelation, PatientSummaryCardAssignee, PatientSummaryCardAiConsent, PatientSummaryCardFlags, PatientSummaryCardMarketingConsent, PatientSummaryCardSurface, PatientSummaryCardDensity, } from './patient-summary-card';
|
|
3
|
+
export { patientSummaryCardAgent } from './patient-summary-card.agent';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
import type { PatientSummaryCardHandle } from './patient-summary-card';
|
|
3
|
+
export declare const patientSummaryCardAgent: AgentAdapter<PatientSummaryCardHandle>;
|
|
4
|
+
//# sourceMappingURL=patient-summary-card.agent.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const rootVariants: (props?: ({
|
|
4
|
+
surface?: "flat" | "elevated" | null | undefined;
|
|
5
|
+
density?: "compact" | "comfortable" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
/** Patient phone number — already formatted for display by the consumer. */
|
|
8
|
+
export interface PatientSummaryCardPhone {
|
|
9
|
+
/** Display string, e.g. `"+39 055 123 4567"`. Compiled into a `tel:` link. */
|
|
10
|
+
prefixAndNumber: string;
|
|
11
|
+
/** Optional label that distinguishes this number (e.g. "Mobile"). */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Whether SMS is enabled for this number — shows a small "SMS" chip. */
|
|
14
|
+
smsEnabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** A family relation row — links one patient to another. */
|
|
17
|
+
export interface PatientSummaryCardFamilyRelation {
|
|
18
|
+
/** Localised relation label, consumer-supplied (e.g. "Mother", "Child"). */
|
|
19
|
+
relation: string;
|
|
20
|
+
/** The related patient — name + optional in-app profile URL. */
|
|
21
|
+
relatedPatient: {
|
|
22
|
+
name: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Operator the patient is assigned to. */
|
|
27
|
+
export interface PatientSummaryCardAssignee {
|
|
28
|
+
name: string;
|
|
29
|
+
avatarUrl?: string;
|
|
30
|
+
}
|
|
31
|
+
/** AI-consent grant metadata — structural only, never the consented content. */
|
|
32
|
+
export interface PatientSummaryCardAiConsent {
|
|
33
|
+
/** ISO-8601 / display string of when consent was granted. */
|
|
34
|
+
grantedAt: string;
|
|
35
|
+
/** Optional name of who recorded the grant. */
|
|
36
|
+
grantedBy?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Status flags rendered as glyph badges (counts / amounts only — no PHI). */
|
|
39
|
+
export interface PatientSummaryCardFlags {
|
|
40
|
+
/** Number of anamnesis answers highlighted for clinical attention. */
|
|
41
|
+
highlightedAnamnesisCount?: number;
|
|
42
|
+
/** Outstanding balance in the smallest currency unit (cents). */
|
|
43
|
+
unpaidAmountCents?: number;
|
|
44
|
+
/** Number of documents awaiting the patient's signature. */
|
|
45
|
+
unsignedDocumentsCount?: number;
|
|
46
|
+
}
|
|
47
|
+
/** Marketing-consent tri-state. */
|
|
48
|
+
export type PatientSummaryCardMarketingConsent = 'no' | 'yes' | 'not_specified';
|
|
49
|
+
export interface PatientSummaryCardHandle {
|
|
50
|
+
/** Structural snapshot — identifiers and counts only, never patient identity. */
|
|
51
|
+
getSummary: () => {
|
|
52
|
+
id?: string;
|
|
53
|
+
hasUnpaid: boolean;
|
|
54
|
+
unsignedDocumentsCount: number;
|
|
55
|
+
highlightedAnamnesisCount: number;
|
|
56
|
+
aiConsentGranted: boolean;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export interface PatientSummaryCardProps extends Omit<ComponentPropsWithoutRef<'div'>, 'aria-label' | 'children'> {
|
|
60
|
+
/** Patient display name. Rendered as the heading. */
|
|
61
|
+
name: string;
|
|
62
|
+
/** Honorific — `'mr'` / `'ms'`. Prepended to the name in the heading. */
|
|
63
|
+
title?: 'mr' | 'ms';
|
|
64
|
+
/** Patient age in whole years — rendered in the identity line. */
|
|
65
|
+
ageYears?: number;
|
|
66
|
+
/** Date of birth — already formatted for display by the consumer. */
|
|
67
|
+
dateOfBirth?: string;
|
|
68
|
+
/** Biological sex marker — `'m'` / `'f'`. Drives the identity-line glyph copy. */
|
|
69
|
+
gender?: 'm' | 'f';
|
|
70
|
+
/** Optional avatar / photo URL. Falls back to initials. */
|
|
71
|
+
avatarUrl?: string;
|
|
72
|
+
/**
|
|
73
|
+
* In-app patient profile URL. When safe, the heading becomes a link.
|
|
74
|
+
* Guarded by the shared `isSafeEntityUrl` allow-list — unsafe URLs are
|
|
75
|
+
* dropped and the heading renders as plain text.
|
|
76
|
+
*/
|
|
77
|
+
patientUrl?: string;
|
|
78
|
+
/** Patient email. Compiled into a `mailto:` link when `emailEnabled`. */
|
|
79
|
+
email?: string;
|
|
80
|
+
/** Whether email contact is enabled — gates the `mailto:` link. */
|
|
81
|
+
emailEnabled?: boolean;
|
|
82
|
+
/** Phone number block. Compiled into a `tel:` link. */
|
|
83
|
+
phone?: PatientSummaryCardPhone;
|
|
84
|
+
/** City / province display string. */
|
|
85
|
+
cityProvince?: string;
|
|
86
|
+
/** Marketing-consent tri-state. */
|
|
87
|
+
marketingConsent?: PatientSummaryCardMarketingConsent;
|
|
88
|
+
/** AI-consent grant metadata. When present, an "AI consent" row renders. */
|
|
89
|
+
aiConsent?: PatientSummaryCardAiConsent;
|
|
90
|
+
/** Counts / amounts surfaced as glyph badges. */
|
|
91
|
+
flags?: PatientSummaryCardFlags;
|
|
92
|
+
/** Family relations — rendered as `<Tag>` chips, optionally linked. */
|
|
93
|
+
familyRelations?: PatientSummaryCardFamilyRelation[];
|
|
94
|
+
/** Operator the patient is assigned to. */
|
|
95
|
+
assignedTo?: PatientSummaryCardAssignee;
|
|
96
|
+
/** ISO-4217 currency code for the unpaid-amount chip. Defaults to `EUR`. */
|
|
97
|
+
currency?: string;
|
|
98
|
+
/** BCP-47 locale override. Defaults to the active i18next language. */
|
|
99
|
+
locale?: string;
|
|
100
|
+
/** Render the skeleton loading placeholder. */
|
|
101
|
+
loading?: boolean;
|
|
102
|
+
/** Rendered at the inline-end of the heading row (e.g. an action menu). */
|
|
103
|
+
actionSlot?: ReactNode;
|
|
104
|
+
/** Fires when the whole card / heading is activated. */
|
|
105
|
+
onActivate?: () => void;
|
|
106
|
+
/** `'elevated'` (default) wraps in `<Card>`; `'flat'` drops the chrome. */
|
|
107
|
+
surface?: 'flat' | 'elevated';
|
|
108
|
+
/** `'comfortable'` (default) reads as a header; `'compact'` for asides. */
|
|
109
|
+
density?: 'comfortable' | 'compact';
|
|
110
|
+
/** Override the default region aria-label. */
|
|
111
|
+
'aria-label'?: string;
|
|
112
|
+
/** Agent-readiness consumer id, surfaced as `data-component-id`. */
|
|
113
|
+
id?: string;
|
|
114
|
+
}
|
|
115
|
+
export declare const PatientSummaryCard: import("react").ForwardRefExoticComponent<PatientSummaryCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
116
|
+
/** Variant unions re-exported for downstream typing. */
|
|
117
|
+
export type PatientSummaryCardSurface = NonNullable<VariantProps<typeof rootVariants>['surface']>;
|
|
118
|
+
export type PatientSummaryCardDensity = NonNullable<VariantProps<typeof rootVariants>['density']>;
|
|
119
|
+
export {};
|
|
120
|
+
//# sourceMappingURL=patient-summary-card.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { PaymentCard } from './payment-card';
|
|
2
|
+
export type { PaymentCardProps, PaymentCardHandle, PaymentCardRelations, PaymentLineItem, PaymentType, PaymentDirection, PaymentCardSurface, } from './payment-card';
|
|
3
|
+
export { paymentCardAgent } from './payment-card.agent';
|
|
4
|
+
export { PaymentRequestCard } from './payment-request-card';
|
|
5
|
+
export type { PaymentRequestCardProps, PaymentRequestCardHandle, PaymentRequestStatus, PaymentRequestCardSurface, } from './payment-request-card';
|
|
6
|
+
export { paymentRequestCardAgent } from './payment-request-card.agent';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|