@awell-health/awell-extensions 2.0.165 → 2.0.166
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/elation/index.js +2 -0
- package/dist/extensions/elation/index.js.map +1 -1
- package/dist/extensions/elation/timers/index.d.ts +1 -0
- package/dist/extensions/elation/timers/index.js +6 -0
- package/dist/extensions/elation/timers/index.js.map +1 -0
- package/dist/extensions/elation/timers/labOrderSigned.d.ts +2 -0
- package/dist/extensions/elation/timers/labOrderSigned.js +27 -0
- package/dist/extensions/elation/timers/labOrderSigned.js.map +1 -0
- package/dist/extensions/elation/timers/types.d.ts +8 -0
- package/dist/extensions/elation/timers/types.js +3 -0
- package/dist/extensions/elation/timers/types.js.map +1 -0
- package/package.json +2 -2
@@ -5,6 +5,7 @@ const actions_1 = require("./actions");
|
|
5
5
|
const settings_1 = require("./settings");
|
6
6
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
7
|
const webhooks_1 = require("./webhooks");
|
8
|
+
const timers_1 = require("./timers");
|
8
9
|
exports.Elation = {
|
9
10
|
key: 'elation',
|
10
11
|
title: 'Elation',
|
@@ -20,5 +21,6 @@ exports.Elation = {
|
|
20
21
|
identifier: {
|
21
22
|
system: 'https://www.elationhealth.com/',
|
22
23
|
},
|
24
|
+
timers: timers_1.timers,
|
23
25
|
};
|
24
26
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/elation/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEnC,yCAAqC;AACrC,mEAAoE;AACpE,yCAAqC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/elation/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEnC,yCAAqC;AACrC,mEAAoE;AACpE,yCAAqC;AACrC,qCAAiC;AAEpB,QAAA,OAAO,GAAc;IAChC,GAAG,EAAE,SAAS;IACd,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,oHAAoH;IACtH,QAAQ,EACN,sGAAsG;IACxG,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;IACR,UAAU,EAAE;QACV,MAAM,EAAE,gCAAgC;KACzC;IACD,MAAM,EAAN,eAAM;CACP,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const timers: import("@awell-health/extensions-core").Timer[];
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/timers/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEpC,QAAA,MAAM,GAAG,CAAC,+BAAc,CAAC,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.labOrderSigned = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
5
|
+
exports.labOrderSigned = {
|
6
|
+
type: 'resource_updated',
|
7
|
+
key: 'lab_order.signed',
|
8
|
+
action_key: 'createLabOrder',
|
9
|
+
description: 'Wait for lab order to be signed',
|
10
|
+
resource_id: {
|
11
|
+
type: 'extension_data_point',
|
12
|
+
key: 'labOrderId',
|
13
|
+
},
|
14
|
+
evaluate: (input) => {
|
15
|
+
const payload = input;
|
16
|
+
const { data: labOrder, action } = payload;
|
17
|
+
return (action === 'saved' &&
|
18
|
+
payload.resource === 'lab_orders' &&
|
19
|
+
!(0, lodash_1.isNil)(labOrder.signed_by) &&
|
20
|
+
!(0, lodash_1.isNil)(labOrder.signed_date));
|
21
|
+
},
|
22
|
+
extractResourceId: (input) => {
|
23
|
+
const payload = input;
|
24
|
+
return payload.data.id;
|
25
|
+
},
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=labOrderSigned.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"labOrderSigned.js","sourceRoot":"","sources":["../../../../extensions/elation/timers/labOrderSigned.ts"],"names":[],"mappings":";;;AACA,mCAA8B;AAGjB,QAAA,cAAc,GAAU;IACnC,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,kBAAkB;IACvB,UAAU,EAAE,gBAAgB;IAC5B,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,sBAAsB;QAC5B,GAAG,EAAE,YAAY;KAClB;IACD,QAAQ,EAAE,CAAC,KAAc,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,KAA8B,CAAA;QAC9C,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAC1C,OAAO,CACL,MAAM,KAAK,OAAO;YAClB,OAAO,CAAC,QAAQ,KAAK,YAAY;YACjC,CAAC,IAAA,cAAK,EAAC,QAAQ,CAAC,SAAS,CAAC;YAC1B,CAAC,IAAA,cAAK,EAAC,QAAQ,CAAC,WAAW,CAAC,CAC7B,CAAA;IACH,CAAC;IACD,iBAAiB,EAAE,CAAC,KAAc,EAAE,EAAE;QACpC,MAAM,OAAO,GAAG,KAA8B,CAAA;QAC9C,OAAO,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IACxB,CAAC;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../extensions/elation/timers/types.ts"],"names":[],"mappings":""}
|
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.166",
|
4
4
|
"packageManager": "yarn@4.5.3",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"repository": {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
},
|
80
80
|
"dependencies": {
|
81
81
|
"@awell-health/awell-sdk": "^0.1.20",
|
82
|
-
"@awell-health/extensions-core": "1.0.
|
82
|
+
"@awell-health/extensions-core": "1.0.18",
|
83
83
|
"@awell-health/healthie-sdk": "^0.1.1",
|
84
84
|
"@dropbox/sign": "^1.8.0",
|
85
85
|
"@hubspot/api-client": "^11.2.0",
|