vc-page-workflows 1.0.0 → 1.5.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,15 @@
1
+ const a = {
2
+ response_1: {
3
+ id: "card_1PBElh4aYp0WGe9IlauY9gaz",
4
+ name: "Ligeng M 02",
5
+ type: "card",
6
+ is_default: !0,
7
+ brand: "Visa",
8
+ last4: "4242",
9
+ exp_month: 4,
10
+ exp_year: 2024
11
+ }
12
+ };
13
+ export {
14
+ a as default
15
+ };
@@ -0,0 +1,17 @@
1
+ const e = {
2
+ response_1: [
3
+ {
4
+ id: "card_1PBElh4aYp0WGe9IlauY9gaz",
5
+ name: "Ligeng M 02",
6
+ type: "card",
7
+ is_default: !0,
8
+ brand: "Visa",
9
+ last4: "4242",
10
+ exp_month: 4,
11
+ exp_year: 2024
12
+ }
13
+ ]
14
+ };
15
+ export {
16
+ e as default
17
+ };
@@ -0,0 +1,553 @@
1
+ const e = {
2
+ location_list: {
3
+ id: "02318e20-d79a-4a5a-ac3a-a1edf0dc2330",
4
+ name: "Please choose your location",
5
+ title: "Please choose your location",
6
+ type: "form",
7
+ input: {
8
+ type: "formio",
9
+ form_id: "5686e715-fc08-45ef-ba53-ce8742c3f663",
10
+ form: {
11
+ id: "5686e715-fc08-45ef-ba53-ce8742c3f663",
12
+ display: "form",
13
+ components: [
14
+ {
15
+ label: "Data Tile",
16
+ labelPosition: "top",
17
+ optionsLabelPosition: "right",
18
+ description: "",
19
+ tooltip: "",
20
+ customClass: "",
21
+ tabindex: "",
22
+ inline: !1,
23
+ hidden: !1,
24
+ hideLabel: !0,
25
+ autofocus: !1,
26
+ disabled: !1,
27
+ tableView: !1,
28
+ modalEdit: !1,
29
+ dataSrc: "url",
30
+ values: [
31
+ {
32
+ label: "",
33
+ value: "",
34
+ shortcut: ""
35
+ }
36
+ ],
37
+ valueProperty: "code",
38
+ persistent: !0,
39
+ protected: !1,
40
+ dbIndex: !1,
41
+ encrypted: !1,
42
+ clearOnHide: !0,
43
+ customDefaultValue: "",
44
+ calculateValue: "",
45
+ calculateServer: !1,
46
+ allowCalculateOverride: !1,
47
+ validate: {
48
+ required: !0,
49
+ onlyAvailableItems: !1,
50
+ customMessage: "",
51
+ custom: "",
52
+ customPrivate: !1,
53
+ json: "",
54
+ strictDateValidation: !1,
55
+ multiple: !1,
56
+ unique: !1
57
+ },
58
+ validateWhenHidden: !1,
59
+ errorLabel: "",
60
+ errors: "",
61
+ key: "room",
62
+ tags: [],
63
+ properties: [],
64
+ conditional: {
65
+ show: null,
66
+ when: null,
67
+ eq: "",
68
+ json: ""
69
+ },
70
+ customConditional: "",
71
+ logic: [],
72
+ attributes: [],
73
+ overlay: {
74
+ style: "",
75
+ page: "",
76
+ left: "",
77
+ top: "",
78
+ width: "",
79
+ height: ""
80
+ },
81
+ type: "dataTileComp",
82
+ data: {
83
+ url: "https://api.vsee.io/vc/next/api_v3/rooms",
84
+ headers: [
85
+ {
86
+ key: "",
87
+ value: ""
88
+ }
89
+ ]
90
+ },
91
+ template: "<strong><p>{{ item.name }}</p></strong>",
92
+ authenticate: !1,
93
+ ignoreCache: !0,
94
+ redrawOn: "",
95
+ input: !0,
96
+ placeholder: "",
97
+ prefix: "",
98
+ suffix: "",
99
+ multiple: !1,
100
+ unique: !1,
101
+ refreshOn: "",
102
+ dataGridLabel: !1,
103
+ widget: null,
104
+ validateOn: "change",
105
+ showCharCount: !1,
106
+ showWordCount: !1,
107
+ allowMultipleMasks: !1,
108
+ addons: [],
109
+ id: "e11i9c9",
110
+ defaultValue: null
111
+ }
112
+ ],
113
+ name: "McLaren Now Clinic Room List",
114
+ created: 1717050571,
115
+ modified: 1717050571,
116
+ type: "form"
117
+ }
118
+ },
119
+ note: "ligeng test",
120
+ code: "room_list",
121
+ logic: [
122
+ {
123
+ name: "Submit Data",
124
+ trigger: {
125
+ type: "event",
126
+ event: "submit"
127
+ },
128
+ actions: [
129
+ {
130
+ name: "Test",
131
+ type: "customAction",
132
+ customAction: "(async()=>{if(value['room']){value=value['room']}var res=await req.get('https://api.vsee.io/vc/next/api_v3/rooms/'+value['code']+'/providers');if(res&&res['data']){_.set(data, 'providers.value', res['data']);}})()"
133
+ }
134
+ ]
135
+ }
136
+ ],
137
+ key: "room"
138
+ },
139
+ specialty_list: {
140
+ id: "asprdt-component-specialty",
141
+ name: "ASPR DT Select Specialty",
142
+ title: "Select Specialty",
143
+ type: "form",
144
+ input: {
145
+ type: "formio",
146
+ form_id: "asprdt-form-specialty",
147
+ form: {
148
+ id: "asprdt-form-specialty",
149
+ display: "form",
150
+ components: [
151
+ {
152
+ label: "Choose a specialty",
153
+ labelPosition: "top",
154
+ optionsLabelPosition: "right",
155
+ description: "",
156
+ tooltip: "",
157
+ customClass: "radio-group-block radio-list width-50",
158
+ tabindex: "",
159
+ inline: !0,
160
+ hidden: !1,
161
+ hideLabel: !1,
162
+ autofocus: !1,
163
+ disabled: !1,
164
+ tableView: !1,
165
+ modalEdit: !1,
166
+ dataSrc: "values",
167
+ values: [
168
+ {
169
+ label: "Behavioral Health - Cliniccal social worker",
170
+ value: "social_worker",
171
+ shortcut: ""
172
+ },
173
+ {
174
+ label: "Behavioral Health - Psychiatry",
175
+ value: "psychiatry",
176
+ shortcut: ""
177
+ },
178
+ {
179
+ label: "Behavioral Health - Psychology",
180
+ value: "psychology",
181
+ shortcut: ""
182
+ }
183
+ ],
184
+ dataType: "",
185
+ valueProperty: "",
186
+ persistent: !0,
187
+ protected: !1,
188
+ dbIndex: !1,
189
+ encrypted: !1,
190
+ clearOnHide: !0,
191
+ customDefaultValue: "",
192
+ calculateValue: "",
193
+ calculateServer: !1,
194
+ allowCalculateOverride: !1,
195
+ validate: {
196
+ required: !0,
197
+ onlyAvailableItems: !1,
198
+ customMessage: "",
199
+ custom: "",
200
+ customPrivate: !1,
201
+ json: "",
202
+ strictDateValidation: !1,
203
+ multiple: !1,
204
+ unique: !1
205
+ },
206
+ validateWhenHidden: !1,
207
+ errorLabel: "",
208
+ errors: "",
209
+ key: "specialty",
210
+ tags: [],
211
+ properties: [],
212
+ conditional: {
213
+ show: null,
214
+ when: null,
215
+ eq: "",
216
+ json: ""
217
+ },
218
+ customConditional: "",
219
+ logic: [],
220
+ attributes: [],
221
+ overlay: {
222
+ style: "",
223
+ page: "",
224
+ left: "",
225
+ top: "",
226
+ width: "",
227
+ height: ""
228
+ },
229
+ type: "radio",
230
+ dataGridLabel: !1,
231
+ data: {
232
+ url: ""
233
+ },
234
+ template: "{{ item.label }}",
235
+ authenticate: !1,
236
+ ignoreCache: !1,
237
+ redrawOn: "",
238
+ input: !0,
239
+ placeholder: "",
240
+ prefix: "",
241
+ suffix: "",
242
+ multiple: !1,
243
+ unique: !1,
244
+ refreshOn: "",
245
+ widget: null,
246
+ validateOn: "change",
247
+ showCharCount: !1,
248
+ showWordCount: !1,
249
+ allowMultipleMasks: !1,
250
+ addons: [],
251
+ inputType: "radio",
252
+ fieldSet: !1,
253
+ id: "epkgfin",
254
+ defaultValue: ""
255
+ }
256
+ ],
257
+ name: "ASPR DT Choose Specialty",
258
+ created: /* @__PURE__ */ new Date(),
259
+ modified: /* @__PURE__ */ new Date()
260
+ }
261
+ },
262
+ next: {
263
+ title: "Next"
264
+ },
265
+ note: "Choose specialty",
266
+ code: "specialty",
267
+ created: /* @__PURE__ */ new Date(),
268
+ modified: /* @__PURE__ */ new Date(),
269
+ data: [
270
+ {
271
+ key: "specialty",
272
+ action: `(function() {
273
+ const specialties = _.get(window.CONFIG, "Account.specialties", [])
274
+ if (specialties.length) {
275
+ values = specialties.map(i => {return {...i, label: i.name, value: i.code}}, []);
276
+ }
277
+ })();`
278
+ }
279
+ ],
280
+ options: {
281
+ width: "800px"
282
+ },
283
+ key: "specialty"
284
+ },
285
+ aspr_emr: {
286
+ id: "asprdt-emr-component-emr",
287
+ code: "emr",
288
+ key: "emr",
289
+ created: /* @__PURE__ */ new Date(),
290
+ modified: /* @__PURE__ */ new Date(),
291
+ name: "ASPR DT EMR pmhx",
292
+ options: {
293
+ navigation: {
294
+ custom_buttons: [
295
+ {
296
+ type: "default",
297
+ label: "Back to Tracking Board",
298
+ action: `(async function () {
299
+ const intake_id = _.get(data, "intake.value.id", "");
300
+ const user_id = _.get(data, "patient.value.id", "");
301
+ const resp = await fetch(\`https://api.vsee.io/v2.0/api/cases\`, {
302
+ method: 'POST',
303
+ headers: {
304
+ 'Content-Type': 'application/json',
305
+ 'X-ApiToken': window.user.token,
306
+ 'X-AccountCode': window.CONFIG.Account.code
307
+ },
308
+ credentials: 'omit',
309
+ body: JSON.stringify({ intake_id: intake_id, user_id: user_id })
310
+ }).then(response => {
311
+ return response.json();
312
+ }).then(resp => {
313
+ return resp;
314
+ }).catch(error => {
315
+ console.error('There has been a problem with your fetch operation:', error);
316
+ });
317
+ endWorkflow()
318
+ })()`
319
+ }
320
+ ]
321
+ },
322
+ emr: {
323
+ conditions: {
324
+ required: !0,
325
+ options: [
326
+ {
327
+ value: "HTN",
328
+ category: "Cardiac"
329
+ },
330
+ {
331
+ value: "HLD",
332
+ category: "Cardiac"
333
+ },
334
+ {
335
+ value: "A Fib",
336
+ category: "Cardiac"
337
+ },
338
+ {
339
+ value: "MI",
340
+ category: "Cardiac"
341
+ },
342
+ {
343
+ value: "Valve",
344
+ category: "Cardiac"
345
+ },
346
+ {
347
+ value: "COPD",
348
+ category: "Pulmonary"
349
+ },
350
+ {
351
+ value: "Asthma",
352
+ category: "Pulmonary"
353
+ },
354
+ {
355
+ value: "PE",
356
+ category: "Pulmonary"
357
+ },
358
+ {
359
+ value: "DM",
360
+ category: "Endocrine"
361
+ },
362
+ {
363
+ value: "Hypothyroid",
364
+ category: "Endocrine"
365
+ },
366
+ {
367
+ value: "Hyperthyroid",
368
+ category: "Endocrine"
369
+ },
370
+ {
371
+ value: "CVA",
372
+ category: "CNS"
373
+ },
374
+ {
375
+ value: "TIA",
376
+ category: "CNS"
377
+ },
378
+ {
379
+ value: "Seizure",
380
+ category: "CNS"
381
+ },
382
+ {
383
+ value: "Paralysis",
384
+ category: "CNS"
385
+ },
386
+ {
387
+ value: "Depression",
388
+ category: "Behavioral Health"
389
+ },
390
+ {
391
+ value: "Bipoloar Disorder",
392
+ category: "Behavioral Health"
393
+ },
394
+ {
395
+ value: "Schizophrenia",
396
+ category: "Behavioral Health"
397
+ },
398
+ {
399
+ value: "Chronic Kidney Disease",
400
+ category: "Other"
401
+ },
402
+ {
403
+ value: "Immunosuppressed",
404
+ category: "Other"
405
+ },
406
+ {
407
+ value: "Anticoagulated",
408
+ category: "Other"
409
+ }
410
+ ],
411
+ column: 3
412
+ },
413
+ surgeries: {
414
+ options: [
415
+ {
416
+ value: "Back surgery"
417
+ },
418
+ {
419
+ value: "Cardiac bypass (CABG)"
420
+ },
421
+ {
422
+ value: "C-section"
423
+ },
424
+ {
425
+ value: "Heart valve replaced"
426
+ },
427
+ {
428
+ value: "Hernia repair"
429
+ },
430
+ {
431
+ value: "Joint replacement"
432
+ },
433
+ {
434
+ value: "Appendectomy"
435
+ },
436
+ {
437
+ value: "Cholecystectomy"
438
+ },
439
+ {
440
+ value: "Tonsillectomy"
441
+ },
442
+ {
443
+ value: "Colectomy"
444
+ },
445
+ {
446
+ value: "Hysterectomy"
447
+ }
448
+ ],
449
+ column: 3
450
+ },
451
+ allergies: {
452
+ required: !0,
453
+ column: 3
454
+ },
455
+ medications: {
456
+ required: !0
457
+ },
458
+ health_habits: {
459
+ enabled: !0,
460
+ input: {
461
+ type: "formio",
462
+ form_id: "asprdt-form-emr-health-habits"
463
+ }
464
+ },
465
+ immunizations: {
466
+ enabled: !0,
467
+ options: [
468
+ {
469
+ value: "Hepatitis A"
470
+ },
471
+ {
472
+ value: "Hepatitis B"
473
+ },
474
+ {
475
+ value: "Varicella"
476
+ },
477
+ {
478
+ value: "Meningococcal"
479
+ },
480
+ {
481
+ value: "Pneumococcal"
482
+ },
483
+ {
484
+ value: "Polio"
485
+ },
486
+ {
487
+ value: "MMR"
488
+ },
489
+ {
490
+ value: "Influenza"
491
+ },
492
+ {
493
+ value: "COVID-19"
494
+ }
495
+ ],
496
+ column: 3
497
+ }
498
+ },
499
+ width: "1000px",
500
+ label_settings: {
501
+ update: {
502
+ text: "Update"
503
+ },
504
+ cancel: {
505
+ text: "Close"
506
+ }
507
+ }
508
+ },
509
+ title: "Past Medical History",
510
+ type: "emr",
511
+ next: {
512
+ title: "Proceed to TM Request"
513
+ },
514
+ logic: [
515
+ {
516
+ name: "Prepare data before submit",
517
+ trigger: {
518
+ type: "event",
519
+ event: "submit"
520
+ },
521
+ actions: [
522
+ {
523
+ name: "Prepare data before submit",
524
+ type: "customAction",
525
+ customAction: `(async function () {
526
+ const intake_id = _.get(data, "intake.value.id", "");
527
+ const user_id = _.get(data, "patient.value.id", "");
528
+ const resp = await fetch(\`https://api.vsee.io/v2.0/api/cases\`, {
529
+ method: 'POST',
530
+ headers: {
531
+ 'Content-Type': 'application/json',
532
+ 'X-ApiToken': window.user.token,
533
+ 'X-AccountCode': window.CONFIG.Account.code
534
+ },
535
+ credentials: 'omit',
536
+ body: JSON.stringify({ intake_id: intake_id, user_id: user_id })
537
+ }).then(response => {
538
+ return response.json();
539
+ }).then(resp => {
540
+ return resp;
541
+ }).catch(error => {
542
+ console.error('There has been a problem with your fetch operation:', error);
543
+ });
544
+ })()`
545
+ }
546
+ ]
547
+ }
548
+ ]
549
+ }
550
+ };
551
+ export {
552
+ e as default
553
+ };