@awell-health/awell-extensions 1.0.117 → 1.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/healthie/actions/index.d.ts +37 -4
- package/dist/extensions/healthie/actions/index.js +2 -0
- package/dist/extensions/healthie/actions/index.js.map +1 -1
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/fields.d.ts +36 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/fields.js +32 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/index.js +7 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/index.js +6 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/index.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.d.ts +4 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js +91 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js.map +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js +35 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js.map +1 -0
- package/dist/extensions/healthie/gql/sdk.d.ts +5 -2
- package/dist/extensions/healthie/gql/sdk.js +2 -0
- package/dist/extensions/healthie/gql/sdk.js.map +1 -1
- package/dist/extensions/markdown.json +1 -1
- package/package.json +1 -1
@@ -90,10 +90,7 @@ export declare const actions: {
|
|
90
90
|
};
|
91
91
|
reminderIntervalValue: {
|
92
92
|
id: string;
|
93
|
-
label: string;
|
94
|
-
* There is bug in Healthie that prevents linking an address with a patient
|
95
|
-
* Waiting for fix
|
96
|
-
**/
|
93
|
+
label: string;
|
97
94
|
description: string;
|
98
95
|
type: import("@awell-health/extensions-core").FieldType.STRING;
|
99
96
|
required: false;
|
@@ -772,6 +769,42 @@ export declare const actions: {
|
|
772
769
|
description: string;
|
773
770
|
};
|
774
771
|
}, string, never>;
|
772
|
+
updatePatientQuickNote: import("@awell-health/extensions-core").Action<{
|
773
|
+
patientId: {
|
774
|
+
id: string;
|
775
|
+
label: string;
|
776
|
+
description: string;
|
777
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
778
|
+
required: true;
|
779
|
+
};
|
780
|
+
quickNote: {
|
781
|
+
id: string;
|
782
|
+
label: string;
|
783
|
+
description: string;
|
784
|
+
type: import("@awell-health/extensions-core").FieldType.HTML;
|
785
|
+
};
|
786
|
+
overwrite: {
|
787
|
+
id: string;
|
788
|
+
label: string;
|
789
|
+
description: string;
|
790
|
+
type: import("@awell-health/extensions-core").FieldType.BOOLEAN;
|
791
|
+
};
|
792
|
+
}, {
|
793
|
+
apiUrl: {
|
794
|
+
key: string;
|
795
|
+
label: string;
|
796
|
+
obfuscated: false;
|
797
|
+
required: true;
|
798
|
+
description: string;
|
799
|
+
};
|
800
|
+
apiKey: {
|
801
|
+
key: string;
|
802
|
+
label: string;
|
803
|
+
obfuscated: true;
|
804
|
+
required: true;
|
805
|
+
description: string;
|
806
|
+
};
|
807
|
+
}, string, never>;
|
775
808
|
createMetricEntry: import("@awell-health/extensions-core").Action<{
|
776
809
|
userId: {
|
777
810
|
id: string;
|
@@ -20,6 +20,7 @@ const assignPatientToGroup_1 = require("./assignPatientToGroup");
|
|
20
20
|
const updatePatient_1 = require("./updatePatient");
|
21
21
|
const getPatient_1 = require("./getPatient");
|
22
22
|
const applyTagToPatient_1 = require("./applyTagToPatient");
|
23
|
+
const updatePatientQuickNote_1 = require("./updatePatientQuickNote");
|
23
24
|
const createMetricEntry_1 = require("./createMetricEntry");
|
24
25
|
exports.actions = {
|
25
26
|
createAppointment: createAppointment_1.createAppointment,
|
@@ -50,6 +51,7 @@ exports.actions = {
|
|
50
51
|
deleteTask: deleteTask_1.deleteTask,
|
51
52
|
completeTask: completeTask_1.completeTask,
|
52
53
|
assignPatientToGroup: assignPatientToGroup_1.assignPatientToGroup,
|
54
|
+
updatePatientQuickNote: updatePatientQuickNote_1.updatePatientQuickNote,
|
53
55
|
createMetricEntry: createMetricEntry_1.createMetricEntry,
|
54
56
|
};
|
55
57
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AACvD,2DAAuD;AAE1C,QAAA,OAAO,GAAG;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,oBAAoB,EAApB,2CAAoB;IACpB,kBAAkB,EAAlB,uCAAkB;IAClB,yBAAyB,EAAzB,qDAAyB;IACzB,cAAc,EAAd,+BAAc;IACd;;;QAGI;IACJ,kBAAkB;IAClB,qBAAqB,EAArB,6CAAqB;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,iBAAiB,EAAjB,qCAAiB;IACjB;;;QAGI;IACJ,sBAAsB;IACtB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,oBAAoB,EAApB,2CAAoB;IACpB,iBAAiB,EAAjB,qCAAiB;CAClB,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AACvD,qEAAiE;AACjE,2DAAuD;AAE1C,QAAA,OAAO,GAAG;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,oBAAoB,EAApB,2CAAoB;IACpB,kBAAkB,EAAlB,uCAAkB;IAClB,yBAAyB,EAAzB,qDAAyB;IACzB,cAAc,EAAd,+BAAc;IACd;;;QAGI;IACJ,kBAAkB;IAClB,qBAAqB,EAArB,6CAAqB;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,iBAAiB,EAAjB,qCAAiB;IACjB;;;QAGI;IACJ,sBAAsB;IACtB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,oBAAoB,EAApB,2CAAoB;IACpB,sBAAsB,EAAtB,+CAAsB;IACtB,iBAAiB,EAAjB,qCAAiB;CAClB,CAAA"}
|
@@ -0,0 +1,36 @@
|
|
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.STRING;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
quickNote: {
|
12
|
+
id: string;
|
13
|
+
label: string;
|
14
|
+
description: string;
|
15
|
+
type: FieldType.HTML;
|
16
|
+
};
|
17
|
+
overwrite: {
|
18
|
+
id: string;
|
19
|
+
label: string;
|
20
|
+
description: string;
|
21
|
+
type: FieldType.BOOLEAN;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
25
|
+
patientId: z.ZodString;
|
26
|
+
quickNote: z.ZodString;
|
27
|
+
overwrite: z.ZodBoolean;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
patientId: string;
|
30
|
+
quickNote: string;
|
31
|
+
overwrite: boolean;
|
32
|
+
}, {
|
33
|
+
patientId: string;
|
34
|
+
quickNote: string;
|
35
|
+
overwrite: boolean;
|
36
|
+
}>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FieldsValidationSchema = exports.fields = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.fields = {
|
7
|
+
patientId: {
|
8
|
+
id: 'patientId',
|
9
|
+
label: 'Patient ID',
|
10
|
+
description: 'The ID of the patient in Healthie to update the quick note for',
|
11
|
+
type: extensions_core_1.FieldType.STRING,
|
12
|
+
required: true,
|
13
|
+
},
|
14
|
+
quickNote: {
|
15
|
+
id: 'quickNote',
|
16
|
+
label: 'Quick note',
|
17
|
+
description: '',
|
18
|
+
type: extensions_core_1.FieldType.HTML,
|
19
|
+
},
|
20
|
+
overwrite: {
|
21
|
+
id: 'overwrite',
|
22
|
+
label: 'Overwrite quick note?',
|
23
|
+
description: 'If true, the quick note will be replaced with the new content. If false, the content will be appended to the current content in the quick note.',
|
24
|
+
type: extensions_core_1.FieldType.BOOLEAN,
|
25
|
+
},
|
26
|
+
};
|
27
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
28
|
+
patientId: zod_1.z.string().nonempty(),
|
29
|
+
quickNote: zod_1.z.string().nonempty(),
|
30
|
+
overwrite: zod_1.z.boolean(),
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/updatePatientQuickNote/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,IAAI;KACrB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EACT,iJAAiJ;QACnJ,IAAI,EAAE,2BAAS,CAAC,OAAO;KACxB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;CAC2B,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { fields, FieldsValidationSchema } from './fields';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
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
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/updatePatientQuickNote/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { updatePatientQuickNote } from './updatePatientQuickNote';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.updatePatientQuickNote = void 0;
|
4
|
+
var updatePatientQuickNote_1 = require("./updatePatientQuickNote");
|
5
|
+
Object.defineProperty(exports, "updatePatientQuickNote", { enumerable: true, get: function () { return updatePatientQuickNote_1.updatePatientQuickNote; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA"}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.updatePatientQuickNote = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const extensions_core_2 = require("@awell-health/extensions-core");
|
6
|
+
const sdk_1 = require("../../gql/sdk");
|
7
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
8
|
+
const settings_1 = require("../../settings");
|
9
|
+
const errors_1 = require("../../errors");
|
10
|
+
const zod_1 = require("zod");
|
11
|
+
const zod_validation_error_1 = require("zod-validation-error");
|
12
|
+
const config_1 = require("./config");
|
13
|
+
exports.updatePatientQuickNote = {
|
14
|
+
key: 'updatePatientQuickNote',
|
15
|
+
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
16
|
+
title: 'Update patient quick note',
|
17
|
+
description: 'Update a patient quick note in Healthie.',
|
18
|
+
fields: config_1.fields,
|
19
|
+
previewable: true,
|
20
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
21
|
+
var _a, _b;
|
22
|
+
try {
|
23
|
+
const { settings, fields: { patientId, overwrite, quickNote }, } = (0, extensions_core_1.validate)({
|
24
|
+
schema: zod_1.z.object({
|
25
|
+
settings: settings_1.settingsValidationSchema,
|
26
|
+
fields: config_1.FieldsValidationSchema,
|
27
|
+
}),
|
28
|
+
payload,
|
29
|
+
});
|
30
|
+
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
31
|
+
if (client != null) {
|
32
|
+
const sdk = (0, sdk_1.getSdk)(client);
|
33
|
+
if (overwrite) {
|
34
|
+
await sdk.updatePatient({
|
35
|
+
input: { id: patientId, quick_notes: quickNote },
|
36
|
+
});
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
const { data } = await sdk.getUser({ id: patientId });
|
40
|
+
const currentNotes = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.quick_notes) !== null && _b !== void 0 ? _b : '';
|
41
|
+
await sdk.updatePatient({
|
42
|
+
input: {
|
43
|
+
id: patientId,
|
44
|
+
quick_notes: currentNotes.concat(quickNote),
|
45
|
+
},
|
46
|
+
});
|
47
|
+
}
|
48
|
+
await onComplete({});
|
49
|
+
}
|
50
|
+
}
|
51
|
+
catch (err) {
|
52
|
+
if (err instanceof zod_1.ZodError) {
|
53
|
+
const error = (0, zod_validation_error_1.fromZodError)(err);
|
54
|
+
await onError({
|
55
|
+
events: [
|
56
|
+
{
|
57
|
+
date: new Date().toISOString(),
|
58
|
+
text: { en: error.message },
|
59
|
+
error: {
|
60
|
+
category: 'WRONG_INPUT',
|
61
|
+
message: error.message,
|
62
|
+
},
|
63
|
+
},
|
64
|
+
],
|
65
|
+
});
|
66
|
+
}
|
67
|
+
else if (err instanceof errors_1.HealthieError) {
|
68
|
+
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
69
|
+
await onError({
|
70
|
+
events: errors,
|
71
|
+
});
|
72
|
+
}
|
73
|
+
else {
|
74
|
+
const error = err;
|
75
|
+
await onError({
|
76
|
+
events: [
|
77
|
+
{
|
78
|
+
date: new Date().toISOString(),
|
79
|
+
text: { en: 'Healthie API reported an error' },
|
80
|
+
error: {
|
81
|
+
category: 'SERVER_ERROR',
|
82
|
+
message: error.message,
|
83
|
+
},
|
84
|
+
},
|
85
|
+
],
|
86
|
+
});
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
};
|
91
|
+
//# sourceMappingURL=updatePatientQuickNote.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updatePatientQuickNote.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,mEAAwD;AACxD,uCAAsC;AACtC,uDAAsD;AACtD,6CAAwE;AACxE,yCAAwE;AACxE,6BAAiC;AACjC,+DAAmD;AACnD,qCAAyD;AAE5C,QAAA,sBAAsB,GAA2C;IAC5E,GAAG,EAAE,wBAAwB;IAC7B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,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E;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;4BAC3B,KAAK,EAAE;gCACL,QAAQ,EAAE,aAAa;gCACvB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;iBAAM,IAAI,GAAG,YAAY,sBAAa,EAAE;gBACvC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tests_1 = require("../../../../src/tests");
|
4
|
+
const sdk_1 = require("../../gql/sdk");
|
5
|
+
const sdk_2 = require("../../gql/__mocks__/sdk");
|
6
|
+
const updatePatientQuickNote_1 = require("../updatePatientQuickNote");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('createMetricEntry action', () => {
|
10
|
+
const onComplete = jest.fn();
|
11
|
+
const onError = jest.fn();
|
12
|
+
beforeAll(() => {
|
13
|
+
;
|
14
|
+
sdk_1.getSdk.mockImplementation(sdk_2.mockGetSdk);
|
15
|
+
});
|
16
|
+
beforeEach(() => {
|
17
|
+
jest.clearAllMocks();
|
18
|
+
});
|
19
|
+
test('Should update patient quick note', async () => {
|
20
|
+
await updatePatientQuickNote_1.updatePatientQuickNote.onActivityCreated((0, tests_1.generateTestPayload)({
|
21
|
+
fields: {
|
22
|
+
patientId: 'patient-id',
|
23
|
+
quickNote: 'QUICK NOTE',
|
24
|
+
overwrite: true,
|
25
|
+
},
|
26
|
+
settings: {
|
27
|
+
apiKey: 'apiKey',
|
28
|
+
apiUrl: 'test-url',
|
29
|
+
},
|
30
|
+
}), onComplete, onError);
|
31
|
+
expect(onComplete).toBeCalledTimes(1);
|
32
|
+
expect(onError).toBeCalledTimes(0);
|
33
|
+
});
|
34
|
+
});
|
35
|
+
//# sourceMappingURL=updatePatientQuickNote.test.js.map
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updatePatientQuickNote.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAoD;AACpD,sEAAkE;AAElE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,CAAC;QAAC,YAAoB,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,+CAAsB,CAAC,iBAAiB,CAC5C,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,SAAS,EAAE,YAAY;gBACvB,SAAS,EAAE,YAAY;gBACvB,SAAS,EAAE,IAAI;aAChB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,OAAO,CACR,CAAA;QACD,MAAM,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -9287,7 +9287,7 @@ export type Query = {
|
|
9287
9287
|
appliedTags?: Maybe<Array<AppliedTag>>;
|
9288
9288
|
/** fetch an appointment by id, group appointments are (considered public) */
|
9289
9289
|
appointment?: Maybe<Appointment>;
|
9290
|
-
/** Return
|
9290
|
+
/** Return potential booking issues for an appointment, date, time, repeats, attendees, and provider. */
|
9291
9291
|
appointmentBookingWarnings?: Maybe<Array<AppointmentBookingWarning>>;
|
9292
9292
|
/** returns metadata about appointments for provider dashboard */
|
9293
9293
|
appointmentFrequencyData?: Maybe<Array<AppointmentDataType>>;
|
@@ -9353,7 +9353,7 @@ export type Query = {
|
|
9353
9353
|
campaignsCount?: Maybe<Scalars['Int']>;
|
9354
9354
|
/** Check if the user has access to the package buy limit feature */
|
9355
9355
|
canCapOfferingPurchases?: Maybe<Scalars['Boolean']>;
|
9356
|
-
/** fetch the current users candidhealth
|
9356
|
+
/** fetch the current users candidhealth connection */
|
9357
9357
|
candidHealthConnection?: Maybe<CandidHealthConnection>;
|
9358
9358
|
/** Fetch paginated stripe customer accounts with associated errors or soon to expire credit cards */
|
9359
9359
|
cardIssues?: Maybe<Array<StripeCustomerDetail>>;
|
@@ -9956,6 +9956,7 @@ export type QueryAppointmentBookingWarningsArgs = {
|
|
9956
9956
|
date?: InputMaybe<Scalars['String']>;
|
9957
9957
|
is_repeating?: InputMaybe<Scalars['Boolean']>;
|
9958
9958
|
provider_id?: InputMaybe<Scalars['ID']>;
|
9959
|
+
recurring_appt_id?: InputMaybe<Scalars['String']>;
|
9959
9960
|
repeat_interval?: InputMaybe<Scalars['String']>;
|
9960
9961
|
repeat_times?: InputMaybe<Scalars['String']>;
|
9961
9962
|
time?: InputMaybe<Scalars['String']>;
|
@@ -22658,6 +22659,7 @@ export type GetUserQuery = {
|
|
22658
22659
|
phone_number?: string | null;
|
22659
22660
|
next_appt_date?: string | null;
|
22660
22661
|
dietitian_id?: string | null;
|
22662
|
+
quick_notes?: string | null;
|
22661
22663
|
user_group?: {
|
22662
22664
|
__typename?: 'UserGroup';
|
22663
22665
|
id: string;
|
@@ -22764,6 +22766,7 @@ export type UpdatePatientMutation = {
|
|
22764
22766
|
last_name?: string | null;
|
22765
22767
|
legal_name?: string | null;
|
22766
22768
|
email?: string | null;
|
22769
|
+
quick_notes?: string | null;
|
22767
22770
|
} | null;
|
22768
22771
|
messages?: Array<{
|
22769
22772
|
__typename?: 'FieldError';
|
@@ -277,6 +277,7 @@ exports.GetUserDocument = (0, graphql_tag_1.default) `
|
|
277
277
|
last_name
|
278
278
|
email
|
279
279
|
}
|
280
|
+
quick_notes
|
280
281
|
}
|
281
282
|
}
|
282
283
|
`;
|
@@ -345,6 +346,7 @@ exports.UpdatePatientDocument = (0, graphql_tag_1.default) `
|
|
345
346
|
last_name
|
346
347
|
legal_name
|
347
348
|
email
|
349
|
+
quick_notes
|
348
350
|
}
|
349
351
|
messages {
|
350
352
|
field
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../../extensions/healthie/gql/sdk.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA+B;AAC/B,8DAA8B;AAo6J9B,0CAA0C;AAC1C,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,6DAA8B,CAAA;IAC9B,gEAAiC,CAAA;AACnC,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC;
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../../extensions/healthie/gql/sdk.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA+B;AAC/B,8DAA8B;AAo6J9B,0CAA0C;AAC1C,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,6DAA8B,CAAA;IAC9B,gEAAiC,CAAA;AACnC,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC;AA29mBY,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;KAarC,CAAC;AACO,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;KAcvC,CAAC;AACO,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;KAcxC,CAAC;AACO,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;KAcjC,CAAC;AACO,QAAA,6BAA6B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;KAY3C,CAAC;AACO,QAAA,mCAAmC,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;KAYjD,CAAC;AACO,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;KAYxC,CAAC;AACO,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;KAepC,CAAC;AACO,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;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CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAA6B,gCAAgC,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;QAC/N,CAAC;QACD,aAAa,CAAC,SAAyC,EAAE,cAA2C;YAChG,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAwB,2BAA2B,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;QAChN,CAAC;QACD,UAAU,CAAC,SAAsC,EAAE,cAA2C;YAC1F,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAqB,wBAAwB,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;QACvM,CAAC;KACF,CAAC;AACJ,CAAC;AArED,wBAqEC"}
|
@@ -41,7 +41,7 @@
|
|
41
41
|
},
|
42
42
|
"healthie": {
|
43
43
|
"readme": "---\ntitle: Healthie\ndescription: Healthie offers infrastructure for next generation digital health organizations that provide virtual-first care.\n---\n\n# What is Healthie?\n\nHealthie offers infrastructure for next generation digital health organizations that provide virtual-first care. Healthie’s API-first and fully brandable suite of solutions (Scheduling, EMR, Client Engagement) enables healthcare builders to launch and scale best-in-class experiences for their members. Healthie also offers a built-in marketplace of business and clinical integrations used by our organizations.\n\nTo learn more, visit [www.gethealthie.com](www.gethealthie.com).\n\n## Healthie x Awell\n\nWith this extension, organizations are able to build clinical workflows in Awell’s low-code platform and easily integrate them into Healthie. By doing so, Healthie’s customers can automate routine clinical tasks, synchronize data between systems and drive seamless coordination between care team and patients.\n\nBy combining Healthie’s web and mobile platform with our clinical workflows, clinicians will be able to provide the right care, at the right time for the right patient.\n\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Healthie API key and Api url**. You can obtain an API key via the Healthie portal (`Settings > Developer > API keys`). You can obtain API url in the [DOCUMENTATION](https://docs.gethealthie.com/docs/#environments) in `Environments` section.\n\nPlease note that the extension automatically prefixes the API key with `Basic ` so please provide your raw API key without `Basic ` in front.\n\n# Custom Actions\n\n## Send chat message action\n\nSends a chat message to a patient in name of the provided provider ID. Will create a new conversation if no active conversation between patient and provider exists or sends a message in an existing conversation if there is an active conversation between the two.\n\n## Create patient\n\nCreates a new patient according to the passed fields. After completion the `healthiePatientId` will be exposed as a data point in the care flow.\n\n## Update patient\n\nUpdates a specific patient (defined by the provided `id`) according to the passed fields.\n\n## Apply tag to patient\n\nAdds a tag (existing one, identified by an `id`) to a patient. Although the Healthie API call allows assigning multiple tags per API call, for simplicity of the logic this action can only take one tag as input. Assigning multiple tags is possible by adding multiple actions.\n\n## Remove tag from patient\n\nRemoves a tag (identified by an `id`) from a patient.\n\n## Create charting note\n\nCreates a charting note with the provided `note_content`.\n\n**Prerequisites and set-up:**\n\n1. The form specified by the `form_id` exists in Healthie.\n2. The form specified by the `form_id` is a charting form (click \"Convert to charting form\" in the form options).\n3. The form contains at least one question of type `textarea` (long text answer). The action will write the content of the charting note in the first question of that type it finds in the form.\n\n## Send form completion request\n\nSend a form completion request to the patient. You will need the Healthie patient ID and the ID of the form you would like the patient to complete.\n\nAlthough the Healthie API call allows sending form completion requests to multiple users per API call (see recipient_ids in their docs), we decided that every action only sends one form completion request. This heavily simplifies the logic and better fits our domain model (1-to-1 relationship between patient and pathway). If a user would like to send multiple form completion requests, they you can just add multiple actions.\n\n## Archive patient\n\nArchives a patient with a given `id`.\n\n## Create location\n\nCreates a location. ID of the created location is stored as `locationId` data point.\n\n## Close chat conversation\n\nCloses chat conversation with a given `id` as a provider with the given `provider_id`.\n\n## Delete appointment\n\nDeletes an appointment with a given `id`.\n\n## Cancel appointment\n\nCancels an appointment with a given `id`.\n\n## Create metric entry\n\nCreate a metric entry for a patient in Healthie.\n",
|
44
|
-
"changelog": "# Healthie changelog\n\n## October 2023\n\n- Create metric entry action.\n\n## September 5, 2023\n\n- add Healthie gender to Sex in iso format mapper in `getPatient`\n\n## May 2023\n\n- New webhooks added: `appliedTagCreated`, `appliedTagDeleted`, `appointmentDeleted`, `appointmentUpdated`, `formAnswerGroupCreated`, `formAnswerGroupDeleted`, `formAnswerGroupLocked`, `formAnswerGroupSigned`, `labOrderCreated`, `labOrderUpdated`, `messageCreated`, `messageDeleted`, `metricEntryCreated`, `metricEntryDeleted`, `metricEntryUpdated`, `patientUpdated`, `requestFormCompletionCreated`, `requestFormCompletionDeleted`, `requestFormCompletionUpdated`, `taskCreated`, `taskDeleted`, `taskUpdated`\n\n## April 2023\n\n- Create task action: now also adds support for reminders.\n"
|
44
|
+
"changelog": "# Healthie changelog\n\n## October 2023\n\n- Add \"Update patient quick notes\" action\n- Add \"Create metric entry\" action.\n\n## September 5, 2023\n\n- add Healthie gender to Sex in iso format mapper in `getPatient`\n\n## May 2023\n\n- New webhooks added: `appliedTagCreated`, `appliedTagDeleted`, `appointmentDeleted`, `appointmentUpdated`, `formAnswerGroupCreated`, `formAnswerGroupDeleted`, `formAnswerGroupLocked`, `formAnswerGroupSigned`, `labOrderCreated`, `labOrderUpdated`, `messageCreated`, `messageDeleted`, `metricEntryCreated`, `metricEntryDeleted`, `metricEntryUpdated`, `patientUpdated`, `requestFormCompletionCreated`, `requestFormCompletionDeleted`, `requestFormCompletionUpdated`, `taskCreated`, `taskDeleted`, `taskUpdated`\n\n## April 2023\n\n- Create task action: now also adds support for reminders.\n"
|
45
45
|
},
|
46
46
|
"hello-world": {
|
47
47
|
"readme": "---\ntitle: Hello world\ndescription: This is an example extension.\n---\n# Hello world extension",
|