@awell-health/awell-extensions 2.0.114 → 2.0.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -2099,4 +2099,163 @@ export declare const actions: {
2099
2099
  required: false;
2100
2100
  };
2101
2101
  }, "id">;
2102
+ createCareGap: import("@awell-health/extensions-core").Action<{
2103
+ quality_program: {
2104
+ id: string;
2105
+ label: string;
2106
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2107
+ required: true;
2108
+ description: string;
2109
+ };
2110
+ definition_id: {
2111
+ id: string;
2112
+ label: string;
2113
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2114
+ required: true;
2115
+ description: string;
2116
+ };
2117
+ patient_id: {
2118
+ id: string;
2119
+ label: string;
2120
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2121
+ required: true;
2122
+ description: string;
2123
+ };
2124
+ practice_id: {
2125
+ id: string;
2126
+ label: string;
2127
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2128
+ required: true;
2129
+ description: string;
2130
+ };
2131
+ created_date: {
2132
+ id: string;
2133
+ label: string;
2134
+ type: import("@awell-health/extensions-core").FieldType.DATE;
2135
+ required: true;
2136
+ description: string;
2137
+ };
2138
+ status: {
2139
+ id: string;
2140
+ label: string;
2141
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2142
+ required: true;
2143
+ description: string;
2144
+ options: {
2145
+ dropdownOptions: {
2146
+ label: string;
2147
+ value: string;
2148
+ }[];
2149
+ };
2150
+ };
2151
+ detail: {
2152
+ id: string;
2153
+ label: string;
2154
+ type: import("@awell-health/extensions-core").FieldType.TEXT;
2155
+ required: false;
2156
+ description: string;
2157
+ };
2158
+ }, {
2159
+ base_url: {
2160
+ key: string;
2161
+ label: string;
2162
+ obfuscated: false;
2163
+ description: string;
2164
+ required: true;
2165
+ };
2166
+ auth_url: {
2167
+ key: string;
2168
+ label: string;
2169
+ obfuscated: false;
2170
+ description: string;
2171
+ required: true;
2172
+ };
2173
+ client_id: {
2174
+ key: string;
2175
+ label: string;
2176
+ obfuscated: false;
2177
+ description: string;
2178
+ required: true;
2179
+ };
2180
+ client_secret: {
2181
+ key: string;
2182
+ label: string;
2183
+ obfuscated: true;
2184
+ description: string;
2185
+ required: true;
2186
+ };
2187
+ username: {
2188
+ key: string;
2189
+ label: string;
2190
+ obfuscated: false;
2191
+ description: string;
2192
+ required: false;
2193
+ };
2194
+ password: {
2195
+ key: string;
2196
+ label: string;
2197
+ obfuscated: true;
2198
+ description: string;
2199
+ required: false;
2200
+ };
2201
+ }, "id">;
2202
+ closeCareGap: import("@awell-health/extensions-core").Action<{
2203
+ quality_program: {
2204
+ id: string;
2205
+ label: string;
2206
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2207
+ required: true;
2208
+ description: string;
2209
+ };
2210
+ caregap_id: {
2211
+ id: string;
2212
+ label: string;
2213
+ type: import("@awell-health/extensions-core").FieldType.STRING;
2214
+ required: true;
2215
+ description: string;
2216
+ };
2217
+ }, {
2218
+ base_url: {
2219
+ key: string;
2220
+ label: string;
2221
+ obfuscated: false;
2222
+ description: string;
2223
+ required: true;
2224
+ };
2225
+ auth_url: {
2226
+ key: string;
2227
+ label: string;
2228
+ obfuscated: false;
2229
+ description: string;
2230
+ required: true;
2231
+ };
2232
+ client_id: {
2233
+ key: string;
2234
+ label: string;
2235
+ obfuscated: false;
2236
+ description: string;
2237
+ required: true;
2238
+ };
2239
+ client_secret: {
2240
+ key: string;
2241
+ label: string;
2242
+ obfuscated: true;
2243
+ description: string;
2244
+ required: true;
2245
+ };
2246
+ username: {
2247
+ key: string;
2248
+ label: string;
2249
+ obfuscated: false;
2250
+ description: string;
2251
+ required: false;
2252
+ };
2253
+ password: {
2254
+ key: string;
2255
+ label: string;
2256
+ obfuscated: true;
2257
+ description: string;
2258
+ required: false;
2259
+ };
2260
+ }, never>;
2102
2261
  };
@@ -23,6 +23,8 @@ const createVisitNote_1 = require("./createVisitNote/createVisitNote");
23
23
  const addVitals_1 = require("./addVitals/addVitals");
24
24
  const getLetter_1 = require("./getLetter");
25
25
  const createReferralOrder_1 = require("./createReferralOrder");
