@crystaltech/hsms-shared-ui 0.8.0 → 0.8.1
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/components/queue/QueueBar.d.ts +36 -0
- package/dist/components/queue/types.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +8606 -8455
- package/dist/index.js +86 -86
- package/dist/sw.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { QueueHttp, SnapshotEntry } from './types';
|
|
2
|
+
export interface QueueBarProps {
|
|
3
|
+
/** The module app's API client (axios), pointed at its own backend. */
|
|
4
|
+
http: QueueHttp;
|
|
5
|
+
/** OPD, PHARMACY, LABORATORY, RADIOLOGY, BILLING, REGISTRATION, IPD */
|
|
6
|
+
module: string;
|
|
7
|
+
/** The module's API root, e.g. import.meta.env.VITE_API_URL */
|
|
8
|
+
apiBase: string;
|
|
9
|
+
/** For a super admin: the hospital they chose. */
|
|
10
|
+
hospitalId?: string;
|
|
11
|
+
getToken?: () => string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Pick this line by its code when the person has not chosen one yet, e.g. an OPD doctor's room
|
|
14
|
+
* "ROOM-<roomId>". The person can still switch.
|
|
15
|
+
*/
|
|
16
|
+
preferredLineCode?: string | null;
|
|
17
|
+
/** Only offer these lines (by code), e.g. the rooms a doctor works in. */
|
|
18
|
+
lineCodes?: string[] | null;
|
|
19
|
+
/** A patient was just called to this counter: open or highlight their record on the screen. */
|
|
20
|
+
onCalled?: (entry: SnapshotEntry) => void;
|
|
21
|
+
/** Who is at this counter now (null when nobody), whenever that changes. */
|
|
22
|
+
onCurrentChange?: (entry: SnapshotEntry | null) => void;
|
|
23
|
+
/** Show a Complete button. Off where the screen's own action (deliver, collect, pay) completes. */
|
|
24
|
+
showComplete?: boolean;
|
|
25
|
+
/** Where the full Queue Management page is, for the "All queue tools" link. */
|
|
26
|
+
managePath?: string;
|
|
27
|
+
/** Text for the patient record action the screen performs on a call, e.g. "Opens the drug order". */
|
|
28
|
+
callHint?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A compact queue bar for a work screen (drug orders, sample collection, the doctor's patient
|
|
32
|
+
* list, ...): the staff member's line and counter, who is at the counter, and Call next. The
|
|
33
|
+
* screen's own work (deliver, collect, pay, save the prescription) completes the token, so there
|
|
34
|
+
* is usually no Complete button. Shows nothing to people who cannot operate the queue.
|
|
35
|
+
*/
|
|
36
|
+
export default function QueueBar(props: QueueBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -103,7 +103,12 @@ export interface QueueTicket {
|
|
|
103
103
|
tokenNo: string;
|
|
104
104
|
status: TicketStatus;
|
|
105
105
|
counterId?: string;
|
|
106
|
+
patientId?: string;
|
|
107
|
+
patientIdentifier?: string;
|
|
106
108
|
patientName?: string;
|
|
109
|
+
patientLabel?: string;
|
|
110
|
+
sourceType?: string;
|
|
111
|
+
sourceId?: string;
|
|
107
112
|
}
|
|
108
113
|
export interface DisplayLineRef {
|
|
109
114
|
module: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type { QueueManagementProps } from './components/queue/QueueManagement';
|
|
|
31
31
|
export { defaultRuleOptions, SOURCES_BY_MODULE } from './components/queue/ruleOptions';
|
|
32
32
|
export type { RuleOptions } from './components/queue/ruleOptions';
|
|
33
33
|
export { default as QueueDisplayScreen } from './components/queue/QueueDisplayScreen';
|
|
34
|
+
export { default as QueueBar } from './components/queue/QueueBar';
|
|
35
|
+
export type { QueueBarProps } from './components/queue/QueueBar';
|
|
34
36
|
export { createQueueClient, queueError } from './components/queue/queueClient';
|
|
35
37
|
export type { QueueClient } from './components/queue/queueClient';
|
|
36
38
|
export { useQueueStream } from './components/queue/useQueueStream';
|