@aitmed/aitmed-document-template 1.23.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,303 @@
1
+ import aitmedTemplateRole from '../utils/role.config';
2
+ import aitmedTemplateType from '../utils/type.config';
3
+ interface DOCUMENT_OPTONS {
4
+ data?: Record<string, any>;
5
+ ecos?: any;
6
+ role?: aitmedTemplateRole;
7
+ docType?: aitmedTemplateType;
8
+ info?: Info;
9
+ relatedDom?: HTMLElement | null;
10
+ }
11
+ interface SIGNATURE_PAD_OPTIONS {
12
+ dataKey: string;
13
+ type: aitmedTemplateRole;
14
+ isGuardian: boolean;
15
+ formData: Record<string, any>;
16
+ timeKey?: string;
17
+ value?: string;
18
+ }
19
+ interface DATE_PICKER_OPTIONS {
20
+ dataKey: string;
21
+ formData: Record<string, any>;
22
+ }
23
+ interface IMAGE_EDITOR_OPTIONS {
24
+ dataKey: string;
25
+ formData: Record<string, any>;
26
+ src: string;
27
+ markable: boolean;
28
+ }
29
+ interface RECOMMEND_DIAGNOSIS_OPTIONS {
30
+ formData: Record<string, any>;
31
+ }
32
+ declare type RECOMMEND_DIAGNOSIS_LIST = Array<{
33
+ isChecked: boolean;
34
+ code: string;
35
+ description: string;
36
+ comment: string;
37
+ }>;
38
+ interface Info {
39
+ rootNotebookID: string;
40
+ providerSignatureInfo?: {
41
+ eid: string;
42
+ vid: string;
43
+ fid: string;
44
+ };
45
+ patientSignatureInfo?: {
46
+ eid: string;
47
+ vid: string;
48
+ fid: string;
49
+ };
50
+ facilityId: string;
51
+ locationIds: Array<string>;
52
+ patientId: string;
53
+ }
54
+ export declare const setFormData: (data: Record<string, any>) => void;
55
+ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"documentTempalte", import("pinia")._UnwrapAll<Pick<{
56
+ setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
57
+ getDocumentTemplate: () => {
58
+ data: Record<string, any>;
59
+ ecos: any;
60
+ role: aitmedTemplateRole;
61
+ docType: aitmedTemplateType;
62
+ info: {
63
+ rootNotebookID: string;
64
+ providerSignatureInfo?: {
65
+ eid: string;
66
+ vid: string;
67
+ fid: string;
68
+ } | undefined;
69
+ patientSignatureInfo?: {
70
+ eid: string;
71
+ vid: string;
72
+ fid: string;
73
+ } | undefined;
74
+ facilityId: string;
75
+ locationIds: Array<string>;
76
+ patientId: string;
77
+ };
78
+ relatedDom: HTMLElement | null;
79
+ };
80
+ }, never>>, Pick<{
81
+ setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
82
+ getDocumentTemplate: () => {
83
+ data: Record<string, any>;
84
+ ecos: any;
85
+ role: aitmedTemplateRole;
86
+ docType: aitmedTemplateType;
87
+ info: {
88
+ rootNotebookID: string;
89
+ providerSignatureInfo?: {
90
+ eid: string;
91
+ vid: string;
92
+ fid: string;
93
+ } | undefined;
94
+ patientSignatureInfo?: {
95
+ eid: string;
96
+ vid: string;
97
+ fid: string;
98
+ } | undefined;
99
+ facilityId: string;
100
+ locationIds: Array<string>;
101
+ patientId: string;
102
+ };
103
+ relatedDom: HTMLElement | null;
104
+ };
105
+ }, never>, Pick<{
106
+ setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
107
+ getDocumentTemplate: () => {
108
+ data: Record<string, any>;
109
+ ecos: any;
110
+ role: aitmedTemplateRole;
111
+ docType: aitmedTemplateType;
112
+ info: {
113
+ rootNotebookID: string;
114
+ providerSignatureInfo?: {
115
+ eid: string;
116
+ vid: string;
117
+ fid: string;
118
+ } | undefined;
119
+ patientSignatureInfo?: {
120
+ eid: string;
121
+ vid: string;
122
+ fid: string;
123
+ } | undefined;
124
+ facilityId: string;
125
+ locationIds: Array<string>;
126
+ patientId: string;
127
+ };
128
+ relatedDom: HTMLElement | null;
129
+ };
130
+ }, "setDocumentTemplate" | "getDocumentTemplate">>;
131
+ export declare const useCalendarPickerStore: import("pinia").StoreDefinition<"calendarPicker", import("pinia")._UnwrapAll<Pick<{
132
+ getCalendarPciker: () => {
133
+ status: boolean;
134
+ options: {
135
+ dataKey: string;
136
+ formData: Record<string, any>;
137
+ };
138
+ open: (options: DATE_PICKER_OPTIONS) => void;
139
+ close: () => void;
140
+ };
141
+ }, never>>, Pick<{
142
+ getCalendarPciker: () => {
143
+ status: boolean;
144
+ options: {
145
+ dataKey: string;
146
+ formData: Record<string, any>;
147
+ };
148
+ open: (options: DATE_PICKER_OPTIONS) => void;
149
+ close: () => void;
150
+ };
151
+ }, never>, Pick<{
152
+ getCalendarPciker: () => {
153
+ status: boolean;
154
+ options: {
155
+ dataKey: string;
156
+ formData: Record<string, any>;
157
+ };
158
+ open: (options: DATE_PICKER_OPTIONS) => void;
159
+ close: () => void;
160
+ };
161
+ }, "getCalendarPciker">>;
162
+ export declare const useSignaturePadStore: import("pinia").StoreDefinition<"signaturePad", import("pinia")._UnwrapAll<Pick<{
163
+ getSignaturePad: () => {
164
+ status: boolean;
165
+ options: {
166
+ dataKey: string;
167
+ type: aitmedTemplateRole;
168
+ isGuardian: boolean;
169
+ formData: Record<string, any>;
170
+ timeKey?: string | undefined;
171
+ value?: string | undefined;
172
+ };
173
+ confirm: (key: string, saveData: string, docType: number, roleType: aitmedTemplateRole) => Promise<void>;
174
+ open: (options: SIGNATURE_PAD_OPTIONS) => void;
175
+ close: () => void;
176
+ };
177
+ }, never>>, Pick<{
178
+ getSignaturePad: () => {
179
+ status: boolean;
180
+ options: {
181
+ dataKey: string;
182
+ type: aitmedTemplateRole;
183
+ isGuardian: boolean;
184
+ formData: Record<string, any>;
185
+ timeKey?: string | undefined;
186
+ value?: string | undefined;
187
+ };
188
+ confirm: (key: string, saveData: string, docType: number, roleType: aitmedTemplateRole) => Promise<void>;
189
+ open: (options: SIGNATURE_PAD_OPTIONS) => void;
190
+ close: () => void;
191
+ };
192
+ }, never>, Pick<{
193
+ getSignaturePad: () => {
194
+ status: boolean;
195
+ options: {
196
+ dataKey: string;
197
+ type: aitmedTemplateRole;
198
+ isGuardian: boolean;
199
+ formData: Record<string, any>;
200
+ timeKey?: string | undefined;
201
+ value?: string | undefined;
202
+ };
203
+ confirm: (key: string, saveData: string, docType: number, roleType: aitmedTemplateRole) => Promise<void>;
204
+ open: (options: SIGNATURE_PAD_OPTIONS) => void;
205
+ close: () => void;
206
+ };
207
+ }, "getSignaturePad">>;
208
+ export declare const useImageEditorStore: import("pinia").StoreDefinition<"imageEditor", import("pinia")._UnwrapAll<Pick<{
209
+ getImageEditor: () => {
210
+ status: boolean;
211
+ options: {
212
+ dataKey: string;
213
+ formData: Record<string, any>;
214
+ src: string;
215
+ markable: boolean;
216
+ };
217
+ confirm: (key: string, saveData: string, type: string) => Promise<void>;
218
+ open: (options: IMAGE_EDITOR_OPTIONS) => void;
219
+ close: () => void;
220
+ };
221
+ }, never>>, Pick<{
222
+ getImageEditor: () => {
223
+ status: boolean;
224
+ options: {
225
+ dataKey: string;
226
+ formData: Record<string, any>;
227
+ src: string;
228
+ markable: boolean;
229
+ };
230
+ confirm: (key: string, saveData: string, type: string) => Promise<void>;
231
+ open: (options: IMAGE_EDITOR_OPTIONS) => void;
232
+ close: () => void;
233
+ };
234
+ }, never>, Pick<{
235
+ getImageEditor: () => {
236
+ status: boolean;
237
+ options: {
238
+ dataKey: string;
239
+ formData: Record<string, any>;
240
+ src: string;
241
+ markable: boolean;
242
+ };
243
+ confirm: (key: string, saveData: string, type: string) => Promise<void>;
244
+ open: (options: IMAGE_EDITOR_OPTIONS) => void;
245
+ close: () => void;
246
+ };
247
+ }, "getImageEditor">>;
248
+ export declare const useRecommendDiagnosisStore: import("pinia").StoreDefinition<"recommendDiagnosis", import("pinia")._UnwrapAll<Pick<{
249
+ getRecommendDiagnosis: () => {
250
+ status: boolean;
251
+ cache: {
252
+ hasCache: boolean;
253
+ list: {
254
+ isChecked: boolean;
255
+ code: string;
256
+ description: string;
257
+ comment: string;
258
+ }[];
259
+ };
260
+ options: {
261
+ formData: Record<string, any>;
262
+ };
263
+ open: (options: RECOMMEND_DIAGNOSIS_OPTIONS) => void;
264
+ close: () => void;
265
+ };
266
+ }, never>>, Pick<{
267
+ getRecommendDiagnosis: () => {
268
+ status: boolean;
269
+ cache: {
270
+ hasCache: boolean;
271
+ list: {
272
+ isChecked: boolean;
273
+ code: string;
274
+ description: string;
275
+ comment: string;
276
+ }[];
277
+ };
278
+ options: {
279
+ formData: Record<string, any>;
280
+ };
281
+ open: (options: RECOMMEND_DIAGNOSIS_OPTIONS) => void;
282
+ close: () => void;
283
+ };
284
+ }, never>, Pick<{
285
+ getRecommendDiagnosis: () => {
286
+ status: boolean;
287
+ cache: {
288
+ hasCache: boolean;
289
+ list: {
290
+ isChecked: boolean;
291
+ code: string;
292
+ description: string;
293
+ comment: string;
294
+ }[];
295
+ };
296
+ options: {
297
+ formData: Record<string, any>;
298
+ };
299
+ open: (options: RECOMMEND_DIAGNOSIS_OPTIONS) => void;
300
+ close: () => void;
301
+ };
302
+ }, "getRecommendDiagnosis">>;
303
+ export type { SIGNATURE_PAD_OPTIONS, DATE_PICKER_OPTIONS, IMAGE_EDITOR_OPTIONS, RECOMMEND_DIAGNOSIS_OPTIONS, RECOMMEND_DIAGNOSIS_LIST };