26
+ const createCareGap_1 = require("./createCareGap");
27
+ const closeCareGap_1 = require("./closeCareGap");
26
28
  exports.actions = {
27
29
  getPatient: getPatient_1.getPatient,
28
30
  createPatient: createPatient_1.createPatient,
@@ -46,5 +48,7 @@ exports.actions = {
46
48
  createMessageThread: createMessageThread_1.createMessageThread,
47
49
  getLetter: getLetter_1.getLetter,
48
50
  createReferralOrder: createReferralOrder_1.createReferralOrder,
51
+ createCareGap: createCareGap_1.createCareGap,
52
+ closeCareGap: closeCareGap_1.closeCareGap,
49
53
  };
50
54
  //# 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;AAE9C,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;CACpB,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,wDAAoD;AACpD,wDAAoD;AACpD,uEAAmE;AACnE,qDAAiD;AACjD,2CAAuC;AACvC,+DAA2D;AAC3D,mDAA+C;AAC/C,iDAA6C;AAEhC,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;CACb,CAAA"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.appointmentCreatedOrUpdated = void 0;
4
4
  const constants_1 = require("../constants");
5
- const appointments_1 = require("../types/webhooks/appointments");
6
5
  const dataPoints = {
7
6
  appointmentId: {
8
7
  key: 'appointmentId',
@@ -17,7 +16,7 @@ exports.appointmentCreatedOrUpdated = {
17
16
  key: 'appointmentCreatedOrUpdated',
18
17
  dataPoints,
19
18
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
20
- const { action, resource, data } = appointments_1.AppointmentsPayloadSchema.parse(payload);
19
+ const { action, resource, data } = payload;
21
20
  const { id: appointmentId, patient: patientId } = data;
22
21
  // skip non 'saved' actions for that webhook
23
22
  if (action !== 'saved') {
@@ -1 +1 @@
1
- {"version":3,"file":"appointmentCreatedOrUpdated.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/appointmentCreatedOrUpdated.ts"],"names":[],"mappings":";;;AAIA,4CAA6C;AAE7C,iEAA0E;AAE1E,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,2BAA2B,GAGpC;IACF,GAAG,EAAE,6BAA6B;IAClC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,wCAAyB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAC3E,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAA;QACtD,6CAA6C;QAC7C,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,OAAM;SACP;QAED,IAAI,QAAQ,KAAK,cAAc,EAAE;YAC/B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,gCAAgC;iBAC1C;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;oBACpC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;iBAClC;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,0BAAc;oBACtB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;iBACzB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"appointmentCreatedOrUpdated.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/appointmentCreatedOrUpdated.ts"],"names":[],"mappings":";;;AAIA,4CAA6C;AAG7C,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,2BAA2B,GAGpC;IACF,GAAG,EAAE,6BAA6B;IAClC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;QAC1C,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAA;QAEtD,6CAA6C;QAC7C,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,OAAM;SACP;QAED,IAAI,QAAQ,KAAK,cAAc,EAAE;YAC/B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,gCAAgC;iBAC1C;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;oBACpC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;iBAClC;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,0BAAc;oBACtB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;iBACzB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.114",
3
+ "version": "2.0.116",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -1,69 +0,0 @@
1
- import z from 'zod';
2
- /**
3
- * This is not the full payload, only the most interesting parts
4
- */
5
- export declare const AppointmentsPayloadSchema: z.ZodObject<{
6
- event_id: z.ZodNumber;
7
- application_id: z.ZodString;
8
- resource: z.ZodString;
9
- action: z.ZodEnum<["saved", "deleted"]>;
10
- data: z.ZodObject<{
11
- id: z.ZodNumber;
12
- scheduled_date: z.ZodDate;
13
- duration: z.ZodNumber;
14
- reason: z.ZodString;
15
- mode: z.ZodString;
16
- patient: z.ZodNumber;
17
- physician: z.ZodNumber;
18
- practice: z.ZodNumber;
19
- }, "strip", z.ZodTypeAny, {
20
- duration: number;
21
- id: number;
22
- patient: number;
23
- mode: string;
24
- reason: string;
25
- scheduled_date: Date;
26
- physician: number;
27
- practice: number;
28
- }, {
29
- duration: number;
30
- id: number;
31
- patient: number;
32
- mode: string;
33
- reason: string;
34
- scheduled_date: Date;
35
- physician: number;
36
- practice: number;
37
- }>;
38
- }, "strip", z.ZodTypeAny, {
39
- data: {
40
- duration: number;
41
- id: number;
42
- patient: number;
43
- mode: string;
44
- reason: string;
45
- scheduled_date: Date;
46
- physician: number;
47
- practice: number;
48
- };
49
- resource: string;
50
- action: "saved" | "deleted";
51
- event_id: number;
52
- application_id: string;
53
- }, {
54
- data: {
55
- duration: number;
56
- id: number;
57
- patient: number;
58
- mode: string;
59
- reason: string;
60
- scheduled_date: Date;
61
- physician: number;
62
- practice: number;
63
- };
64
- resource: string;
65
- action: "saved" | "deleted";
66
- event_id: number;
67
- application_id: string;
68
- }>;
69
- export type AppointmentsPayload = z.infer<typeof AppointmentsPayloadSchema>;
@@ -1,27 +0,0 @@
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.AppointmentsPayloadSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- /**
9
- * This is not the full payload, only the most interesting parts
10
- */
11
- exports.AppointmentsPayloadSchema = zod_1.default.object({
12
- event_id: zod_1.default.number(),
13
- application_id: zod_1.default.string(),
14
- resource: zod_1.default.string(),
15
- action: zod_1.default.enum(['saved', 'deleted']),
16
- data: zod_1.default.object({
17
- id: zod_1.default.number(),
18
- scheduled_date: zod_1.default.coerce.date(),
19
- duration: zod_1.default.number(),
20
- reason: zod_1.default.string(),
21
- mode: zod_1.default.string(),
22
- patient: zod_1.default.number(),
23
- physician: zod_1.default.number(),
24
- practice: zod_1.default.number(),
25
- }),
26
- });
27
- //# sourceMappingURL=appointments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appointments.js","sourceRoot":"","sources":["../../../../../extensions/elation/types/webhooks/appointments.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AAEnB;;GAEG;AACU,QAAA,yBAAyB,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACpC,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;QACb,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;QACd,cAAc,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE;QAC/B,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;QAClB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;QACnB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;QACrB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;KACrB,CAAC;CACH,CAAC,CAAA"}