@mieweb/ui 0.6.1-dev.159 → 0.6.1-dev.164
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/MedicationEditor-Bp4NLy7y.d.cts +352 -0
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +352 -0
- package/dist/ag-grid.cjs +5 -5
- package/dist/ag-grid.js +1 -1
- package/dist/{chunk-H4T5T65N.cjs → chunk-2JQBPU3Y.cjs} +3 -3
- package/dist/{chunk-H4T5T65N.cjs.map → chunk-2JQBPU3Y.cjs.map} +1 -1
- package/dist/{chunk-6555OYRU.js → chunk-5BQE6BEL.js} +2 -2
- package/dist/{chunk-6555OYRU.js.map → chunk-5BQE6BEL.js.map} +1 -1
- package/dist/chunk-67CEEDAP.cjs +1605 -0
- package/dist/chunk-67CEEDAP.cjs.map +1 -0
- package/dist/{chunk-ULF4PWHW.cjs → chunk-7BARESXI.cjs} +3 -3
- package/dist/{chunk-ULF4PWHW.cjs.map → chunk-7BARESXI.cjs.map} +1 -1
- package/dist/chunk-7ZVTLTJF.js +109 -0
- package/dist/chunk-7ZVTLTJF.js.map +1 -0
- package/dist/{chunk-KX4NWZIR.cjs → chunk-CDMWZBDD.cjs} +3 -3
- package/dist/{chunk-KX4NWZIR.cjs.map → chunk-CDMWZBDD.cjs.map} +1 -1
- package/dist/chunk-DHKYGVP7.js +3 -0
- package/dist/{chunk-LEMY57MI.js.map → chunk-DHKYGVP7.js.map} +1 -1
- package/dist/{chunk-FSBFQBNE.cjs → chunk-DKGUOMBC.cjs} +2 -2
- package/dist/{chunk-FSBFQBNE.cjs.map → chunk-DKGUOMBC.cjs.map} +1 -1
- package/dist/{chunk-4FALCEJI.cjs → chunk-EL2RSQTJ.cjs} +2 -2
- package/dist/{chunk-4FALCEJI.cjs.map → chunk-EL2RSQTJ.cjs.map} +1 -1
- package/dist/{chunk-TQV5CGSA.js → chunk-ETGZ5DSA.js} +3 -3
- package/dist/{chunk-TQV5CGSA.js.map → chunk-ETGZ5DSA.js.map} +1 -1
- package/dist/{chunk-EYJDPYOP.js → chunk-FJG7KUDJ.js} +3 -3
- package/dist/{chunk-EYJDPYOP.js.map → chunk-FJG7KUDJ.js.map} +1 -1
- package/dist/{chunk-HMQ2PRTB.cjs → chunk-GBRPZGSI.cjs} +7 -7
- package/dist/{chunk-HMQ2PRTB.cjs.map → chunk-GBRPZGSI.cjs.map} +1 -1
- package/dist/{chunk-M7BLVBL4.js → chunk-GSOOPTGM.js} +3 -3
- package/dist/{chunk-M7BLVBL4.js.map → chunk-GSOOPTGM.js.map} +1 -1
- package/dist/chunk-HUXOASEB.js +1568 -0
- package/dist/chunk-HUXOASEB.js.map +1 -0
- package/dist/chunk-IQ4KQJAO.js +3 -0
- package/dist/{chunk-4ZU53GNR.cjs.map → chunk-IQ4KQJAO.js.map} +1 -1
- package/dist/{chunk-RUGWUQ47.js → chunk-NBD236EH.js} +48 -2
- package/dist/chunk-NBD236EH.js.map +1 -0
- package/dist/chunk-OF7NTZ2I.js +3 -0
- package/dist/chunk-OF7NTZ2I.js.map +1 -0
- package/dist/chunk-RHNPILZQ.cjs +4 -0
- package/dist/chunk-RHNPILZQ.cjs.map +1 -0
- package/dist/chunk-RI56YPED.cjs +201 -0
- package/dist/chunk-RI56YPED.cjs.map +1 -0
- package/dist/{chunk-DCER2QQB.js → chunk-T42BCIUA.js} +2 -2
- package/dist/{chunk-DCER2QQB.js.map → chunk-T42BCIUA.js.map} +1 -1
- package/dist/{chunk-4ZU53GNR.cjs → chunk-UTYUT5YY.cjs} +62 -2
- package/dist/chunk-UTYUT5YY.cjs.map +1 -0
- package/dist/{chunk-Q7NBJFEB.js → chunk-UVQEHZRF.js} +2 -2
- package/dist/{chunk-Q7NBJFEB.js.map → chunk-UVQEHZRF.js.map} +1 -1
- package/dist/chunk-VBWRH4UW.cjs +4 -0
- package/dist/chunk-VBWRH4UW.cjs.map +1 -0
- package/dist/{chunk-WJIANZPI.cjs → chunk-VJOVJTFP.cjs} +3 -3
- package/dist/chunk-VJOVJTFP.cjs.map +1 -0
- package/dist/{chunk-OVQKCUTZ.js → chunk-WFS6R2F5.js} +3 -3
- package/dist/{chunk-OVQKCUTZ.js.map → chunk-WFS6R2F5.js.map} +1 -1
- package/dist/chunk-Y5KEFV5O.js +192 -0
- package/dist/chunk-Y5KEFV5O.js.map +1 -0
- package/dist/{chunk-4N72FAQW.js → chunk-YBLIDESO.js} +3 -3
- package/dist/chunk-YBLIDESO.js.map +1 -0
- package/dist/chunk-YVPC65ZJ.cjs +134 -0
- package/dist/chunk-YVPC65ZJ.cjs.map +1 -0
- package/dist/{chunk-3AMNAMJA.cjs → chunk-YYDW3ZZS.cjs} +48 -2
- package/dist/chunk-YYDW3ZZS.cjs.map +1 -0
- package/dist/{chunk-3M4P2KMG.cjs → chunk-ZHBANUBI.cjs} +2 -2
- package/dist/{chunk-3M4P2KMG.cjs.map → chunk-ZHBANUBI.cjs.map} +1 -1
- package/dist/components/Badge/index.cjs +4 -3
- package/dist/components/Badge/index.js +2 -1
- package/dist/components/Card/index.cjs +16 -15
- package/dist/components/Card/index.js +2 -1
- package/dist/components/CountryCodeDropdown/index.cjs +5 -5
- package/dist/components/CountryCodeDropdown/index.js +2 -2
- package/dist/components/Dropdown/index.cjs +8 -8
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/RichTextEditor/index.cjs +7 -7
- package/dist/components/RichTextEditor/index.js +4 -4
- package/dist/components/Skeleton/index.d.cts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/SuperChat/index.cjs +10 -9
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +5 -4
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +3 -3
- package/dist/components/SuperChat/plugins/index.js +2 -2
- package/dist/datavis.cjs +273 -5
- package/dist/datavis.cjs.map +1 -1
- package/dist/datavis.d.cts +61 -1
- package/dist/datavis.d.ts +61 -1
- package/dist/datavis.js +251 -1
- package/dist/datavis.js.map +1 -1
- package/dist/esheet.cjs +182 -0
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +117 -0
- package/dist/esheet.d.ts +117 -0
- package/dist/esheet.js +161 -0
- package/dist/esheet.js.map +1 -1
- package/dist/hooks/index.cjs +33 -16
- package/dist/hooks/index.d.cts +62 -1
- package/dist/hooks/index.d.ts +62 -1
- package/dist/hooks/index.js +3 -2
- package/dist/index.cjs +3923 -938
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +981 -2
- package/dist/index.d.ts +981 -2
- package/dist/index.js +3313 -452
- package/dist/index.js.map +1 -1
- package/dist/{nitroTableGrid-RQNSZQO4.cjs → nitroTableGrid-3J2GY6CK.cjs} +4 -4
- package/dist/{nitroTableGrid-RQNSZQO4.cjs.map → nitroTableGrid-3J2GY6CK.cjs.map} +1 -1
- package/dist/{nitroTableGrid-W6XWRFA7.js → nitroTableGrid-SIMT7635.js} +3 -3
- package/dist/{nitroTableGrid-W6XWRFA7.js.map → nitroTableGrid-SIMT7635.js.map} +1 -1
- package/dist/orderRows-BUJYgSc7.d.cts +221 -0
- package/dist/orderRows-BUJYgSc7.d.ts +221 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3AMNAMJA.cjs.map +0 -1
- package/dist/chunk-4N72FAQW.js.map +0 -1
- package/dist/chunk-LEMY57MI.js +0 -3
- package/dist/chunk-RUGWUQ47.js.map +0 -1
- package/dist/chunk-WJIANZPI.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,6 +7,8 @@ import { d as MCPToolCall, M as MCPResourceLink, e as MCPToolStatus, f as AIMess
|
|
|
7
7
|
export { A as AIMessageContent, j as AIMessageRole, a as AIMessageStatus, c as AITextRenderContext, k as MCPResource, l as MCPToolInfo, m as MCPToolParameter, n as MCPToolResult } from './types-BYnLjEFg.cjs';
|
|
8
8
|
export { Alert, AlertDescription, AlertProps, AlertTitle, alertVariants } from './components/Alert/index.cjs';
|
|
9
9
|
export { AlertDialog, AlertDialogProps } from './components/AlertDialog/index.cjs';
|
|
10
|
+
import { M as Medication, a as MedicationAction, C as CodeLookupConfig, A as Allergy } from './MedicationEditor-Bp4NLy7y.cjs';
|
|
11
|
+
export { b as ALLERGY_TYPE_LABELS, c as AllergyAction, d as AllergyCode, e as AllergyKind, f as AllergyList, g as AllergyListProps, h as AllergySeverity, i as AllergyType, j as MEDICATION_STATUS_LABELS, k as MedicationCode, l as MedicationEditor, m as MedicationEditorProps, n as MedicationList, o as MedicationListProps, p as MedicationLookupProps, q as MedicationLookupResult, r as MedicationStatus, s as labelToMedicationFields, t as lookupToMedicationFields, u as parseMedicationLabel, v as parseSig } from './MedicationEditor-Bp4NLy7y.cjs';
|
|
10
12
|
export { AudioPlayer, AudioPlayerProps, AudioPlayerRef, AudioPlayerState, ProgressBar, audioPlayerVariants, formatAudioTime, playButtonVariants } from './components/AudioPlayer/index.cjs';
|
|
11
13
|
export { AudioRecorder, AudioRecorderControlsRenderProps, AudioRecorderProps, AudioRecorderState, audioRecorderVariants, controlButtonVariants, formatTime, waveformContainerVariants } from './components/AudioRecorder/index.cjs';
|
|
12
14
|
export { Autocomplete, AutocompleteProps } from './components/Autocomplete/index.cjs';
|
|
@@ -21,6 +23,8 @@ export { CountryCodeDropdown, CountryCodeDropdownProps, CountryData, formatE164,
|
|
|
21
23
|
export { DateInput, DateInputMode, DateInputProps } from './components/DateInput/index.cjs';
|
|
22
24
|
export { Dropdown, DropdownContent, DropdownContentProps, DropdownHeader, DropdownHeaderProps, DropdownItem, DropdownItemProps, DropdownLabel, DropdownPlacement, DropdownProps, DropdownSeparator } from './components/Dropdown/index.cjs';
|
|
23
25
|
export { FloatingWindow, FloatingWindowProps, MinimizedWindow, MinimizedWindowProps } from './components/FloatingWindow/index.cjs';
|
|
26
|
+
import { P as PatientHistory, a as ProgramsMap } from './orderRows-BUJYgSc7.cjs';
|
|
27
|
+
export { D as DueItem, b as DueStatus, H as HistoryAllergy, c as HistoryCondition, d as HistoryImmunization, e as HistoryMedication, f as HistoryObservation, g as HistoryOrder, h as HistoryProcedure, I as IsoDate, O as OrderRow, i as OrderRowStatus, j as OrderRowsOptions, k as ProgramMeta, l as buildChartOrderRows, m as buildEncounterOrderRows, n as dueForOrder, o as evaluateDue, p as evaluateProgram, q as isApplicable } from './orderRows-BUJYgSc7.cjs';
|
|
24
28
|
import { InputProps } from './components/Input/index.cjs';
|
|
25
29
|
export { Input, inputVariants } from './components/Input/index.cjs';
|
|
26
30
|
export { Label, LabelProps, labelVariants } from './components/Label/index.cjs';
|
|
@@ -45,7 +49,7 @@ export { Slider, SliderProps, sliderRangeVariants, sliderThumbVariants, sliderTr
|
|
|
45
49
|
export { Switch, SwitchProps, switchThumbVariants, switchTrackVariants } from './components/Switch/index.cjs';
|
|
46
50
|
export { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps } from './components/Table/index.cjs';
|
|
47
51
|
import { UseScrollSpyOptions } from './hooks/index.cjs';
|
|
48
|
-
export { KeyboardShortcutOptions, UseScrollSpyReturn, useClickOutside, useCommandK, useEscapeKey, useFocusTrap, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery, usePrefersReducedMotion, useScrollSpy } from './hooks/index.cjs';
|
|
52
|
+
export { DragOverState, KeyboardShortcutOptions, UseDragReorderOptions, UseDragReorderReturn, UseScrollSpyReturn, dragIndicatorClasses, reorderIds, useClickOutside, useCommandK, useDragReorder, useEscapeKey, useFocusTrap, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useLiveAnnouncement, useMediaQuery, usePrefersReducedMotion, useScrollSpy } from './hooks/index.cjs';
|
|
49
53
|
export { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps, tabsListVariants, tabsTriggerVariants } from './components/Tabs/index.cjs';
|
|
50
54
|
export { SmallMuted, Text, TextProps, textVariants } from './components/Text/index.cjs';
|
|
51
55
|
export { Textarea, TextareaProps, textareaVariants } from './components/Textarea/index.cjs';
|
|
@@ -1178,6 +1182,136 @@ declare namespace AIReconciliationPanel {
|
|
|
1178
1182
|
var displayName: string;
|
|
1179
1183
|
}
|
|
1180
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* MedicationReconciliation — batteries-included medication reconciliation.
|
|
1187
|
+
*
|
|
1188
|
+
* Wraps the presentational `MedicationList` with the full interaction layer:
|
|
1189
|
+
* status changes, Correct / Notes / Add Task modal dialogs, reordering,
|
|
1190
|
+
* removal, and adding medications (quick-add pills + "Other…" modal).
|
|
1191
|
+
*
|
|
1192
|
+
* Works standalone (uncontrolled with `defaultMedications`, or controlled
|
|
1193
|
+
* with `medications` + `onChange`) and is the engine behind the eSheet
|
|
1194
|
+
* `medicationList` question type.
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
interface MedicationReconciliationProps {
|
|
1198
|
+
/** Controlled medication list (use with `onChange`) */
|
|
1199
|
+
medications?: Medication[];
|
|
1200
|
+
/** Initial medication list (uncontrolled) */
|
|
1201
|
+
defaultMedications?: Medication[];
|
|
1202
|
+
/** Called with the next list after every mutation */
|
|
1203
|
+
onChange?: (medications: Medication[]) => void;
|
|
1204
|
+
/** Header title (pass null to hide) */
|
|
1205
|
+
title?: string | null;
|
|
1206
|
+
/** Common medication names for the quick-add list (omit to hide) */
|
|
1207
|
+
quickAddOptions?: string[];
|
|
1208
|
+
/** Row actions to show (default: correct, add-task, note, remove) */
|
|
1209
|
+
actions?: MedicationAction[];
|
|
1210
|
+
/**
|
|
1211
|
+
* Called for host-specific actions this component does not manage
|
|
1212
|
+
* (e.g. 'open', 'refill' when included in `actions`).
|
|
1213
|
+
*/
|
|
1214
|
+
onAction?: (medication: Medication, action: MedicationAction) => void;
|
|
1215
|
+
/**
|
|
1216
|
+
* CodeLookup wiring for the medication editor (Correct / Add Medication):
|
|
1217
|
+
* pass the CodeLookup component + shard location to enable RxNorm/FDB
|
|
1218
|
+
* coding. Defaults to the ambient `CodeLookupProvider` when one is mounted;
|
|
1219
|
+
* pass `false` to force a plain-text medication name input.
|
|
1220
|
+
*
|
|
1221
|
+
* ```tsx
|
|
1222
|
+
* import { CodeLookup } from '@mieweb/ui/…/CodeLookup';
|
|
1223
|
+
* <MedicationReconciliation codeLookup={{ component: CodeLookup, indexUrl: '/codify' }} … />
|
|
1224
|
+
* ```
|
|
1225
|
+
*/
|
|
1226
|
+
codeLookup?: CodeLookupConfig | false;
|
|
1227
|
+
/**
|
|
1228
|
+
* Render an inline CodeLookup search bar in the add-medication section
|
|
1229
|
+
* (requires `codeLookup`). Picks add immediately as Unreconciled — the
|
|
1230
|
+
* fastest entry path, and non-leading (no suggested medications), which
|
|
1231
|
+
* makes it the right choice for patient-facing intake.
|
|
1232
|
+
*/
|
|
1233
|
+
inlineAddSearch?: boolean;
|
|
1234
|
+
/** Hide all action buttons (display only) */
|
|
1235
|
+
readOnly?: boolean;
|
|
1236
|
+
/** Message shown when the Unreconciled group is empty */
|
|
1237
|
+
reconciledMessage?: string;
|
|
1238
|
+
/** Message shown when the medication list has no entries at all */
|
|
1239
|
+
emptyMessage?: string;
|
|
1240
|
+
/** Additional CSS classes */
|
|
1241
|
+
className?: string;
|
|
1242
|
+
/** Test ID for testing */
|
|
1243
|
+
'data-testid'?: string;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @example Standalone (uncontrolled)
|
|
1247
|
+
* ```tsx
|
|
1248
|
+
* <MedicationReconciliation
|
|
1249
|
+
* defaultMedications={presentingMeds}
|
|
1250
|
+
* quickAddOptions={['aspirin 81 mg tablet']}
|
|
1251
|
+
* onChange={(meds) => save(meds)}
|
|
1252
|
+
* />
|
|
1253
|
+
* ```
|
|
1254
|
+
*
|
|
1255
|
+
* @example Controlled
|
|
1256
|
+
* ```tsx
|
|
1257
|
+
* <MedicationReconciliation medications={meds} onChange={setMeds} />
|
|
1258
|
+
* ```
|
|
1259
|
+
*/
|
|
1260
|
+
declare function MedicationReconciliation({ medications: controlledMedications, defaultMedications, onChange, title, quickAddOptions, actions, onAction, codeLookup, inlineAddSearch, readOnly, reconciledMessage, emptyMessage, className, 'data-testid': dataTestId, }: MedicationReconciliationProps): React$1.JSX.Element;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* AllergyManager — batteries-included allergy list.
|
|
1264
|
+
*
|
|
1265
|
+
* Wraps the presentational `AllergyList` with the interaction layer: the
|
|
1266
|
+
* allergy editor (Correct / Add with CodeLookup allergen coding), the note
|
|
1267
|
+
* dialog, removal, and the no-known-allergies (NKA) flow. Uncontrolled via
|
|
1268
|
+
* `defaultAllergies` / controlled via `allergies` + `onChange` — same
|
|
1269
|
+
* pattern as `MedicationReconciliation`.
|
|
1270
|
+
*/
|
|
1271
|
+
|
|
1272
|
+
interface AllergyManagerProps {
|
|
1273
|
+
/** Controlled allergy list (use with `onChange`) */
|
|
1274
|
+
allergies?: Allergy[];
|
|
1275
|
+
/** Initial allergy list (uncontrolled) */
|
|
1276
|
+
defaultAllergies?: Allergy[];
|
|
1277
|
+
/** Called with the next list after every mutation */
|
|
1278
|
+
onChange?: (allergies: Allergy[]) => void;
|
|
1279
|
+
/** No-known-allergies flag (controlled; see AllergyList) */
|
|
1280
|
+
noKnownAllergies?: boolean;
|
|
1281
|
+
/** Called when NKA is toggled */
|
|
1282
|
+
onNoKnownAllergiesChange?: (value: boolean) => void;
|
|
1283
|
+
/** Header title (pass null to hide) */
|
|
1284
|
+
title?: string | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* CodeLookup wiring for allergen search (drug shard). Enables both the
|
|
1287
|
+
* inline add bar and coded allergens in the editor. Defaults to the ambient
|
|
1288
|
+
* `CodeLookupProvider`; pass `false` to force plain text.
|
|
1289
|
+
*/
|
|
1290
|
+
codeLookup?: CodeLookupConfig | false;
|
|
1291
|
+
/** Render an inline allergen search bar in the add section (requires codeLookup) */
|
|
1292
|
+
inlineAddSearch?: boolean;
|
|
1293
|
+
/** Hide all action affordances (display only) */
|
|
1294
|
+
readOnly?: boolean;
|
|
1295
|
+
/** Additional CSS classes */
|
|
1296
|
+
className?: string;
|
|
1297
|
+
/** Test ID for testing */
|
|
1298
|
+
'data-testid'?: string;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* @example Patient intake (uncontrolled, inline search, NKA)
|
|
1302
|
+
* ```tsx
|
|
1303
|
+
* <AllergyManager
|
|
1304
|
+
* defaultAllergies={[]}
|
|
1305
|
+
* inlineAddSearch
|
|
1306
|
+
* codeLookup={{ component: CodeLookup, indexUrl: '/codify' }}
|
|
1307
|
+
* noKnownAllergies={nka}
|
|
1308
|
+
* onNoKnownAllergiesChange={setNka}
|
|
1309
|
+
* onChange={save}
|
|
1310
|
+
* />
|
|
1311
|
+
* ```
|
|
1312
|
+
*/
|
|
1313
|
+
declare function AllergyManager({ allergies: controlled, defaultAllergies, onChange, noKnownAllergies, onNoKnownAllergiesChange, title, codeLookup, inlineAddSearch, readOnly, className, 'data-testid': dataTestId, }: AllergyManagerProps): React$1.JSX.Element;
|
|
1314
|
+
|
|
1181
1315
|
interface AppHeaderProps {
|
|
1182
1316
|
children: ReactNode;
|
|
1183
1317
|
/** Additional CSS classes */
|
|
@@ -1278,6 +1412,372 @@ interface AppHeaderUserMenuProps {
|
|
|
1278
1412
|
}
|
|
1279
1413
|
declare function AppHeaderUserMenu({ name, email, avatarUrl, initials, isOpen, onClick, className, 'data-testid': testId, }: AppHeaderUserMenuProps): React__default.JSX.Element;
|
|
1280
1414
|
|
|
1415
|
+
/** A single coding on a condition assertion (ICD-10 / ICD-11 / SNOMED). */
|
|
1416
|
+
interface ConditionCoding {
|
|
1417
|
+
/** Coding system, e.g. 'ICD-10-CM', 'ICD-11', 'SNOMED' */
|
|
1418
|
+
system: 'ICD-10-CM' | 'ICD-11' | 'SNOMED' | string;
|
|
1419
|
+
code: string;
|
|
1420
|
+
display?: string;
|
|
1421
|
+
/** Which coding is authoritative for this assertion */
|
|
1422
|
+
primary?: boolean;
|
|
1423
|
+
/** Provenance when derived via a crosswalk (e.g. SNOMED→ICD-10 map) */
|
|
1424
|
+
mappedFrom?: string;
|
|
1425
|
+
}
|
|
1426
|
+
/** Longitudinal status of the concern (the stable problem thread). */
|
|
1427
|
+
type ConcernStatus = 'active' | 'recurrence' | 'relapse' | 'inactive' | 'remission' | 'resolved';
|
|
1428
|
+
/** FHIR-aligned verification status of an assertion. */
|
|
1429
|
+
type VerificationStatus = 'unconfirmed' | 'provisional' | 'differential' | 'confirmed' | 'refuted' | 'entered-in-error';
|
|
1430
|
+
/** Why an assertion superseded its predecessor. */
|
|
1431
|
+
type AssertionChangeType = 'refinement' | 'revision' | 'progression' | 'reattribution';
|
|
1432
|
+
/** Three-state flag for an optional field: confident / uncertain / explicitly unknown. */
|
|
1433
|
+
interface FieldUncertainty {
|
|
1434
|
+
/** false = explicitly unknown ("asked; patient doesn't know") — distinct from untouched */
|
|
1435
|
+
known: boolean;
|
|
1436
|
+
/** Why the value is absent (~ FHIR data-absent-reason) */
|
|
1437
|
+
reason?: 'asked-unknown' | 'not-asked' | 'masked' | 'unavailable';
|
|
1438
|
+
/** Softness of a value that IS present */
|
|
1439
|
+
confidence?: 'low' | 'medium' | 'high';
|
|
1440
|
+
note?: string;
|
|
1441
|
+
}
|
|
1442
|
+
/** Condition fields that can carry per-field uncertainty. */
|
|
1443
|
+
type UncertainConditionField = 'coding' | 'onset' | 'severity' | 'laterality' | 'bodySite';
|
|
1444
|
+
/** First-class uncertainty block for a condition assertion. */
|
|
1445
|
+
interface Uncertainty {
|
|
1446
|
+
overall?: 'confirmed' | 'low' | 'medium' | 'high';
|
|
1447
|
+
fields?: Partial<Record<UncertainConditionField, FieldUncertainty>>;
|
|
1448
|
+
}
|
|
1449
|
+
/** A time-stamped, coded characterization of a concern. */
|
|
1450
|
+
interface ConditionAssertion {
|
|
1451
|
+
id: string;
|
|
1452
|
+
/** Display date the assertion was made, e.g. "2023-06-14" */
|
|
1453
|
+
date: string;
|
|
1454
|
+
/** Free-text condition name — the only hard-required clinical field */
|
|
1455
|
+
text: string;
|
|
1456
|
+
coding?: ConditionCoding[];
|
|
1457
|
+
verificationStatus: VerificationStatus;
|
|
1458
|
+
/** How this assertion relates to the one it supersedes */
|
|
1459
|
+
changeType?: AssertionChangeType;
|
|
1460
|
+
/** Id of the assertion this one supersedes */
|
|
1461
|
+
supersedes?: string;
|
|
1462
|
+
severity?: 'mild' | 'moderate' | 'severe';
|
|
1463
|
+
/** Onset — exact date and/or fuzzy human string ("since her twenties") */
|
|
1464
|
+
onset?: {
|
|
1465
|
+
date?: string;
|
|
1466
|
+
fuzzy?: string;
|
|
1467
|
+
};
|
|
1468
|
+
/** First-class uncertainty (§4 of the design doc) */
|
|
1469
|
+
uncertainty?: Uncertainty;
|
|
1470
|
+
note?: string;
|
|
1471
|
+
}
|
|
1472
|
+
/** Relationship between two concerns. */
|
|
1473
|
+
interface ConcernRelationship {
|
|
1474
|
+
type: 'caused-by' | 'evolved-from' | 'differential-sibling' | 'complication-of';
|
|
1475
|
+
/** concernId of the related concern */
|
|
1476
|
+
concernId: string;
|
|
1477
|
+
/** Display name of the related concern */
|
|
1478
|
+
display?: string;
|
|
1479
|
+
}
|
|
1480
|
+
/** A quick, dated progress note about a concern — lighter than an assertion. */
|
|
1481
|
+
interface ConditionObservation {
|
|
1482
|
+
id: string;
|
|
1483
|
+
/** Display date, e.g. "2026-07-03" */
|
|
1484
|
+
date: string;
|
|
1485
|
+
text: string;
|
|
1486
|
+
author?: string;
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* A stable problem thread. The concernId is the durable identity that orders
|
|
1490
|
+
* and encounters reference; assertions carry the evolving codes.
|
|
1491
|
+
*/
|
|
1492
|
+
interface ConditionConcern {
|
|
1493
|
+
concernId: string;
|
|
1494
|
+
clinicalStatus: ConcernStatus;
|
|
1495
|
+
/** Ordered oldest → newest; the last non-refuted assertion is current */
|
|
1496
|
+
assertions: ConditionAssertion[];
|
|
1497
|
+
/** Quick progress notes over time (newest last) */
|
|
1498
|
+
observations?: ConditionObservation[];
|
|
1499
|
+
relationships?: ConcernRelationship[];
|
|
1500
|
+
/** Where the concern came from */
|
|
1501
|
+
source?: 'ehrProblemList' | 'patientReported' | 'manuallyAdded' | 'claimsHistory';
|
|
1502
|
+
}
|
|
1503
|
+
/** Row actions on a concern. */
|
|
1504
|
+
type ProblemListAction = 'open' | 'observe' | 'refine' | 'revise' | 'resolve' | 'relate' | 'move-up' | 'move-down';
|
|
1505
|
+
interface ProblemListProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
|
|
1506
|
+
/** Patient-level concerns (controlled) */
|
|
1507
|
+
concerns: ConditionConcern[];
|
|
1508
|
+
/** Header title (pass null to hide) */
|
|
1509
|
+
title?: string | null;
|
|
1510
|
+
/** Called when a row action is clicked */
|
|
1511
|
+
onAction?: (concern: ConditionConcern, action: ProblemListAction) => void;
|
|
1512
|
+
/** Called when a new problem is added via the capture-first input */
|
|
1513
|
+
onAddProblem?: (text: string) => void;
|
|
1514
|
+
/**
|
|
1515
|
+
* Called with the full ordered list of concernIds after a move — via drag
|
|
1516
|
+
* and drop, the move buttons, or Alt+Arrow keys. Enables reordering. The
|
|
1517
|
+
* component renders concerns in props order — persist the ids wherever the
|
|
1518
|
+
* encounter/patient object lives and feed them back in.
|
|
1519
|
+
*/
|
|
1520
|
+
onReorder?: (concernIds: string[]) => void;
|
|
1521
|
+
/** Which row actions to show (default: all) */
|
|
1522
|
+
actions?: ProblemListAction[];
|
|
1523
|
+
/** Hide all action buttons (display only) */
|
|
1524
|
+
readOnly?: boolean;
|
|
1525
|
+
/** Message shown when there are no concerns */
|
|
1526
|
+
emptyMessage?: string;
|
|
1527
|
+
/** Additional CSS classes */
|
|
1528
|
+
className?: string;
|
|
1529
|
+
/** Test ID for testing */
|
|
1530
|
+
'data-testid'?: string;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Grouping key for a concern. Unconfirmed concerns (current assertion not yet
|
|
1534
|
+
* verified) live in their own group, separate from Active / Resolved.
|
|
1535
|
+
*/
|
|
1536
|
+
declare function concernGroupKey(concern: ConditionConcern): string;
|
|
1537
|
+
declare const CONCERN_STATUS_LABELS: Record<ConcernStatus, string>;
|
|
1538
|
+
declare const CHANGE_TYPE_LABELS: Record<AssertionChangeType, string>;
|
|
1539
|
+
/** The current (last non-refuted, non-error) assertion of a concern. */
|
|
1540
|
+
declare function currentAssertion(concern: ConditionConcern): ConditionAssertion | undefined;
|
|
1541
|
+
/**
|
|
1542
|
+
* Parenthetical coding display. Clinicians don't need chip noise: inline we
|
|
1543
|
+
* show only ICD-10/ICD-11 codes, unlabeled (the code format is obvious), and
|
|
1544
|
+
* SNOMED stays out of the way. The full coding background — every system,
|
|
1545
|
+
* display name, and crosswalk provenance — lives in the tooltip.
|
|
1546
|
+
*/
|
|
1547
|
+
declare function CodingChips({ coding }: {
|
|
1548
|
+
coding?: ConditionCoding[];
|
|
1549
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1550
|
+
/**
|
|
1551
|
+
* Full concern background for a hover/long-press tooltip: assertion history,
|
|
1552
|
+
* coding background, and recent observations.
|
|
1553
|
+
*/
|
|
1554
|
+
declare function concernHistoryContent(concern: ConditionConcern): React$1.ReactNode;
|
|
1555
|
+
/** Badge summarizing an assertion's uncertainty block (§4 of the design doc). */
|
|
1556
|
+
declare function UncertaintyBadge({ uncertainty, }: {
|
|
1557
|
+
uncertainty?: Uncertainty;
|
|
1558
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1559
|
+
/**
|
|
1560
|
+
* Patient-level problem list built on the concern/assertion model: each row is
|
|
1561
|
+
* a stable ConditionConcern whose coded characterization evolves through an
|
|
1562
|
+
* assertion history (refinement / revision / progression). Rows expand to show
|
|
1563
|
+
* the assertion timeline; refuted assertions render struck-through.
|
|
1564
|
+
*
|
|
1565
|
+
* Controlled component: concerns come in via props; every user interaction is
|
|
1566
|
+
* reported through callbacks.
|
|
1567
|
+
*
|
|
1568
|
+
* @example
|
|
1569
|
+
* ```tsx
|
|
1570
|
+
* <ProblemList
|
|
1571
|
+
* concerns={concerns}
|
|
1572
|
+
* onAction={(concern, action) => handleAction(concern, action)}
|
|
1573
|
+
* onAddProblem={(text) => addConcern(text)}
|
|
1574
|
+
* />
|
|
1575
|
+
* ```
|
|
1576
|
+
*/
|
|
1577
|
+
declare const ProblemList: React$1.ForwardRefExoticComponent<ProblemListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1578
|
+
|
|
1579
|
+
/** Order categories that can nest under an assessed problem. */
|
|
1580
|
+
type OrderType = 'medication' | 'lab' | 'imaging' | 'procedure' | 'referral';
|
|
1581
|
+
/**
|
|
1582
|
+
* An order placed this visit. Links to a problem via concernId (durable
|
|
1583
|
+
* IndicationLink) — orders without a concernId collect in the unlinked bucket.
|
|
1584
|
+
*/
|
|
1585
|
+
interface AssessmentOrder {
|
|
1586
|
+
orderId: string;
|
|
1587
|
+
type: OrderType;
|
|
1588
|
+
/** Display text, e.g. "insulin glargine 10 units qhs" */
|
|
1589
|
+
display: string;
|
|
1590
|
+
/** Durable link to the problem this order is for */
|
|
1591
|
+
concernId?: string;
|
|
1592
|
+
/** Secondary display text, e.g. status or sig */
|
|
1593
|
+
detail?: string;
|
|
1594
|
+
/** Coding from the code lookup, when the order was picked from it */
|
|
1595
|
+
code?: {
|
|
1596
|
+
fullid: string;
|
|
1597
|
+
codetype: string;
|
|
1598
|
+
fullcode: string;
|
|
1599
|
+
};
|
|
1600
|
+
/** Urgency — routine when omitted */
|
|
1601
|
+
priority?: 'routine' | 'urgent' | 'stat';
|
|
1602
|
+
/** When to perform/collect, e.g. 'in 3 months', 'next visit' */
|
|
1603
|
+
timing?: string;
|
|
1604
|
+
/** Why the order is placed (diagnosis / reason) */
|
|
1605
|
+
indication?: string;
|
|
1606
|
+
/** Notes to the performing party (lab, radiology, consultant) */
|
|
1607
|
+
notes?: string;
|
|
1608
|
+
/** Imaging/procedure: body site, e.g. 'chest, PA and lateral', 'left knee' */
|
|
1609
|
+
bodySite?: string;
|
|
1610
|
+
/** Referral: target specialty or provider */
|
|
1611
|
+
referTo?: string;
|
|
1612
|
+
}
|
|
1613
|
+
/** A code picked from a lookup (structurally matches CodifyResult). */
|
|
1614
|
+
interface OrderCodePick {
|
|
1615
|
+
fullid: string;
|
|
1616
|
+
label: string;
|
|
1617
|
+
codetype: string;
|
|
1618
|
+
fullcode: string;
|
|
1619
|
+
}
|
|
1620
|
+
/** What the unified add row hands back: a coded pick or free text. */
|
|
1621
|
+
interface AssessmentAddPick {
|
|
1622
|
+
label: string;
|
|
1623
|
+
/** Absent for free-text entries */
|
|
1624
|
+
code?: {
|
|
1625
|
+
fullid: string;
|
|
1626
|
+
codetype: string;
|
|
1627
|
+
fullcode: string;
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
* Render-prop that draws the add-order / add-problem code search. `domains`
|
|
1632
|
+
* reflects the user's order-type filter ('auto' = undefined = search
|
|
1633
|
+
* everything) and `placeholder` is context-specific; call `onPick` with the
|
|
1634
|
+
* chosen code (or `onFreeText` when free text is supported).
|
|
1635
|
+
*/
|
|
1636
|
+
type RenderOrderSearch = (args: {
|
|
1637
|
+
domains?: string[];
|
|
1638
|
+
/** Rank results from these domains first (auto mode: concerns before orders) */
|
|
1639
|
+
preferDomains?: string[];
|
|
1640
|
+
/** Boost these coding systems (assessments prefer ICD-10 over SNOMED) */
|
|
1641
|
+
preferCodetypes?: string[];
|
|
1642
|
+
/** Restrict condition results to billable (leaf) ICD-10 codes */
|
|
1643
|
+
billableOnly?: boolean;
|
|
1644
|
+
placeholder: string;
|
|
1645
|
+
onPick: (pick: OrderCodePick) => void;
|
|
1646
|
+
/** Present when free-text entry is supported in this context */
|
|
1647
|
+
onFreeText?: (text: string) => void;
|
|
1648
|
+
}) => React$1.ReactNode;
|
|
1649
|
+
/** Infer the order type from the picked code's coding system. */
|
|
1650
|
+
declare function orderTypeForCodetype(codetype: string): OrderType;
|
|
1651
|
+
/** Coding systems that represent a diagnosis/problem rather than an order.
|
|
1652
|
+
* Occupational surveillance programs (OSHA/FMCSA/NFPA/FAA) are concerns too —
|
|
1653
|
+
* a program joins the problem list and its required orders link under it. */
|
|
1654
|
+
declare function isConditionCodetype(codetype: string): boolean;
|
|
1655
|
+
/** Code-lookup domains to search for an order-type filter. */
|
|
1656
|
+
declare const ORDER_TYPE_SEARCH_DOMAINS: Record<OrderType, string[]>;
|
|
1657
|
+
/** One assessed problem this visit. */
|
|
1658
|
+
interface AssessmentItem {
|
|
1659
|
+
concernId: string;
|
|
1660
|
+
/** Today's assertion for the concern (even a no-change "addressed today" one) */
|
|
1661
|
+
assertionId: string;
|
|
1662
|
+
note?: string;
|
|
1663
|
+
}
|
|
1664
|
+
/** Row actions on an assessed problem. */
|
|
1665
|
+
type AssessmentAction = 'refine' | 'revise' | 'add-order';
|
|
1666
|
+
interface AssessmentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
|
|
1667
|
+
/** Concerns addressed this visit (with their assertion history) */
|
|
1668
|
+
concerns: ConditionConcern[];
|
|
1669
|
+
/** Assessment entries — one per assessed concern (controlled) */
|
|
1670
|
+
items: AssessmentItem[];
|
|
1671
|
+
/** Orders placed this visit */
|
|
1672
|
+
orders?: AssessmentOrder[];
|
|
1673
|
+
/** Header title (pass null to hide) */
|
|
1674
|
+
title?: string | null;
|
|
1675
|
+
/** Show the plan (orders nested under each problem). Default true. */
|
|
1676
|
+
showPlan?: boolean;
|
|
1677
|
+
/** Called when the plan toggle changes (omit to hide the toggle) */
|
|
1678
|
+
onShowPlanChange?: (show: boolean) => void;
|
|
1679
|
+
/** Called when a row action is clicked */
|
|
1680
|
+
onAction?: (item: AssessmentItem, action: AssessmentAction) => void;
|
|
1681
|
+
/**
|
|
1682
|
+
* Called when a new order is created from the inline order form.
|
|
1683
|
+
* Enables the "Add order" affordances — `item` is null when the order is
|
|
1684
|
+
* added from the unlinked bucket. The new order should come back in via
|
|
1685
|
+
* `orders` (with `concernId` set to the item's concern when linked).
|
|
1686
|
+
*/
|
|
1687
|
+
onAddOrder?: (item: AssessmentItem | null, order: {
|
|
1688
|
+
type: OrderType;
|
|
1689
|
+
display: string;
|
|
1690
|
+
code?: AssessmentOrder['code'];
|
|
1691
|
+
}) => void;
|
|
1692
|
+
/**
|
|
1693
|
+
* Called when a diagnosis (coded or free text) is added as a new problem
|
|
1694
|
+
* via the unified add row. Enables it together with renderOrderSearch.
|
|
1695
|
+
*/
|
|
1696
|
+
onAddAssessment?: (pick: AssessmentAddPick) => void;
|
|
1697
|
+
/**
|
|
1698
|
+
* Render a code-lookup search for the add-order / add-problem forms
|
|
1699
|
+
* (dependency-injected so the library build doesn't bundle the lookup's
|
|
1700
|
+
* worker — pass e.g. a CodeLookup wired to your index). Defaults to the
|
|
1701
|
+
* ambient `CodeLookupProvider`; pass `false` to fall back to free-text
|
|
1702
|
+
* order entry.
|
|
1703
|
+
*/
|
|
1704
|
+
renderOrderSearch?: RenderOrderSearch | false;
|
|
1705
|
+
/** Called when an unlinked order is linked to a problem — also used when an
|
|
1706
|
+
* order is dragged onto another problem (re-link = move) */
|
|
1707
|
+
onLinkOrder?: (order: AssessmentOrder, concernId: string) => void;
|
|
1708
|
+
/**
|
|
1709
|
+
* Called when the user chooses Edit on an order, before the built-in
|
|
1710
|
+
* inline form opens. Return true to take over editing — e.g. open a
|
|
1711
|
+
* `MedicationEditor` for medication orders — and feed the change back in
|
|
1712
|
+
* via `orders`. Anything falsy falls through to the inline display/detail
|
|
1713
|
+
* form (when `onEditOrder` is set).
|
|
1714
|
+
*/
|
|
1715
|
+
onEditOrderStart?: (order: AssessmentOrder) => boolean | void;
|
|
1716
|
+
/**
|
|
1717
|
+
* Called with the edited display/detail when an order's inline edit is
|
|
1718
|
+
* saved — enables the Edit action on every order row (any type).
|
|
1719
|
+
* Persist and feed the change back in via `orders`.
|
|
1720
|
+
*/
|
|
1721
|
+
onEditOrder?: (order: AssessmentOrder, changes: {
|
|
1722
|
+
display: string;
|
|
1723
|
+
detail?: string;
|
|
1724
|
+
}) => void;
|
|
1725
|
+
/** Called when an order is removed — enables the Remove action on order rows */
|
|
1726
|
+
onRemoveOrder?: (order: AssessmentOrder) => void;
|
|
1727
|
+
/**
|
|
1728
|
+
* Called with the full new order-id sequence after an order is dragged to a
|
|
1729
|
+
* new position — enables drag & drop reordering of orders within a plan.
|
|
1730
|
+
* Orders render in `orders` array order per problem; persist and feed back.
|
|
1731
|
+
*/
|
|
1732
|
+
onReorderOrders?: (orderIds: string[]) => void;
|
|
1733
|
+
/**
|
|
1734
|
+
* Called with the new concernId order after a problem block is dragged —
|
|
1735
|
+
* enables drag & drop reordering of the assessment. The list renders in
|
|
1736
|
+
* `items` order; persist and feed the order back in.
|
|
1737
|
+
*/
|
|
1738
|
+
onReorderItems?: (concernIds: string[]) => void;
|
|
1739
|
+
/** Hide all controls (display only) */
|
|
1740
|
+
readOnly?: boolean;
|
|
1741
|
+
/**
|
|
1742
|
+
* Restrict concern searches to billable (leaf) ICD-10 codes — category
|
|
1743
|
+
* roots (E11) and SNOMED synonyms are dropped. Forwarded to
|
|
1744
|
+
* renderOrderSearch as `billableOnly`.
|
|
1745
|
+
*/
|
|
1746
|
+
billableOnly?: boolean;
|
|
1747
|
+
/** Additional CSS classes */
|
|
1748
|
+
className?: string;
|
|
1749
|
+
/** Test ID for testing */
|
|
1750
|
+
'data-testid'?: string;
|
|
1751
|
+
}
|
|
1752
|
+
declare const ORDER_TYPE_META: Record<OrderType, {
|
|
1753
|
+
label: string;
|
|
1754
|
+
icon: React$1.ComponentType<{
|
|
1755
|
+
size?: number | string;
|
|
1756
|
+
}>;
|
|
1757
|
+
}>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Visit-specific Assessment (& Plan). One block per assessed problem showing
|
|
1760
|
+
* today's assertion; with the plan enabled, orders linked to the problem (via
|
|
1761
|
+
* concernId — the durable IndicationLink) render indented under it. Orders
|
|
1762
|
+
* without a problem link collect in an unlinked bucket with a one-click link
|
|
1763
|
+
* affordance.
|
|
1764
|
+
*
|
|
1765
|
+
* Controlled component: concerns, items and orders come in via props; every
|
|
1766
|
+
* user interaction is reported through callbacks.
|
|
1767
|
+
*
|
|
1768
|
+
* @example
|
|
1769
|
+
* ```tsx
|
|
1770
|
+
* <Assessment
|
|
1771
|
+
* concerns={touchedConcerns}
|
|
1772
|
+
* items={assessment}
|
|
1773
|
+
* orders={orders}
|
|
1774
|
+
* onAction={(item, action) => handleAction(item, action)}
|
|
1775
|
+
* onLinkOrder={(order, concernId) => linkOrder(order.orderId, concernId)}
|
|
1776
|
+
* />
|
|
1777
|
+
* ```
|
|
1778
|
+
*/
|
|
1779
|
+
declare const Assessment: React$1.ForwardRefExoticComponent<AssessmentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1780
|
+
|
|
1281
1781
|
type AuthMode = 'login' | 'signup' | 'forgotPassword' | 'resetPassword' | 'verify';
|
|
1282
1782
|
interface SocialProvider {
|
|
1283
1783
|
id: string;
|
|
@@ -1551,6 +2051,242 @@ declare function createDefaultSchedule(): DaySchedule[];
|
|
|
1551
2051
|
declare function create24HourSchedule(): DaySchedule[];
|
|
1552
2052
|
declare function createWeekdaySchedule(start?: string, end?: string): DaySchedule[];
|
|
1553
2053
|
|
|
2054
|
+
interface CodifyResult {
|
|
2055
|
+
fullid: string;
|
|
2056
|
+
label: string;
|
|
2057
|
+
codetype: string;
|
|
2058
|
+
fullcode: string;
|
|
2059
|
+
domain: string;
|
|
2060
|
+
score: number;
|
|
2061
|
+
/** true when the match came (partly) from an alias token */
|
|
2062
|
+
viaAlias: boolean;
|
|
2063
|
+
/** true when the match came (partly) from the edit-distance typo fallback */
|
|
2064
|
+
viaFuzzy?: boolean;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* CodeLookup — offline medical-code autocomplete combobox.
|
|
2069
|
+
*
|
|
2070
|
+
* Full pipeline & design docs:
|
|
2071
|
+
* https://github.com/mieweb/ui/blob/main/src/components/CodeLookup/README.md
|
|
2072
|
+
* (local: ./README.md)
|
|
2073
|
+
*/
|
|
2074
|
+
|
|
2075
|
+
type CodifyDomain = 'condition' | 'med' | 'lab' | 'procedure' | 'vaccine' | 'occupational' | 'quality';
|
|
2076
|
+
interface CodeLookupProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'onSelect'> {
|
|
2077
|
+
/** Base URL where per-locale index directories are served */
|
|
2078
|
+
indexUrl: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* Locale of the shard set to load: shards are fetched from
|
|
2081
|
+
* `{indexUrl}/{locale}/manifest.json`. Non-en locales may be sample
|
|
2082
|
+
* subsets (see README). Default: 'en'.
|
|
2083
|
+
*/
|
|
2084
|
+
locale?: string;
|
|
2085
|
+
/** Domains to load & search (default: all in the manifest) */
|
|
2086
|
+
domains?: CodifyDomain[];
|
|
2087
|
+
/**
|
|
2088
|
+
* Override the program-metadata sidecar URL (defaults to
|
|
2089
|
+
* `{indexUrl}/{locale}/programs.json`). Lets a deployment serve
|
|
2090
|
+
* employer-specific protocols — required orders, periodicity — without
|
|
2091
|
+
* rebuilding shards. See mieweb/codify programs.json for the format.
|
|
2092
|
+
*/
|
|
2093
|
+
programsUrl?: string;
|
|
2094
|
+
/**
|
|
2095
|
+
* Restrict searches to these domains at query time without reloading
|
|
2096
|
+
* shards (e.g. an order-type filter). Default: all loaded domains.
|
|
2097
|
+
*/
|
|
2098
|
+
searchDomains?: CodifyDomain[];
|
|
2099
|
+
/**
|
|
2100
|
+
* Rank matches from these domains ahead of the rest (still searched
|
|
2101
|
+
* together). E.g. `['condition', 'occupational']` so an "add (auto)" box
|
|
2102
|
+
* surfaces concerns before the many med/lab matches.
|
|
2103
|
+
*/
|
|
2104
|
+
preferDomains?: CodifyDomain[];
|
|
2105
|
+
/**
|
|
2106
|
+
* Boost these coding systems within their domain — e.g. `['ICD10']` so
|
|
2107
|
+
* billing codes outrank SNOMED synonyms in an assessment context.
|
|
2108
|
+
*/
|
|
2109
|
+
preferCodetypes?: string[];
|
|
2110
|
+
/**
|
|
2111
|
+
* Conditions: only billable (leaf) ICD-10 codes — category roots (E11)
|
|
2112
|
+
* and SNOMED entries are dropped. Other domains are unaffected.
|
|
2113
|
+
*/
|
|
2114
|
+
billableOnly?: boolean;
|
|
2115
|
+
/** Called when a result is picked */
|
|
2116
|
+
onSelect?: (result: CodifyResult) => void;
|
|
2117
|
+
/**
|
|
2118
|
+
* Seed the search box with this query on mount. By default the search
|
|
2119
|
+
* runs as soon as the index is ready and the results open — lets an
|
|
2120
|
+
* editor opened on an uncoded entry immediately offer the closest coded
|
|
2121
|
+
* matches. Only read once (remount — e.g. via key — to reseed).
|
|
2122
|
+
*/
|
|
2123
|
+
initialQuery?: string;
|
|
2124
|
+
/**
|
|
2125
|
+
* Whether the seeded `initialQuery` searches on mount (default true).
|
|
2126
|
+
* Pass false to just prefill the box — e.g. an already-coded entry whose
|
|
2127
|
+
* name should be visible without the results dropdown popping open.
|
|
2128
|
+
*/
|
|
2129
|
+
initialSearch?: boolean;
|
|
2130
|
+
/**
|
|
2131
|
+
* Allow free-text entry: called when the user presses Enter without a
|
|
2132
|
+
* highlighted result, or clicks the "use as free text" footer row.
|
|
2133
|
+
*/
|
|
2134
|
+
onFreeText?: (text: string) => void;
|
|
2135
|
+
/** Max results to show */
|
|
2136
|
+
limit?: number;
|
|
2137
|
+
placeholder?: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* Render just the search input + dropdown (no card, no status line) for
|
|
2140
|
+
* embedding in forms. Loading/error state shows in the placeholder.
|
|
2141
|
+
*/
|
|
2142
|
+
bare?: boolean;
|
|
2143
|
+
/**
|
|
2144
|
+
* Clear the input after a selection so the next entry can be typed
|
|
2145
|
+
* immediately (defaults to true in bare mode, false otherwise).
|
|
2146
|
+
*/
|
|
2147
|
+
clearOnSelect?: boolean;
|
|
2148
|
+
/** Additional CSS classes */
|
|
2149
|
+
className?: string;
|
|
2150
|
+
/** Test ID for testing */
|
|
2151
|
+
'data-testid'?: string;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* CodeLookupProvider — supply an offline `CodeLookup` once so the clinical
|
|
2156
|
+
* components (allergies, medications, conditions, orders, assessment) default
|
|
2157
|
+
* to coded search without per-component wiring.
|
|
2158
|
+
*
|
|
2159
|
+
* `CodeLookup` ships a module Web Worker the library's tsup build can't bundle,
|
|
2160
|
+
* so it can't be imported here — the app injects the component (import it from
|
|
2161
|
+
* its own bundler, e.g. Vite/Next) and this context distributes it:
|
|
2162
|
+
*
|
|
2163
|
+
* ```tsx
|
|
2164
|
+
* import { CodeLookupProvider } from '@mieweb/ui';
|
|
2165
|
+
* import { CodeLookup } from '…/CodeLookup'; // app bundler resolves the worker
|
|
2166
|
+
*
|
|
2167
|
+
* <CodeLookupProvider component={CodeLookup} indexUrl="/codify">
|
|
2168
|
+
* <App />
|
|
2169
|
+
* </CodeLookupProvider>
|
|
2170
|
+
* ```
|
|
2171
|
+
*
|
|
2172
|
+
* Components read the context as their default; an explicit `codeLookup` /
|
|
2173
|
+
* `renderCodeSearch` prop overrides it, and `codeLookup={false}` (or
|
|
2174
|
+
* `renderCodeSearch={false}`) opts a component out back to plain text.
|
|
2175
|
+
*
|
|
2176
|
+
* This module is intentionally worker-free (only a `import type` of
|
|
2177
|
+
* `CodeLookupProps`, which is erased at build) so it is safe to ship in the
|
|
2178
|
+
* main `@mieweb/ui` entry.
|
|
2179
|
+
*/
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* The CodeLookup component the provider distributes to consumers.
|
|
2183
|
+
*
|
|
2184
|
+
* Typed as a bare function component (not `ComponentType`) so it stays
|
|
2185
|
+
* structurally assignable into the narrower per-domain lookup configs
|
|
2186
|
+
* (`MedicationLookupProps`, `OrderLookupProps`, …) — a `ComponentType` union
|
|
2187
|
+
* drags in `ComponentClass.defaultProps`, whose contravariance breaks that
|
|
2188
|
+
* assignment. `CodeLookup` is a function component, so this is exact.
|
|
2189
|
+
*/
|
|
2190
|
+
type CodeLookupComponent = (props: CodeLookupProps) => React$1.ReactElement | null;
|
|
2191
|
+
/** Resolved lookup wiring a component consumes (from prop or context). */
|
|
2192
|
+
interface CodeLookupProviderConfig {
|
|
2193
|
+
/** The injected CodeLookup component (worker-capable, from the app bundle). */
|
|
2194
|
+
component: CodeLookupComponent;
|
|
2195
|
+
/** Base URL the codify worker fetches `{locale}/manifest.json` + shards from. */
|
|
2196
|
+
indexUrl: string;
|
|
2197
|
+
/** Shard-set locale (default 'en'). */
|
|
2198
|
+
locale?: string;
|
|
2199
|
+
}
|
|
2200
|
+
interface CodeLookupProviderProps {
|
|
2201
|
+
/** The CodeLookup component to distribute (import it in your app). */
|
|
2202
|
+
component: CodeLookupComponent;
|
|
2203
|
+
/** Where the codify index is served (default '/codify'). */
|
|
2204
|
+
indexUrl?: string;
|
|
2205
|
+
/** Shard-set locale (default 'en'). */
|
|
2206
|
+
locale?: string;
|
|
2207
|
+
children: React$1.ReactNode;
|
|
2208
|
+
}
|
|
2209
|
+
declare function CodeLookupProvider({ component, indexUrl, locale, children, }: CodeLookupProviderProps): React$1.ReactElement;
|
|
2210
|
+
/**
|
|
2211
|
+
* The ambient CodeLookup config supplied by the nearest `CodeLookupProvider`,
|
|
2212
|
+
* or `null` when none is mounted (components then fall back to plain text).
|
|
2213
|
+
*/
|
|
2214
|
+
declare function useCodeLookupConfig(): CodeLookupProviderConfig | null;
|
|
2215
|
+
|
|
2216
|
+
/** What the editor is doing. Determines the resulting changeType / operation. */
|
|
2217
|
+
type ConditionEditorMode = 'add' | 'observe' | 'refine' | 'revise' | 'relate';
|
|
2218
|
+
/** Draft assertion returned by onSave — id/date assignment is the caller's job. */
|
|
2219
|
+
type ConditionAssertionDraft = Omit<ConditionAssertion, 'id' | 'date'>;
|
|
2220
|
+
/** A code picked from an injected lookup (structurally matches CodifyResult). */
|
|
2221
|
+
interface ConditionCodePick {
|
|
2222
|
+
fullid: string;
|
|
2223
|
+
label: string;
|
|
2224
|
+
codetype: string;
|
|
2225
|
+
fullcode: string;
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* Render-prop that draws the coding-section code search. Picking a result
|
|
2229
|
+
* calls `onPick` (appends a coding row, fills an empty name); free text calls
|
|
2230
|
+
* `onFreeText` (fills the name).
|
|
2231
|
+
*/
|
|
2232
|
+
type RenderConditionCodeSearch = (args: {
|
|
2233
|
+
placeholder: string;
|
|
2234
|
+
onPick: (pick: ConditionCodePick) => void;
|
|
2235
|
+
onFreeText: (text: string) => void;
|
|
2236
|
+
}) => React$1.ReactNode;
|
|
2237
|
+
interface ConditionEditorProps {
|
|
2238
|
+
/** Editor operation */
|
|
2239
|
+
mode: ConditionEditorMode;
|
|
2240
|
+
/** Whether the dialog is open */
|
|
2241
|
+
open: boolean;
|
|
2242
|
+
/** Called when the dialog requests closing (cancel / overlay / Esc) */
|
|
2243
|
+
onOpenChange: (open: boolean) => void;
|
|
2244
|
+
/** The concern being refined / revised / related (omit for add) */
|
|
2245
|
+
concern?: ConditionConcern;
|
|
2246
|
+
/** Concerns available as relate targets (mode 'relate') */
|
|
2247
|
+
relatableConcerns?: ConditionConcern[];
|
|
2248
|
+
/** Called with the new assertion draft (modes add / refine / revise) */
|
|
2249
|
+
onSave?: (draft: ConditionAssertionDraft) => void;
|
|
2250
|
+
/** Called with the relationship (mode 'relate') */
|
|
2251
|
+
onRelate?: (relationship: ConcernRelationship) => void;
|
|
2252
|
+
/** Called with a quick progress note (mode 'observe', or the observation box in other modes) */
|
|
2253
|
+
onAddObservation?: (text: string) => void;
|
|
2254
|
+
/**
|
|
2255
|
+
* Render a code-lookup search for the coding section (dependency-injected
|
|
2256
|
+
* so the library build doesn't bundle the lookup's worker — pass e.g. a
|
|
2257
|
+
* `CodeLookup` wired to your index, the same pattern as Assessment's
|
|
2258
|
+
* `renderOrderSearch`). Picking a result appends a coding row and fills an
|
|
2259
|
+
* empty problem name; free text fills the problem name. Defaults to the
|
|
2260
|
+
* ambient `CodeLookupProvider` (condition shard, ICD-10 preferred); pass
|
|
2261
|
+
* `false` for manual code entry only.
|
|
2262
|
+
*/
|
|
2263
|
+
renderCodeSearch?: RenderConditionCodeSearch | false;
|
|
2264
|
+
/** Additional CSS classes for the dialog content */
|
|
2265
|
+
className?: string;
|
|
2266
|
+
/** Test ID for testing */
|
|
2267
|
+
'data-testid'?: string;
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* Dialog editor for condition assertions — the condition analog of the
|
|
2271
|
+
* planned MedicationEditor. Capture-first: only the problem name is required;
|
|
2272
|
+
* coding, severity, and onset are progressive enrichment. Every optional
|
|
2273
|
+
* field carries the §4.1 three-state affordance (confident / uncertain /
|
|
2274
|
+
* explicitly unknown), written to the assertion's uncertainty block.
|
|
2275
|
+
*
|
|
2276
|
+
* Modes:
|
|
2277
|
+
* - `add` — new concern, first assertion
|
|
2278
|
+
* - `observe` — quick progress note on the concern; shows the full observation
|
|
2279
|
+
* history over time
|
|
2280
|
+
* - `refine` — new assertion, changeType 'refinement' (or 'progression')
|
|
2281
|
+
* - `revise` — new assertion, changeType 'revision'; warns that the prior
|
|
2282
|
+
* assertion will be refuted
|
|
2283
|
+
* - `relate` — picks a relationship type + target concern
|
|
2284
|
+
*/
|
|
2285
|
+
declare function ConditionEditor({ mode, open, onOpenChange, concern, relatableConcerns, onSave, onRelate, onAddObservation, renderCodeSearch, className, 'data-testid': dataTestId, }: ConditionEditorProps): react_jsx_runtime.JSX.Element;
|
|
2286
|
+
declare namespace ConditionEditor {
|
|
2287
|
+
var displayName: string;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
1554
2290
|
interface BackgroundCheckCandidate {
|
|
1555
2291
|
/** Candidate ID */
|
|
1556
2292
|
id: string;
|
|
@@ -3916,6 +4652,51 @@ interface FileManagerProps {
|
|
|
3916
4652
|
*/
|
|
3917
4653
|
declare function FileManager({ files, totalStorageUsed, storageLimit, onUpload, onDelete, onDownload, onPreview, uploadProgress, isUploading, showDropzone, acceptedFileTypes, errorMessage, className, }: FileManagerProps): react_jsx_runtime.JSX.Element;
|
|
3918
4654
|
|
|
4655
|
+
/**
|
|
4656
|
+
* HealthSurveillance — the patient's health-surveillance due list.
|
|
4657
|
+
*
|
|
4658
|
+
* Renders the output of the due-evaluation engine (see ./evaluate.ts) over a
|
|
4659
|
+
* PatientHistory and program metadata (programs.json from mieweb/codify or a
|
|
4660
|
+
* deployment's own): occupational surveillance programs (OSHA, DOT, …) and
|
|
4661
|
+
* quality measures (CMS eCQMs) grouped into what's **due/overdue/pending**
|
|
4662
|
+
* and what's **done**. Each due item expands into a multi-select picklist of
|
|
4663
|
+
* its satisfying orders so several can be placed at once (`onOrderMany`) —
|
|
4664
|
+
* designed to sit next to the Assessment component, which receives the picks
|
|
4665
|
+
* as orders linked to the program's concern.
|
|
4666
|
+
*/
|
|
4667
|
+
|
|
4668
|
+
interface SurveillanceOrderPick {
|
|
4669
|
+
/** CODETYPE|FULLCODE of the picked order */
|
|
4670
|
+
key: string;
|
|
4671
|
+
label: string;
|
|
4672
|
+
/** Program the order satisfies (CODETYPE|FULLCODE) */
|
|
4673
|
+
programKey: string;
|
|
4674
|
+
/** Program display label */
|
|
4675
|
+
programLabel: string;
|
|
4676
|
+
}
|
|
4677
|
+
interface HealthSurveillanceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
4678
|
+
history: PatientHistory;
|
|
4679
|
+
/** Program metadata — programs.json contents (`programs` field) */
|
|
4680
|
+
programs: ProgramsMap;
|
|
4681
|
+
/** Occupational enrollments; quality measures apply to everyone in-gate */
|
|
4682
|
+
enrolledKeys?: string[];
|
|
4683
|
+
/** Display labels for program keys (falls back to the key) */
|
|
4684
|
+
programLabels?: Record<string, string>;
|
|
4685
|
+
/** Display labels for order keys (falls back to history labels, then key) */
|
|
4686
|
+
orderLabels?: Record<string, string>;
|
|
4687
|
+
/** Single order requested from a due item's picklist */
|
|
4688
|
+
onOrder?: (pick: SurveillanceOrderPick) => void;
|
|
4689
|
+
/** Batch of orders requested from a due item's picklist */
|
|
4690
|
+
onOrderMany?: (picks: SurveillanceOrderPick[]) => void;
|
|
4691
|
+
/** Evaluation clock (defaults to today; inject for deterministic stories) */
|
|
4692
|
+
now?: Date;
|
|
4693
|
+
/** Additional CSS classes */
|
|
4694
|
+
className?: string;
|
|
4695
|
+
/** Test ID for testing */
|
|
4696
|
+
'data-testid'?: string;
|
|
4697
|
+
}
|
|
4698
|
+
declare const HealthSurveillance: React$1.ForwardRefExoticComponent<HealthSurveillanceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4699
|
+
|
|
3919
4700
|
interface FAQItem {
|
|
3920
4701
|
id: string;
|
|
3921
4702
|
question: string;
|
|
@@ -5426,6 +6207,82 @@ interface OrderListProps<T> {
|
|
|
5426
6207
|
declare function OrderList<T>({ orders, activeTab, tabs, onTabChange, renderOrder, getOrderStatus, isLoading, emptyMessage, emptyIcon, searchPlaceholder, searchValue, onSearchChange, showSearch, actions, className, }: OrderListProps<T>): react_jsx_runtime.JSX.Element;
|
|
5427
6208
|
declare const defaultOrderTabs: OrderListTab[];
|
|
5428
6209
|
|
|
6210
|
+
/** Code-lookup domains the order editors search. */
|
|
6211
|
+
type OrderSearchDomain = 'med' | 'vaccine' | 'lab' | 'procedure';
|
|
6212
|
+
/** Minimal shape of a CodeLookup selection the editors consume. */
|
|
6213
|
+
interface OrderLookupResult {
|
|
6214
|
+
fullid: string;
|
|
6215
|
+
label: string;
|
|
6216
|
+
codetype: string;
|
|
6217
|
+
fullcode: string;
|
|
6218
|
+
}
|
|
6219
|
+
/**
|
|
6220
|
+
* Structural subset of `CodeLookupProps` the order editors use. `CodeLookup`
|
|
6221
|
+
* satisfies this — it is injected (not imported) because its Web Worker
|
|
6222
|
+
* keeps it out of the library build (see CodeLookup/index.ts).
|
|
6223
|
+
*/
|
|
6224
|
+
interface OrderLookupProps {
|
|
6225
|
+
indexUrl: string;
|
|
6226
|
+
locale?: string;
|
|
6227
|
+
domains?: OrderSearchDomain[];
|
|
6228
|
+
bare?: boolean;
|
|
6229
|
+
clearOnSelect?: boolean;
|
|
6230
|
+
placeholder?: string;
|
|
6231
|
+
initialQuery?: string;
|
|
6232
|
+
initialSearch?: boolean;
|
|
6233
|
+
onSelect?: (result: OrderLookupResult) => void;
|
|
6234
|
+
onFreeText?: (text: string) => void;
|
|
6235
|
+
}
|
|
6236
|
+
/** CodeLookup wiring for the editors (component injected by the consumer). */
|
|
6237
|
+
interface OrderCodeLookupConfig {
|
|
6238
|
+
/** The CodeLookup component: `import { CodeLookup } from '…/CodeLookup'` */
|
|
6239
|
+
component: React$1.ComponentType<OrderLookupProps>;
|
|
6240
|
+
/** Base URL of the codify index, e.g. '/codify' */
|
|
6241
|
+
indexUrl: string;
|
|
6242
|
+
/** Shard locale (default 'en') */
|
|
6243
|
+
locale?: string;
|
|
6244
|
+
}
|
|
6245
|
+
interface OrderEditorProps {
|
|
6246
|
+
/** Whether the editor is open */
|
|
6247
|
+
open: boolean;
|
|
6248
|
+
/** Order being edited — omit for "add" mode */
|
|
6249
|
+
order?: AssessmentOrder;
|
|
6250
|
+
/** Order type used in add mode (edit mode follows `order.type`) */
|
|
6251
|
+
defaultType?: OrderType;
|
|
6252
|
+
/**
|
|
6253
|
+
* Codify shard location for coded order search. Defaults to the ambient
|
|
6254
|
+
* `CodeLookupProvider`; pass `false` to force a plain name input.
|
|
6255
|
+
*/
|
|
6256
|
+
codeLookup?: OrderCodeLookupConfig | false;
|
|
6257
|
+
/** Called when the editor is dismissed without saving */
|
|
6258
|
+
onClose: () => void;
|
|
6259
|
+
/** Called with the complete order on save */
|
|
6260
|
+
onSave: (order: AssessmentOrder) => void;
|
|
6261
|
+
}
|
|
6262
|
+
/** Map an order onto the `Medication` shape `MedicationEditor` edits —
|
|
6263
|
+
* strength/dose form/quantity unit are parsed from the display label and
|
|
6264
|
+
* route/frequency/PRN from the sig, so the editor opens fully populated. */
|
|
6265
|
+
declare function orderToMedication(order: AssessmentOrder): Medication;
|
|
6266
|
+
/** Fold a saved `Medication` back into the order it was opened from. */
|
|
6267
|
+
declare function medicationToOrder(med: Medication, base: AssessmentOrder): AssessmentOrder;
|
|
6268
|
+
/** Type-specific editor props: `OrderEditorProps` minus the morphing. */
|
|
6269
|
+
type TypedOrderEditorProps = Omit<OrderEditorProps, 'defaultType'>;
|
|
6270
|
+
/** Lab order editor — coded lab search, priority, collection timing. */
|
|
6271
|
+
declare function LabOrderEditor(props: TypedOrderEditorProps): react_jsx_runtime.JSX.Element;
|
|
6272
|
+
/** Imaging order editor — coded study search, body site, priority. */
|
|
6273
|
+
declare function ImagingOrderEditor(props: TypedOrderEditorProps): react_jsx_runtime.JSX.Element;
|
|
6274
|
+
/** Procedure order editor — coded procedure search, body site, priority. */
|
|
6275
|
+
declare function ProcedureOrderEditor(props: TypedOrderEditorProps): react_jsx_runtime.JSX.Element;
|
|
6276
|
+
/** Referral editor — refer-to specialty/provider, reason, urgency. */
|
|
6277
|
+
declare function ReferralEditor(props: TypedOrderEditorProps): react_jsx_runtime.JSX.Element;
|
|
6278
|
+
/**
|
|
6279
|
+
* Order editor that morphs by order type: medications get the full
|
|
6280
|
+
* `MedicationEditor` (NCPDP prescription), every other type gets its
|
|
6281
|
+
* dedicated editor. API-compatible with `MedicationEditor` — see the module
|
|
6282
|
+
* doc for the mapping.
|
|
6283
|
+
*/
|
|
6284
|
+
declare function OrderEditor({ open, order, defaultType, codeLookup, onClose, onSave, }: OrderEditorProps): React$1.JSX.Element | null;
|
|
6285
|
+
|
|
5429
6286
|
interface OrderLookupFormProps {
|
|
5430
6287
|
/** Handler for form submission */
|
|
5431
6288
|
onSubmit?: (data: OrderLookupData) => void;
|
|
@@ -5969,6 +6826,69 @@ interface PermissionsEditorProps {
|
|
|
5969
6826
|
*/
|
|
5970
6827
|
declare function PermissionsEditor({ userName, groups, assignedPermissions, onPermissionsChange, showEmployerAccess, employers, selectedEmployers, onEmployersChange, labels, className, }: PermissionsEditorProps): react_jsx_runtime.JSX.Element;
|
|
5971
6828
|
|
|
6829
|
+
/** How the encounter is scoped — gates how it merges into the patient record. */
|
|
6830
|
+
type EncounterScope = 'problem-focused' | 'comprehensive';
|
|
6831
|
+
/** Encounter-scoped relevance of a concern. Lives on the reference, never on the concern. */
|
|
6832
|
+
type ProblemRelevance = 'addressed' | 'relevant-history' | 'noted';
|
|
6833
|
+
/** A reference from the encounter to a patient concern. */
|
|
6834
|
+
interface PresentingEntry {
|
|
6835
|
+
concernId: string;
|
|
6836
|
+
relevance: ProblemRelevance;
|
|
6837
|
+
comments?: string;
|
|
6838
|
+
}
|
|
6839
|
+
interface PresentingProblemsProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
|
|
6840
|
+
/** Patient-level concerns to select from */
|
|
6841
|
+
patientConcerns: ConditionConcern[];
|
|
6842
|
+
/** Encounter-scoped references (controlled) */
|
|
6843
|
+
presenting: PresentingEntry[];
|
|
6844
|
+
/** Encounter scope — problem-focused encounters assert nothing about unselected concerns */
|
|
6845
|
+
scope: EncounterScope;
|
|
6846
|
+
/** Header title (pass null to hide) */
|
|
6847
|
+
title?: string | null;
|
|
6848
|
+
/** Called when a concern's relevance is set (null = deselected) */
|
|
6849
|
+
onRelevanceChange?: (concern: ConditionConcern, relevance: ProblemRelevance | null) => void;
|
|
6850
|
+
/** Called when a new (ad-hoc) problem is added by name */
|
|
6851
|
+
onAddProblem?: (text: string) => void;
|
|
6852
|
+
/**
|
|
6853
|
+
* Called with the new concernId order of the "Relevant this visit" list
|
|
6854
|
+
* after a drag — enables drag & drop reordering. The list renders in
|
|
6855
|
+
* `presenting` order; persist and feed the order back in.
|
|
6856
|
+
*/
|
|
6857
|
+
onReorder?: (concernIds: string[]) => void;
|
|
6858
|
+
/** Negative assertion — only assertable when scope is comprehensive */
|
|
6859
|
+
noKnownProblems?: boolean;
|
|
6860
|
+
/** Called when the no-known-problems toggle changes */
|
|
6861
|
+
onNoKnownProblemsChange?: (value: boolean) => void;
|
|
6862
|
+
/** Hide all controls (display only) */
|
|
6863
|
+
readOnly?: boolean;
|
|
6864
|
+
/** Additional CSS classes */
|
|
6865
|
+
className?: string;
|
|
6866
|
+
/** Test ID for testing */
|
|
6867
|
+
'data-testid'?: string;
|
|
6868
|
+
}
|
|
6869
|
+
declare const RELEVANCE_LABELS: Record<ProblemRelevance, string>;
|
|
6870
|
+
/**
|
|
6871
|
+
* Encounter-scoped relevant problem list (a.k.a. Medical History), fed by the
|
|
6872
|
+
* patient-level ProblemList. Providers select which concerns are relevant this
|
|
6873
|
+
* visit and tag each reference with a relevance — the tag lives on the
|
|
6874
|
+
* encounter reference, never on the concern itself.
|
|
6875
|
+
*
|
|
6876
|
+
* In problem-focused scope, unselected concerns are visually out of scope (not
|
|
6877
|
+
* absent) and the negative assertion (no known problems) is disabled.
|
|
6878
|
+
*
|
|
6879
|
+
* @example
|
|
6880
|
+
* ```tsx
|
|
6881
|
+
* <PresentingProblems
|
|
6882
|
+
* patientConcerns={concerns}
|
|
6883
|
+
* presenting={presenting}
|
|
6884
|
+
* scope="problem-focused"
|
|
6885
|
+
* onRelevanceChange={(concern, relevance) => setRelevance(concern.concernId, relevance)}
|
|
6886
|
+
* onAddProblem={(text) => addAdHocConcern(text)}
|
|
6887
|
+
* />
|
|
6888
|
+
* ```
|
|
6889
|
+
*/
|
|
6890
|
+
declare const PresentingProblems: React$1.ForwardRefExoticComponent<PresentingProblemsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
6891
|
+
|
|
5972
6892
|
interface ProductVersionProps {
|
|
5973
6893
|
/** Product name */
|
|
5974
6894
|
name: string;
|
|
@@ -7021,6 +7941,65 @@ interface ResultsEntryCardProps extends Omit<ResultsEntryModalProps, 'open' | 'o
|
|
|
7021
7941
|
*/
|
|
7022
7942
|
declare function ResultsEntryCard({ isOpen, onClose, onSubmit, ...restProps }: ResultsEntryCardProps): react_jsx_runtime.JSX.Element;
|
|
7023
7943
|
|
|
7944
|
+
/**
|
|
7945
|
+
* Toolbar / group arrow-key navigation (WAI-ARIA toolbar pattern).
|
|
7946
|
+
* Attach to a container's onKeyDown: ←/→ move focus between enabled
|
|
7947
|
+
* buttons, Home/End jump to first/last.
|
|
7948
|
+
*/
|
|
7949
|
+
declare function toolbarKeyNav(e: React$1.KeyboardEvent<HTMLElement>): void;
|
|
7950
|
+
declare const ALIGN: {
|
|
7951
|
+
/** Vertically centered on the row's right edge (single-line rows). */
|
|
7952
|
+
readonly center: "pointer-fine:top-1/2 pointer-fine:right-0 pointer-fine:-translate-y-1/2";
|
|
7953
|
+
/** Pinned near the row's top-right corner (multi-line rows). */
|
|
7954
|
+
readonly top: "pointer-fine:top-1.5 pointer-fine:right-1.5";
|
|
7955
|
+
};
|
|
7956
|
+
declare const REVEAL: {
|
|
7957
|
+
readonly row: string;
|
|
7958
|
+
readonly order: string;
|
|
7959
|
+
readonly grid: string;
|
|
7960
|
+
};
|
|
7961
|
+
interface RowActionToolbarProps {
|
|
7962
|
+
/** Accessible name, e.g. `Actions for penicillin`. */
|
|
7963
|
+
label: string;
|
|
7964
|
+
/** Overlay alignment on fine-pointer devices. @default 'center' */
|
|
7965
|
+
align?: keyof typeof ALIGN;
|
|
7966
|
+
/**
|
|
7967
|
+
* Hover scope for the reveal. Use `'order'` when the row is a
|
|
7968
|
+
* `group/order` nested inside another `group`; use `'grid'` inside a
|
|
7969
|
+
* datavis (NITRO) grid cell — the toolbar then stays in flow (the cell
|
|
7970
|
+
* reserves its space) and reveals when the `.wcdv-tr` row is hovered.
|
|
7971
|
+
* @default 'row'
|
|
7972
|
+
*/
|
|
7973
|
+
group?: keyof typeof REVEAL;
|
|
7974
|
+
className?: string;
|
|
7975
|
+
children: React$1.ReactNode;
|
|
7976
|
+
}
|
|
7977
|
+
/**
|
|
7978
|
+
* Per-row action toolbar for clinical lists.
|
|
7979
|
+
*
|
|
7980
|
+
* On hover-capable (fine pointer) devices it floats over the row's right
|
|
7981
|
+
* edge as a card-styled overlay, hidden until the row is hovered or
|
|
7982
|
+
* keyboard-focused. Touch devices can't hover, so the toolbar stays in
|
|
7983
|
+
* flow at the end of the row (`ml-auto`) and is always visible.
|
|
7984
|
+
*
|
|
7985
|
+
* Implements WAI-ARIA toolbar arrow-key navigation. The parent row must be
|
|
7986
|
+
* `relative` and carry the matching `group` (or `group/order`) class.
|
|
7987
|
+
*/
|
|
7988
|
+
declare function RowActionToolbar({ label, align, group, className, children, }: RowActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
7989
|
+
interface RowIconButtonProps {
|
|
7990
|
+
label: string;
|
|
7991
|
+
icon: React$1.ComponentType<{
|
|
7992
|
+
size?: number | string;
|
|
7993
|
+
}>;
|
|
7994
|
+
onClick: () => void;
|
|
7995
|
+
/** Toggle-button state (renders `aria-pressed` + tinted background). */
|
|
7996
|
+
active?: boolean;
|
|
7997
|
+
/** `md` = 32px button / 16px icon; `sm` = 28px / 14px. @default 'md' */
|
|
7998
|
+
size?: 'md' | 'sm';
|
|
7999
|
+
}
|
|
8000
|
+
/** Tooltip-labeled ghost icon button for `RowActionToolbar`. */
|
|
8001
|
+
declare function RowIconButton({ label, icon: Icon, onClick, active, size, }: RowIconButtonProps): react_jsx_runtime.JSX.Element;
|
|
8002
|
+
|
|
7024
8003
|
interface CalendarAppointment {
|
|
7025
8004
|
id: string;
|
|
7026
8005
|
title: string;
|
|
@@ -8556,4 +9535,4 @@ declare namespace WebsiteInputGroup {
|
|
|
8556
9535
|
var displayName: string;
|
|
8557
9536
|
}
|
|
8558
9537
|
|
|
8559
|
-
export { AIChat, AIChatCallbacks, AIChatModal, type AIChatModalProps, type AIChatProps, AIChatSession, AIChatTrigger, type AIChatTriggerProps, AILogoIcon, type AILogoIconProps, AIMessage, AIMessageDisplay, type AIMessageDisplayProps, AIReconciliationPanel, type AIReconciliationPanelProps, AIRenderTextContent, AISuggestedAction, AITypingIndicator, AccessDeniedPage, type AccessDeniedPageProps, ActionButton, type ActionButtonProps, ActionButtonsBar, type ActionButtonsBarProps, ActiveFilters, type ActiveFiltersProps, AddContactModal, type AddContactModalProps, AddServiceCard, type AddServiceCardProps, AdditionalFields, type AdditionalFieldsProps, Address, AddressCard, type AddressCardProps, AddressCompact, type AddressCompactProps, type AddressData, AddressDisplay, type AddressDisplayProps, AddressForm, type AddressFormData, type AddressFormProps, AddressInline, type AddressInlineProps, type AddressProps, type AllergyItem, AppHeader, AppHeaderActions, type AppHeaderActionsProps, AppHeaderBrand, type AppHeaderBrandProps, AppHeaderDivider, type AppHeaderDividerProps, AppHeaderIconButton, type AppHeaderIconButtonProps, type AppHeaderProps, AppHeaderSearch, type AppHeaderSearchProps, AppHeaderSection, type AppHeaderSectionProps, AppHeaderTitle, type AppHeaderTitleProps, AppHeaderUserMenu, type AppHeaderUserMenuProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, AttachmentPreviewItem, type AttachmentPreviewItemProps, type AttachmentPreviewProps, type AttachmentState, type AttachmentType, AuthButtons, type AuthButtonsProps, AuthDialog, type AuthDialogProps, type AuthMode, type BackgroundCheckCandidate, type BackgroundCheckReport, type BankAccountData, BookAppointmentButton, type BookAppointmentButtonProps, BookingDialog, type BookingDialogProps, type BookingFormData, type BookingProvider, type BookingService, BusinessHours, BusinessHoursEditor, type BusinessHoursEditorProps, type BusinessHoursProps, type BusinessHoursSchedule, type CSVColumn, CSVColumnMapper, type CSVColumnMapperProps, CSVFileUpload, type CSVFileUploadProps, type CalendarAppointment, CameraButton, type CameraButtonProps, type CameraPermission, CardSkeleton, type CardSkeletonProps, CharacterCounter, type CharacterCounterProps, type ChartDataPoint, ChatBubble, type ChatBubbleProps, CheckrIntegration, type CheckrIntegrationProps, ChevronIcon, type ChevronIconProps, type ClaimFormData, ClaimListingButton, type ClaimListingButtonProps, ClaimProviderForm, type ClaimProviderFormProps, CloseIcon, type CloseIconProps, CommandPalette, type CommandPaletteCategory, type CommandPaletteContextValue, type CommandPaletteItem, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, CommandPaletteTrigger, type CommandPaletteTriggerProps, CompactCookieBanner, type CompactCookieBannerProps, CompactFilterBar, type CompactFilterBarProps, CompactHeader, type CompactHeaderProps, CompactHours, type CompactHoursProps, CompactProviderHeader, type CompactProviderHeaderProps, type ConfirmationResult, type ConnectionInfo, type ConnectionState, ConnectionStatusBadge, type ConnectionStatusBadgeProps, ConnectionStatusBar, type ConnectionStatusBarProps, ConnectionStatusOverlay, type ConnectionStatusOverlayProps, ConsentSwitch, type ConsentSwitchProps, type Contact, type ContactAddress, type ContactFormData, type Conversation, ConversationHeader, type ConversationHeaderProps, ConversationListItem, type ConversationListItemProps, ConversationListSkeleton, type ConversationListSkeletonProps, type ConversationType, CookieConsentBanner, type CookieConsentBannerProps, type CookieConsentLink, CopyrightText, type CopyrightTextProps, CountBadge, type CountBadgeAction, type CountBadgeItem, type CountBadgeItemStatus, type CountBadgeProps, type CreateInvoiceData, CreateInvoiceModal, type CreateInvoiceModalProps, CreateReferralModal, type CreateReferralModalProps, type CreditCardData, type CustomField, DEFAULT_ACCEPTED_FILE_TYPES, DEFAULT_ERROR_CONFIGS, DEFAULT_LANGUAGES, DEFAULT_MAX_FILE_SIZE_MB, DEFAULT_RADIUS_OPTIONS, DEFAULT_SOCIAL_PROVIDERS, DOTBadge, type DOTBadgeProps, DashboardWidget, DashboardWidgetActions, type DashboardWidgetActionsProps, DashboardWidgetDataCards, type DashboardWidgetDataCardsProps, DashboardWidgetInfo, type DashboardWidgetInfoProps, type DashboardWidgetProps, DashboardWidgetTable, type DashboardWidgetTableProps, type DataCardItem, type DateRange$1 as DateRange, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangePresetKey, DateSeparator, type DateSeparatorProps, type DayHours, type DaySchedule, type Department, type DetectionConfig, type DetectionMetrics, type DetectionState, DialogOverlay, type DialogOverlayProps, DisclaimerText, type DisclaimerTextProps, type DocumentBoundary, DocumentDetectionOverlay, DocumentScanner, type DocumentScannerProps, DragDropZone, type DragDropZoneProps, DropZone, type DropZoneProps, DropzoneOverlay, type DropzoneOverlayProps, EditUserRoleModal, type EditUserRoleModalProps, type Employee, type EmployeeAddress, type EmployeeData, EmployeeForm, type EmployeeFormData, type EmployeeFormProps, type EmployeePhone, EmployeeProfileCard, type EmployeeProfileCardProps, type Employer, type EmployerAccess, type EmployerAddress, type EmployerContact, EmployerContactCard, type EmployerContactCardProps, type EmployerDetails, type EmployerInvoice, EmployerList, type EmployerListProps, type EmployerOption, type EmployerOrder, EmployerPricingCard, type EmployerPricingCardProps, type EmployerServiceConfig, EmployerServiceModal, type EmployerServiceModalProps, EmployerView, type EmployerViewProps, EmptyState, type EmptyStateProps, ErrorPage, type ErrorPageConfig, type ErrorPageProps, type ErrorType, type FAQItem, type FieldOption, type FileItem, FileManager, type FileManagerProps, FilePreview, type FilePreviewProps, FloatingAIChat, type FloatingAIChatProps, FloatingInput, type FloatingInputProps, type FooterLink, type FooterLinkGroup, FooterLinkSection, type FooterLinkSectionProps, SocialMediaLinks as FooterSocialLinks, type SocialMediaLinksProps as FooterSocialLinksProps, type GeolocationStatus, type HRISProvider, HRISProviderSelector, type HRISProviderSelectorProps, HelpSupportPanel, type HelpSupportPanelProps, HeroSearchBar, type HeroSearchBarProps, HoursSummary, type HoursSummaryProps, type InfoItem, InlineBookingForm, type InlineBookingFormProps, InputProps, type InventoryLogEntry, InventoryManager, type InventoryManagerProps, InviteUserModal, type InviteUserModalProps, type Invoice, type InvoiceLineItem$1 as InvoiceLineItem, InvoiceList, type InvoiceListProps, type InvoicePaymentDetails, InvoicePaymentPage, type InvoicePaymentPageProps, InvoiceView, type InvoiceViewProps, type KeyValueEntry, type Language, LanguageSelector, LanguageSelectorInline, type LanguageSelectorInlineProps, LanguageSelectorNative, type LanguageSelectorNativeProps, type LanguageSelectorProps, LegalLinks, type LegalLinksProps, LightboxModal, type LightboxModalProps, LoadMoreButton, type LoadMoreButtonProps, LoadingBar, type LoadingBarProps, LoadingDots, type LoadingDotsProps, LoadingOverlay, type LoadingOverlayProps, LoadingPage, type LoadingPageProps, LoadingSkeleton, type LoadingSkeletonProps, MCPResourceLink, MCPToolCall, MCPToolCallDisplay, type MCPToolCallDisplayProps, MCPToolStatus, MaintenancePage, type MaintenancePageProps, type MedicationItem, type MentionOption, type Message, type MessageAction, type MessageAttachment, MessageAvatar, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageGroup, MessageList, type MessageListProps, type MessageParticipant, type MessageReaction, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageStatusIndicator, MessageThread, type MessageThreadProps, type MessageType, type MessagingEventHandlers, type MessagingLoadingState, MessagingSplitView, type MessagingSplitViewProps, type MetricData, MobileBackButton, type MobileBackButtonProps, MobileMenuButton, type MobileMenuButtonProps, MobileMenuPanel, type MobileMenuPanelProps, type NavLink, NavLinks, type NavLinksProps, type NewMessage, NewsletterForm, type NewsletterFormProps, NotFoundPage, type NotFoundPageProps, type Notification, NotificationCenter, type NotificationCenterProps, OfflinePage, type OfflinePageProps, OnboardingCompletion, type OnboardingCompletionProps, type OnboardingStep, OnboardingStepQuestion, type OnboardingStepQuestionProps, OnboardingWizard, type OnboardingWizardProps, OpenStatusBadge, OrderCard, type OrderCardProps, OrderConfirmation, type OrderConfirmationProps, OrderConfirmationWizard, type OrderConfirmationWizardProps, OrderDetailSidebar, type OrderDetailSidebarProps, type OrderDetails, type OrderEmployee, type OrderEmployer, OrderList, type OrderListProps, type OrderListTab, type OrderLookupData, OrderLookupForm, type OrderLookupFormProps, type OrderOption, type OrderService, OrderSidebar, type OrderSidebarProps, type OrderSidebarTab, OrderSidebarTabs, type OrderSidebarTabsProps, type OrderStatus$1 as OrderStatus, PageHeader, type PageHeaderProps, type PatientData, PatientHeader, type PatientHeaderProps, type PatientName, type PatientOverflowAction, type Payment, type PaymentFormData, PaymentHistoryTable, type PaymentHistoryTableProps, type PaymentMethod, PaymentMethodBank, type PaymentMethodBankProps, PaymentMethodCard, type PaymentMethodCardProps, PaymentMethodList, type PaymentMethodListProps, type PendingClaim, PendingClaimsTable, type PendingClaimsTableProps, type Permission, type PermissionGroup, PermissionsEditor, type PermissionsEditorProps, type Point, type PostalCodeInfo, type PreviewFile, type PricingTier, ProductVersion, ProductVersionBadge, type ProductVersionBadgeProps, type ProductVersionProps, type Provider, type ProviderAddress$1 as ProviderAddress, Breadcrumb as ProviderBreadcrumb, type BreadcrumbItem as ProviderBreadcrumbItem, type BreadcrumbProps as ProviderBreadcrumbProps, ProviderCard, ProviderCardGrid, type ProviderCardGridProps, type ProviderCardProps, ProviderCardSkeleton, type ProviderCardSkeletonProps, type ProviderContact, type ProviderAddress as ProviderDetailAddress, type ProviderDetailData, ProviderDetailHeader, type ProviderDetailHeaderProps, ProviderDetailHeaderSkeleton, type ProviderDetailHeaderSkeletonProps, type ProviderFilters, ProviderLogo, type ProviderLogoProps, type ProviderOption, ProviderOverview, type ProviderOverviewProps, ProviderSearchBar, type ProviderSearchBarProps, ProviderSearchFilters, type ProviderSearchFiltersProps, ProviderSelector, type ProviderSelectorProps, type ProviderService, ProviderSettings, type ProviderSettingsData, type ProviderSettingsProps, SocialMediaLinks$1 as ProviderSocialLinks, type SocialMediaLinksProps$1 as ProviderSocialLinksProps, type ProviderStats, type ProviderUrls, type ProviderUser, ProviderUsersTable, type ProviderUsersTableProps, QuickBookCard, type QuickBookCardProps, type QuickLink, QuickLinksCard, type QuickLinksCardProps, type RadiusOption, type ReadReceipt, ReadReceiptIndicator, type ReadReceiptIndicatorProps, type RecentActivity, type ReconciliationAcceptedChange, type ReconciliationConfidenceLevel, type ReconciliationProposal, type ReconciliationSource, type RecurringService, RecurringServiceAddCard, type RecurringServiceAddCardProps, RecurringServiceCard, type RecurringServiceCardProps, type RecurringServiceCardState, type RecurringServiceFormData, RecurringServiceGrid, type RecurringServiceGridProps, RecurringServiceSetupModal, type RecurringServiceSetupModalProps, type ReferralData, RefreshIcon, type RefreshIconProps, RejectionModal, type RejectionModalProps, type RejectionReason, ReportDashboard, type ReportDashboardProps, ReportDatePicker, type ReportDatePickerProps, ReportLink, type ReportLinkProps, type ReportResult, ReportTimeRange, type ReportTimeRangeProps, ResourceLink, type ResourceLinkProps, type ResultStatus, ResultsEntryCard, type ResultsEntryData, ResultsEntryForm, type ResultsEntryFormProps, ResultsEntryModal, type ResultsEntryModalProps, type Role, type SSOConfigData, SSOConfigForm, type SSOConfigFormProps, type ScannerSource, type ScannerState, ScheduleCalendar, type ScheduleCalendarProps, type SearchResults, SearchResultsMessage, type SearchResultsMessageProps, type SelectableService, SelectedServicesBadges, type SelectedServicesBadgesProps, SendButton, type SendButtonProps, SendIcon, type SendIconProps, ServerErrorPage, type ServerErrorPageProps, ServiceAccordion, type ServiceAccordionProps, ServiceBadge, ServiceBadgeGroup, type ServiceBadgeGroupProps, type ServiceBadgeProps, ServiceCard, type ServiceCardProps, type ServiceCategory$1 as ServiceCategory, ServiceCategoryBadge, type ServiceCategoryBadgeProps, type ServiceFormData, ServiceGeneralSettings, type ServiceGeneralSettingsProps, ServiceGrid, type ServiceGridProps, type ServiceGroup, type ServiceItem, ServiceLink, ServiceList, type ServiceListProps, ServiceMultiSelect, type ServiceOption, ServicePicker, type ServicePickerProps, type ServicePrice, ServicePricingManager, type ServicePricingManagerProps, ServiceSelect, type ServiceSelectProps, ServiceShippingSettings, type ServiceShippingSettingsProps, type ServiceSubCategory, ServiceTagCloud, ServiceTagCloudBadges, type ServiceTagCloudProps as ServiceTagCloudBadgesProps, type ServiceTagCloudProps$1 as ServiceTagCloudProps, SetupServiceModal, type SetupServiceModalProps, type ShippingAddress, Sidebar, SidebarContent, type SidebarContentProps, type SidebarContextValue, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarMobileToggle, type SidebarMobileToggleProps, SidebarNav, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarSearch, type SidebarSearchProps, SidebarToggle, type SidebarToggleProps, type SignupData, SimpleFooter, type SimpleFooterProps, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderProps, SiteLogo, type SiteLogoProps, SkeletonMessage, type SkeletonMessageProps, type SocialLink, type SocialProvider, SparklesIcon, type SparklesIconProps, SpinnerIcon, type SpinnerIconProps, SpinnerProps, type Step, StepIndicator, type StepIndicatorProps, StripeBadge, type StripeBadgeProps, StripeSecureBadge, type StripeSecureBadgeProps, SuggestedActions, type SuggestedActionsProps, type SupportContact, type SystemMessageType, type SystemReport, TableOfContents, type TableOfContentsProps, type TimeRange, type TimeSlot, type TimelineEvent, TimelineEventList, type TimelineEventListProps, TimelineProgress, type TimelineProgressProps, type TimelineSize, type TimelineStep, type TimelineStepState, Toast, ToastContainer, type ToastContainerProps, type ToastContextValue, type ToastData, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastVariant, type TocItem, ToolStatusIcon, type TopItem, TypingIndicator, type TypingIndicatorProps, type TypingState, UpdateAvailableOverlay, type UpdateAvailableOverlayProps, type UpdateInfo, type UseConnectionStatusOptions, type UseConnectionStatusReturn, type UseCookieConsentOptions, type UseCookieConsentReturn, type UseDropzoneOptions, type UseDropzoneReturn, type UseMessageScrollOptions, type UseMessageScrollReturn, type UseMessagesOptions, type UseMessagesReturn, type UseReadReceiptsOptions, UseScrollSpyOptions, type UseTypingIndicatorOptions, type UseTypingIndicatorReturn, UserMenu, type UserMenuProps, type UserProfile, type UserRole, type ValidationError, VerifiedBadge, type VerifiedBadgeProps, WEBSITE_TYPES, WebChartReportViewer, type WebChartReportViewerProps, WebcamModal, type WebcamModalProps, type WebsiteEntry, WebsiteInput, WebsiteInputGroup, type WebsiteInputGroupProps, type WebsiteInputProps, type WebsiteType, type WidgetAction, type WidgetTableAction, type WidgetTableColumn, bubbleVariants, calculateDateRange, countBadgeVariants, countChipVariants, create24HourSchedule, createDefaultSchedule, createWeekdaySchedule, defaultOrderTabs, defaultReconciliationIsEqual, formatAddressLines, formatAddressSingleLine, formatCityState, formatCityStateZip, formatDateLabel, formatFileSize, formatLastSeen, generateAttachmentId, generateId, getConversationSubtitle, getConversationTitle, getDefaultPresets, getExtendedPresets, getFileType, getGoogleMapsSearchUrl, getGoogleMapsUrl, getToolIcon, groupMessagesByDate, headerVariants$2 as headerVariants, isSameSenderGroup, isValidUrl, panelVariants as reconciliationPanelVariants, sendButtonVariants, useCamera, useCommandPalette, useConnectionStatus, useCookieConsent, useDocumentDetection, useDropzone, useFileUpload, useMessageScroll, useMessages, useReadReceipts, useSidebar, useToast, useTypingIndicator, validateFile, widgetVariants };
|
|
9538
|
+
export { AIChat, AIChatCallbacks, AIChatModal, type AIChatModalProps, type AIChatProps, AIChatSession, AIChatTrigger, type AIChatTriggerProps, AILogoIcon, type AILogoIconProps, AIMessage, AIMessageDisplay, type AIMessageDisplayProps, AIReconciliationPanel, type AIReconciliationPanelProps, AIRenderTextContent, AISuggestedAction, AITypingIndicator, AccessDeniedPage, type AccessDeniedPageProps, ActionButton, type ActionButtonProps, ActionButtonsBar, type ActionButtonsBarProps, ActiveFilters, type ActiveFiltersProps, AddContactModal, type AddContactModalProps, AddServiceCard, type AddServiceCardProps, AdditionalFields, type AdditionalFieldsProps, Address, AddressCard, type AddressCardProps, AddressCompact, type AddressCompactProps, type AddressData, AddressDisplay, type AddressDisplayProps, AddressForm, type AddressFormData, type AddressFormProps, AddressInline, type AddressInlineProps, type AddressProps, Allergy, type AllergyItem, AllergyManager, type AllergyManagerProps, AppHeader, AppHeaderActions, type AppHeaderActionsProps, AppHeaderBrand, type AppHeaderBrandProps, AppHeaderDivider, type AppHeaderDividerProps, AppHeaderIconButton, type AppHeaderIconButtonProps, type AppHeaderProps, AppHeaderSearch, type AppHeaderSearchProps, AppHeaderSection, type AppHeaderSectionProps, AppHeaderTitle, type AppHeaderTitleProps, AppHeaderUserMenu, type AppHeaderUserMenuProps, type AssertionChangeType, Assessment, type AssessmentAction, type AssessmentAddPick, type AssessmentItem, type AssessmentOrder, type AssessmentProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, AttachmentPreviewItem, type AttachmentPreviewItemProps, type AttachmentPreviewProps, type AttachmentState, type AttachmentType, AuthButtons, type AuthButtonsProps, AuthDialog, type AuthDialogProps, type AuthMode, type BackgroundCheckCandidate, type BackgroundCheckReport, type BankAccountData, BookAppointmentButton, type BookAppointmentButtonProps, BookingDialog, type BookingDialogProps, type BookingFormData, type BookingProvider, type BookingService, BusinessHours, BusinessHoursEditor, type BusinessHoursEditorProps, type BusinessHoursProps, type BusinessHoursSchedule, CHANGE_TYPE_LABELS, CONCERN_STATUS_LABELS, type CSVColumn, CSVColumnMapper, type CSVColumnMapperProps, CSVFileUpload, type CSVFileUploadProps, type CalendarAppointment, CameraButton, type CameraButtonProps, type CameraPermission, CardSkeleton, type CardSkeletonProps, CharacterCounter, type CharacterCounterProps, type ChartDataPoint, ChatBubble, type ChatBubbleProps, CheckrIntegration, type CheckrIntegrationProps, ChevronIcon, type ChevronIconProps, type ClaimFormData, ClaimListingButton, type ClaimListingButtonProps, ClaimProviderForm, type ClaimProviderFormProps, CloseIcon, type CloseIconProps, type CodeLookupComponent, CodeLookupConfig, CodeLookupProvider, type CodeLookupProviderConfig, type CodeLookupProviderProps, CodingChips, CommandPalette, type CommandPaletteCategory, type CommandPaletteContextValue, type CommandPaletteItem, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, CommandPaletteTrigger, type CommandPaletteTriggerProps, CompactCookieBanner, type CompactCookieBannerProps, CompactFilterBar, type CompactFilterBarProps, CompactHeader, type CompactHeaderProps, CompactHours, type CompactHoursProps, CompactProviderHeader, type CompactProviderHeaderProps, type ConcernRelationship, type ConcernStatus, type ConditionAssertion, type ConditionAssertionDraft, type ConditionCodePick, type ConditionCoding, type ConditionConcern, ConditionEditor, type ConditionEditorMode, type ConditionEditorProps, type ConditionObservation, type ConfirmationResult, type ConnectionInfo, type ConnectionState, ConnectionStatusBadge, type ConnectionStatusBadgeProps, ConnectionStatusBar, type ConnectionStatusBarProps, ConnectionStatusOverlay, type ConnectionStatusOverlayProps, ConsentSwitch, type ConsentSwitchProps, type Contact, type ContactAddress, type ContactFormData, type Conversation, ConversationHeader, type ConversationHeaderProps, ConversationListItem, type ConversationListItemProps, ConversationListSkeleton, type ConversationListSkeletonProps, type ConversationType, CookieConsentBanner, type CookieConsentBannerProps, type CookieConsentLink, CopyrightText, type CopyrightTextProps, CountBadge, type CountBadgeAction, type CountBadgeItem, type CountBadgeItemStatus, type CountBadgeProps, type CreateInvoiceData, CreateInvoiceModal, type CreateInvoiceModalProps, CreateReferralModal, type CreateReferralModalProps, type CreditCardData, type CustomField, DEFAULT_ACCEPTED_FILE_TYPES, DEFAULT_ERROR_CONFIGS, DEFAULT_LANGUAGES, DEFAULT_MAX_FILE_SIZE_MB, DEFAULT_RADIUS_OPTIONS, DEFAULT_SOCIAL_PROVIDERS, DOTBadge, type DOTBadgeProps, DashboardWidget, DashboardWidgetActions, type DashboardWidgetActionsProps, DashboardWidgetDataCards, type DashboardWidgetDataCardsProps, DashboardWidgetInfo, type DashboardWidgetInfoProps, type DashboardWidgetProps, DashboardWidgetTable, type DashboardWidgetTableProps, type DataCardItem, type DateRange$1 as DateRange, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangePresetKey, DateSeparator, type DateSeparatorProps, type DayHours, type DaySchedule, type Department, type DetectionConfig, type DetectionMetrics, type DetectionState, DialogOverlay, type DialogOverlayProps, DisclaimerText, type DisclaimerTextProps, type DocumentBoundary, DocumentDetectionOverlay, DocumentScanner, type DocumentScannerProps, DragDropZone, type DragDropZoneProps, DropZone, type DropZoneProps, DropzoneOverlay, type DropzoneOverlayProps, EditUserRoleModal, type EditUserRoleModalProps, type Employee, type EmployeeAddress, type EmployeeData, EmployeeForm, type EmployeeFormData, type EmployeeFormProps, type EmployeePhone, EmployeeProfileCard, type EmployeeProfileCardProps, type Employer, type EmployerAccess, type EmployerAddress, type EmployerContact, EmployerContactCard, type EmployerContactCardProps, type EmployerDetails, type EmployerInvoice, EmployerList, type EmployerListProps, type EmployerOption, type EmployerOrder, EmployerPricingCard, type EmployerPricingCardProps, type EmployerServiceConfig, EmployerServiceModal, type EmployerServiceModalProps, EmployerView, type EmployerViewProps, EmptyState, type EmptyStateProps, type EncounterScope, ErrorPage, type ErrorPageConfig, type ErrorPageProps, type ErrorType, type FAQItem, type FieldOption, type FieldUncertainty, type FileItem, FileManager, type FileManagerProps, FilePreview, type FilePreviewProps, FloatingAIChat, type FloatingAIChatProps, FloatingInput, type FloatingInputProps, type FooterLink, type FooterLinkGroup, FooterLinkSection, type FooterLinkSectionProps, SocialMediaLinks as FooterSocialLinks, type SocialMediaLinksProps as FooterSocialLinksProps, type GeolocationStatus, type HRISProvider, HRISProviderSelector, type HRISProviderSelectorProps, HealthSurveillance, type HealthSurveillanceProps, HelpSupportPanel, type HelpSupportPanelProps, HeroSearchBar, type HeroSearchBarProps, HoursSummary, type HoursSummaryProps, ImagingOrderEditor, type InfoItem, InlineBookingForm, type InlineBookingFormProps, InputProps, type InventoryLogEntry, InventoryManager, type InventoryManagerProps, InviteUserModal, type InviteUserModalProps, type Invoice, type InvoiceLineItem$1 as InvoiceLineItem, InvoiceList, type InvoiceListProps, type InvoicePaymentDetails, InvoicePaymentPage, type InvoicePaymentPageProps, InvoiceView, type InvoiceViewProps, type KeyValueEntry, LabOrderEditor, type Language, LanguageSelector, LanguageSelectorInline, type LanguageSelectorInlineProps, LanguageSelectorNative, type LanguageSelectorNativeProps, type LanguageSelectorProps, LegalLinks, type LegalLinksProps, LightboxModal, type LightboxModalProps, LoadMoreButton, type LoadMoreButtonProps, LoadingBar, type LoadingBarProps, LoadingDots, type LoadingDotsProps, LoadingOverlay, type LoadingOverlayProps, LoadingPage, type LoadingPageProps, LoadingSkeleton, type LoadingSkeletonProps, MCPResourceLink, MCPToolCall, MCPToolCallDisplay, type MCPToolCallDisplayProps, MCPToolStatus, MaintenancePage, type MaintenancePageProps, Medication, MedicationAction, type MedicationItem, MedicationReconciliation, type MedicationReconciliationProps, type MentionOption, type Message, type MessageAction, type MessageAttachment, MessageAvatar, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageGroup, MessageList, type MessageListProps, type MessageParticipant, type MessageReaction, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageStatusIndicator, MessageThread, type MessageThreadProps, type MessageType, type MessagingEventHandlers, type MessagingLoadingState, MessagingSplitView, type MessagingSplitViewProps, type MetricData, MobileBackButton, type MobileBackButtonProps, MobileMenuButton, type MobileMenuButtonProps, MobileMenuPanel, type MobileMenuPanelProps, type NavLink, NavLinks, type NavLinksProps, type NewMessage, NewsletterForm, type NewsletterFormProps, NotFoundPage, type NotFoundPageProps, type Notification, NotificationCenter, type NotificationCenterProps, ORDER_TYPE_META, ORDER_TYPE_SEARCH_DOMAINS, OfflinePage, type OfflinePageProps, OnboardingCompletion, type OnboardingCompletionProps, type OnboardingStep, OnboardingStepQuestion, type OnboardingStepQuestionProps, OnboardingWizard, type OnboardingWizardProps, OpenStatusBadge, OrderCard, type OrderCardProps, type OrderCodeLookupConfig, type OrderCodePick, OrderConfirmation, type OrderConfirmationProps, OrderConfirmationWizard, type OrderConfirmationWizardProps, OrderDetailSidebar, type OrderDetailSidebarProps, type OrderDetails, OrderEditor, type OrderEditorProps, type OrderEmployee, type OrderEmployer, OrderList, type OrderListProps, type OrderListTab, type OrderLookupData, OrderLookupForm, type OrderLookupFormProps, type OrderLookupProps, type OrderLookupResult, type OrderOption, type OrderSearchDomain, type OrderService, OrderSidebar, type OrderSidebarProps, type OrderSidebarTab, OrderSidebarTabs, type OrderSidebarTabsProps, type OrderStatus$1 as OrderStatus, type OrderType, PageHeader, type PageHeaderProps, type PatientData, PatientHeader, type PatientHeaderProps, PatientHistory, type PatientName, type PatientOverflowAction, type Payment, type PaymentFormData, PaymentHistoryTable, type PaymentHistoryTableProps, type PaymentMethod, PaymentMethodBank, type PaymentMethodBankProps, PaymentMethodCard, type PaymentMethodCardProps, PaymentMethodList, type PaymentMethodListProps, type PendingClaim, PendingClaimsTable, type PendingClaimsTableProps, type Permission, type PermissionGroup, PermissionsEditor, type PermissionsEditorProps, type Point, type PostalCodeInfo, type PresentingEntry, PresentingProblems, type PresentingProblemsProps, type PreviewFile, type PricingTier, ProblemList, type ProblemListAction, type ProblemListProps, type ProblemRelevance, ProcedureOrderEditor, ProductVersion, ProductVersionBadge, type ProductVersionBadgeProps, type ProductVersionProps, ProgramsMap, type Provider, type ProviderAddress$1 as ProviderAddress, Breadcrumb as ProviderBreadcrumb, type BreadcrumbItem as ProviderBreadcrumbItem, type BreadcrumbProps as ProviderBreadcrumbProps, ProviderCard, ProviderCardGrid, type ProviderCardGridProps, type ProviderCardProps, ProviderCardSkeleton, type ProviderCardSkeletonProps, type ProviderContact, type ProviderAddress as ProviderDetailAddress, type ProviderDetailData, ProviderDetailHeader, type ProviderDetailHeaderProps, ProviderDetailHeaderSkeleton, type ProviderDetailHeaderSkeletonProps, type ProviderFilters, ProviderLogo, type ProviderLogoProps, type ProviderOption, ProviderOverview, type ProviderOverviewProps, ProviderSearchBar, type ProviderSearchBarProps, ProviderSearchFilters, type ProviderSearchFiltersProps, ProviderSelector, type ProviderSelectorProps, type ProviderService, ProviderSettings, type ProviderSettingsData, type ProviderSettingsProps, SocialMediaLinks$1 as ProviderSocialLinks, type SocialMediaLinksProps$1 as ProviderSocialLinksProps, type ProviderStats, type ProviderUrls, type ProviderUser, ProviderUsersTable, type ProviderUsersTableProps, QuickBookCard, type QuickBookCardProps, type QuickLink, QuickLinksCard, type QuickLinksCardProps, RELEVANCE_LABELS, type RadiusOption, type ReadReceipt, ReadReceiptIndicator, type ReadReceiptIndicatorProps, type RecentActivity, type ReconciliationAcceptedChange, type ReconciliationConfidenceLevel, type ReconciliationProposal, type ReconciliationSource, type RecurringService, RecurringServiceAddCard, type RecurringServiceAddCardProps, RecurringServiceCard, type RecurringServiceCardProps, type RecurringServiceCardState, type RecurringServiceFormData, RecurringServiceGrid, type RecurringServiceGridProps, RecurringServiceSetupModal, type RecurringServiceSetupModalProps, type ReferralData, ReferralEditor, RefreshIcon, type RefreshIconProps, RejectionModal, type RejectionModalProps, type RejectionReason, ReportDashboard, type ReportDashboardProps, ReportDatePicker, type ReportDatePickerProps, ReportLink, type ReportLinkProps, type ReportResult, ReportTimeRange, type ReportTimeRangeProps, ResourceLink, type ResourceLinkProps, type ResultStatus, ResultsEntryCard, type ResultsEntryData, ResultsEntryForm, type ResultsEntryFormProps, ResultsEntryModal, type ResultsEntryModalProps, type Role, RowActionToolbar, type RowActionToolbarProps, RowIconButton, type RowIconButtonProps, type SSOConfigData, SSOConfigForm, type SSOConfigFormProps, type ScannerSource, type ScannerState, ScheduleCalendar, type ScheduleCalendarProps, type SearchResults, SearchResultsMessage, type SearchResultsMessageProps, type SelectableService, SelectedServicesBadges, type SelectedServicesBadgesProps, SendButton, type SendButtonProps, SendIcon, type SendIconProps, ServerErrorPage, type ServerErrorPageProps, ServiceAccordion, type ServiceAccordionProps, ServiceBadge, ServiceBadgeGroup, type ServiceBadgeGroupProps, type ServiceBadgeProps, ServiceCard, type ServiceCardProps, type ServiceCategory$1 as ServiceCategory, ServiceCategoryBadge, type ServiceCategoryBadgeProps, type ServiceFormData, ServiceGeneralSettings, type ServiceGeneralSettingsProps, ServiceGrid, type ServiceGridProps, type ServiceGroup, type ServiceItem, ServiceLink, ServiceList, type ServiceListProps, ServiceMultiSelect, type ServiceOption, ServicePicker, type ServicePickerProps, type ServicePrice, ServicePricingManager, type ServicePricingManagerProps, ServiceSelect, type ServiceSelectProps, ServiceShippingSettings, type ServiceShippingSettingsProps, type ServiceSubCategory, ServiceTagCloud, ServiceTagCloudBadges, type ServiceTagCloudProps as ServiceTagCloudBadgesProps, type ServiceTagCloudProps$1 as ServiceTagCloudProps, SetupServiceModal, type SetupServiceModalProps, type ShippingAddress, Sidebar, SidebarContent, type SidebarContentProps, type SidebarContextValue, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarMobileToggle, type SidebarMobileToggleProps, SidebarNav, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarSearch, type SidebarSearchProps, SidebarToggle, type SidebarToggleProps, type SignupData, SimpleFooter, type SimpleFooterProps, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderProps, SiteLogo, type SiteLogoProps, SkeletonMessage, type SkeletonMessageProps, type SocialLink, type SocialProvider, SparklesIcon, type SparklesIconProps, SpinnerIcon, type SpinnerIconProps, SpinnerProps, type Step, StepIndicator, type StepIndicatorProps, StripeBadge, type StripeBadgeProps, StripeSecureBadge, type StripeSecureBadgeProps, SuggestedActions, type SuggestedActionsProps, type SupportContact, type SurveillanceOrderPick, type SystemMessageType, type SystemReport, TableOfContents, type TableOfContentsProps, type TimeRange, type TimeSlot, type TimelineEvent, TimelineEventList, type TimelineEventListProps, TimelineProgress, type TimelineProgressProps, type TimelineSize, type TimelineStep, type TimelineStepState, Toast, ToastContainer, type ToastContainerProps, type ToastContextValue, type ToastData, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastVariant, type TocItem, ToolStatusIcon, type TopItem, type TypedOrderEditorProps, TypingIndicator, type TypingIndicatorProps, type TypingState, type UncertainConditionField, type Uncertainty, UncertaintyBadge, UpdateAvailableOverlay, type UpdateAvailableOverlayProps, type UpdateInfo, type UseConnectionStatusOptions, type UseConnectionStatusReturn, type UseCookieConsentOptions, type UseCookieConsentReturn, type UseDropzoneOptions, type UseDropzoneReturn, type UseMessageScrollOptions, type UseMessageScrollReturn, type UseMessagesOptions, type UseMessagesReturn, type UseReadReceiptsOptions, UseScrollSpyOptions, type UseTypingIndicatorOptions, type UseTypingIndicatorReturn, UserMenu, type UserMenuProps, type UserProfile, type UserRole, type ValidationError, type VerificationStatus, VerifiedBadge, type VerifiedBadgeProps, WEBSITE_TYPES, WebChartReportViewer, type WebChartReportViewerProps, WebcamModal, type WebcamModalProps, type WebsiteEntry, WebsiteInput, WebsiteInputGroup, type WebsiteInputGroupProps, type WebsiteInputProps, type WebsiteType, type WidgetAction, type WidgetTableAction, type WidgetTableColumn, bubbleVariants, calculateDateRange, concernGroupKey, concernHistoryContent, countBadgeVariants, countChipVariants, create24HourSchedule, createDefaultSchedule, createWeekdaySchedule, currentAssertion, defaultOrderTabs, defaultReconciliationIsEqual, formatAddressLines, formatAddressSingleLine, formatCityState, formatCityStateZip, formatDateLabel, formatFileSize, formatLastSeen, generateAttachmentId, generateId, getConversationSubtitle, getConversationTitle, getDefaultPresets, getExtendedPresets, getFileType, getGoogleMapsSearchUrl, getGoogleMapsUrl, getToolIcon, groupMessagesByDate, headerVariants$2 as headerVariants, isConditionCodetype, isSameSenderGroup, isValidUrl, medicationToOrder, orderToMedication, orderTypeForCodetype, panelVariants as reconciliationPanelVariants, sendButtonVariants, toolbarKeyNav, useCamera, useCodeLookupConfig, useCommandPalette, useConnectionStatus, useCookieConsent, useDocumentDetection, useDropzone, useFileUpload, useMessageScroll, useMessages, useReadReceipts, useSidebar, useToast, useTypingIndicator, validateFile, widgetVariants };
|