@awell-health/awell-extensions 1.0.214 → 1.0.216
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/athenahealth/actions/createAppointmentNote/config/datapoints.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/config/fields.d.ts +39 -0
- package/dist/extensions/athenahealth/actions/{cancelAppointment → createAppointmentNote}/config/fields.js +16 -8
- package/dist/extensions/athenahealth/actions/createAppointmentNote/config/fields.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/config/index.js.map +1 -0
- package/dist/extensions/athenahealth/actions/{addProblemToPatientChart/addProblemToPatientChart.d.ts → createAppointmentNote/createAppointmentNote.d.ts} +1 -1
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.js +29 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.test.js +73 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.test.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/index.d.ts +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/index.js +6 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/index.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/datapoints.d.ts +6 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/datapoints.js +10 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/datapoints.js.map +1 -0
- package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart → createPatient}/config/fields.d.ts +23 -32
- package/dist/extensions/athenahealth/actions/createPatient/config/fields.js +54 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/fields.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/index.js.map +1 -0
- package/dist/extensions/athenahealth/actions/{cancelAppointment/cancelAppointment.d.ts → createPatient/createPatient.d.ts} +1 -1
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.js +31 -0
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.test.js +32 -0
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.test.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/index.d.ts +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/index.js +6 -0
- package/dist/extensions/athenahealth/actions/createPatient/index.js.map +1 -0
- package/dist/extensions/athenahealth/actions/getAppointment/config/datapoints.d.ts +9 -1
- package/dist/extensions/athenahealth/actions/getAppointment/config/datapoints.js +10 -2
- package/dist/extensions/athenahealth/actions/getAppointment/config/datapoints.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getAppointment/config/fields.d.ts +0 -10
- package/dist/extensions/athenahealth/actions/getAppointment/config/fields.js +0 -8
- package/dist/extensions/athenahealth/actions/getAppointment/config/fields.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.js +12 -7
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.test.js +60 -15
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.test.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getPatient/config/fields.d.ts +0 -10
- package/dist/extensions/athenahealth/actions/getPatient/config/fields.js +0 -8
- package/dist/extensions/athenahealth/actions/getPatient/config/fields.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.js +9 -8
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.test.js +58 -15
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.test.js.map +1 -1
- package/dist/extensions/athenahealth/actions/index.d.ts +35 -87
- package/dist/extensions/athenahealth/actions/index.js +4 -6
- package/dist/extensions/athenahealth/actions/index.js.map +1 -1
- package/dist/extensions/athenahealth/api/client.d.ts +32 -2
- package/dist/extensions/athenahealth/api/client.js +38 -2
- package/dist/extensions/athenahealth/api/client.js.map +1 -1
- package/dist/extensions/athenahealth/api/schema/appointment.d.ts +36 -0
- package/dist/extensions/athenahealth/api/schema/appointment.js +21 -0
- package/dist/extensions/athenahealth/api/schema/appointment.js.map +1 -0
- package/dist/extensions/athenahealth/api/schema/date.d.ts +7 -0
- package/dist/extensions/athenahealth/api/schema/date.js +23 -0
- package/dist/extensions/athenahealth/api/schema/date.js.map +1 -0
- package/dist/extensions/athenahealth/api/schema/index.d.ts +3 -0
- package/dist/extensions/athenahealth/api/schema/index.js +11 -0
- package/dist/extensions/athenahealth/api/schema/index.js.map +1 -0
- package/dist/extensions/athenahealth/api/schema/patient.d.ts +42 -0
- package/dist/extensions/athenahealth/api/schema/patient.js +22 -0
- package/dist/extensions/athenahealth/api/schema/patient.js.map +1 -0
- package/dist/extensions/athenahealth/api/schema/schema.test.js +22 -0
- package/dist/extensions/athenahealth/api/schema/schema.test.js.map +1 -0
- package/dist/extensions/athenahealth/helpers.d.ts +2 -0
- package/dist/extensions/athenahealth/helpers.js +2 -2
- package/dist/extensions/athenahealth/helpers.js.map +1 -1
- package/dist/extensions/athenahealth/settings.d.ts +10 -0
- package/dist/extensions/athenahealth/settings.js +11 -3
- package/dist/extensions/athenahealth/settings.js.map +1 -1
- package/dist/extensions/athenahealth/validation/date.d.ts +6 -0
- package/dist/extensions/athenahealth/validation/date.js +22 -0
- package/dist/extensions/athenahealth/validation/date.js.map +1 -0
- package/dist/extensions/athenahealth/validation/validation.test.d.ts +1 -0
- package/dist/extensions/athenahealth/validation/validation.test.js +12 -0
- package/dist/extensions/athenahealth/validation/validation.test.js.map +1 -0
- package/dist/extensions/markdown.json +1 -1
- package/package.json +1 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/addDocumentToPatientChart.d.ts +0 -4
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/addDocumentToPatientChart.js +0 -24
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/addDocumentToPatientChart.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/addDocumentToPatientChart.test.js +0 -31
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/addDocumentToPatientChart.test.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/config/datapoints.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/config/fields.js +0 -61
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/config/fields.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/config/index.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/index.d.ts +0 -1
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/index.js +0 -6
- package/dist/extensions/athenahealth/actions/addDocumentToPatientChart/index.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.js +0 -24
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.test.js +0 -29
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.test.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.d.ts +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.js +0 -5
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/fields.d.ts +0 -48
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/fields.js +0 -45
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/fields.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/index.js.map +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/index.d.ts +0 -1
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/index.js +0 -6
- package/dist/extensions/athenahealth/actions/addProblemToPatientChart/index.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/cancelAppointment.js +0 -24
- package/dist/extensions/athenahealth/actions/cancelAppointment/cancelAppointment.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/cancelAppointment.test.js +0 -27
- package/dist/extensions/athenahealth/actions/cancelAppointment/cancelAppointment.test.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/datapoints.d.ts +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/datapoints.js +0 -5
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/datapoints.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/fields.d.ts +0 -28
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/fields.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/index.d.ts +0 -2
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/index.js +0 -9
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/index.js.map +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/index.d.ts +0 -1
- package/dist/extensions/athenahealth/actions/cancelAppointment/index.js +0 -6
- package/dist/extensions/athenahealth/actions/cancelAppointment/index.js.map +0 -1
- /package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart → createAppointmentNote}/config/datapoints.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart → createAppointmentNote}/config/datapoints.js +0 -0
- /package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart → createAppointmentNote}/config/index.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart → createAppointmentNote}/config/index.js +0 -0
- /package/dist/extensions/athenahealth/actions/{addDocumentToPatientChart/addDocumentToPatientChart.test.d.ts → createAppointmentNote/createAppointmentNote.test.d.ts} +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createPatient}/config/index.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createPatient}/config/index.js +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart/addProblemToPatientChart.test.d.ts → createPatient/createPatient.test.d.ts} +0 -0
- /package/dist/extensions/athenahealth/{actions/cancelAppointment/cancelAppointment.test.d.ts → api/schema/schema.test.d.ts} +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export { addDocumentToPatientChart } from './addDocumentToPatientChart';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addDocumentToPatientChart = void 0;
|
4
|
-
var addDocumentToPatientChart_1 = require("./addDocumentToPatientChart");
|
5
|
-
Object.defineProperty(exports, "addDocumentToPatientChart", { enumerable: true, get: function () { return addDocumentToPatientChart_1.addDocumentToPatientChart; } });
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/addDocumentToPatientChart/index.ts"],"names":[],"mappings":";;;AAAA,yEAAuE;AAA9D,sIAAA,yBAAyB,OAAA"}
|
package/dist/extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addProblemToPatientChart = void 0;
|
4
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
-
const config_1 = require("./config");
|
6
|
-
const helpers_1 = require("../../helpers");
|
7
|
-
exports.addProblemToPatientChart = {
|
8
|
-
key: 'addProblemToPatientChart',
|
9
|
-
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
10
|
-
title: 'Add problem to patient chart',
|
11
|
-
description: "Records a problem in the patient's active problem list",
|
12
|
-
fields: config_1.fields,
|
13
|
-
previewable: false,
|
14
|
-
dataPoints: config_1.dataPoints,
|
15
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
16
|
-
const { fields: input, client } = await (0, helpers_1.validatePayloadAndCreateClient)({
|
17
|
-
fieldsSchema: config_1.FieldsValidationSchema,
|
18
|
-
payload,
|
19
|
-
});
|
20
|
-
console.log(input, client);
|
21
|
-
await onComplete();
|
22
|
-
},
|
23
|
-
};
|
24
|
-
//# sourceMappingURL=addProblemToPatientChart.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"addProblemToPatientChart.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAAqE;AACrE,2CAA8D;AAEjD,QAAA,wBAAwB,GAIjC;IACF,GAAG,EAAE,0BAA0B;IAC/B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,wCAA8B,EAAC;YACrE,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAE1B,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const tests_1 = require("../../../../src/tests");
|
5
|
-
describe('Athena - Cancel appointment', () => {
|
6
|
-
const settings = {
|
7
|
-
client_id: 'hello',
|
8
|
-
client_secret: 'world',
|
9
|
-
auth_url: 'https://api.preview.platform.athenahealth.com/oauth2/v1/token',
|
10
|
-
api_url: 'https://api.preview.platform.athenahealth.com',
|
11
|
-
scope: 'athena/service/Athenanet.MDP.* system/Observation.read system/Patient.read',
|
12
|
-
};
|
13
|
-
const onComplete = jest.fn();
|
14
|
-
const onError = jest.fn();
|
15
|
-
test('Should return an appointment', async () => {
|
16
|
-
const mockOnActivityCreateParams = (0, tests_1.generateTestPayload)({
|
17
|
-
fields: {
|
18
|
-
patientId: '1',
|
19
|
-
practiceId: '1',
|
20
|
-
note: 'Hello world',
|
21
|
-
onsetDate: '2024-01-01',
|
22
|
-
},
|
23
|
-
settings,
|
24
|
-
});
|
25
|
-
await _1.addProblemToPatientChart.onActivityCreated(mockOnActivityCreateParams, onComplete, onError);
|
26
|
-
expect(onComplete).toHaveBeenCalled();
|
27
|
-
});
|
28
|
-
});
|
29
|
-
//# sourceMappingURL=addProblemToPatientChart.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"addProblemToPatientChart.test.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/addProblemToPatientChart/addProblemToPatientChart.test.ts"],"names":[],"mappings":";;AAAA,wBAA4C;AAC5C,iDAA2D;AAE3D,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,MAAM,QAAQ,GAAG;QACf,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,OAAO;QACtB,QAAQ,EAAE,+DAA+D;QACzE,OAAO,EAAE,+CAA+C;QACxD,KAAK,EACH,4EAA4E;KAC/E,CAAA;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,IAAI,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,0BAA0B,GAAG,IAAA,2BAAmB,EAAC;YACrD,MAAM,EAAE;gBACN,SAAS,EAAE,GAAG;gBACd,UAAU,EAAE,GAAG;gBACf,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,YAAY;aACxB;YACD,QAAQ;SACT,CAAC,CAAA;QAEF,MAAM,2BAAwB,CAAC,iBAAiB,CAC9C,0BAA0B,EAC1B,UAAU,EACV,OAAO,CACR,CAAA;QAED,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const dataPoints: {};
|
package/dist/extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/addProblemToPatientChart/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,EAAgD,CAAA"}
|
@@ -1,48 +0,0 @@
|
|
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
|
-
practiceId: {
|
12
|
-
id: string;
|
13
|
-
label: string;
|
14
|
-
description: string;
|
15
|
-
type: FieldType.STRING;
|
16
|
-
required: true;
|
17
|
-
};
|
18
|
-
note: {
|
19
|
-
id: string;
|
20
|
-
label: string;
|
21
|
-
description: string;
|
22
|
-
type: FieldType.TEXT;
|
23
|
-
required: true;
|
24
|
-
};
|
25
|
-
onsetDate: {
|
26
|
-
id: string;
|
27
|
-
label: string;
|
28
|
-
description: string;
|
29
|
-
type: FieldType.DATE;
|
30
|
-
required: true;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
export declare const FieldsValidationSchema: z.ZodObject<{
|
34
|
-
patientId: z.ZodString;
|
35
|
-
practiceId: z.ZodString;
|
36
|
-
note: z.ZodString;
|
37
|
-
onsetDate: z.ZodEffects<z.ZodDate, string, Date>;
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
39
|
-
note: string;
|
40
|
-
patientId: string;
|
41
|
-
practiceId: string;
|
42
|
-
onsetDate: string;
|
43
|
-
}, {
|
44
|
-
note: string;
|
45
|
-
patientId: string;
|
46
|
-
practiceId: string;
|
47
|
-
onsetDate: Date;
|
48
|
-
}>;
|
@@ -1,45 +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.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: '',
|
14
|
-
type: extensions_core_1.FieldType.STRING,
|
15
|
-
required: true,
|
16
|
-
},
|
17
|
-
practiceId: {
|
18
|
-
id: 'practiceId',
|
19
|
-
label: 'Practice ID',
|
20
|
-
description: '',
|
21
|
-
type: extensions_core_1.FieldType.STRING,
|
22
|
-
required: true,
|
23
|
-
},
|
24
|
-
note: {
|
25
|
-
id: 'note',
|
26
|
-
label: 'Note',
|
27
|
-
description: 'The note to be attached to this problem',
|
28
|
-
type: extensions_core_1.FieldType.TEXT,
|
29
|
-
required: true,
|
30
|
-
},
|
31
|
-
onsetDate: {
|
32
|
-
id: 'onsetDate',
|
33
|
-
label: 'Onset date',
|
34
|
-
description: 'The onset date to be updated for this problem',
|
35
|
-
type: extensions_core_1.FieldType.DATE,
|
36
|
-
required: true,
|
37
|
-
},
|
38
|
-
};
|
39
|
-
exports.FieldsValidationSchema = zod_1.default.object({
|
40
|
-
patientId: zod_1.default.string(),
|
41
|
-
practiceId: zod_1.default.string(),
|
42
|
-
note: zod_1.default.string(),
|
43
|
-
onsetDate: extensions_core_1.DateOnlySchema,
|
44
|
-
});
|
45
|
-
//# sourceMappingURL=fields.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/addProblemToPatientChart/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,gCAAc;CACwB,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/addProblemToPatientChart/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { addProblemToPatientChart } from './addProblemToPatientChart';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addProblemToPatientChart = void 0;
|
4
|
-
var addProblemToPatientChart_1 = require("./addProblemToPatientChart");
|
5
|
-
Object.defineProperty(exports, "addProblemToPatientChart", { enumerable: true, get: function () { return addProblemToPatientChart_1.addProblemToPatientChart; } });
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/addProblemToPatientChart/index.ts"],"names":[],"mappings":";;;AAAA,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.cancelAppointment = void 0;
|
4
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
-
const config_1 = require("./config");
|
6
|
-
const helpers_1 = require("../../helpers");
|
7
|
-
exports.cancelAppointment = {
|
8
|
-
key: 'cancelAppointment',
|
9
|
-
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
10
|
-
title: 'Cancel appointment',
|
11
|
-
description: 'Cancel an appointment',
|
12
|
-
fields: config_1.fields,
|
13
|
-
previewable: false,
|
14
|
-
dataPoints: config_1.dataPoints,
|
15
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
16
|
-
const { fields: input, client } = await (0, helpers_1.validatePayloadAndCreateClient)({
|
17
|
-
fieldsSchema: config_1.FieldsValidationSchema,
|
18
|
-
payload,
|
19
|
-
});
|
20
|
-
console.log(input, client);
|
21
|
-
await onComplete();
|
22
|
-
},
|
23
|
-
};
|
24
|
-
//# sourceMappingURL=cancelAppointment.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cancelAppointment.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/cancelAppointment/cancelAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAAqE;AACrE,2CAA8D;AAEjD,QAAA,iBAAiB,GAI1B;IACF,GAAG,EAAE,mBAAmB;IACxB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,wCAA8B,EAAC;YACrE,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAE1B,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const _1 = require(".");
|
4
|
-
const tests_1 = require("../../../../src/tests");
|
5
|
-
describe('Athena - Cancel appointment', () => {
|
6
|
-
const settings = {
|
7
|
-
client_id: 'hello',
|
8
|
-
client_secret: 'world',
|
9
|
-
auth_url: 'https://api.preview.platform.athenahealth.com/oauth2/v1/token',
|
10
|
-
api_url: 'https://api.preview.platform.athenahealth.com',
|
11
|
-
scope: 'athena/service/Athenanet.MDP.* system/Observation.read system/Patient.read',
|
12
|
-
};
|
13
|
-
const onComplete = jest.fn();
|
14
|
-
const onError = jest.fn();
|
15
|
-
test('Should return an appointment', async () => {
|
16
|
-
const mockOnActivityCreateParams = (0, tests_1.generateTestPayload)({
|
17
|
-
fields: {
|
18
|
-
appointmentId: '1',
|
19
|
-
practiceId: '1',
|
20
|
-
},
|
21
|
-
settings,
|
22
|
-
});
|
23
|
-
await _1.cancelAppointment.onActivityCreated(mockOnActivityCreateParams, onComplete, onError);
|
24
|
-
expect(onComplete).toHaveBeenCalled();
|
25
|
-
});
|
26
|
-
});
|
27
|
-
//# sourceMappingURL=cancelAppointment.test.js.map
|
package/dist/extensions/athenahealth/actions/cancelAppointment/cancelAppointment.test.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cancelAppointment.test.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/cancelAppointment/cancelAppointment.test.ts"],"names":[],"mappings":";;AAAA,wBAAqC;AACrC,iDAA2D;AAE3D,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,MAAM,QAAQ,GAAG;QACf,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,OAAO;QACtB,QAAQ,EAAE,+DAA+D;QACzE,OAAO,EAAE,+CAA+C;QACxD,KAAK,EACH,4EAA4E;KAC/E,CAAA;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,IAAI,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,0BAA0B,GAAG,IAAA,2BAAmB,EAAC;YACrD,MAAM,EAAE;gBACN,aAAa,EAAE,GAAG;gBAClB,UAAU,EAAE,GAAG;aAChB;YACD,QAAQ;SACT,CAAC,CAAA;QAEF,MAAM,oBAAiB,CAAC,iBAAiB,CACvC,0BAA0B,EAC1B,UAAU,EACV,OAAO,CACR,CAAA;QAED,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const dataPoints: {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/cancelAppointment/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,EAAgD,CAAA"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { FieldType } from '@awell-health/extensions-core';
|
2
|
-
import z from 'zod';
|
3
|
-
export declare const fields: {
|
4
|
-
appointmentId: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
description: string;
|
8
|
-
type: FieldType.STRING;
|
9
|
-
required: true;
|
10
|
-
};
|
11
|
-
practiceId: {
|
12
|
-
id: string;
|
13
|
-
label: string;
|
14
|
-
description: string;
|
15
|
-
type: FieldType.STRING;
|
16
|
-
required: true;
|
17
|
-
};
|
18
|
-
};
|
19
|
-
export declare const FieldsValidationSchema: z.ZodObject<{
|
20
|
-
appointmentId: z.ZodString;
|
21
|
-
practiceId: z.ZodString;
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
23
|
-
appointmentId: string;
|
24
|
-
practiceId: string;
|
25
|
-
}, {
|
26
|
-
appointmentId: string;
|
27
|
-
practiceId: string;
|
28
|
-
}>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/cancelAppointment/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;CAC2B,CAAC,CAAA"}
|
@@ -1,9 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/athenahealth/actions/cancelAppointment/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { cancelAppointment } from './cancelAppointment';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.cancelAppointment = void 0;
|
4
|
-
var cancelAppointment_1 = require("./cancelAppointment");
|
5
|
-
Object.defineProperty(exports, "cancelAppointment", { enumerable: true, get: function () { return cancelAppointment_1.cancelAppointment; } });
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/actions/cancelAppointment/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|