@awell-health/awell-extensions 2.0.166 → 2.0.168

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/extensions/elation/actions/addMessageToThread/addMessageToThread.d.ts +4 -0
  2. package/dist/extensions/elation/actions/addMessageToThread/addMessageToThread.js +39 -0
  3. package/dist/extensions/elation/actions/addMessageToThread/addMessageToThread.js.map +1 -0
  4. package/dist/extensions/elation/actions/addMessageToThread/config/dataPoints.d.ts +6 -0
  5. package/dist/extensions/elation/actions/addMessageToThread/config/dataPoints.js +10 -0
  6. package/dist/extensions/elation/actions/addMessageToThread/config/dataPoints.js.map +1 -0
  7. package/dist/extensions/elation/actions/addMessageToThread/config/fields.d.ts +38 -0
  8. package/dist/extensions/elation/actions/addMessageToThread/config/fields.js +37 -0
  9. package/dist/extensions/elation/actions/addMessageToThread/config/fields.js.map +1 -0
  10. package/dist/extensions/elation/actions/addMessageToThread/config/index.d.ts +2 -0
  11. package/dist/extensions/elation/actions/addMessageToThread/config/index.js +9 -0
  12. package/dist/extensions/elation/actions/addMessageToThread/config/index.js.map +1 -0
  13. package/dist/extensions/elation/actions/addMessageToThread/index.d.ts +1 -0
  14. package/dist/extensions/elation/actions/addMessageToThread/index.js +6 -0
  15. package/dist/extensions/elation/actions/addMessageToThread/index.js.map +1 -0
  16. package/dist/extensions/elation/actions/createMessageThread/config/dataPoints.d.ts +6 -0
  17. package/dist/extensions/elation/actions/createMessageThread/config/dataPoints.js +10 -0
  18. package/dist/extensions/elation/actions/createMessageThread/config/dataPoints.js.map +1 -0
  19. package/dist/extensions/elation/actions/createMessageThread/config/fields.d.ts +98 -0
  20. package/dist/extensions/elation/actions/createMessageThread/config/fields.js +93 -0
  21. package/dist/extensions/elation/actions/createMessageThread/config/fields.js.map +1 -0
  22. package/dist/extensions/elation/actions/createMessageThread/config/index.d.ts +2 -0
  23. package/dist/extensions/elation/actions/createMessageThread/config/index.js +9 -0
  24. package/dist/extensions/elation/actions/createMessageThread/config/index.js.map +1 -0
  25. package/dist/extensions/elation/actions/createMessageThread/createMessageThread.d.ts +4 -0
  26. package/dist/extensions/elation/actions/createMessageThread/createMessageThread.js +59 -0
  27. package/dist/extensions/elation/actions/createMessageThread/createMessageThread.js.map +1 -0
  28. package/dist/extensions/elation/actions/createMessageThread/index.d.ts +1 -0
  29. package/dist/extensions/elation/actions/createMessageThread/index.js +6 -0
  30. package/dist/extensions/elation/actions/createMessageThread/index.js.map +1 -0
  31. package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.js.map +1 -1
  32. package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js +4 -1
  33. package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js.map +1 -1
  34. package/dist/extensions/elation/actions/index.d.ts +76 -3
  35. package/dist/extensions/elation/actions/index.js +2 -0
  36. package/dist/extensions/elation/actions/index.js.map +1 -1
  37. package/dist/extensions/elation/client.d.ts +3 -1
  38. package/dist/extensions/elation/client.js +15 -0
  39. package/dist/extensions/elation/client.js.map +1 -1
  40. package/dist/extensions/elation/types/messageThread.d.ts +6 -0
  41. package/dist/extensions/elation/validation/messageThread.zod.d.ts +10 -5
  42. package/dist/extensions/elation/validation/messageThread.zod.js +2 -1
  43. package/dist/extensions/elation/validation/messageThread.zod.js.map +1 -1
  44. package/dist/extensions/markdown.json +1 -1
  45. package/package.json +1 -1
  46. package/dist/extensions/elation/actions/createMessageThread.d.ts +0 -68
  47. package/dist/extensions/elation/actions/createMessageThread.js +0 -115
  48. package/dist/extensions/elation/actions/createMessageThread.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ import { fields, dataPoints } from './config';
