@eka-care/medical-records-ui 1.2.13 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{OriginalRecordPanel-EYOVIYJH.mjs → OriginalRecordPanel-HBEPXX4Y.mjs} +3 -3
  2. package/dist/{OriginalRecordPanel-M6IZWRUF.js → OriginalRecordPanel-PCFL4KRH.js} +19 -19
  3. package/dist/{OriginalRecordPanel-M6IZWRUF.js.map → OriginalRecordPanel-PCFL4KRH.js.map} +1 -1
  4. package/dist/SmartUploadModal-3P2GAWXM.js +11 -0
  5. package/dist/{SmartUploadModal-RQ5W33OE.js.map → SmartUploadModal-3P2GAWXM.js.map} +1 -1
  6. package/dist/{SmartUploadModal-IOLZU6YA.mjs → SmartUploadModal-4TEHAM5P.mjs} +3 -3
  7. package/dist/VitalHistoryPanel-L43PLXTX.js +12 -0
  8. package/dist/{VitalHistoryPanel-FHY27XA5.js.map → VitalHistoryPanel-L43PLXTX.js.map} +1 -1
  9. package/dist/VitalHistoryPanel-US2HXGCR.mjs +12 -0
  10. package/dist/{chunk-36KDDCWU.mjs → chunk-5V3A6NJU.mjs} +2 -2
  11. package/dist/{chunk-2SFND57U.js → chunk-H2DKQ6IE.js} +14 -14
  12. package/dist/{chunk-2SFND57U.js.map → chunk-H2DKQ6IE.js.map} +1 -1
  13. package/dist/{chunk-6EN4LTIT.mjs → chunk-MPOY25TA.mjs} +3 -2
  14. package/dist/chunk-MPOY25TA.mjs.map +1 -0
  15. package/dist/{chunk-7XNJKV4H.js → chunk-NTFOVMHN.js} +3 -2
  16. package/dist/chunk-NTFOVMHN.js.map +1 -0
  17. package/dist/{chunk-FXAL6MAX.mjs → chunk-PIQG3RZA.mjs} +3 -3
  18. package/dist/{chunk-U4JSEP3G.js → chunk-VA2ZDYP2.js} +16 -15
  19. package/dist/chunk-VA2ZDYP2.js.map +1 -0
  20. package/dist/{chunk-LG6SPPD4.js → chunk-VHE5O2AM.js} +21 -21
  21. package/dist/{chunk-LG6SPPD4.js.map → chunk-VHE5O2AM.js.map} +1 -1
  22. package/dist/{chunk-LLBFSULS.mjs → chunk-ZRNPUDQY.mjs} +7 -6
  23. package/dist/chunk-ZRNPUDQY.mjs.map +1 -0
  24. package/dist/index.css +7 -1
  25. package/dist/index.css.map +1 -1
  26. package/dist/index.d.mts +42 -9
  27. package/dist/index.d.ts +42 -9
  28. package/dist/index.js +269 -153
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +389 -273
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/styles.css +7 -1
  33. package/dist/styles.css.map +1 -1
  34. package/dist/widgets-J6JCO5NX.js +51 -0
  35. package/dist/{widgets-3MZCYTPF.js.map → widgets-J6JCO5NX.js.map} +1 -1
  36. package/dist/{widgets-NJ2AXABO.mjs → widgets-V22RS7VB.mjs} +2 -2
  37. package/package.json +2 -2
  38. package/dist/SmartUploadModal-RQ5W33OE.js +0 -11
  39. package/dist/VitalHistoryPanel-FHY27XA5.js +0 -12
  40. package/dist/VitalHistoryPanel-XTATAJHE.mjs +0 -12
  41. package/dist/chunk-6EN4LTIT.mjs.map +0 -1
  42. package/dist/chunk-7XNJKV4H.js.map +0 -1
  43. package/dist/chunk-LLBFSULS.mjs.map +0 -1
  44. package/dist/chunk-U4JSEP3G.js.map +0 -1
  45. package/dist/widgets-3MZCYTPF.js +0 -51
  46. /package/dist/{OriginalRecordPanel-EYOVIYJH.mjs.map → OriginalRecordPanel-HBEPXX4Y.mjs.map} +0 -0
  47. /package/dist/{SmartUploadModal-IOLZU6YA.mjs.map → SmartUploadModal-4TEHAM5P.mjs.map} +0 -0
  48. /package/dist/{VitalHistoryPanel-XTATAJHE.mjs.map → VitalHistoryPanel-US2HXGCR.mjs.map} +0 -0
  49. /package/dist/{chunk-36KDDCWU.mjs.map → chunk-5V3A6NJU.mjs.map} +0 -0
  50. /package/dist/{chunk-FXAL6MAX.mjs.map → chunk-PIQG3RZA.mjs.map} +0 -0
  51. /package/dist/{widgets-NJ2AXABO.mjs.map → widgets-V22RS7VB.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -56,6 +56,7 @@ interface RecordItem {
56
56
  isAnalysing: boolean;
57
57
  totalVitals: number;
58
58
  outOfRangeVitals: number;
59
+ source?: string | null;
59
60
  }
60
61
  interface UploadQueueItem {
61
62
  id: string;
@@ -233,14 +234,6 @@ declare function logoutMedicalRecords(bid?: string): Promise<void>;
233
234
 
234
235
  type VitalStatus = 'high' | 'low' | 'normal' | 'unknown';
235
236
 
236
- interface SmartUploadItem {
237
- file: File;
238
- documentName: string;
239
- documentType: string;
240
- documentDateMs: number;
241
- careContextId: string | null;
242
- }
243
-
244
237
  /** Structured shape for copy-to-note vitals table rendering (vital / value / reference value). */
245
238
  interface VitalNoteRow {
246
239
  name: string;
@@ -259,6 +252,33 @@ interface VitalNoteRow {
259
252
  }[];
260
253
  }
261
254
 
255
+ interface CopyAnchor {
256
+ x: number;
257
+ y: number;
258
+ }
259
+ interface ScribeCopyState {
260
+ selectedCount: number;
261
+ total: number;
262
+ allSelected: boolean;
263
+ toggleAll: () => void;
264
+ copy: (anchor?: CopyAnchor) => void | boolean | Promise<void | boolean>;
265
+ }
266
+ interface ScribeDocumentRenderArgs {
267
+ documentId: string;
268
+ recordId: string;
269
+ setCopyState: (state: ScribeCopyState | null) => void;
270
+ onUnavailable: (reason: string) => void;
271
+ }
272
+ type ScribeDocumentRenderer = (args: ScribeDocumentRenderArgs) => ReactNode;
273
+
274
+ interface SmartUploadItem {
275
+ file: File;
276
+ documentName: string;
277
+ documentType: string;
278
+ documentDateMs: number;
279
+ careContextId: string | null;
280
+ }
281
+
262
282
  type MainView = {
263
283
  kind: 'empty';
264
284
  } | {
@@ -301,6 +321,7 @@ interface SmartRecordsViewProps {
301
321
  onCopyVitalsToNote?: (text: string) => void | Promise<void>;
302
322
  onViewChange?: (view: MainView) => void;
303
323
  hideOpenInNewTab?: boolean;
324
+ renderScribeDocument?: ScribeDocumentRenderer;
304
325
  }
305
326
  declare function SmartRecordsView(props: SmartRecordsViewProps): react.JSX.Element;
306
327
 
@@ -491,4 +512,16 @@ interface PrescriptionPanelProps {
491
512
  }
492
513
  declare function PrescriptionPanel({ conversion, onBack, onViewOriginal, onAttach }: PrescriptionPanelProps): react.JSX.Element;
493
514
 
494
- export { Badge, CORE_SDK_AVAILABLE, type CaseUiItem, type ConvertOptions, type Diagnostic, type DocumentTypeConfig, type EntityCodes, type Environment, FilterChip, type FollowUpPayload, IconButton, type IpAdmissionPayload, type KeyValuePayload, type ListPayload, type MainView, type Pile, type PrescriptionConversion, type PrescriptionHeader, PrescriptionPanel, type PrescriptionSection, type PrescriptionSectionKind, type RecordItem, SHOW_CUSTOM_SECTIONS, type SdkConfig, SdkProvider, type SdkProviderProps, SidebarItem, Skeleton, SmartRecordsView, type SmartRecordsViewProps, type TableColumn, type TablePayload, classifyResource, convertPrescriptionBundle, logoutMedicalRecords, useCaseById, useCaseIds, useCasesConnection, useCasesStatus, useCollectionConnection, useFilteredRecordIds, useIsSelected, useLogout, useRecordById, useRecordIdRange, useRecordsConnection, useRecordsCount, useRecordsStatus, useSdk, useUploadConnection };
515
+ interface ScribeDocumentPanelProps {
516
+ documentId: string;
517
+ recordId: string;
518
+ title: string;
519
+ date: string;
520
+ renderDocument: ScribeDocumentRenderer;
521
+ onUnavailable: (reason: string) => void;
522
+ onBack?: () => void;
523
+ onViewOriginal?: () => void;
524
+ }
525
+ declare function ScribeDocumentPanel({ documentId, recordId, title, date, renderDocument, onUnavailable, onBack, onViewOriginal, }: ScribeDocumentPanelProps): react.JSX.Element;
526
+
527
+ export { Badge, CORE_SDK_AVAILABLE, type CaseUiItem, type ConvertOptions, type CopyAnchor, type Diagnostic, type DocumentTypeConfig, type EntityCodes, type Environment, FilterChip, type FollowUpPayload, IconButton, type IpAdmissionPayload, type KeyValuePayload, type ListPayload, type MainView, type Pile, type PrescriptionConversion, type PrescriptionHeader, PrescriptionPanel, type PrescriptionSection, type PrescriptionSectionKind, type RecordItem, SHOW_CUSTOM_SECTIONS, type ScribeCopyState, ScribeDocumentPanel, type ScribeDocumentRenderArgs, type ScribeDocumentRenderer, type SdkConfig, SdkProvider, type SdkProviderProps, SidebarItem, Skeleton, SmartRecordsView, type SmartRecordsViewProps, type TableColumn, type TablePayload, classifyResource, convertPrescriptionBundle, logoutMedicalRecords, useCaseById, useCaseIds, useCasesConnection, useCasesStatus, useCollectionConnection, useFilteredRecordIds, useIsSelected, useLogout, useRecordById, useRecordIdRange, useRecordsConnection, useRecordsCount, useRecordsStatus, useSdk, useUploadConnection };
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ interface RecordItem {
56
56
  isAnalysing: boolean;
57
57
  totalVitals: number;
58
58
  outOfRangeVitals: number;
59
+ source?: string | null;
59
60
  }
60
61
  interface UploadQueueItem {
61
62
  id: string;
@@ -233,14 +234,6 @@ declare function logoutMedicalRecords(bid?: string): Promise<void>;
233
234
 
234
235
  type VitalStatus = 'high' | 'low' | 'normal' | 'unknown';
235
236
 
236
- interface SmartUploadItem {
237
- file: File;
238
- documentName: string;
239
- documentType: string;
240
- documentDateMs: number;
241
- careContextId: string | null;
242
- }
243
-
244
237
  /** Structured shape for copy-to-note vitals table rendering (vital / value / reference value). */
245
238
  interface VitalNoteRow {
246
239
  name: string;
@@ -259,6 +252,33 @@ interface VitalNoteRow {
259
252
  }[];
260
253
  }
261
254
 
255
+ interface CopyAnchor {
256
+ x: number;
257
+ y: number;
258
+ }
259
+ interface ScribeCopyState {
260
+ selectedCount: number;
261
+ total: number;
262
+ allSelected: boolean;
263
+ toggleAll: () => void;
264
+ copy: (anchor?: CopyAnchor) => void | boolean | Promise<void | boolean>;
265
+ }
266
+ interface ScribeDocumentRenderArgs {
267
+ documentId: string;
268
+ recordId: string;
269
+ setCopyState: (state: ScribeCopyState | null) => void;
270
+ onUnavailable: (reason: string) => void;
271
+ }
272
+ type ScribeDocumentRenderer = (args: ScribeDocumentRenderArgs) => ReactNode;
273
+
274
+ interface SmartUploadItem {
275
+ file: File;
276
+ documentName: string;
277
+ documentType: string;
278
+ documentDateMs: number;
279
+ careContextId: string | null;
280
+ }
281
+
262
282
  type MainView = {
263
283
  kind: 'empty';
264
284
  } | {
@@ -301,6 +321,7 @@ interface SmartRecordsViewProps {
301
321
  onCopyVitalsToNote?: (text: string) => void | Promise<void>;
302
322
  onViewChange?: (view: MainView) => void;
303
323
  hideOpenInNewTab?: boolean;
324
+ renderScribeDocument?: ScribeDocumentRenderer;
304
325
  }
305
326
  declare function SmartRecordsView(props: SmartRecordsViewProps): react.JSX.Element;
306
327
 
@@ -491,4 +512,16 @@ interface PrescriptionPanelProps {
491
512
  }
492
513
  declare function PrescriptionPanel({ conversion, onBack, onViewOriginal, onAttach }: PrescriptionPanelProps): react.JSX.Element;
493
514
 
494
- export { Badge, CORE_SDK_AVAILABLE, type CaseUiItem, type ConvertOptions, type Diagnostic, type DocumentTypeConfig, type EntityCodes, type Environment, FilterChip, type FollowUpPayload, IconButton, type IpAdmissionPayload, type KeyValuePayload, type ListPayload, type MainView, type Pile, type PrescriptionConversion, type PrescriptionHeader, PrescriptionPanel, type PrescriptionSection, type PrescriptionSectionKind, type RecordItem, SHOW_CUSTOM_SECTIONS, type SdkConfig, SdkProvider, type SdkProviderProps, SidebarItem, Skeleton, SmartRecordsView, type SmartRecordsViewProps, type TableColumn, type TablePayload, classifyResource, convertPrescriptionBundle, logoutMedicalRecords, useCaseById, useCaseIds, useCasesConnection, useCasesStatus, useCollectionConnection, useFilteredRecordIds, useIsSelected, useLogout, useRecordById, useRecordIdRange, useRecordsConnection, useRecordsCount, useRecordsStatus, useSdk, useUploadConnection };
515
+ interface ScribeDocumentPanelProps {
516
+ documentId: string;
517
+ recordId: string;
518
+ title: string;
519
+ date: string;
520
+ renderDocument: ScribeDocumentRenderer;
521
+ onUnavailable: (reason: string) => void;
522
+ onBack?: () => void;
523
+ onViewOriginal?: () => void;
524
+ }
525
+ declare function ScribeDocumentPanel({ documentId, recordId, title, date, renderDocument, onUnavailable, onBack, onViewOriginal, }: ScribeDocumentPanelProps): react.JSX.Element;
526
+
527
+ export { Badge, CORE_SDK_AVAILABLE, type CaseUiItem, type ConvertOptions, type CopyAnchor, type Diagnostic, type DocumentTypeConfig, type EntityCodes, type Environment, FilterChip, type FollowUpPayload, IconButton, type IpAdmissionPayload, type KeyValuePayload, type ListPayload, type MainView, type Pile, type PrescriptionConversion, type PrescriptionHeader, PrescriptionPanel, type PrescriptionSection, type PrescriptionSectionKind, type RecordItem, SHOW_CUSTOM_SECTIONS, type ScribeCopyState, ScribeDocumentPanel, type ScribeDocumentRenderArgs, type ScribeDocumentRenderer, type SdkConfig, SdkProvider, type SdkProviderProps, SidebarItem, Skeleton, SmartRecordsView, type SmartRecordsViewProps, type TableColumn, type TablePayload, classifyResource, convertPrescriptionBundle, logoutMedicalRecords, useCaseById, useCaseIds, useCasesConnection, useCasesStatus, useCollectionConnection, useFilteredRecordIds, useIsSelected, useLogout, useRecordById, useRecordIdRange, useRecordsConnection, useRecordsCount, useRecordsStatus, useSdk, useUploadConnection };