@awell-health/awell-extensions 2.0.138 → 2.0.140
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/collectData/index.js +1 -0
- package/dist/extensions/collectData/index.js.map +1 -1
- package/dist/extensions/collectData/v1/actions/arrayTest/config/fields.d.ts +24 -0
- package/dist/extensions/collectData/v1/actions/arrayTest/config/fields.js +35 -0
- package/dist/extensions/collectData/v1/actions/arrayTest/config/fields.js.map +1 -1
- package/dist/extensions/collectData/v1/actions/index.d.ts +1 -0
- package/dist/extensions/collectData/v1/actions/index.js +3 -2
- package/dist/extensions/collectData/v1/actions/index.js.map +1 -1
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/__testdata__/GetAppointments.mock.d.ts +41 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/__testdata__/GetAppointments.mock.js +93 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/__testdata__/GetAppointments.mock.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/dataPoints.d.ts +14 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/dataPoints.js +18 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/dataPoints.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/fields.d.ts +28 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/fields.js +26 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/fields.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/index.d.ts +2 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/index.js +9 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/config/index.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.d.ts +4 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.js +149 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/index.d.ts +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/index.js +6 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/index.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js.map +1 -1
- package/dist/extensions/elation/actions/index.d.ts +66 -0
- package/dist/extensions/elation/actions/index.js +2 -0
- package/dist/extensions/elation/actions/index.js.map +1 -1
- package/dist/extensions/elation/validation/appointment.zod.d.ts +1 -0
- package/dist/extensions/elation/validation/appointment.zod.js +3 -3
- package/dist/extensions/elation/validation/appointment.zod.js.map +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/collectData/index.ts"],"names":[],"mappings":";;;AACA,mEAAoE;AACpE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/collectData/index.ts"],"names":[],"mappings":";;;AACA,mEAAoE;AACpE,0CAA+E;AAC/E,yCAAqC;AAExB,QAAA,WAAW,GAAc;IACpC,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,0BAA0B;IACjC,QAAQ,EACN,iGAAiG;IACnG,WAAW,EACT,qHAAqH;IACvH,QAAQ,EAAE,0BAAQ,CAAC,KAAK;IACxB,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;QACjB,kBAAkB,EAAlB,4BAAkB;QAClB,SAAS,EAAT,mBAAS;KACV;IACD,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
|
@@ -7,6 +7,12 @@ export declare const fields: {
|
|
7
7
|
description: string;
|
8
8
|
type: FieldType.STRING_ARRAY;
|
9
9
|
required: true;
|
10
|
+
options: {
|
11
|
+
dropdownOptions: {
|
12
|
+
value: string;
|
13
|
+
label: string;
|
14
|
+
}[];
|
15
|
+
};
|
10
16
|
};
|
11
17
|
numericArray: {
|
12
18
|
id: string;
|
@@ -14,6 +20,12 @@ export declare const fields: {
|
|
14
20
|
description: string;
|
15
21
|
type: FieldType.NUMERIC_ARRAY;
|
16
22
|
required: true;
|
23
|
+
options: {
|
24
|
+
dropdownOptions: {
|
25
|
+
label: string;
|
26
|
+
value: number;
|
27
|
+
}[];
|
28
|
+
};
|
17
29
|
};
|
18
30
|
anotherStringArray: {
|
19
31
|
id: string;
|
@@ -21,6 +33,12 @@ export declare const fields: {
|
|
21
33
|
description: string;
|
22
34
|
type: FieldType.STRING_ARRAY;
|
23
35
|
required: true;
|
36
|
+
options: {
|
37
|
+
dropdownOptions: {
|
38
|
+
label: string;
|
39
|
+
value: string;
|
40
|
+
}[];
|
41
|
+
};
|
24
42
|
};
|
25
43
|
anotherNumericArray: {
|
26
44
|
id: string;
|
@@ -28,6 +46,12 @@ export declare const fields: {
|
|
28
46
|
description: string;
|
29
47
|
type: FieldType.NUMERIC_ARRAY;
|
30
48
|
required: true;
|
49
|
+
options: {
|
50
|
+
dropdownOptions: {
|
51
|
+
label: string;
|
52
|
+
value: number;
|
53
|
+
}[];
|
54
|
+
};
|
31
55
|
};
|
32
56
|
};
|
33
57
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
@@ -10,6 +10,22 @@ exports.fields = {
|
|
10
10
|
description: 'Select a data point or enter comma separated strings.',
|
11
11
|
type: extensions_core_1.FieldType.STRING_ARRAY,
|
12
12
|
required: true,
|
13
|
+
options: {
|
14
|
+
dropdownOptions: [
|
15
|
+
{
|
16
|
+
value: 'one',
|
17
|
+
label: 'One',
|
18
|
+
},
|
19
|
+
{
|
20
|
+
value: 'two',
|
21
|
+
label: 'Two',
|
22
|
+
},
|
23
|
+
{
|
24
|
+
value: 'three',
|
25
|
+
label: 'Three',
|
26
|
+
},
|
27
|
+
],
|
28
|
+
},
|
13
29
|
},
|
14
30
|
numericArray: {
|
15
31
|
id: 'numericArray',
|
@@ -17,6 +33,13 @@ exports.fields = {
|
|
17
33
|
description: 'Select a data point or enter comma separated numbers.',
|
18
34
|
type: extensions_core_1.FieldType.NUMERIC_ARRAY,
|
19
35
|
required: true,
|
36
|
+
options: {
|
37
|
+
dropdownOptions: [
|
38
|
+
{ label: 'One', value: 1 },
|
39
|
+
{ label: 'Two', value: 2 },
|
40
|
+
{ label: 'Three', value: 3 },
|
41
|
+
],
|
42
|
+
},
|
20
43
|
},
|
21
44
|
anotherStringArray: {
|
22
45
|
id: 'anotherStringArray',
|
@@ -24,6 +47,12 @@ exports.fields = {
|
|
24
47
|
description: 'Select a data point or enter comma separated strings.',
|
25
48
|
type: extensions_core_1.FieldType.STRING_ARRAY,
|
26
49
|
required: true,
|
50
|
+
options: {
|
51
|
+
dropdownOptions: [
|
52
|
+
{ label: 'Option 1', value: 'option1' },
|
53
|
+
{ label: 'Option 2', value: 'option2' },
|
54
|
+
],
|
55
|
+
},
|
27
56
|
},
|
28
57
|
anotherNumericArray: {
|
29
58
|
id: 'anotherNumericArray',
|
@@ -31,6 +60,12 @@ exports.fields = {
|
|
31
60
|
description: 'Select a data point or enter comma separated numbers.',
|
32
61
|
type: extensions_core_1.FieldType.NUMERIC_ARRAY,
|
33
62
|
required: true,
|
63
|
+
options: {
|
64
|
+
dropdownOptions: [
|
65
|
+
{ label: 'Option 1', value: 50 },
|
66
|
+
{ label: 'Option 2', value: 51 },
|
67
|
+
],
|
68
|
+
},
|
34
69
|
},
|
35
70
|
};
|
36
71
|
exports.FieldsValidationSchema = zod_1.z.object({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/collectData/v1/actions/arrayTest/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,2BAAS,CAAC,YAAY;QAC5B,QAAQ,EAAE,IAAI;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/collectData/v1/actions/arrayTest/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,2BAAS,CAAC,YAAY;QAC5B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,eAAe,EAAE;gBACf;oBACE,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,KAAK;iBACb;gBACD;oBACE,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,KAAK;iBACb;gBACD;oBACE,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,OAAO;iBACf;aACF;SACF;KACF;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,2BAAS,CAAC,aAAa;QAC7B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,eAAe,EAAE;gBACf,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC1B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC1B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE;aAC7B;SACF;KACF;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,2BAAS,CAAC,YAAY;QAC5B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,eAAe,EAAE;gBACf,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;gBACvC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;aACxC;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,2BAAS,CAAC,aAAa;QAC7B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,eAAe,EAAE;gBACf,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE;gBAChC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE;aACjC;SACF;KACF;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3C,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACjD,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACD,CAAC,CAAA;AAE7C,MAAM,oBAAoB,GAAG,CAClC,MAAe,EACyB,EAAE;IAC1C,MAAM,UAAU,GAAG,8BAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAEvD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AANY,QAAA,oBAAoB,wBAMhC"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.collectMedication = exports.remoteSingleSelect = void 0;
|
3
|
+
exports.collectMedication = exports.arrayTest = exports.remoteSingleSelect = void 0;
|
4
4
|
var remoteSingleSelect_1 = require("./remoteSingleSelect");
|
5
5
|
Object.defineProperty(exports, "remoteSingleSelect", { enumerable: true, get: function () { return remoteSingleSelect_1.remoteSingleSelect; } });
|
6
|
-
|
6
|
+
var arrayTest_1 = require("./arrayTest");
|
7
|
+
Object.defineProperty(exports, "arrayTest", { enumerable: true, get: function () { return arrayTest_1.arrayTest; } });
|
7
8
|
var collectMedication_1 = require("./collectMedication");
|
8
9
|
Object.defineProperty(exports, "collectMedication", { enumerable: true, get: function () { return collectMedication_1.collectMedication; } });
|
9
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/collectData/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/collectData/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
export declare const appointmentsMock: {
|
2
|
+
id: number;
|
3
|
+
scheduled_date: string;
|
4
|
+
duration: number;
|
5
|
+
billing_details: null;
|
6
|
+
payment: null;
|
7
|
+
time_slot_type: string;
|
8
|
+
time_slot_status: null;
|
9
|
+
reason: string;
|
10
|
+
mode: string;
|
11
|
+
description: string;
|
12
|
+
status: {
|
13
|
+
status: string;
|
14
|
+
room: null;
|
15
|
+
status_date: string;
|
16
|
+
status_detail: null;
|
17
|
+
};
|
18
|
+
patient: number;
|
19
|
+
patient_forms: {
|
20
|
+
patient_can_receive_forms: boolean;
|
21
|
+
anonymous_url: string;
|
22
|
+
overrides: never[];
|
23
|
+
short_code: null;
|
24
|
+
statuses: {
|
25
|
+
id: number;
|
26
|
+
name: string;
|
27
|
+
status: string;
|
28
|
+
}[];
|
29
|
+
hours_prior: number;
|
30
|
+
};
|
31
|
+
physician: number;
|
32
|
+
practice: number;
|
33
|
+
instructions: string;
|
34
|
+
recurring_event_schedule: null;
|
35
|
+
metadata: null;
|
36
|
+
created_date: string;
|
37
|
+
last_modified_date: string;
|
38
|
+
deleted_date: null;
|
39
|
+
service_location: null;
|
40
|
+
telehealth_details: string;
|
41
|
+
}[];
|
@@ -0,0 +1,93 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.appointmentsMock = void 0;
|
4
|
+
const date_fns_1 = require("date-fns");
|
5
|
+
exports.appointmentsMock = [
|
6
|
+
{
|
7
|
+
id: 123,
|
8
|
+
scheduled_date: (0, date_fns_1.addDays)(new Date(), 1).toISOString(),
|
9
|
+
duration: 60,
|
10
|
+
billing_details: null,
|
11
|
+
payment: null,
|
12
|
+
time_slot_type: 'appointment',
|
13
|
+
time_slot_status: null,
|
14
|
+
reason: 'PCP: Est. Patient Office',
|
15
|
+
mode: 'VIDEO',
|
16
|
+
description: '',
|
17
|
+
status: {
|
18
|
+
status: 'Scheduled',
|
19
|
+
room: null,
|
20
|
+
status_date: '2023-07-12T20:44:22Z',
|
21
|
+
status_detail: null,
|
22
|
+
},
|
23
|
+
patient: 12345,
|
24
|
+
patient_forms: {
|
25
|
+
patient_can_receive_forms: true,
|
26
|
+
anonymous_url: 'https://sandbox.elationemr.com/appointments/141701667029082/patient-forms/?key=642301d3930ac1e4d052ff65c093c5f1da1697e6b861a18f43a042b5afca50a1',
|
27
|
+
overrides: [],
|
28
|
+
short_code: null,
|
29
|
+
statuses: [
|
30
|
+
{
|
31
|
+
id: 316,
|
32
|
+
name: 'COVID-19 Screening Form',
|
33
|
+
status: 'incomplete',
|
34
|
+
},
|
35
|
+
],
|
36
|
+
hours_prior: 0,
|
37
|
+
},
|
38
|
+
physician: 141114870071298,
|
39
|
+
practice: 141114865745924,
|
40
|
+
instructions: '',
|
41
|
+
recurring_event_schedule: null,
|
42
|
+
metadata: null,
|
43
|
+
created_date: '2023-07-12T20:44:22Z',
|
44
|
+
last_modified_date: '2023-07-12T20:44:22Z',
|
45
|
+
deleted_date: null,
|
46
|
+
service_location: null,
|
47
|
+
telehealth_details: '',
|
48
|
+
},
|
49
|
+
{
|
50
|
+
id: 456,
|
51
|
+
scheduled_date: (0, date_fns_1.addDays)(new Date(), 2).toISOString(),
|
52
|
+
duration: 60,
|
53
|
+
billing_details: null,
|
54
|
+
payment: null,
|
55
|
+
time_slot_type: 'appointment',
|
56
|
+
time_slot_status: null,
|
57
|
+
reason: 'PCP: Est. Patient Office',
|
58
|
+
mode: 'VIDEO',
|
59
|
+
description: '',
|
60
|
+
status: {
|
61
|
+
status: 'Scheduled',
|
62
|
+
room: null,
|
63
|
+
status_date: '2023-07-12T20:44:22Z',
|
64
|
+
status_detail: null,
|
65
|
+
},
|
66
|
+
patient: 12345,
|
67
|
+
patient_forms: {
|
68
|
+
patient_can_receive_forms: true,
|
69
|
+
anonymous_url: 'https://sandbox.elationemr.com/appointments/141701667029082/patient-forms/?key=642301d3930ac1e4d052ff65c093c5f1da1697e6b861a18f43a042b5afca50a1',
|
70
|
+
overrides: [],
|
71
|
+
short_code: null,
|
72
|
+
statuses: [
|
73
|
+
{
|
74
|
+
id: 316,
|
75
|
+
name: 'COVID-19 Screening Form',
|
76
|
+
status: 'incomplete',
|
77
|
+
},
|
78
|
+
],
|
79
|
+
hours_prior: 0,
|
80
|
+
},
|
81
|
+
physician: 141114870071298,
|
82
|
+
practice: 141114865745924,
|
83
|
+
instructions: '',
|
84
|
+
recurring_event_schedule: null,
|
85
|
+
metadata: null,
|
86
|
+
created_date: '2023-07-12T20:44:22Z',
|
87
|
+
last_modified_date: '2023-07-12T20:44:22Z',
|
88
|
+
deleted_date: null,
|
89
|
+
service_location: null,
|
90
|
+
telehealth_details: '',
|
91
|
+
},
|
92
|
+
];
|
93
|
+
//# sourceMappingURL=GetAppointments.mock.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"GetAppointments.mock.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/findAppointmentsByPrompt/__testdata__/GetAppointments.mock.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAErB,QAAA,gBAAgB,GAAG;IAC9B;QACE,EAAE,EAAE,GAAG;QACP,cAAc,EAAE,IAAA,kBAAO,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;QACpD,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,aAAa;QAC7B,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE,0BAA0B;QAClC,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,EAAE;QACf,MAAM,EAAE;YACN,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,sBAAsB;YACnC,aAAa,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,KAAK;QACd,aAAa,EAAE;YACb,yBAAyB,EAAE,IAAI;YAC/B,aAAa,EACX,iJAAiJ;YACnJ,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR;oBACE,EAAE,EAAE,GAAG;oBACP,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,YAAY;iBACrB;aACF;YACD,WAAW,EAAE,CAAC;SACf;QACD,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,EAAE;QAChB,wBAAwB,EAAE,IAAI;QAC9B,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,sBAAsB;QACpC,kBAAkB,EAAE,sBAAsB;QAC1C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,kBAAkB,EAAE,EAAE;KACvB;IACD;QACE,EAAE,EAAE,GAAG;QACP,cAAc,EAAE,IAAA,kBAAO,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;QACpD,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,aAAa;QAC7B,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE,0BAA0B;QAClC,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,EAAE;QACf,MAAM,EAAE;YACN,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,sBAAsB;YACnC,aAAa,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,KAAK;QACd,aAAa,EAAE;YACb,yBAAyB,EAAE,IAAI;YAC/B,aAAa,EACX,iJAAiJ;YACnJ,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR;oBACE,EAAE,EAAE,GAAG;oBACP,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,YAAY;iBACrB;aACF;YACD,WAAW,EAAE,CAAC;SACf;QACD,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,EAAE;QAChB,wBAAwB,EAAE,IAAI;QAC9B,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,sBAAsB;QACpC,kBAAkB,EAAE,sBAAsB;QAC1C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,kBAAkB,EAAE,EAAE;KACvB;CACF,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dataPoints = void 0;
|
4
|
+
exports.dataPoints = {
|
5
|
+
appointments: {
|
6
|
+
key: 'appointments',
|
7
|
+
valueType: 'json',
|
8
|
+
},
|
9
|
+
explanation: {
|
10
|
+
key: 'explanation',
|
11
|
+
valueType: 'string',
|
12
|
+
},
|
13
|
+
appointmentCountsByStatus: {
|
14
|
+
key: 'appointmentCountsByStatus',
|
15
|
+
valueType: 'json',
|
16
|
+
},
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=dataPoints.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/findAppointmentsByPrompt/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,YAAY,EAAE;QACZ,GAAG,EAAE,cAAc;QACnB,SAAS,EAAE,MAAM;KAClB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,2BAA2B;QAChC,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { FieldType } from '@awell-health/extensions-core';
|
3
|
+
export declare const fields: {
|
4
|
+
patientId: {
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
type: FieldType.NUMERIC;
|
8
|
+
required: true;
|
9
|
+
description: string;
|
10
|
+
};
|
11
|
+
prompt: {
|
12
|
+
id: string;
|
13
|
+
label: string;
|
14
|
+
type: FieldType.TEXT;
|
15
|
+
required: true;
|
16
|
+
description: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
20
|
+
patientId: z.ZodNumber;
|
21
|
+
prompt: z.ZodString;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
patientId: number;
|
24
|
+
prompt: string;
|
25
|
+
}, {
|
26
|
+
patientId: number;
|
27
|
+
prompt: string;
|
28
|
+
}>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FieldsValidationSchema = exports.fields = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
+
exports.fields = {
|
7
|
+
patientId: {
|
8
|
+
id: 'patientId',
|
9
|
+
label: 'Elation patient ID',
|
10
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
11
|
+
required: true,
|
12
|
+
description: '',
|
13
|
+
},
|
14
|
+
prompt: {
|
15
|
+
id: 'prompt',
|
16
|
+
label: 'Describe what appointments you would like to find',
|
17
|
+
type: extensions_core_1.FieldType.TEXT,
|
18
|
+
required: true,
|
19
|
+
description: '',
|
20
|
+
},
|
21
|
+
};
|
22
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
23
|
+
patientId: extensions_core_1.NumericIdSchema,
|
24
|
+
prompt: zod_1.z.string().min(1),
|
25
|
+
});
|
26
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/findAppointmentsByPrompt/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAIsC;AAEzB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,EAAE;KAChB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,mDAAmD;QAC1D,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,EAAE;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iCAAe;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACwB,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FieldsValidationSchema = exports.fields = exports.dataPoints = void 0;
|
4
|
+
var dataPoints_1 = require("./dataPoints");
|
5
|
+
Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
|
6
|
+
var fields_1 = require("./fields");
|
7
|
+
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
8
|
+
Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/findAppointmentsByPrompt/config/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA"}
|
@@ -0,0 +1,149 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.findAppointmentsByPrompt = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const client_1 = require("../../client");
|
6
|
+
const config_1 = require("./config");
|
7
|
+
const output_parsers_1 = require("@langchain/core/output_parsers");
|
8
|
+
const zod_1 = require("zod");
|
9
|
+
const openai_1 = require("@langchain/openai");
|
10
|
+
const addEventLog_1 = require("../../../../src/lib/awell/addEventLog");
|
11
|
+
const appointment_zod_1 = require("../../validation/appointment.zod");
|
12
|
+
exports.findAppointmentsByPrompt = {
|
13
|
+
key: 'findAppointmentsByPrompt',
|
14
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
15
|
+
title: '🪄 Find Appointments by Prompt',
|
16
|
+
description: 'Find all appointments for a patient using natural language.',
|
17
|
+
fields: config_1.fields,
|
18
|
+
previewable: false,
|
19
|
+
dataPoints: config_1.dataPoints,
|
20
|
+
onEvent: async ({ payload, onComplete, onError }) => {
|
21
|
+
const { prompt, patientId } = config_1.FieldsValidationSchema.parse(payload.fields);
|
22
|
+
const api = (0, client_1.makeAPIClient)(payload.settings);
|
23
|
+
const openAiApiKey = payload.settings.openAiApiKey;
|
24
|
+
if (openAiApiKey === undefined || openAiApiKey === '') {
|
25
|
+
await onError({
|
26
|
+
events: [
|
27
|
+
{
|
28
|
+
date: new Date().toISOString(),
|
29
|
+
text: { en: 'OpenAI API key is required for this action.' },
|
30
|
+
error: {
|
31
|
+
category: 'SERVER_ERROR',
|
32
|
+
message: 'OpenAI API key is required for this action.',
|
33
|
+
},
|
34
|
+
},
|
35
|
+
],
|
36
|
+
});
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
const appointments = await api.findAppointments({
|
40
|
+
patient: patientId,
|
41
|
+
});
|
42
|
+
const promptAppointments = appointments
|
43
|
+
.map((appointment) => {
|
44
|
+
const relevantInfo = {
|
45
|
+
id: appointment.id,
|
46
|
+
reason: appointment.reason,
|
47
|
+
scheduled_date: appointment.scheduled_date,
|
48
|
+
};
|
49
|
+
return JSON.stringify(relevantInfo);
|
50
|
+
})
|
51
|
+
.join('\n\n');
|
52
|
+
const ChatModelGPT4o = new openai_1.ChatOpenAI({
|
53
|
+
modelName: 'gpt-4o-2024-08-06',
|
54
|
+
openAIApiKey: openAiApiKey,
|
55
|
+
temperature: 0,
|
56
|
+
maxRetries: 3,
|
57
|
+
timeout: 10000,
|
58
|
+
});
|
59
|
+
const systemPrompt = createSystemPrompt({
|
60
|
+
prompt,
|
61
|
+
appointments: promptAppointments,
|
62
|
+
});
|
63
|
+
const AppointmentIdSchema = zod_1.z.array(zod_1.z.string());
|
64
|
+
const parser = output_parsers_1.StructuredOutputParser.fromZodSchema(zod_1.z.object({
|
65
|
+
appointmentIds: AppointmentIdSchema,
|
66
|
+
explanation: zod_1.z
|
67
|
+
.string()
|
68
|
+
.describe('A readable explanation of how the appointments were found and why'),
|
69
|
+
}));
|
70
|
+
let result;
|
71
|
+
try {
|
72
|
+
const chain = ChatModelGPT4o.pipe(parser);
|
73
|
+
result = await chain.invoke(systemPrompt);
|
74
|
+
}
|
75
|
+
catch (invokeError) {
|
76
|
+
console.error('Error invoking ChatModelGPT4o for findFutureAppointment:', invokeError);
|
77
|
+
throw new Error('Failed to find future appointment.');
|
78
|
+
}
|
79
|
+
const selectedAppointments = result.appointmentIds.map((appointmentId) => appointments.find((appointment) => appointment.id === Number(appointmentId)));
|
80
|
+
if (Object.keys(selectedAppointments).length === 0) {
|
81
|
+
console.log('No appointments found');
|
82
|
+
await onComplete({
|
83
|
+
data_points: {
|
84
|
+
explanation: result.explanation,
|
85
|
+
},
|
86
|
+
});
|
87
|
+
return;
|
88
|
+
}
|
89
|
+
if (selectedAppointments.length !== result.appointmentIds.length) {
|
90
|
+
console.log('Some appointments were not found');
|
91
|
+
const errorMessage = `Some appointments were not found. Found ${selectedAppointments.length} appointments, but the prompt resulted in ${result.appointmentIds.length} appointments.`;
|
92
|
+
await onError({
|
93
|
+
events: [
|
94
|
+
{
|
95
|
+
date: new Date().toISOString(),
|
96
|
+
text: { en: errorMessage },
|
97
|
+
error: {
|
98
|
+
category: 'SERVER_ERROR',
|
99
|
+
message: errorMessage,
|
100
|
+
},
|
101
|
+
},
|
102
|
+
],
|
103
|
+
});
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
const appointmentCountsByStatus = Object.values(appointment_zod_1.statusEnum.Values).reduce((acc, status) => {
|
107
|
+
const cnt = selectedAppointments.filter((appointment) => (appointment === null || appointment === void 0 ? void 0 : appointment.status.status) === status).length;
|
108
|
+
if (cnt > 0) {
|
109
|
+
acc[status] = cnt;
|
110
|
+
}
|
111
|
+
return acc;
|
112
|
+
}, {});
|
113
|
+
await onComplete({
|
114
|
+
data_points: {
|
115
|
+
appointments: JSON.stringify(selectedAppointments),
|
116
|
+
explanation: result.explanation,
|
117
|
+
appointmentCountsByStatus: JSON.stringify(appointmentCountsByStatus),
|
118
|
+
},
|
119
|
+
events: [
|
120
|
+
(0, addEventLog_1.addActivityEventLog)({
|
121
|
+
message: `Found ${selectedAppointments.length} appointments for patient ${patientId}\nExplanation: ${result.explanation}\nAppointment counts by status: ${JSON.stringify(appointmentCountsByStatus)}`,
|
122
|
+
}),
|
123
|
+
],
|
124
|
+
});
|
125
|
+
},
|
126
|
+
};
|
127
|
+
const createSystemPrompt = ({ prompt, appointments, }) => {
|
128
|
+
const currentYear = new Date().getDate();
|
129
|
+
return `You are a helpful medical assistant. You will receive a list (array) of appointments for a single patient and instructions about which types of appointments to find. You're supposed to use the information in the list to find appointments that match, if any exist. If no appointments exists that obviously match the instructions, that's a perfectly acceptable outcome. If multiple appointments exist that match the instructions, you should return all of them.
|
130
|
+
|
131
|
+
Important instructions:
|
132
|
+
- The appointment "reason" is the appointment type.
|
133
|
+
- Only include appointment ids that exist in the input array.
|
134
|
+
- Pay close attention to the instructions. They are intended to have been written by a clinician, for a clinician.
|
135
|
+
- Think like a clinician. In other words, "Rx" should match a prescription appointment or follow-up related to a prescription, and "PT" would matchphysical therapy.
|
136
|
+
- The current date is ${currentYear}.
|
137
|
+
----------
|
138
|
+
Input array:
|
139
|
+
${appointments}
|
140
|
+
----------
|
141
|
+
Instruction:
|
142
|
+
${prompt}
|
143
|
+
----------
|
144
|
+
|
145
|
+
Output a JSON object with the following keys:
|
146
|
+
1. appointmentIds: array of strings where each string is an appointment_id that matches the instructions.
|
147
|
+
2. explanation: A readable explanation of how the appointments were found and why. Or, if no appointments exist that match the instructions, an explanation of why.`;
|
148
|
+
};
|
149
|
+
//# sourceMappingURL=findAppointmentsByPrompt.js.map
|
package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"findAppointmentsByPrompt.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,yCAA4C;AAC5C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GAAG,CAAA;YACnB,CAAC;YACD,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAA4B,CAC7B,CAAA;QAED,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;gBAClD,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,yBAAyB,EAAE,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC;aACrE;YACD,MAAM,EAAE;gBACN,IAAA,iCAAmB,EAAC;oBAClB,OAAO,EAAE,SAAS,oBAAoB,CAAC,MAAM,6BAA6B,SAAS,kBAAkB,MAAM,CAAC,WAAW,mCAAmC,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,EAAE;iBACtM,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,MAAM,kBAAkB,GAAG,CAAC,EAC1B,MAAM,EACN,YAAY,GAIb,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IACxC,OAAO;;;;;;;8BAOqB,WAAW;;;EAGvC,YAAY;;;EAGZ,MAAM;;;;;oKAK4J,CAAA;AACpK,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { findAppointmentsByPrompt } from './findAppointmentsByPrompt';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.findAppointmentsByPrompt = void 0;
|
4
|
+
var findAppointmentsByPrompt_1 = require("./findAppointmentsByPrompt");
|
5
|
+
Object.defineProperty(exports, "findAppointmentsByPrompt", { enumerable: true, get: function () { return findAppointmentsByPrompt_1.findAppointmentsByPrompt; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findAppointmentsByPrompt/index.ts"],"names":[],"mappings":";;;AAAA,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"findFutureAppointment.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findFutureAppointment/findFutureAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,yCAA4C;AAC5C,qCAAqE;AACrE,mEAAuE;AACvE,6BAAuB;AACvB,8CAA8C;AAC9C,uEAA2E;AAC3E,mCAA8B;AAEjB,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAC1E,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAE3C,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAA;QAElD,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,EAAE,CAAC;YACtD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,6CAA6C,EAAE;wBAC3D,KAAK,EAAE;4BACL,QAAQ,EAAE,cAAc;4BACxB,OAAO,EAAE,6CAA6C;yBACvD;qBACF;iBACF;aACF,CAAC,CAAA;YACF,OAAM;QACR,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,GAAG,CAAC,gBAAgB,CAAC;YAC9C,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"findFutureAppointment.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findFutureAppointment/findFutureAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,yCAA4C;AAC5C,qCAAqE;AACrE,mEAAuE;AACvE,6BAAuB;AACvB,8CAA8C;AAC9C,uEAA2E;AAC3E,mCAA8B;AAEjB,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAC1E,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAE3C,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAA;QAElD,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,EAAE,CAAC;YACtD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,6CAA6C,EAAE;wBAC3D,KAAK,EAAE;4BACL,QAAQ,EAAE,cAAc;4BACxB,OAAO,EAAE,6CAA6C;yBACvD;qBACF;iBACF;a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E,oEAAoE,SAAS,KAAK,gCAAgC,CAAC,MAAM,wBAAwB,IAAA,cAAK,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,EAAE,kBAAkB,MAAM,CAAC,WAAW,EAAE;iBACxP,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
@@ -2617,4 +2617,70 @@ export declare const actions: {
|
|
2617
2617
|
description: string;
|
2618
2618
|
};
|
2619
2619
|
}, "appointment" | "explanation" | "appointmentExists">;
|
2620
|
+
findAppointmentsByPrompt: import("@awell-health/extensions-core").Action<{
|
2621
|
+
patientId: {
|
2622
|
+
id: string;
|
2623
|
+
label: string;
|
2624
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
2625
|
+
required: true;
|
2626
|
+
description: string;
|
2627
|
+
};
|
2628
|
+
prompt: {
|
2629
|
+
id: string;
|
2630
|
+
label: string;
|
2631
|
+
type: import("@awell-health/extensions-core").FieldType.TEXT;
|
2632
|
+
required: true;
|
2633
|
+
description: string;
|
2634
|
+
};
|
2635
|
+
}, {
|
2636
|
+
base_url: {
|
2637
|
+
key: string;
|
2638
|
+
label: string;
|
2639
|
+
obfuscated: false;
|
2640
|
+
description: string;
|
2641
|
+
required: true;
|
2642
|
+
};
|
2643
|
+
auth_url: {
|
2644
|
+
key: string;
|
2645
|
+
label: string;
|
2646
|
+
obfuscated: false;
|
2647
|
+
description: string;
|
2648
|
+
required: true;
|
2649
|
+
};
|
2650
|
+
client_id: {
|
2651
|
+
key: string;
|
2652
|
+
label: string;
|
2653
|
+
obfuscated: false;
|
2654
|
+
description: string;
|
2655
|
+
required: true;
|
2656
|
+
};
|
2657
|
+
client_secret: {
|
2658
|
+
key: string;
|
2659
|
+
label: string;
|
2660
|
+
obfuscated: true;
|
2661
|
+
description: string;
|
2662
|
+
required: true;
|
2663
|
+
};
|
2664
|
+
username: {
|
2665
|
+
key: string;
|
2666
|
+
label: string;
|
2667
|
+
obfuscated: false;
|
2668
|
+
description: string;
|
2669
|
+
required: false;
|
2670
|
+
};
|
2671
|
+
password: {
|
2672
|
+
key: string;
|
2673
|
+
label: string;
|
2674
|
+
obfuscated: true;
|
2675
|
+
description: string;
|
2676
|
+
required: false;
|
2677
|
+
};
|
2678
|
+
openAiApiKey: {
|
2679
|
+
key: string;
|
2680
|
+
label: string;
|
2681
|
+
obfuscated: true;
|
2682
|
+
required: false;
|
2683
|
+
description: string;
|
2684
|
+
};
|
2685
|
+
}, "appointments" | "explanation" | "appointmentCountsByStatus">;
|
2620
2686
|
};
|
@@ -28,6 +28,7 @@ const closeCareGap_1 = require("./closeCareGap");
|
|
28
28
|
const updatePatientTags_1 = require("./updatePatientTags");
|
29
29
|
const getReferralOrder_1 = require("./getReferralOrder");
|
30
30
|
const findFutureAppointment_1 = require("./findFutureAppointment");
|
31
|
+
const findAppointmentsByPrompt_1 = require("./findAppointmentsByPrompt");
|
31
32
|
exports.actions = {
|
32
33
|
getPatient: getPatient_1.getPatient,
|
33
34
|
createPatient: createPatient_1.createPatient,
|
@@ -56,5 +57,6 @@ exports.actions = {
|
|
56
57
|
updatePatientTags: updatePatientTags_1.updatePatientTags,
|
57
58
|
getReferralOrder: getReferralOrder_1.getReferralOrder,
|
58
59
|
findFutureAppointment: findFutureAppointment_1.findFutureAppointment,
|
60
|
+
findAppointmentsByPrompt: findAppointmentsByPrompt_1.findAppointmentsByPrompt,
|
59
61
|
};
|
60
62
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/index.ts"],"names":[],"mappings":";;;AAAA,wDAAoD;AACpD,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,qDAAiD;AACjD,+CAA2C;AAC3C,yDAAqD;AACrD,mDAA+C;AAC/C,6DAAyD;AACzD,6DAAyD;AACzD,uDAAmD;AACnD,6DAAyD;AACzD,iDAA6C;AAC7C,6CAAyC;AACzC,qDAAiD;AACjD,+DAA2D;AAC3D,wDAAoD;AACpD,wDAAoD;AACpD,uEAAmE;AACnE,qDAAiD;AACjD,2CAAuC;AACvC,+DAA2D;AAC3D,mDAA+C;AAC/C,iDAA6C;AAC7C,2DAAuD;AACvD,yDAAqD;AACrD,mEAA+D;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/index.ts"],"names":[],"mappings":";;;AAAA,wDAAoD;AACpD,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,qDAAiD;AACjD,+CAA2C;AAC3C,yDAAqD;AACrD,mDAA+C;AAC/C,6DAAyD;AACzD,6DAAyD;AACzD,uDAAmD;AACnD,6DAAyD;AACzD,iDAA6C;AAC7C,6CAAyC;AACzC,qDAAiD;AACjD,+DAA2D;AAC3D,wDAAoD;AACpD,wDAAoD;AACpD,uEAAmE;AACnE,qDAAiD;AACjD,2CAAuC;AACvC,+DAA2D;AAC3D,mDAA+C;AAC/C,iDAA6C;AAC7C,2DAAuD;AACvD,yDAAqD;AACrD,mEAA+D;AAC/D,yEAAqE;AAExD,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,uBAAU;IACV,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,gBAAgB,EAAhB,mCAAgB;IAChB,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,aAAa,EAAb,6BAAa;IACb,kBAAkB,EAAlB,uCAAkB;IAClB,kBAAkB,EAAlB,uCAAkB;IAClB,eAAe,EAAf,iCAAe;IACf,kBAAkB,EAAlB,uCAAkB;IAClB,eAAe,EAAf,iCAAe;IACf,SAAS,EAAT,qBAAS;IACT,UAAU,EAAV,uBAAU;IACV,UAAU,EAAV,uBAAU;IACV,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,mBAAmB,EAAnB,yCAAmB;IACnB,SAAS,EAAT,qBAAS;IACT,mBAAmB,EAAnB,yCAAmB;IACnB,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,iBAAiB,EAAjB,qCAAiB;IACjB,gBAAgB,EAAhB,mCAAgB;IAChB,qBAAqB,EAArB,6CAAqB;IACrB,wBAAwB,EAAxB,mDAAwB;CACzB,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as z from 'zod';
|
2
|
+
export declare const statusEnum: z.ZodEnum<["Scheduled", "Confirmed", "Checked Out", "Cancelled", "With Doctor", "In Room", "Checked In", "In Room - Vitals Taken", "Not Seen", "Billed"]>;
|
2
3
|
export declare const statusSchema: z.ZodObject<{
|
3
4
|
status: z.ZodEnum<["Scheduled", "Confirmed", "Checked Out", "Cancelled", "With Doctor", "In Room", "Checked In", "In Room - Vitals Taken", "Not Seen", "Billed"]>;
|
4
5
|
room: z.ZodOptional<z.ZodString>;
|
@@ -33,11 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
33
33
|
};
|
34
34
|
})();
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36
|
-
exports.FindAppointmentFieldSchema = exports.appointmentSchema = exports.statusSchema = void 0;
|
36
|
+
exports.FindAppointmentFieldSchema = exports.appointmentSchema = exports.statusSchema = exports.statusEnum = void 0;
|
37
37
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
38
38
|
const lodash_1 = require("lodash");
|
39
39
|
const z = __importStar(require("zod"));
|
40
|
-
|
40
|
+
exports.statusEnum = z.enum([
|
41
41
|
'Scheduled',
|
42
42
|
'Confirmed',
|
43
43
|
'Checked Out',
|
@@ -50,7 +50,7 @@ const statusEnum = z.enum([
|
|
50
50
|
'Billed',
|
51
51
|
]);
|
52
52
|
exports.statusSchema = z.object({
|
53
|
-
status: statusEnum,
|
53
|
+
status: exports.statusEnum,
|
54
54
|
room: z.string().optional(),
|
55
55
|
});
|
56
56
|
const statusReturnSchema = exports.statusSchema.extend({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appointment.zod.js","sourceRoot":"","sources":["../../../../extensions/elation/validation/appointment.zod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+E;AAC/E,mCAA8B;AAC9B,uCAAwB;
|
1
|
+
{"version":3,"file":"appointment.zod.js","sourceRoot":"","sources":["../../../../extensions/elation/validation/appointment.zod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+E;AAC/E,mCAA8B;AAC9B,uCAAwB;AAEX,QAAA,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,SAAS;IACT,YAAY;IACZ,wBAAwB;IACxB,UAAU;IACV,QAAQ;CACT,CAAC,CAAA;AAEW,QAAA,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,kBAAU;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,oBAAY,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,cAAc,EAAE,gCAAc;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAA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,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;QAC7D,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;QAChE,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;QAC5D,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QACtD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;KAC9D,CAAA;AACH,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@awell-health/awell-extensions",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.140",
|
4
4
|
"packageManager": "yarn@4.5.3",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"repository": {
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"copy-markdown": "node copy-markdown.js && echo 'Copied markdown files to dist/'",
|
19
19
|
"start": "node dist/src/index.js",
|
20
20
|
"lint": "eslint \"**/*.ts\"",
|
21
|
-
"test": "jest --verbose",
|
21
|
+
"test": "jest --verbose --testPathIgnorePatterns '.*\\.local\\.test\\.ts$'",
|
22
22
|
"prepack": "yarn build",
|
23
23
|
"test-server": "ts-node-dev --respawn --transpile-only ./src/test-server.ts",
|
24
24
|
"prepare": "husky"
|