@awell-health/awell-extensions 1.0.214 → 1.0.215
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/{addProblemToPatientChart → createAppointmentNote}/config/fields.d.ts +19 -18
- package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createAppointmentNote}/config/fields.js +20 -20
- 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/{addProblemToPatientChart/addProblemToPatientChart.js → createAppointmentNote/createAppointmentNote.js} +12 -7
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createAppointmentNote/createAppointmentNote.test.js +51 -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/createPatient/config/fields.d.ts +69 -0
- package/dist/extensions/athenahealth/actions/createPatient/config/fields.js +62 -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/{cancelAppointment/cancelAppointment.js → createPatient/createPatient.js} +16 -8
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.js.map +1 -0
- package/dist/extensions/athenahealth/actions/createPatient/createPatient.test.js +33 -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 +9 -1
- package/dist/extensions/athenahealth/actions/getAppointment/config/datapoints.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.js +11 -6
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.test.js +40 -15
- package/dist/extensions/athenahealth/actions/getAppointment/getAppointment.test.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.js +8 -7
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.js.map +1 -1
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.test.js +38 -15
- package/dist/extensions/athenahealth/actions/getPatient/getPatient.test.js.map +1 -1
- package/dist/extensions/athenahealth/actions/index.d.ts +18 -70
- package/dist/extensions/athenahealth/actions/index.js +8 -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.d.ts +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/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/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.js.map +0 -1
- 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.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 +0 -29
- package/dist/extensions/athenahealth/actions/cancelAppointment/config/fields.js.map +0 -1
- 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/{addProblemToPatientChart → createAppointmentNote}/config/datapoints.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createAppointmentNote}/config/datapoints.js +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createAppointmentNote}/config/index.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart → createAppointmentNote}/config/index.js +0 -0
- /package/dist/extensions/athenahealth/actions/{addProblemToPatientChart/addProblemToPatientChart.test.d.ts → createAppointmentNote/createAppointmentNote.test.d.ts} +0 -0
- /package/dist/extensions/athenahealth/actions/{cancelAppointment → createPatient}/config/index.d.ts +0 -0
- /package/dist/extensions/athenahealth/actions/{cancelAppointment → createPatient}/config/index.js +0 -0
- /package/dist/extensions/athenahealth/actions/{cancelAppointment/cancelAppointment.test.d.ts → createPatient/createPatient.test.d.ts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/api/schema/index.ts"],"names":[],"mappings":";;;AAAA,6CAA6E;AAAxC,gHAAA,iBAAiB,OAAA;AACtD,+BAA2E;AAAlE,oHAAA,4BAA4B,OAAA;AAAE,4GAAA,oBAAoB,OAAA;AAC3D,qCAAiE;AAAhC,wGAAA,aAAa,OAAA"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export interface CreatePatientResponseType {
|
3
|
+
patientid: string;
|
4
|
+
}
|
5
|
+
export declare const PatientSchema: z.ZodObject<{
|
6
|
+
firstname: z.ZodString;
|
7
|
+
lastname: z.ZodString;
|
8
|
+
dob: z.ZodEffects<z.ZodString, string, string>;
|
9
|
+
email: z.ZodString;
|
10
|
+
departmentid: z.ZodString;
|
11
|
+
primarydepartmentid: z.ZodString;
|
12
|
+
patientid: z.ZodString;
|
13
|
+
registrationdate: z.ZodEffects<z.ZodString, string, string>;
|
14
|
+
lastupdated: z.ZodEffects<z.ZodString, string, string>;
|
15
|
+
driverslicense: z.ZodBoolean;
|
16
|
+
status: z.ZodString;
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
18
|
+
status: string;
|
19
|
+
email: string;
|
20
|
+
dob: string;
|
21
|
+
departmentid: string;
|
22
|
+
firstname: string;
|
23
|
+
lastname: string;
|
24
|
+
patientid: string;
|
25
|
+
primarydepartmentid: string;
|
26
|
+
registrationdate: string;
|
27
|
+
lastupdated: string;
|
28
|
+
driverslicense: boolean;
|
29
|
+
}, {
|
30
|
+
status: string;
|
31
|
+
email: string;
|
32
|
+
dob: string;
|
33
|
+
departmentid: string;
|
34
|
+
firstname: string;
|
35
|
+
lastname: string;
|
36
|
+
patientid: string;
|
37
|
+
primarydepartmentid: string;
|
38
|
+
registrationdate: string;
|
39
|
+
lastupdated: string;
|
40
|
+
driverslicense: boolean;
|
41
|
+
}>;
|
42
|
+
export type PatientSchemaType = z.infer<typeof PatientSchema>;
|
@@ -0,0 +1,22 @@
|
|
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.PatientSchema = void 0;
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
8
|
+
const date_1 = require("./date");
|
9
|
+
exports.PatientSchema = zod_1.default.object({
|
10
|
+
firstname: zod_1.default.string(),
|
11
|
+
lastname: zod_1.default.string(),
|
12
|
+
dob: date_1.AthenaDateOnlySchema,
|
13
|
+
email: zod_1.default.string(),
|
14
|
+
departmentid: zod_1.default.string(),
|
15
|
+
primarydepartmentid: zod_1.default.string(),
|
16
|
+
patientid: zod_1.default.string(),
|
17
|
+
registrationdate: date_1.AthenaDateOnlySchema,
|
18
|
+
lastupdated: date_1.AthenaDateOnlySchema,
|
19
|
+
driverslicense: zod_1.default.boolean(),
|
20
|
+
status: zod_1.default.string(),
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=patient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/api/schema/patient.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AACnB,iCAA6C;AAMhC,QAAA,aAAa,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,2BAAoB;IACzB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,mBAAmB,EAAE,aAAC,CAAC,MAAM,EAAE;IAC/B,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,2BAAoB;IACtC,WAAW,EAAE,2BAAoB;IACjC,cAAc,EAAE,aAAC,CAAC,OAAO,EAAE;IAC3B,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const zod_1 = require("zod");
|
4
|
+
const date_1 = require("./date");
|
5
|
+
describe('athenahealth schema tests', () => {
|
6
|
+
describe('From athenahealth date to ISO date', () => {
|
7
|
+
test('01/02/2024 (January 2, 2024) should be parsed to the correct ISO format', () => {
|
8
|
+
const date = date_1.AthenaDateOnlySchema.parse('01/02/2024');
|
9
|
+
expect(date).toBe('2024-01-02');
|
10
|
+
});
|
11
|
+
test('11/30/1993 (November 30, 1993) should be parsed to the correct ISO format', () => {
|
12
|
+
const date = date_1.AthenaDateOnlySchema.parse('11/30/1993');
|
13
|
+
expect(date).toBe('1993-11-30');
|
14
|
+
});
|
15
|
+
test('invalid date should throw an error', async () => {
|
16
|
+
expect(() => {
|
17
|
+
date_1.AthenaDateOnlySchema.parse('11/33/1993');
|
18
|
+
}).toThrow(zod_1.ZodError);
|
19
|
+
});
|
20
|
+
});
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=schema.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.test.js","sourceRoot":"","sources":["../../../../../extensions/athenahealth/api/schema/schema.test.ts"],"names":[],"mappings":";;AAAA,6BAA8B;AAC9B,iCAA6C;AAE7C,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,QAAQ,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAClD,IAAI,CAAC,yEAAyE,EAAE,GAAG,EAAE;YACnF,MAAM,IAAI,GAAG,2BAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YACrD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,2EAA2E,EAAE,GAAG,EAAE;YACrF,MAAM,IAAI,GAAG,2BAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YACrD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;YACpD,MAAM,CAAC,GAAG,EAAE;gBACV,2BAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YAC1C,CAAC,CAAC,CAAC,OAAO,CAAC,cAAQ,CAAC,CAAA;QACtB,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
/**
|
3
|
+
* Athena expects dates MM/dd/yyyy
|
4
|
+
*/
|
5
|
+
export declare const AwellToAthenaDateOnlySchema: z.ZodEffects<z.ZodString, string, string>;
|
6
|
+
export declare const AwellToAthenaDateOnlyOptionalSchema: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AwellToAthenaDateOnlyOptionalSchema = exports.AwellToAthenaDateOnlySchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const date_fns_1 = require("date-fns");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
/**
|
8
|
+
* Athena expects dates MM/dd/yyyy
|
9
|
+
*/
|
10
|
+
exports.AwellToAthenaDateOnlySchema = zod_1.z.string().transform((arg, ctx) => {
|
11
|
+
const date = new Date(arg);
|
12
|
+
if (!(0, date_fns_1.isValid)(date)) {
|
13
|
+
ctx.addIssue({
|
14
|
+
code: zod_1.z.ZodIssueCode.invalid_date,
|
15
|
+
message: 'No valid date',
|
16
|
+
});
|
17
|
+
return zod_1.z.NEVER;
|
18
|
+
}
|
19
|
+
return (0, date_fns_1.format)(date, 'MM/dd/yyyy');
|
20
|
+
});
|
21
|
+
exports.AwellToAthenaDateOnlyOptionalSchema = (0, extensions_core_1.makeStringOptional)(exports.AwellToAthenaDateOnlySchema);
|
22
|
+
//# sourceMappingURL=date.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../extensions/athenahealth/validation/date.ts"],"names":[],"mappings":";;;AAAA,mEAAkE;AAClE,uCAA0C;AAC1C,6BAAuB;AAEvB;;GAEG;AACU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3E,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAA;IAE1B,IAAI,CAAC,IAAA,kBAAO,EAAC,IAAI,CAAC,EAAE;QAClB,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,YAAY;YACjC,OAAO,EAAE,eAAe;SACzB,CAAC,CAAA;QACF,OAAO,OAAC,CAAC,KAAK,CAAA;KACf;IAED,OAAO,IAAA,iBAAM,EAAC,IAAI,EAAE,YAAY,CAAC,CAAA;AACnC,CAAC,CAAC,CAAA;AAEW,QAAA,mCAAmC,GAAG,IAAA,oCAAkB,EACnE,mCAA2B,CAC5B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const date_1 = require("./date");
|
4
|
+
describe('athenahealth action field validation', () => {
|
5
|
+
describe('From ISO8601 date to athenahealth date', () => {
|
6
|
+
test('1993-11-30 should be parsed to DD/mm/yyyy', () => {
|
7
|
+
const date = date_1.AwellToAthenaDateOnlySchema.parse('1993-11-30');
|
8
|
+
expect(date).toBe('11/30/1993');
|
9
|
+
});
|
10
|
+
});
|
11
|
+
});
|
12
|
+
//# sourceMappingURL=validation.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.test.js","sourceRoot":"","sources":["../../../../extensions/athenahealth/validation/validation.test.ts"],"names":[],"mappings":";;AAAA,iCAAoD;AAEpD,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;IACpD,QAAQ,CAAC,wCAAwC,EAAE,GAAG,EAAE;QACtD,IAAI,CAAC,2CAA2C,EAAE,GAAG,EAAE;YACrD,MAAM,IAAI,GAAG,kCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YAC5D,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"athenahealth": {
|
3
|
-
"readme": "---\ntitle: Athena\ndescription: Athena offers medical groups, hospitals, and health systems cloud-based EHR, practice management, and patient engagement services that seamlessly connect care and drive results for every client. \n---\n\
|
3
|
+
"readme": "---\ntitle: Athena\ndescription: Athena offers medical groups, hospitals, and health systems cloud-based EHR, practice management, and patient engagement services that seamlessly connect care and drive results for every client. \n---\n\n## Actions\n\n### Create patient\n\nCreates a patient in athenahealth. First name, last name, date of birth, email, and department ID are required. If a patient with the same name, date of birth, and email already exists, a new patient record will not be created. Instead, the existing patient's ID will be returned.\n\n### Get patient\n\nRetrieve the details of a given patient within a given practice.\n\n### Get appointment\n\nRetrieve the details of an appointment.",
|
4
4
|
"changelog": "# Athena changelog"
|
5
5
|
},
|
6
6
|
"avaAi": {
|
package/package.json
CHANGED
@@ -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.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 +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 +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,29 +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
|
-
appointmentId: {
|
11
|
-
id: 'appointmentId',
|
12
|
-
label: 'Appointment 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
|
-
};
|
25
|
-
exports.FieldsValidationSchema = zod_1.default.object({
|
26
|
-
appointmentId: zod_1.default.string(),
|
27
|
-
practiceId: zod_1.default.string(),
|
28
|
-
});
|
29
|
-
//# sourceMappingURL=fields.js.map
|
@@ -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 +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
|
/package/dist/extensions/athenahealth/actions/{cancelAppointment → createPatient}/config/index.d.ts
RENAMED
File without changes
|
/package/dist/extensions/athenahealth/actions/{cancelAppointment → createPatient}/config/index.js
RENAMED
File without changes
|