4
+ export declare const addMessageToThread: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addMessageToThread = void 0;
4
+ const zod_1 = require("zod");
5
+ const extensions_core_1 = require("@awell-health/extensions-core");
6
+ const settings_1 = require("../../settings");
7
+ const client_1 = require("../../client");
8
+ const config_1 = require("./config");
9
+ exports.addMessageToThread = {
10
+ key: 'addMessageToThread',
11
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
12
+ title: 'Add Message to an existing thread',
13
+ description: 'Adds a message to an existing thread in Elation',
14
+ fields: config_1.fields,
15
+ previewable: true,
16
+ dataPoints: config_1.dataPoints,
17
+ onEvent: async ({ payload, onComplete, onError }) => {
18
+ const { fields, settings } = (0, extensions_core_1.validate)({
19
+ schema: zod_1.z.object({
20
+ fields: config_1.FieldsValidationSchema,
21
+ settings: settings_1.SettingsValidationSchema,
22
+ }),
23
+ payload,
24
+ });
25
+ const api = (0, client_1.makeAPIClient)(settings);
26
+ const { id } = await api.addMessageToThread({
27
+ thread: fields.threadId,
28
+ sender: fields.senderId,
29
+ body: fields.messageBody,
30
+ send_date: new Date().toISOString(),
31
+ });
32
+ await onComplete({
33
+ data_points: {
34
+ messageId: String(id),
35
+ },
36
+ });
37
+ },
38
+ };
39
+ //# sourceMappingURL=addMessageToThread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addMessageToThread.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/addMessageToThread/addMessageToThread.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mEAA+E;AAC/E,6CAAwE;AACxE,yCAA4C;AAC5C,qCAAqE;AAExD,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EACT,iDAAiD;IACnD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,0BAAQ,EAAC;YACpC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;gBACf,MAAM,EAAE,+BAAsB;gBAC9B,QAAQ,EAAE,mCAAwB;aACnC,CAAC;YACF,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,QAAQ,CAAC,CAAA;QAEnC,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC;YAC1C,MAAM,EAAE,MAAM,CAAC,QAAQ;YACvB,MAAM,EAAE,MAAM,CAAC,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC,WAAW;YACxB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAC,CAAA;QAEF,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;aACtB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const dataPoints: {
2
+ messageId: {
3
+ key: string;
4
+ valueType: "number";
5
+ };
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ messageId: {
6
+ key: 'messageId',
7
+ valueType: 'number',
8
+ },
9
+ };
10
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/addMessageToThread/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -0,0 +1,38 @@
1
+ import { FieldType } from '@awell-health/extensions-core';
2
+ import z from 'zod';
3
+ export declare const fields: {
4
+ threadId: {
5
+ id: string;
6
+ label: string;
7
+ description: string;
8
+ type: FieldType.NUMERIC;
9
+ required: true;
10
+ };
11
+ senderId: {
12
+ id: string;
13
+ label: string;
14
+ description: string;
15
+ type: FieldType.NUMERIC;
16
+ required: true;
17
+ };
18
+ messageBody: {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ type: FieldType.STRING;
23
+ required: true;
24
+ };
25
+ };
26
+ export declare const FieldsValidationSchema: z.ZodObject<{
27
+ threadId: z.ZodNumber;
28
+ senderId: z.ZodNumber;
29
+ messageBody: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ senderId: number;
32
+ messageBody: string;
33
+ threadId: number;
34
+ }, {
35
+ senderId: number;
36
+ messageBody: string;
37
+ threadId: number;
38
+ }>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FieldsValidationSchema = exports.fields = void 0;
7
+ const extensions_core_1 = require("@awell-health/extensions-core");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ exports.fields = {
10
+ threadId: {
11
+ id: 'threadId',
12
+ label: 'Thread ID',
13
+ description: 'The ID of the message thread to which the message will be added',
14
+ type: extensions_core_1.FieldType.NUMERIC,
15
+ required: true,
16
+ },
17
+ senderId: {
18
+ id: 'senderId',
19
+ label: 'Sender ID',
20
+ description: 'The ID of the user that adds the message to the thread',
21
+ type: extensions_core_1.FieldType.NUMERIC,
22
+ required: true,
23
+ },
24
+ messageBody: {
25
+ id: 'messageBody',
26
+ label: 'Message Body',
27
+ description: 'The content of the message to be added to the thread',
28
+ type: extensions_core_1.FieldType.STRING,
29
+ required: true,
30
+ },
31
+ };
32
+ exports.FieldsValidationSchema = zod_1.default.object({
33
+ threadId: extensions_core_1.NumericIdSchema,
34
+ senderId: extensions_core_1.NumericIdSchema,
35
+ messageBody: zod_1.default.string().min(1),
36
+ });
37
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/addMessageToThread/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EACT,iEAAiE;QACnE,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,iCAAe;IACzB,QAAQ,EAAE,iCAAe;IACzB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACmB,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields, FieldsValidationSchema } from './fields';
2
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
+ var dataPoints_1 = require("./dataPoints");
8
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/addMessageToThread/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1 @@
1
+ export { addMessageToThread } from './addMessageToThread';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addMessageToThread = void 0;
4
+ var addMessageToThread_1 = require("./addMessageToThread");
5
+ Object.defineProperty(exports, "addMessageToThread", { enumerable: true, get: function () { return addMessageToThread_1.addMessageToThread; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/addMessageToThread/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const dataPoints: {
2
+ messageThreadId: {
3
+ key: string;
4
+ valueType: "number";
5
+ };
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ messageThreadId: {
6
+ key: 'messageThreadId',
7
+ valueType: 'number',
8
+ },
9
+ };
10
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/createMessageThread/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -0,0 +1,98 @@
1
+ import { FieldType } from '@awell-health/extensions-core';
2
+ import z from 'zod';
3
+ export declare const fields: {
4
+ patientId: {
5
+ id: string;
6
+ label: string;
7
+ description: string;
8
+ type: FieldType.NUMERIC;
9
+ required: true;
10
+ };
11
+ senderId: {
12
+ id: string;
13
+ label: string;
14
+ description: string;
15
+ type: FieldType.NUMERIC;
16
+ required: true;
17
+ };
18
+ practiceId: {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ type: FieldType.NUMERIC;
23
+ required: true;
24
+ };
25
+ documentDate: {
26
+ id: string;
27
+ label: string;
28
+ description: string;
29
+ type: FieldType.DATE;
30
+ required: false;
31
+ };
32
+ chartDate: {
33
+ id: string;
34
+ label: string;
35
+ description: string;
36
+ type: FieldType.DATE;
37
+ required: false;
38
+ };
39
+ messageBody: {
40
+ id: string;
41
+ label: string;
42
+ description: string;
43
+ type: FieldType.STRING;
44
+ required: true;
45
+ };
46
+ recipientId: {
47
+ id: string;
48
+ label: string;
49
+ description: string;
50
+ type: FieldType.NUMERIC;
51
+ required: false;
52
+ };
53
+ groupId: {
54
+ id: string;
55
+ label: string;
56
+ description: string;
57
+ type: FieldType.NUMERIC;
58
+ required: false;
59
+ };
60
+ isUrgent: {
61
+ id: string;
62
+ label: string;
63
+ description: string;
64
+ type: FieldType.BOOLEAN;
65
+ required: false;
66
+ };
67
+ };
68
+ export declare const FieldsValidationSchema: z.ZodObject<{
69
+ patientId: z.ZodNumber;
70
+ senderId: z.ZodNumber;
71
+ practiceId: z.ZodNumber;
72
+ documentDate: z.ZodPipeline<z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>>;
73
+ chartDate: z.ZodPipeline<z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>>;
74
+ messageBody: z.ZodString;
75
+ recipientId: z.ZodOptional<z.ZodNumber>;
76
+ groupId: z.ZodOptional<z.ZodNumber>;
77
+ isUrgent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ practiceId: number;
80
+ patientId: number;
81
+ senderId: number;
82
+ messageBody: string;
83
+ isUrgent: boolean;
84
+ documentDate?: string | undefined;
85
+ chartDate?: string | undefined;
86
+ recipientId?: number | undefined;
87
+ groupId?: number | undefined;
88
+ }, {
89
+ practiceId: number;
90
+ patientId: number;
91
+ senderId: number;
92
+ messageBody: string;
93
+ documentDate?: string | undefined;
94
+ chartDate?: string | undefined;
95
+ recipientId?: number | undefined;
96
+ groupId?: number | undefined;
97
+ isUrgent?: boolean | undefined;
98
+ }>;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FieldsValidationSchema = exports.fields = void 0;
7
+ const extensions_core_1 = require("@awell-health/extensions-core");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ exports.fields = {
10
+ patientId: {
11
+ id: 'patientId',
12
+ label: 'Patient ID',
13
+ description: 'The patient for which the thread is about',
14
+ type: extensions_core_1.FieldType.NUMERIC,
15
+ required: true,
16
+ },
17
+ senderId: {
18
+ id: 'senderId',
19
+ label: 'Sender ID',
20
+ description: 'The ID of the user initiating the message thread',
21
+ type: extensions_core_1.FieldType.NUMERIC,
22
+ required: true,
23
+ },
24
+ practiceId: {
25
+ id: 'practiceId',
26
+ label: 'Practice ID',
27
+ description: 'The practice associated with the patient chart',
28
+ type: extensions_core_1.FieldType.NUMERIC,
29
+ required: true,
30
+ },
31
+ documentDate: {
32
+ id: 'documentDate',
33
+ label: 'Document Date',
34
+ description: 'Defaults to today’s date if not provided',
35
+ type: extensions_core_1.FieldType.DATE,
36
+ required: false,
37
+ },
38
+ chartDate: {
39
+ id: 'chartDate',
40
+ label: 'Chart Date',
41
+ description: 'Defaults to today’s date if not provided',
42
+ type: extensions_core_1.FieldType.DATE,
43
+ required: false,
44
+ },
45
+ messageBody: {
46
+ id: 'messageBody',
47
+ label: 'Message Body',
48
+ description: 'The content of the initial message in the thread',
49
+ type: extensions_core_1.FieldType.STRING,
50
+ required: true,
51
+ },
52
+ recipientId: {
53
+ id: 'recipientId',
54
+ label: 'Recipient ID',
55
+ description: 'A user ID of the recipient of the message. They will be added as a member to the thread.',
56
+ type: extensions_core_1.FieldType.NUMERIC,
57
+ required: false,
58
+ },
59
+ groupId: {
60
+ id: 'groupId',
61
+ label: 'Group ID',
62
+ description: 'The ID of a group that will be added as a member to the thread.',
63
+ type: extensions_core_1.FieldType.NUMERIC,
64
+ required: false,
65
+ },
66
+ isUrgent: {
67
+ id: 'isUrgent',
68
+ label: 'Urgent',
69
+ description: 'Marks the message thread as urgent if true. Defaults to false.',
70
+ type: extensions_core_1.FieldType.BOOLEAN,
71
+ required: false,
72
+ },
73
+ };
74
+ exports.FieldsValidationSchema = zod_1.default.object({
75
+ patientId: extensions_core_1.NumericIdSchema,
76
+ senderId: extensions_core_1.NumericIdSchema,
77
+ practiceId: extensions_core_1.NumericIdSchema,
78
+ documentDate: zod_1.default
79
+ .string()
80
+ .optional()
81
+ .default(new Date().toISOString())
82
+ .pipe(extensions_core_1.DateTimeOptionalSchema),
83
+ chartDate: zod_1.default
84
+ .string()
85
+ .optional()
86
+ .default(new Date().toISOString())
87
+ .pipe(extensions_core_1.DateTimeOptionalSchema),
88
+ messageBody: zod_1.default.string().min(1),
89
+ recipientId: extensions_core_1.NumericIdSchema.optional(),
90
+ groupId: extensions_core_1.NumericIdSchema.optional(),
91
+ isUrgent: zod_1.default.boolean().optional().default(false),
92
+ });
93
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/createMessageThread/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAKsC;AACtC,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,0FAA0F;QAC5F,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,UAAU;QACjB,WAAW,EACT,iEAAiE;QACnE,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,QAAQ;QACf,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iCAAe;IAC1B,QAAQ,EAAE,iCAAe;IACzB,UAAU,EAAE,iCAAe;IAC3B,YAAY,EAAE,aAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SACjC,IAAI,CAAC,wCAAsB,CAAC;IAC/B,SAAS,EAAE,aAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SACjC,IAAI,CAAC,wCAAsB,CAAC;IAC/B,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,WAAW,EAAE,iCAAe,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,iCAAe,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACE,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields, FieldsValidationSchema } from './fields';
2
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
+ var dataPoints_1 = require("./dataPoints");
8
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/createMessageThread/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ import { dataPoints, fields } from './config';
4
+ export declare const createMessageThread: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createMessageThread = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const client_1 = require("../../client");
6
+ const messageThread_zod_1 = require("../../validation/messageThread.zod");
7
+ const lodash_1 = require("lodash");
8
+ const config_1 = require("./config");
9
+ exports.createMessageThread = {
10
+ key: 'createMessageThread',
11
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
12
+ title: 'Create Message Thread',
13
+ description: "Create a message thread in Elation's messaging system.",
14
+ fields: config_1.fields,
15
+ previewable: true,
16
+ dataPoints: config_1.dataPoints,
17
+ onEvent: async ({ payload, onComplete, onError }) => {
18
+ const { patientId, senderId, practiceId, documentDate, chartDate, messageBody, isUrgent, recipientId, groupId, } = payload.fields;
19
+ const threadMembers = [
20
+ // Individual recipient
21
+ ...(!(0, lodash_1.isNil)(recipientId)
22
+ ? [{ user: recipientId, status: 'Requiring Action' }]
23
+ : []),
24
+ // Group recipient
25
+ ...(!(0, lodash_1.isNil)(groupId)
26
+ ? [{ group: groupId, status: 'Requiring Action' }]
27
+ : []),
28
+ // Sender
29
+ {
30
+ user: senderId,
31
+ status: 'Addressed',
32
+ },
33
+ ];
34
+ const messageThread = messageThread_zod_1.messageThreadSchema.parse({
35
+ patient: patientId,
36
+ sender: senderId,
37
+ practice: practiceId,
38
+ document_date: documentDate,
39
+ chart_date: chartDate,
40
+ is_urgent: isUrgent,
41
+ messages: [
42
+ {
43
+ body: messageBody,
44
+ send_date: new Date().toISOString(),
45
+ sender: senderId,
46
+ },
47
+ ],
48
+ members: threadMembers,
49
+ });
50
+ const api = (0, client_1.makeAPIClient)(payload.settings);
51
+ const { id } = await api.createMessageThread(messageThread);
52
+ await onComplete({
53
+ data_points: {
54
+ messageThreadId: String(id),
55
+ },
56
+ });
57
+ },
58
+ };
59
+ //# sourceMappingURL=createMessageThread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMessageThread.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/createMessageThread/createMessageThread.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AAExD,yCAA4C;AAC5C,0EAAwE;AACxE,mCAA8B;AAC9B,qCAA6C;AAEhC,QAAA,mBAAmB,GAI5B;IACF,GAAG,EAAE,qBAAqB;IAC1B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,WAA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createMessageThread } from './createMessageThread';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createMessageThread = void 0;
4
+ var createMessageThread_1 = require("./createMessageThread");
5
+ Object.defineProperty(exports, "createMessageThread", { enumerable: true, get: function () { return createMessageThread_1.createMessageThread; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/createMessageThread/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../../extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE/C,QAAA,YAAY,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;oKAkBwG,CACnK,CAAA"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../../extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE/C,QAAA,YAAY,GACvB,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;oKAkBkI,CAAC,CAAA"}
@@ -59,7 +59,10 @@ exports.findFutureAppointment = {
59
59
  },
60
60
  events: [
61
61
  (0, addEventLog_1.addActivityEventLog)({
62
- message: `Number of future scheduled or confirmed appointments for patient ${patientId}: ${appointments.length}\nFound appointment: ${(0, lodash_1.isNil)(foundAppointment) ? 'none' : foundAppointment === null || foundAppointment === void 0 ? void 0 : foundAppointment.id}\nExplanation: ${explanation}`,
62
+ message: `Number of future scheduled or confirmed appointments: ${appointments.length}\n
63
+ Appointments data: ${JSON.stringify(appointments, null, 2)}\n
64
+ Found appointment: ${(0, lodash_1.isNil)(foundAppointment) ? 'none' : foundAppointment === null || foundAppointment === void 0 ? void 0 : foundAppointment.id}\n
65
+ Explanation: ${explanation}`,
63
66
  }),
64
67
  ],
65
68
  });
@@ -1 +1 @@
1
- {"version":3,"file":"findFutureAppointment.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findFutureAppointment/findFutureAppointment.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,mEAAqE;AAErE,uEAA2E;AAE3E,qCAAqE;AACrE,mEAA+D;AAC/D,gEAAyE;AACzE,gGAA4F;AAC5F,wFAAoF;AACpF,wEAAwE;AAE3D,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,mCAAmC;IAC1C,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,OAAO,EAAE,EAAiB,EAAE;QAC1E,oBAAoB;QACpB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAE1E,6BAA6B;QAC7B,MAAM,YAAY,GAAG,MAAM,IAAA,6CAAqB,EAC9C,OAAO,CAAC,QAAwB,EAChC,SAAS,CACV,CAAA;QAED,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,iBAAiB,EAAE,OAAO;iBAC3B;aACF,CAAC,CAAA;YACF,OAAM;QACR,CAAC;QAED,yDAAyD;QACzD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,qCAAiB,EAAC;YAC7D,QAAQ,EAAE,EAAE,EAAE,qCAAqC;YACnD,OAAO;YACP,OAAO;YACP,SAAS,EAAE,yBAAa,CAAC,KAAK;SAC/B,CAAC,CAAA;QAEF,+BAA+B;QAC/B,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,+CAAsB,EAAC;YAClE,KAAK;YACL,YAAY;YACZ,MAAM;YACN,QAAQ;YACR,SAAS;SACV,CAAC,CAAA;QAEF,MAAM,oBAAoB,GAAG,4BAAmB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QACrE,MAAM,gBAAgB,GAAG,YAAY,CAAC,IAAI,CACxC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,MAAM,CAAC,oBAAoB,CAAC,CACjE,CAAA;QAED,kCAAkC;QAClC,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,WAAW,EAAE,CAAC,IAAA,cAAK,EAAC,oBAAoB,CAAC;oBACvC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;oBAClC,CAAC,CAAC,SAAS;gBACb,WAAW;gBACX,iBAAiB,EAAE,CAAC,IAAA,cAAK,EAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;aACnE;YACD,MAAM,EAAE;gBACN,IAAA,iCAAmB,EAAC;oBAClB,OAAO,EAAE,oEAAoE,SAAS,KAAK,YAAY,CAAC,MAAM,wBAAwB,IAAA,cAAK,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,EAAE,kBAAkB,WAAW,EAAE;iBAC7N,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"findFutureAppointment.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findFutureAppointment/findFutureAppointment.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,mEAAqE;AAErE,uEAA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B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QACrE,MAAM,gBAAgB,GAAG,YAAY,CAAC,IAAI,CACxC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,MAAM,CAAC,oBAAoB,CAAC,CACjE,CAAA;QAED,kCAAkC;QAClC,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,WAAW,EAAE,CAAC,IAAA,cAAK,EAAC,oBAAoB,CAAC;oBACvC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;oBAClC,CAAC,CAAC,SAAS;gBACb,WAAW;gBACX,iBAAiB,EAAE,CAAC,IAAA,cAAK,EAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;aACnE;YACD,MAAM,EAAE;gBACN,IAAA,iCAAmB,EAAC;oBAClB,OAAO,EAAE,yDAAyD,YAAY,CAAC,MAAM;+BAChE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;+BACrC,IAAA,cAAK,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,EAAE;yBAC7D,WAAW,EAAE;iBAC7B,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1873,14 +1873,14 @@ export declare const actions: {
1873
1873
  label: string;
1874
1874
  description: string;
1875
1875
  type: import("@awell-health/extensions-core").FieldType.DATE;
1876
- required: true;
1876
+ required: false;
1877
1877
  };
1878
1878
  chartDate: {
1879
1879
  id: string;
1880
1880
  label: string;
1881
1881
  description: string;
1882
1882
  type: import("@awell-health/extensions-core").FieldType.DATE;
1883
- required: true;
1883
+ required: false;
1884
1884
  };
1885
1885
  messageBody: {
1886
1886
  id: string;
@@ -1889,6 +1889,13 @@ export declare const actions: {
1889
1889
  type: import("@awell-health/extensions-core").FieldType.STRING;
1890
1890
  required: true;
1891
1891
  };
1892
+ recipientId: {
1893
+ id: string;
1894
+ label: string;
1895
+ description: string;
1896
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
1897
+ required: false;
1898
+ };
1892
1899
  groupId: {
1893
1900
  id: string;
1894
1901
  label: string;
@@ -1901,7 +1908,7 @@ export declare const actions: {
1901
1908
  label: string;
1902
1909
  description: string;
1903
1910
  type: import("@awell-health/extensions-core").FieldType.BOOLEAN;
1904
- required: true;
1911
+ required: false;
1905
1912
  };
1906
1913
  }, {
1907
1914
  base_url: {
@@ -1947,6 +1954,72 @@ export declare const actions: {
1947
1954
  required: false;
1948
1955
  };
1949
1956
  }, "messageThreadId">;
1957
+ addMessageToThread: import("@awell-health/extensions-core").Action<{
1958
+ threadId: {
1959
+ id: string;
1960
+ label: string;
1961
+ description: string;
1962
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
1963
+ required: true;
1964
+ };
1965
+ senderId: {
1966
+ id: string;
1967
+ label: string;
1968
+ description: string;
1969
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
1970
+ required: true;
1971
+ };
1972
+ messageBody: {
1973
+ id: string;
1974
+ label: string;
1975
+ description: string;
1976
+ type: import("@awell-health/extensions-core").FieldType.STRING;
1977
+ required: true;
1978
+ };
1979
+ }, {
1980
+ base_url: {
1981
+ key: string;
1982
+ label: string;
1983
+ obfuscated: false;
1984
+ description: string;
1985
+ required: true;
1986
+ };
1987
+ auth_url: {
1988
+ key: string;
1989
+ label: string;
1990
+ obfuscated: false;
1991
+ description: string;
1992
+ required: true;
1993
+ };
1994
+ client_id: {
1995
+ key: string;
1996
+ label: string;
1997
+ obfuscated: false;
1998
+ description: string;
1999
+ required: true;
2000
+ };
2001
+ client_secret: {
2002
+ key: string;
2003
+ label: string;
2004
+ obfuscated: true;
2005
+ description: string;
2006
+ required: true;
2007
+ };
2008
+ username: {
2009
+ key: string;
2010
+ label: string;
2011
+ obfuscated: false;
2012
+ description: string;
2013
+ required: false;
2014
+ };
2015
+ password: {
2016
+ key: string;
2017
+ label: string;
2018
+ obfuscated: true;
2019
+ description: string;
2020
+ required: false;
2021
+ };
2022
+ }, "messageId">;
1950
2023
  getLetter: import("@awell-health/extensions-core").Action<{
1951
2024
  letterId: {
1952
2025
  id: string;
@@ -17,6 +17,7 @@ const getPhysician_1 = require("./getPhysician");
17
17
  const postLetter_1 = require("./postLetter");
18
18
  const createLabOrder_1 = require("./createLabOrder");
19
19
  const createMessageThread_1 = require("./createMessageThread");
20
+ const addMessageToThread_1 = require("./addMessageToThread");
20
21
  const addHistory_1 = require("./addHistory/addHistory");
21
22
  const addAllergy_1 = require("./addAllergy/addAllergy");
22
23
  const createVisitNote_1 = require("./createVisitNote/createVisitNote");
@@ -52,6 +53,7 @@ exports.actions = {
52
53
  postLetter: postLetter_1.postLetter,
53
54
  createLabOrder: createLabOrder_1.createLabOrder,
54
55
  createMessageThread: createMessageThread_1.createMessageThread,
56
+ addMessageToThread: addMessageToThread_1.addMessageToThread,
55
57
  getLetter: getLetter_1.getLetter,
56
58
  createReferralOrder: createReferralOrder_1.createReferralOrder,
57
59
  createCareGap: createCareGap_1.createCareGap,
@@ -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;AAC/D,yEAAqE;AACrE,0EAAsE;AACtE,mFAA+E;AAElE,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;IACxB,gBAAgB,EAAhB,mCAAgB;IAChB,6BAA6B,EAA7B,6DAA6B;CAC9B,CAAA"}
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,6DAAyD;AACzD,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;AACrE,0EAAsE;AACtE,mFAA+E;AAElE,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,kBAAkB,EAAlB,uCAAkB;IAClB,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;IACxB,gBAAgB,EAAhB,mCAAgB;IAChB,6BAA6B,EAA7B,6DAA6B;CAC9B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { APIClient, DataWrapper, type OAuthGrantRequest, type DataWrapperCtor } from '@awell-health/extensions-core';
2
- import { type FindAppointmentsParams, type AppointmentInput, type AppointmentResponse, type ElationCollection, type PatientInput, type PatientResponse, type UpdatePatientInput, type Subscription, type SubscriptionRequest, type PhysicianResponse, type NonVisitNoteInput, type NonVisitNoteResponse, type GetLetterInputType, type GetLetterResponseType, type PostLetterInput, type PostLetterResponse, type CreateLabOrderInput, type CreateLabOrderResponse, type FindContactsResponse, type MessageThreadInput, type MessageThreadResponse, type addHistoryInput, type addHistoryResponse, type AddAllergyInputType, type AddAllergyResponseType, type CreateVisitNoteInputType, type CreateVisitNoteResponseType, type PharmacyResponse, type AddVitalsInputType, type AddVitalsResponseType, type PostCareGapInput, type CareGapResponse, type CloseCareGapInput, type PostReferralOrderInput, type PostReferralOrderResponse, type GetReferralOrderInputType, type GetReferralOrderResponseType } from './types';
2
+ import { type FindAppointmentsParams, type AppointmentInput, type AppointmentResponse, type ElationCollection, type PatientInput, type PatientResponse, type UpdatePatientInput, type Subscription, type SubscriptionRequest, type PhysicianResponse, type NonVisitNoteInput, type NonVisitNoteResponse, type GetLetterInputType, type GetLetterResponseType, type PostLetterInput, type PostLetterResponse, type CreateLabOrderInput, type CreateLabOrderResponse, type FindContactsResponse, type MessageThreadInput, type MessageThreadResponse, type addHistoryInput, type addHistoryResponse, type AddAllergyInputType, type AddAllergyResponseType, type CreateVisitNoteInputType, type CreateVisitNoteResponseType, type PharmacyResponse, type AddVitalsInputType, type AddVitalsResponseType, type PostCareGapInput, type CareGapResponse, type CloseCareGapInput, type PostReferralOrderInput, type PostReferralOrderResponse, type GetReferralOrderInputType, type GetReferralOrderResponseType, type AddMessageToThreadInput } from './types';
3
3
  import { type DeepPartial } from '../../src/lib/types';
4
4
  export declare class ElationDataWrapper extends DataWrapper {
5
5
  findAppointments(params: FindAppointmentsParams): Promise<AppointmentResponse[]>;
@@ -35,6 +35,7 @@ export declare class ElationDataWrapper extends DataWrapper {
35
35
  }): Promise<FindContactsResponse>;
36
36
  createLabOrder(obj: CreateLabOrderInput): Promise<CreateLabOrderResponse>;
37
37
  createMessageThread(obj: MessageThreadInput): Promise<MessageThreadResponse>;
38
+ addMessageToThread(obj: AddMessageToThreadInput): Promise<MessageThreadResponse>;
38
39
  addHistory(obj: addHistoryInput): Promise<addHistoryResponse>;
39
40
  addAllergy(obj: AddAllergyInputType): Promise<AddAllergyResponseType>;
40
41
  createVisitNote(obj: CreateVisitNoteInputType): Promise<CreateVisitNoteResponseType>;
@@ -87,6 +88,7 @@ export declare class ElationAPIClient extends APIClient<ElationDataWrapper> {
87
88
  createLabOrder(obj: CreateLabOrderInput): Promise<CreateLabOrderResponse>;
88
89
  addHistory(obj: addHistoryInput): Promise<addHistoryResponse>;
89
90
  createMessageThread(obj: MessageThreadInput): Promise<MessageThreadResponse>;
91
+ addMessageToThread(obj: AddMessageToThreadInput): Promise<MessageThreadResponse>;
90
92
  addAllergy(obj: AddAllergyInputType): Promise<AddAllergyResponseType>;
91
93
  createVisitNote(obj: CreateVisitNoteInputType): Promise<CreateVisitNoteResponseType>;
92
94
  addVitals(obj: AddVitalsInputType): Promise<AddVitalsResponseType>;
@@ -184,6 +184,18 @@ class ElationDataWrapper extends extensions_core_1.DataWrapper {
184
184
  const res = await req;
185
185
  return res;
186
186
  }
187
+ // A bit confusing, but in Elation, 'Message Thread' is the 'main object'
188
+ // and you add thread messages to main Message Thread.
189
+ // see https://docs.elationhealth.com/reference/create-thread-message
190
+ async addMessageToThread(obj) {
191
+ const req = this.Request({
192
+ method: 'POST',
193
+ url: `/thread_messages`,
194
+ data: obj,
195
+ });
196
+ const res = await req;
197
+ return res;
198
+ }
187
199
  async addHistory(obj) {
188
200
  const req = this.Request({
189
201
  method: 'POST',
@@ -358,6 +370,9 @@ class ElationAPIClient extends extensions_core_1.APIClient {
358
370
  async createMessageThread(obj) {
359
371
  return await this.FetchData(async (dw) => await dw.createMessageThread(obj));
360
372
  }
373
+ async addMessageToThread(obj) {
374
+ return await this.FetchData(async (dw) => await dw.addMessageToThread(obj));
375
+ }
361
376
  async addAllergy(obj) {
362
377
  return await this.FetchData(async (dw) => await dw.addAllergy(obj));
363
378
  }
@@ -1 +1 @@
1
- {"version":3,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sender: number;
30
+ body: string;
31
+ send_date: string;
32
+ }
@@ -43,14 +43,17 @@ export declare const messageThreadSchema: z.ZodObject<{
43
43
  chart_date: z.ZodEffects<z.ZodString, string, string>;
44
44
  is_urgent: z.ZodBoolean;
45
45
  members: z.ZodArray<z.ZodObject<{
46
- group: z.ZodNullable<z.ZodNumber>;
46
+ user: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ group: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
48
  status: z.ZodEnum<["Addressed", "Requiring Action"]>;
48
49
  }, "strip", z.ZodTypeAny, {
49
50
  status: "Addressed" | "Requiring Action";
50
- group: number | null;
51
+ user?: number | null | undefined;
52
+ group?: number | null | undefined;
51
53
  }, {
52
54
  status: "Addressed" | "Requiring Action";
53
- group: number | null;
55
+ user?: number | null | undefined;
56
+ group?: number | null | undefined;
54
57
  }>, "many">;
55
58
  messages: z.ZodArray<z.ZodObject<{
56
59
  body: z.ZodString;
@@ -74,7 +77,8 @@ export declare const messageThreadSchema: z.ZodObject<{
74
77
  is_urgent: boolean;
75
78
  members: {
76
79
  status: "Addressed" | "Requiring Action";
77
- group: number | null;
80
+ user?: number | null | undefined;
81
+ group?: number | null | undefined;
78
82
  }[];
79
83
  messages: {
80
84
  body: string;
@@ -90,7 +94,8 @@ export declare const messageThreadSchema: z.ZodObject<{
90
94
  is_urgent: boolean;
91
95
  members: {
92
96
  status: "Addressed" | "Requiring Action";
93
- group: number | null;
97
+ user?: number | null | undefined;
98
+ group?: number | null | undefined;
94
99
  }[];
95
100
  messages: {
96
101
  body: string;
@@ -20,7 +20,8 @@ exports.ThreadMemberSchema = zod_1.z
20
20
  message: 'Should only ever be one of either a user or group set for the thread member', // Updated error message to match docs
21
21
  });
22
22
  const CreateThreadMemberSchema = zod_1.z.object({
23
- group: zod_1.z.number().int().positive().nullable(),
23
+ user: zod_1.z.number().int().positive().nullable().optional(),
24
+ group: zod_1.z.number().int().positive().nullable().optional(),
24
25
  status: zod_1.z.enum(['Addressed', 'Requiring Action']),
25
26
  });
26
27
  exports.messageThreadSchema = zod_1.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"messageThread.zod.js","sourceRoot":"","sources":["../../../../extensions/elation/validation/messageThread.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,CAAC;IACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,EAAE,wBAAwB;IAC3E,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;QACxD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC;KACD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE;IAC9D,OAAO,EACL,6EAA6E,EAAE,sCAAsC;CACxH,CAAC,CAAA;AAEJ,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC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E,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;QACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;YAC7D,OAAO,EAAE,qCAAqC;SAC/C,CAAC;QACF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KACpC,CAAC,CACH;CACF,CAAC,CAAA"}
@@ -56,7 +56,7 @@
56
56
  "changelog": "# Dropbox Sign changelog"
57
57
  },
58
58
  "elation": {
59
- "readme": "---\ntitle: Elation\ndescription: Elation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices.\n---\n# Elation\n\nElation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices. It offers a range of features including patient scheduling, charting, e-prescribing, billing, and telemedicine. Overall, Elation is designed to streamline the workflow of medical practices, improve patient care, and increase efficiency.\n\n## Setup\n\n### Webhooks\n\nThe integration of webhooks with Elation presents unique challenges and considerations:\n\n- **Non-Discriminative Triggers**: Elation does not differentiate between the creation or update of a resource. Both actions will set off webhook with action `saved`, which might not provide enough discriminative information for some use cases.\n- **Programmatic Setup**: Elation webhooks can only be configured programmatically, as there's no dedicated user interface in Elation to set up webhooks. View [this demo video](https://youtu.be/v8u6E8MEI8E) for a step-by-step guide on how to set up your webhooks in Elation.\n- **Limitation on user-triggered actions**: Elation has a concept called \"Preventing echo\". This means that that any action carried out by the user affiliated with the API credentials that created the subscription doesn't trigger a webhook. You can read more about this behaviour [here](https://docs.elationhealth.com/reference/webhooks). If you are not receiving any webhooks from Elation after setting up your subscription, then this is the reason. A feasible workaround to the above limitation is creating a dedicated user not meant for human interactions but serves the sole purpose of facilitating M2M communication.\n\nIf you need help setting up your webhooks in Elation, reach out! We are happy to help you.\n\n### Extension settings\n\nIn order to use this extension you will need to provide the extension with the following settings:\n\n- Base URL / endpoint URL of the API\n- Authorization URL\n- Client ID for OAuth2 Password authentication\n- Client Secret for OAuth2 Password authentication\n- API Username for OAuth2 Password authentication\n- API Password for OAuth2 Password authentication\n\nNot sure where you can find all of this information? Click [here](https://docs.elationhealth.com/reference/introduction) to have a look at Elation's Developer documentation.\n\n## Actions\n\nThe following actions are supported with Elation today:\n\n### Create Patient\n\nThis action creates a patient in Elation.\n\n**When creating a patient, you will have to specifiy the primary physician and caregiver practice ID:**\n- Primary physician ID: you can retrieve this ID by using the [Find Physicians](https://docs.elationhealth.com/reference/find-physicians) API call, or by using the `Find Physician` action\n- Caregiver Practice ID: similar to the primary physician ID, you can find this ID by using the same API call or action\n\n### Get Patient\n\nUsing a patient identifier, retrieve a patient object from Elation. \n\nNote that when retrieve the mobile phone number, we are tranforming the number to an international format. We apply a heuristic and assume all mobile numbers in Elation are in US national format so we prepend the number with the +1 country code. Having the number in international format unlocks more powerful functionality like sending text messages with 3rd party services like Twilio and MessageBird.\n\n### Update Patient\n\nUpdate a patient in Elation using any fields available in create patient. We use Elation's `PATCH` method to apply partial modifications to a the patient resource (i.e. update only what is needed).\n\n### Create Appointment\n\nEasily create a patient appointment in Elation.\n\nCreating an appointment requires a few strings to be well-formulated:\n- `Scheduled date` must be a datetime string (ISO-8601). For example, January 1, 2023 at noon, Pacific Time (-8 hours) would be shown as such: `2023-01-01T12:00:00.000-08:00`\n- `Reason` must not be free text. This value comes from the following list of appointment types (`Follow-Up`, `Office Visit`, `Physical Exam`, etc.):\n![Appointment types](./assets/elation-appointment-reason.png?raw=true \"Elation Appointment Types\")\n- `Patient` is the patient ID.\n- `Physician` is the physician ID (see `Find Physician`)\n- `Practice` is the practice ID (again, see `Find Physician`)\n\nYou can also include a duration (default to 15 minutes, or whatever has been set in your EHR)\n\n### Get Appointment\n\nRetrieve appointment details using an appointment ID. \n\n### Create Non-Visit Note\n\nThe non-visit note is a special kind of note that, as the name suggests, is not associated with a visit. These notes, in their simplest form, provide a chronological account of information about the patient.\n\n**Additional documentation for some of the action fields:**\n1. Category: The default category is \"Problem\" but you can choose any of \"Past\", \"Family\", \"Social\", \"Instr\", \"PE\", \"ROS\", \"Med\", \"Data\", \"Assessment\", \"Test\", \"Tx\", \"Narrative\", \"Followup\", \"Reason\", \"Plan\", \"Objective\", \"Hpi\", \"Allergies\", \"Habits\", \"Assessplan\", \"Consultant\", \"Attending\", \"Dateprocedure\", \"Surgical\", \"Orders\", \"Referenced\", \"Procedure\".\n2. Chart and document date automatically get set to the current date, i.e. the date when the action is orchestrated.\n\n### Delete Non-Visit Note\n\nDeletes the non-visit note identified by an ID.\n\n### Get Non-Visit Note\n\nRetrieve the details of a non-visit note identified by an ID.\n### Get physician\n\nUsing a physician identifier, retrieve a physician object from Elation.\n\n### Find physicians\n\nSearch a physician based on a set of parameters. The ID of the physician matching the search parameters will be returned. To retrieve the details of the physician, you can use the the \"Get physician\" action.\n\nNote that this action can only support finding one physician so if your search criteria match multiple physicians the action will throw an error.\n\n",
59
+ "readme": "---\ntitle: Elation\ndescription: Elation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices.\n---\n# Elation\n\nElation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices. It offers a range of features including patient scheduling, charting, e-prescribing, billing, and telemedicine. Overall, Elation is designed to streamline the workflow of medical practices, improve patient care, and increase efficiency.\n\n## Setup\n\n### Webhooks\n\nThe integration of webhooks with Elation presents unique challenges and considerations:\n\n- **Non-Discriminative Triggers**: Elation does not differentiate between the creation or update of a resource. Both actions will set off webhook with action `saved`, which might not provide enough discriminative information for some use cases.\n- **Programmatic Setup**: Elation webhooks can only be configured programmatically, as there's no dedicated user interface in Elation to set up webhooks. View [this demo video](https://youtu.be/v8u6E8MEI8E) for a step-by-step guide on how to set up your webhooks in Elation.\n- **Limitation on user-triggered actions**: Elation has a concept called \"Preventing echo\". This means that that any action carried out by the user affiliated with the API credentials that created the subscription doesn't trigger a webhook. You can read more about this behaviour [here](https://docs.elationhealth.com/reference/webhooks). If you are not receiving any webhooks from Elation after setting up your subscription, then this is the reason. A feasible workaround to the above limitation is creating a dedicated user not meant for human interactions but serves the sole purpose of facilitating M2M communication.\n\nIf you need help setting up your webhooks in Elation, reach out! We are happy to help you.\n\n### Extension settings\n\nIn order to use this extension you will need to provide the extension with the following settings:\n\n- Base URL / endpoint URL of the API\n- Authorization URL\n- Client ID for OAuth2 Password authentication\n- Client Secret for OAuth2 Password authentication\n- API Username for OAuth2 Password authentication\n- API Password for OAuth2 Password authentication\n\nNot sure where you can find all of this information? Click [here](https://docs.elationhealth.com/reference/introduction) to have a look at Elation's Developer documentation.\n\n## Actions\n\nThe following actions are supported with Elation today:\n\n### Create Patient\n\nThis action creates a patient in Elation.\n\n**When creating a patient, you will have to specifiy the primary physician and caregiver practice ID:**\n- Primary physician ID: you can retrieve this ID by using the [Find Physicians](https://docs.elationhealth.com/reference/find-physicians) API call, or by using the `Find Physician` action\n- Caregiver Practice ID: similar to the primary physician ID, you can find this ID by using the same API call or action\n\n### Get Patient\n\nUsing a patient identifier, retrieve a patient object from Elation. \n\nNote that when retrieve the mobile phone number, we are tranforming the number to an international format. We apply a heuristic and assume all mobile numbers in Elation are in US national format so we prepend the number with the +1 country code. Having the number in international format unlocks more powerful functionality like sending text messages with 3rd party services like Twilio and MessageBird.\n\n### Update Patient\n\nUpdate a patient in Elation using any fields available in create patient. We use Elation's `PATCH` method to apply partial modifications to a the patient resource (i.e. update only what is needed).\n\n### Create Appointment\n\nEasily create a patient appointment in Elation.\n\nCreating an appointment requires a few strings to be well-formulated:\n- `Scheduled date` must be a datetime string (ISO-8601). For example, January 1, 2023 at noon, Pacific Time (-8 hours) would be shown as such: `2023-01-01T12:00:00.000-08:00`\n- `Reason` must not be free text. This value comes from the following list of appointment types (`Follow-Up`, `Office Visit`, `Physical Exam`, etc.):\n![Appointment types](./assets/elation-appointment-reason.png?raw=true \"Elation Appointment Types\")\n- `Patient` is the patient ID.\n- `Physician` is the physician ID (see `Find Physician`)\n- `Practice` is the practice ID (again, see `Find Physician`)\n\nYou can also include a duration (default to 15 minutes, or whatever has been set in your EHR)\n\n### Get Appointment\n\nRetrieve appointment details using an appointment ID. \n\n### Create Non-Visit Note\n\nThe non-visit note is a special kind of note that, as the name suggests, is not associated with a visit. These notes, in their simplest form, provide a chronological account of information about the patient.\n\n**Additional documentation for some of the action fields:**\n1. Category: The default category is \"Problem\" but you can choose any of \"Past\", \"Family\", \"Social\", \"Instr\", \"PE\", \"ROS\", \"Med\", \"Data\", \"Assessment\", \"Test\", \"Tx\", \"Narrative\", \"Followup\", \"Reason\", \"Plan\", \"Objective\", \"Hpi\", \"Allergies\", \"Habits\", \"Assessplan\", \"Consultant\", \"Attending\", \"Dateprocedure\", \"Surgical\", \"Orders\", \"Referenced\", \"Procedure\".\n2. Chart and document date automatically get set to the current date, i.e. the date when the action is orchestrated.\n\n### Delete Non-Visit Note\n\nDeletes the non-visit note identified by an ID.\n\n### Get Non-Visit Note\n\nRetrieve the details of a non-visit note identified by an ID.\n### Get physician\n\nUsing a physician identifier, retrieve a physician object from Elation.\n\n### Find physicians\n\nSearch a physician based on a set of parameters. The ID of the physician matching the search parameters will be returned. To retrieve the details of the physician, you can use the the \"Get physician\" action.\n\nNote that this action can only support finding one physician so if your search criteria match multiple physicians the action will throw an error.\n\n### 🪄 Find future appointment\n\nTries to find a **single future appointment** for a patient based on a prompt in natural language. These are the steps executed by the action:\n\n1. All future appointments with status `Scheduled` or `Confirmed` for the patient are retrieved from Elation.\n2. Based on the provided prompt, an LLM tries to find a single appointment from the list of future appointments that matches the prompt.\n3. If multiple appointments exist that match the instructions, only the first one is returned.\n\nIf a matching appointment is found, the action returns the full appointment resource and an explanation of why the LLM chose this appointment.\n\n### 🪄 Find appointments by prompt\n\nTries to find **all appointments** for a patient based on a prompt in natural language. These are the steps executed by the action:\n\n1. All appointments, independent their date or status, for the patient are retrieved from Elation.\n2. Based on the provided prompt, an LLM tries to find all appointments from the list appointments that matches the prompt.\n\nThe action returns the full appointment resources of all appointments matching the prompt and an explanation of why the LLM chose these appointments. Additionally, the action returns a count of appointments by status.\n\nExample data points output below.\n\nAppointments (note: only displaying a partial appointment resource)\n```json\n[\n {\n \"id\": 456,\n \"scheduled_date\": \"2023-07-12T20:44:22Z\",\n \"status\": {\n \"status\": \"Scheduled\",\n },\n },\n {\n \"id\": 456,\n \"scheduled_date\": \"2023-08-12T20:44:22Z\",\n \"status\": {\n \"status\": \"Confirmed\",\n },\n }\n]\n```\n\nAppointment counts by status\n```json\n{\n \"Scheduled\": 1,\n \"Confirmed\": 1,\n}\n```",
60
60
  "changelog": "# Elation Changelog\n\n## January 30, 2024\n\n- New actions\n - Post letter: Using patient and practice identifier, post a new letter to either Provider, Patient or associate it with an existing Referral.\n\n## October 3, 2023\n\n- The README is now more concise with less unneeded detail. A section on the particularities of Elation subscriptions (webhooks) was added.\n- Misc. updates to labels, descriptions, action fields order\n- Action updates\n - Create Non-Visit Note:\n - Simplify the action by removing some optional action fields (we can always expand later)\n - `document_date` and `chart_date` are now automatically set to the date of today so that the corresponding action fields could be removed\n - Create patient\n - `dob` is now a `date` field type (was a string)\n - You can pass a mobile phone number and email when creating a patient\n - Find physician\n - Only returns the physician ID instead of all the details of the physician. To retrieve the details one can use the new `Get physician` action\n - Update patient\n - `dob` is now a `date` field type (was a string)\n - We are now using `PATCH` instead of `PUT` which allows for a partial update, i.e. only update the fields that are needed.\n- New actions\n - Get physician: Using a physician identifier, retrieve a physician object from Elation.\n- Removed actions\n - Update Non-Visit Note\n- Webhooks\n - Fix the type of `patientId` in `patientCreatedOrUpdated` webhook\n - Added `appointmentCreatedOrUpdated` webhook\n\n## September 4, 2023\n\n- rename `onCreatePatient` webhook to `patientCreatedOrUpdated`\n- filter non `saved` actions for this webhook\n\n## August 21, 2023\n\n- make non-visit note text a large input (`StringType.TEXT`)\n\n## May 23, 2024\n\n- add patient_status.status to patient object in getPatient action\n- add status to updatePatient action\n"
61
61
  },
62
62
  "epic": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.166",
3
+ "version": "2.0.168",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -1,68 +0,0 @@
1
- import { FieldType, type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../settings';
3
- declare const fields: {
4
- patientId: {
5
- id: string;
6
- label: string;
7
- description: string;
8
- type: FieldType.NUMERIC;
9
- required: true;
10
- };
11
- senderId: {
12
- id: string;
13
- label: string;
14
- description: string;
15
- type: FieldType.NUMERIC;
16
- required: true;
17
- };
18
- practiceId: {
19
- id: string;
20
- label: string;
21
- description: string;
22
- type: FieldType.NUMERIC;
23
- required: true;
24
- };
25
- documentDate: {
26
- id: string;
27
- label: string;
28
- description: string;
29
- type: FieldType.DATE;
30
- required: true;
31
- };
32
- chartDate: {
33
- id: string;
34
- label: string;
35
- description: string;
36
- type: FieldType.DATE;
37
- required: true;
38
- };
39
- messageBody: {
40
- id: string;
41
- label: string;
42
- description: string;
43
- type: FieldType.STRING;
44
- required: true;
45
- };
46
- groupId: {
47
- id: string;
48
- label: string;
49
- description: string;
50
- type: FieldType.NUMERIC;
51
- required: false;
52
- };
53
- isUrgent: {
54
- id: string;
55
- label: string;
56
- description: string;
57
- type: FieldType.BOOLEAN;
58
- required: true;
59
- };
60
- };
61
- declare const dataPoints: {
62
- messageThreadId: {
63
- key: string;
64
- valueType: "number";
65
- };
66
- };
67
- export declare const createMessageThread: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
68
- export {};
@@ -1,115 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createMessageThread = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const extensions_core_2 = require("@awell-health/extensions-core");
6
- const client_1 = require("../client");
7
- const messageThread_zod_1 = require("../validation/messageThread.zod");
8
- const lodash_1 = require("lodash");
9
- const fields = {
10
- patientId: {
11
- id: 'patientId',
12
- label: 'Patient ID',
13
- description: 'The patient chart for which the thread is about',
14
- type: extensions_core_1.FieldType.NUMERIC,
15
- required: true,
16
- },
17
- senderId: {
18
- id: 'senderId',
19
- label: 'Sender ID',
20
- description: 'The ID of the user initiating the message thread',
21
- type: extensions_core_1.FieldType.NUMERIC,
22
- required: true,
23
- },
24
- practiceId: {
25
- id: 'practiceId',
26
- label: 'Practice ID',
27
- description: 'The practice associated with the patient chart',
28
- type: extensions_core_1.FieldType.NUMERIC,
29
- required: true,
30
- },
31
- documentDate: {
32
- id: 'documentDate',
33
- label: 'Document Date',
34
- description: 'Date associated with the document (ISO format)',
35
- type: extensions_core_1.FieldType.DATE,
36
- required: true,
37
- },
38
- chartDate: {
39
- id: 'chartDate',
40
- label: 'Chart Date',
41
- description: 'Date of the patient’s chart (ISO format)',
42
- type: extensions_core_1.FieldType.DATE,
43
- required: true,
44
- },
45
- messageBody: {
46
- id: 'messageBody',
47
- label: 'Message Body',
48
- description: 'The content of the initial message in the thread',
49
- type: extensions_core_1.FieldType.STRING,
50
- required: true,
51
- },
52
- groupId: {
53
- id: 'groupId',
54
- label: 'Group ID',
55
- description: 'The ID of the group to which the thread member belongs',
56
- type: extensions_core_1.FieldType.NUMERIC,
57
- required: false,
58
- },
59
- isUrgent: {
60
- id: 'isUrgent',
61
- label: 'Urgent',
62
- description: 'Marks the message thread as urgent if true',
63
- type: extensions_core_1.FieldType.BOOLEAN,
64
- required: true,
65
- },
66
- };
67
- const dataPoints = {
68
- messageThreadId: {
69
- key: 'messageThreadId',
70
- valueType: 'number',
71
- },
72
- };
73
- exports.createMessageThread = {
74
- key: 'createMessageThread',
75
- category: extensions_core_2.Category.EHR_INTEGRATIONS,
76
- title: 'Create Message Thread',
77
- description: "Create a message thread in Elation's messaging system.",
78
- fields,
79
- previewable: true,
80
- dataPoints,
81
- onActivityCreated: async (payload, onComplete, onError) => {
82
- const { patientId, senderId, practiceId, documentDate, chartDate, messageBody, isUrgent, groupId, } = payload.fields;
83
- const messageThread = messageThread_zod_1.messageThreadSchema.parse({
84
- patient: patientId,
85
- sender: senderId,
86
- practice: practiceId,
87
- document_date: documentDate,
88
- chart_date: chartDate,
89
- is_urgent: isUrgent,
90
- messages: [
91
- {
92
- body: messageBody,
93
- send_date: new Date().toISOString(),
94
- sender: senderId,
95
- },
96
- ],
97
- members: !(0, lodash_1.isNil)(groupId)
98
- ? [
99
- {
100
- group: groupId,
101
- status: 'Requiring Action',
102
- },
103
- ]
104
- : [],
105
- });
106
- const api = (0, client_1.makeAPIClient)(payload.settings);
107
- const { id } = await api.createMessageThread(messageThread);
108
- await onComplete({
109
- data_points: {
110
- messageThreadId: String(id),
111
- },
112
- });
113
- },
114
- };
115
- //# sourceMappingURL=createMessageThread.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createMessageThread.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/createMessageThread.ts"],"names":[],"mappings":";;;AACA,mEAKsC;AACtC,mEAAwD;AAExD,sCAAyC;AAEzC,uEAAqE;AACrE,mCAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,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