@metriport/shared 0.20.0 → 0.20.1-alpha.0
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/common/string.d.ts +1 -0
- package/dist/common/string.d.ts.map +1 -1
- package/dist/common/string.js +5 -1
- package/dist/common/string.js.map +1 -1
- package/dist/domain/address/__tests__/country.test.d.ts +2 -0
- package/dist/domain/address/__tests__/country.test.d.ts.map +1 -0
- package/dist/domain/address/__tests__/country.test.js +51 -0
- package/dist/domain/address/__tests__/country.test.js.map +1 -0
- package/dist/domain/address/country.d.ts +4 -0
- package/dist/domain/address/country.d.ts.map +1 -0
- package/dist/domain/address/country.js +31 -0
- package/dist/domain/address/country.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/external/athenahealth/index.d.ts +1 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -1
- package/dist/interface/external/athenahealth/index.js +1 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -1
- package/dist/interface/external/athenahealth/patient.d.ts +41 -388
- package/dist/interface/external/athenahealth/patient.d.ts.map +1 -1
- package/dist/interface/external/athenahealth/patient.js +11 -30
- package/dist/interface/external/athenahealth/patient.js.map +1 -1
- package/dist/interface/external/canvas/appointment.d.ts +132 -48
- package/dist/interface/external/canvas/appointment.d.ts.map +1 -1
- package/dist/interface/external/canvas/appointment.js +16 -8
- package/dist/interface/external/canvas/appointment.js.map +1 -1
- package/dist/interface/external/canvas/jwt-token.d.ts +14 -0
- package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -1
- package/dist/interface/external/canvas/jwt-token.js +6 -1
- package/dist/interface/external/canvas/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/appointment.d.ts +79 -0
- package/dist/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/appointment.js +20 -0
- package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +13 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.js +9 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/department.d.ts +28 -0
- package/dist/interface/external/ehr/athenahealth/department.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/department.js +11 -0
- package/dist/interface/external/ehr/athenahealth/department.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/index.d.ts +10 -0
- package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/index.js +26 -0
- package/dist/interface/external/ehr/athenahealth/index.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts +46 -0
- package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/jwt-token.js +26 -0
- package/dist/interface/external/ehr/athenahealth/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/medication.d.ts +50 -0
- package/dist/interface/external/ehr/athenahealth/medication.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/medication.js +19 -0
- package/dist/interface/external/ehr/athenahealth/medication.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/patient.d.ts +44 -0
- package/dist/interface/external/ehr/athenahealth/patient.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/patient.js +15 -0
- package/dist/interface/external/ehr/athenahealth/patient.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/problem.d.ts +27 -0
- package/dist/interface/external/ehr/athenahealth/problem.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/problem.js +14 -0
- package/dist/interface/external/ehr/athenahealth/problem.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/subscription.d.ts +20 -0
- package/dist/interface/external/ehr/athenahealth/subscription.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/subscription.js +11 -0
- package/dist/interface/external/ehr/athenahealth/subscription.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/vitals.d.ts +82 -0
- package/dist/interface/external/ehr/athenahealth/vitals.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/vitals.js +15 -0
- package/dist/interface/external/ehr/athenahealth/vitals.js.map +1 -0
- package/dist/interface/external/ehr/canvas/appointment.d.ts +152 -0
- package/dist/interface/external/ehr/canvas/appointment.d.ts.map +1 -0
- package/dist/interface/external/ehr/canvas/appointment.js +23 -0
- package/dist/interface/external/ehr/canvas/appointment.js.map +1 -0
- package/dist/interface/external/ehr/canvas/index.d.ts +3 -0
- package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/canvas/index.js +19 -0
- package/dist/interface/external/ehr/canvas/index.js.map +1 -0
- package/dist/interface/external/ehr/canvas/jwt-token.d.ts +58 -0
- package/dist/interface/external/ehr/canvas/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/canvas/jwt-token.js +31 -0
- package/dist/interface/external/ehr/canvas/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/elation/appointment.d.ts +68 -0
- package/dist/interface/external/ehr/elation/appointment.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/appointment.js +15 -0
- package/dist/interface/external/ehr/elation/appointment.js.map +1 -0
- package/dist/interface/external/ehr/elation/index.d.ts +4 -0
- package/dist/interface/external/ehr/elation/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/index.js +20 -0
- package/dist/interface/external/ehr/elation/index.js.map +1 -0
- package/dist/interface/external/ehr/elation/jwt-token.d.ts +45 -0
- package/dist/interface/external/ehr/elation/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/jwt-token.js +26 -0
- package/dist/interface/external/ehr/elation/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/elation/patient.d.ts +96 -0
- package/dist/interface/external/ehr/elation/patient.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/patient.js +33 -0
- package/dist/interface/external/ehr/elation/patient.js.map +1 -0
- package/dist/interface/external/ehr/index.d.ts +3 -0
- package/dist/interface/external/ehr/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/index.js +19 -0
- package/dist/interface/external/ehr/index.js.map +1 -0
- package/dist/interface/external/ehr/patient.d.ts +250 -0
- package/dist/interface/external/ehr/patient.d.ts.map +1 -0
- package/dist/interface/external/ehr/patient.js +35 -0
- package/dist/interface/external/ehr/patient.js.map +1 -0
- package/dist/interface/external/ehr/source.d.ts +13 -0
- package/dist/interface/external/ehr/source.d.ts.map +1 -0
- package/dist/interface/external/ehr/source.js +25 -0
- package/dist/interface/external/ehr/source.js.map +1 -0
- package/dist/interface/external/elation/jwt-token.d.ts +14 -0
- package/dist/interface/external/elation/jwt-token.d.ts.map +1 -1
- package/dist/interface/external/elation/jwt-token.js +6 -1
- package/dist/interface/external/elation/jwt-token.js.map +1 -1
- package/dist/interface/external/index.d.ts +2 -0
- package/dist/interface/external/index.d.ts.map +1 -0
- package/dist/interface/external/index.js +18 -0
- package/dist/interface/external/index.js.map +1 -0
- package/dist/interface/external/shared/ehr/patient.d.ts +12 -12
- package/dist/interface/index.d.ts +1 -0
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/index.js +1 -0
- package/dist/interface/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/domain/address/__tests__/normalize-zip.test.d.ts +0 -2
- package/dist/domain/address/__tests__/normalize-zip.test.d.ts.map +0 -1
- package/dist/domain/address/__tests__/normalize-zip.test.js +0 -83
- package/dist/domain/address/__tests__/normalize-zip.test.js.map +0 -1
- package/dist/interface/external/elation/subscription.d.ts +0 -2
- package/dist/interface/external/elation/subscription.d.ts.map +0 -1
- package/dist/interface/external/elation/subscription.js +0 -3
- package/dist/interface/external/elation/subscription.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
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.athenaClientJwtTokenResponseSchema = exports.athenaClientJwtTokenDataSchema = exports.athenaClientSource = exports.athenaDashJwtTokenDataSchema = exports.athenaDashSource = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const source_1 = require("../source");
|
|
9
|
+
exports.athenaDashSource = source_1.EhrSources.athena;
|
|
10
|
+
exports.athenaDashJwtTokenDataSchema = zod_1.default.object({
|
|
11
|
+
ah_practice: zod_1.default.string(),
|
|
12
|
+
ah_department: zod_1.default.string(),
|
|
13
|
+
source: zod_1.default.literal(`${exports.athenaDashSource}`),
|
|
14
|
+
});
|
|
15
|
+
exports.athenaClientSource = `${source_1.EhrSources.athena}${source_1.clientSourceSuffix}`;
|
|
16
|
+
exports.athenaClientJwtTokenDataSchema = zod_1.default.object({
|
|
17
|
+
practiceId: zod_1.default.string(),
|
|
18
|
+
cxId: zod_1.default.string(),
|
|
19
|
+
source: zod_1.default.literal(`${exports.athenaClientSource}`),
|
|
20
|
+
});
|
|
21
|
+
exports.athenaClientJwtTokenResponseSchema = zod_1.default.object({
|
|
22
|
+
scope: zod_1.default.string(),
|
|
23
|
+
access_token: zod_1.default.string(),
|
|
24
|
+
expires_in: zod_1.default.coerce.string(),
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=jwt-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAA2D;AAE9C,QAAA,gBAAgB,GAAG,mBAAU,CAAC,MAAe,CAAC;AAC9C,QAAA,4BAA4B,GAAG,aAAC,CAAC,MAAM,CAAC;IACnD,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,wBAAgB,EAAE,CAAC;CACzC,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,GAAG,mBAAU,CAAC,MAAM,GAAG,2BAAkB,EAAW,CAAC;AAC1E,QAAA,8BAA8B,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,0BAAkB,EAAE,CAAC;CAC3C,CAAC,CAAC;AAGU,QAAA,kCAAkC,GAAG,aAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const createdMedicationSchema: z.ZodObject<{
|
|
3
|
+
success: z.ZodBoolean;
|
|
4
|
+
errormessage: z.ZodOptional<z.ZodString>;
|
|
5
|
+
medicationentryid: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
success: boolean;
|
|
8
|
+
errormessage?: string | undefined;
|
|
9
|
+
medicationentryid?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
success: boolean;
|
|
12
|
+
errormessage?: string | undefined;
|
|
13
|
+
medicationentryid?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type CreatedMedication = z.infer<typeof createdMedicationSchema>;
|
|
16
|
+
export declare const createdMedicationSuccessSchema: z.ZodObject<{
|
|
17
|
+
success: z.ZodLiteral<true>;
|
|
18
|
+
medicationentryid: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
success: true;
|
|
21
|
+
medicationentryid: string;
|
|
22
|
+
}, {
|
|
23
|
+
success: true;
|
|
24
|
+
medicationentryid: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type CreatedMedicationSuccess = z.infer<typeof createdMedicationSuccessSchema>;
|
|
27
|
+
declare const medicationReferenceSchema: z.ZodObject<{
|
|
28
|
+
medication: z.ZodString;
|
|
29
|
+
medicationid: z.ZodNumber;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
medication: string;
|
|
32
|
+
medicationid: number;
|
|
33
|
+
}, {
|
|
34
|
+
medication: string;
|
|
35
|
+
medicationid: number;
|
|
36
|
+
}>;
|
|
37
|
+
export type MedicationReference = z.infer<typeof medicationReferenceSchema>;
|
|
38
|
+
export declare const medicationReferencesSchema: z.ZodArray<z.ZodObject<{
|
|
39
|
+
medication: z.ZodString;
|
|
40
|
+
medicationid: z.ZodNumber;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
medication: string;
|
|
43
|
+
medicationid: number;
|
|
44
|
+
}, {
|
|
45
|
+
medication: string;
|
|
46
|
+
medicationid: number;
|
|
47
|
+
}>, "many">;
|
|
48
|
+
export type MedicationReferences = z.infer<typeof medicationReferencesSchema>;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=medication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/medication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,QAAA,MAAM,yBAAyB;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,eAAO,MAAM,0BAA0B;;;;;;;;;WAAoC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.medicationReferencesSchema = exports.createdMedicationSuccessSchema = exports.createdMedicationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.createdMedicationSchema = zod_1.z.object({
|
|
6
|
+
success: zod_1.z.boolean(),
|
|
7
|
+
errormessage: zod_1.z.string().optional(),
|
|
8
|
+
medicationentryid: zod_1.z.coerce.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.createdMedicationSuccessSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.literal(true),
|
|
12
|
+
medicationentryid: zod_1.z.coerce.string(),
|
|
13
|
+
});
|
|
14
|
+
const medicationReferenceSchema = zod_1.z.object({
|
|
15
|
+
medication: zod_1.z.string(),
|
|
16
|
+
medicationid: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
exports.medicationReferencesSchema = medicationReferenceSchema.array();
|
|
19
|
+
//# sourceMappingURL=medication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/medication.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,yBAAyB,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientCustomFieldSchema: z.ZodObject<{
|
|
3
|
+
customfieldid: z.ZodString;
|
|
4
|
+
customfieldvalue: z.ZodString;
|
|
5
|
+
optionid: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
customfieldid: string;
|
|
8
|
+
customfieldvalue: string;
|
|
9
|
+
optionid?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
customfieldid: string;
|
|
12
|
+
customfieldvalue: string;
|
|
13
|
+
optionid?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type PatientCustomField = z.infer<typeof patientCustomFieldSchema>;
|
|
16
|
+
export declare const patientsCustomFieldsSchema: z.ZodArray<z.ZodObject<{
|
|
17
|
+
customfields: z.ZodArray<z.ZodObject<{
|
|
18
|
+
customfieldid: z.ZodString;
|
|
19
|
+
customfieldvalue: z.ZodString;
|
|
20
|
+
optionid: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
customfieldid: string;
|
|
23
|
+
customfieldvalue: string;
|
|
24
|
+
optionid?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
customfieldid: string;
|
|
27
|
+
customfieldvalue: string;
|
|
28
|
+
optionid?: string | undefined;
|
|
29
|
+
}>, "many">;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
customfields: {
|
|
32
|
+
customfieldid: string;
|
|
33
|
+
customfieldvalue: string;
|
|
34
|
+
optionid?: string | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
}, {
|
|
37
|
+
customfields: {
|
|
38
|
+
customfieldid: string;
|
|
39
|
+
customfieldvalue: string;
|
|
40
|
+
optionid?: string | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
}>, "many">;
|
|
43
|
+
export type PatientsCustomFields = z.infer<typeof patientsCustomFieldsSchema>;
|
|
44
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;WAI7B,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientsCustomFieldsSchema = exports.patientCustomFieldSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.patientCustomFieldSchema = zod_1.z.object({
|
|
6
|
+
customfieldid: zod_1.z.string(),
|
|
7
|
+
customfieldvalue: zod_1.z.string(),
|
|
8
|
+
optionid: zod_1.z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.patientsCustomFieldsSchema = zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
customfields: exports.patientCustomFieldSchema.array(),
|
|
13
|
+
})
|
|
14
|
+
.array();
|
|
15
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,CAAC;IACN,YAAY,EAAE,gCAAwB,CAAC,KAAK,EAAE;CAC/C,CAAC;KACD,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const createdProblemSchema: z.ZodObject<{
|
|
3
|
+
success: z.ZodBoolean;
|
|
4
|
+
errormessage: z.ZodOptional<z.ZodString>;
|
|
5
|
+
problemid: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
success: boolean;
|
|
8
|
+
errormessage?: string | undefined;
|
|
9
|
+
problemid?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
success: boolean;
|
|
12
|
+
errormessage?: string | undefined;
|
|
13
|
+
problemid?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type CreatedProblem = z.infer<typeof createdProblemSchema>;
|
|
16
|
+
export declare const createdProblemSuccessSchema: z.ZodObject<{
|
|
17
|
+
success: z.ZodLiteral<true>;
|
|
18
|
+
problemid: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
success: true;
|
|
21
|
+
problemid: string;
|
|
22
|
+
}, {
|
|
23
|
+
success: true;
|
|
24
|
+
problemid: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type CreatedProblemSuccess = z.infer<typeof createdProblemSuccessSchema>;
|
|
27
|
+
//# sourceMappingURL=problem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"problem.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/problem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createdProblemSuccessSchema = exports.createdProblemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.createdProblemSchema = zod_1.z.object({
|
|
6
|
+
success: zod_1.z.boolean(),
|
|
7
|
+
errormessage: zod_1.z.string().optional(),
|
|
8
|
+
problemid: zod_1.z.coerce.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.createdProblemSuccessSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.literal(true),
|
|
12
|
+
problemid: zod_1.z.coerce.string(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=problem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"problem.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/problem.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export type FeedType = "appointments";
|
|
3
|
+
export type EventType = "ScheduleAppointment";
|
|
4
|
+
export declare const createdSubscriptionSchema: z.ZodObject<{
|
|
5
|
+
success: z.ZodBoolean;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
success: boolean;
|
|
8
|
+
}, {
|
|
9
|
+
success: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
export type CreatedSubscription = z.infer<typeof createdSubscriptionSchema>;
|
|
12
|
+
export declare const createdSubscriptionSuccessSchema: z.ZodObject<{
|
|
13
|
+
success: z.ZodLiteral<true>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
success: true;
|
|
16
|
+
}, {
|
|
17
|
+
success: true;
|
|
18
|
+
}>;
|
|
19
|
+
export type CreatedSubscriptionSuccess = z.infer<typeof createdSubscriptionSuccessSchema>;
|
|
20
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEtC,MAAM,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAE9C,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,eAAO,MAAM,gCAAgC;;;;;;EAE3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createdSubscriptionSuccessSchema = exports.createdSubscriptionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.createdSubscriptionSchema = zod_1.z.object({
|
|
6
|
+
success: zod_1.z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
exports.createdSubscriptionSuccessSchema = zod_1.z.object({
|
|
9
|
+
success: zod_1.z.literal(true),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/subscription.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const createdVitalsSchema: z.ZodObject<{
|
|
3
|
+
success: z.ZodBoolean;
|
|
4
|
+
errormessage: z.ZodOptional<z.ZodString>;
|
|
5
|
+
vitalids: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
vitalid: z.ZodString;
|
|
7
|
+
clinicalelementid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
vitalid: string;
|
|
10
|
+
clinicalelementid: string;
|
|
11
|
+
}, {
|
|
12
|
+
vitalid: string;
|
|
13
|
+
clinicalelementid: string;
|
|
14
|
+
}>, "many">>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
success: boolean;
|
|
17
|
+
errormessage?: string | undefined;
|
|
18
|
+
vitalids?: {
|
|
19
|
+
vitalid: string;
|
|
20
|
+
clinicalelementid: string;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
success: boolean;
|
|
24
|
+
errormessage?: string | undefined;
|
|
25
|
+
vitalids?: {
|
|
26
|
+
vitalid: string;
|
|
27
|
+
clinicalelementid: string;
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type CreatedVitals = z.infer<typeof createdVitalsSchema>;
|
|
31
|
+
export declare const createdVitalsSuccessSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
32
|
+
success: z.ZodBoolean;
|
|
33
|
+
errormessage: z.ZodOptional<z.ZodString>;
|
|
34
|
+
vitalids: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
vitalid: z.ZodString;
|
|
36
|
+
clinicalelementid: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
vitalid: string;
|
|
39
|
+
clinicalelementid: string;
|
|
40
|
+
}, {
|
|
41
|
+
vitalid: string;
|
|
42
|
+
clinicalelementid: string;
|
|
43
|
+
}>, "many">>;
|
|
44
|
+
}, {
|
|
45
|
+
success: z.ZodLiteral<true>;
|
|
46
|
+
vitalids: z.ZodArray<z.ZodObject<{
|
|
47
|
+
vitalid: z.ZodString;
|
|
48
|
+
clinicalelementid: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
vitalid: string;
|
|
51
|
+
clinicalelementid: string;
|
|
52
|
+
}, {
|
|
53
|
+
vitalid: string;
|
|
54
|
+
clinicalelementid: string;
|
|
55
|
+
}>, "many">;
|
|
56
|
+
}>, "strip", z.ZodTypeAny, {
|
|
57
|
+
success: true;
|
|
58
|
+
vitalids: {
|
|
59
|
+
vitalid: string;
|
|
60
|
+
clinicalelementid: string;
|
|
61
|
+
}[];
|
|
62
|
+
errormessage?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
success: true;
|
|
65
|
+
vitalids: {
|
|
66
|
+
vitalid: string;
|
|
67
|
+
clinicalelementid: string;
|
|
68
|
+
}[];
|
|
69
|
+
errormessage?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type CreatedVitalsSuccess = z.infer<typeof createdVitalsSuccessSchema>;
|
|
72
|
+
export type VitalsCreateParams = {
|
|
73
|
+
departmentid: string;
|
|
74
|
+
returnvitalids: boolean;
|
|
75
|
+
source: string;
|
|
76
|
+
vitals: {
|
|
77
|
+
[key: string]: string | undefined;
|
|
78
|
+
}[][];
|
|
79
|
+
THIRDPARTYUSERNAME: string | undefined;
|
|
80
|
+
PATIENTFACINGCALL: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=vitals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitals.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createdVitalsSuccessSchema = exports.createdVitalsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const vitalIdSchema = zod_1.z.object({ vitalid: zod_1.z.coerce.string(), clinicalelementid: zod_1.z.string() });
|
|
6
|
+
exports.createdVitalsSchema = zod_1.z.object({
|
|
7
|
+
success: zod_1.z.boolean(),
|
|
8
|
+
errormessage: zod_1.z.string().optional(),
|
|
9
|
+
vitalids: vitalIdSchema.array().optional(),
|
|
10
|
+
});
|
|
11
|
+
exports.createdVitalsSuccessSchema = exports.createdVitalsSchema.extend({
|
|
12
|
+
success: zod_1.z.literal(true),
|
|
13
|
+
vitalids: vitalIdSchema.array(),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=vitals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitals.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACnE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const slimBookedAppointmentSchema: z.ZodObject<{
|
|
3
|
+
patientId: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
patientId: string;
|
|
6
|
+
}, {
|
|
7
|
+
patientId: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type SlimBookedAppointment = z.infer<typeof slimBookedAppointmentSchema>;
|
|
10
|
+
export declare const bookedAppointmentSchema: z.ZodObject<{
|
|
11
|
+
resourceType: z.ZodLiteral<"Appointment">;
|
|
12
|
+
participant: z.ZodArray<z.ZodObject<{
|
|
13
|
+
actor: z.ZodObject<{
|
|
14
|
+
reference: z.ZodString;
|
|
15
|
+
type: z.ZodEnum<["Patient", "Practitioner"]>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: "Patient" | "Practitioner";
|
|
18
|
+
reference: string;
|
|
19
|
+
}, {
|
|
20
|
+
type: "Patient" | "Practitioner";
|
|
21
|
+
reference: string;
|
|
22
|
+
}>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
actor: {
|
|
25
|
+
type: "Patient" | "Practitioner";
|
|
26
|
+
reference: string;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
actor: {
|
|
30
|
+
type: "Patient" | "Practitioner";
|
|
31
|
+
reference: string;
|
|
32
|
+
};
|
|
33
|
+
}>, "many">;
|
|
34
|
+
status: z.ZodLiteral<"booked">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
status: "booked";
|
|
37
|
+
resourceType: "Appointment";
|
|
38
|
+
participant: {
|
|
39
|
+
actor: {
|
|
40
|
+
type: "Patient" | "Practitioner";
|
|
41
|
+
reference: string;
|
|
42
|
+
};
|
|
43
|
+
}[];
|
|
44
|
+
}, {
|
|
45
|
+
status: "booked";
|
|
46
|
+
resourceType: "Appointment";
|
|
47
|
+
participant: {
|
|
48
|
+
actor: {
|
|
49
|
+
type: "Patient" | "Practitioner";
|
|
50
|
+
reference: string;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
53
|
+
}>;
|
|
54
|
+
export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
|
|
55
|
+
export declare const bookedAppointmentsSchema: z.ZodObject<{
|
|
56
|
+
entry: z.ZodArray<z.ZodObject<{
|
|
57
|
+
resource: z.ZodObject<{
|
|
58
|
+
resourceType: z.ZodLiteral<"Appointment">;
|
|
59
|
+
participant: z.ZodArray<z.ZodObject<{
|
|
60
|
+
actor: z.ZodObject<{
|
|
61
|
+
reference: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<["Patient", "Practitioner"]>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "Patient" | "Practitioner";
|
|
65
|
+
reference: string;
|
|
66
|
+
}, {
|
|
67
|
+
type: "Patient" | "Practitioner";
|
|
68
|
+
reference: string;
|
|
69
|
+
}>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
actor: {
|
|
72
|
+
type: "Patient" | "Practitioner";
|
|
73
|
+
reference: string;
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
actor: {
|
|
77
|
+
type: "Patient" | "Practitioner";
|
|
78
|
+
reference: string;
|
|
79
|
+
};
|
|
80
|
+
}>, "many">;
|
|
81
|
+
status: z.ZodLiteral<"booked">;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
status: "booked";
|
|
84
|
+
resourceType: "Appointment";
|
|
85
|
+
participant: {
|
|
86
|
+
actor: {
|
|
87
|
+
type: "Patient" | "Practitioner";
|
|
88
|
+
reference: string;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
}, {
|
|
92
|
+
status: "booked";
|
|
93
|
+
resourceType: "Appointment";
|
|
94
|
+
participant: {
|
|
95
|
+
actor: {
|
|
96
|
+
type: "Patient" | "Practitioner";
|
|
97
|
+
reference: string;
|
|
98
|
+
};
|
|
99
|
+
}[];
|
|
100
|
+
}>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
resource: {
|
|
103
|
+
status: "booked";
|
|
104
|
+
resourceType: "Appointment";
|
|
105
|
+
participant: {
|
|
106
|
+
actor: {
|
|
107
|
+
type: "Patient" | "Practitioner";
|
|
108
|
+
reference: string;
|
|
109
|
+
};
|
|
110
|
+
}[];
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
resource: {
|
|
114
|
+
status: "booked";
|
|
115
|
+
resourceType: "Appointment";
|
|
116
|
+
participant: {
|
|
117
|
+
actor: {
|
|
118
|
+
type: "Patient" | "Practitioner";
|
|
119
|
+
reference: string;
|
|
120
|
+
};
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
}>, "many">;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
entry: {
|
|
126
|
+
resource: {
|
|
127
|
+
status: "booked";
|
|
128
|
+
resourceType: "Appointment";
|
|
129
|
+
participant: {
|
|
130
|
+
actor: {
|
|
131
|
+
type: "Patient" | "Practitioner";
|
|
132
|
+
reference: string;
|
|
133
|
+
};
|
|
134
|
+
}[];
|
|
135
|
+
};
|
|
136
|
+
}[];
|
|
137
|
+
}, {
|
|
138
|
+
entry: {
|
|
139
|
+
resource: {
|
|
140
|
+
status: "booked";
|
|
141
|
+
resourceType: "Appointment";
|
|
142
|
+
participant: {
|
|
143
|
+
actor: {
|
|
144
|
+
type: "Patient" | "Practitioner";
|
|
145
|
+
reference: string;
|
|
146
|
+
};
|
|
147
|
+
}[];
|
|
148
|
+
};
|
|
149
|
+
}[];
|
|
150
|
+
}>;
|
|
151
|
+
export type BookedAppointments = z.infer<typeof bookedAppointmentsSchema>;
|
|
152
|
+
//# sourceMappingURL=appointment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bookedAppointmentsSchema = exports.bookedAppointmentSchema = exports.slimBookedAppointmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.slimBookedAppointmentSchema = zod_1.z.object({
|
|
6
|
+
patientId: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.bookedAppointmentSchema = zod_1.z.object({
|
|
9
|
+
resourceType: zod_1.z.literal("Appointment"),
|
|
10
|
+
participant: zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
actor: zod_1.z.object({
|
|
13
|
+
reference: zod_1.z.string(),
|
|
14
|
+
type: zod_1.z.enum(["Patient", "Practitioner"]),
|
|
15
|
+
}),
|
|
16
|
+
})
|
|
17
|
+
.array(),
|
|
18
|
+
status: zod_1.z.literal("booked"),
|
|
19
|
+
});
|
|
20
|
+
exports.bookedAppointmentsSchema = zod_1.z.object({
|
|
21
|
+
entry: zod_1.z.object({ resource: exports.bookedAppointmentSchema }).array(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=appointment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,WAAW,EAAE,OAAC;SACX,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;SAC1C,CAAC;KACH,CAAC;SACD,KAAK,EAAE;IACV,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,+BAAuB,EAAE,CAAC,CAAC,KAAK,EAAE;CAC/D,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./jwt-token"), exports);
|
|
18
|
+
__exportStar(require("./appointment"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { EhrSources } from "../source";
|
|
3
|
+
export declare const canvasDashSource: EhrSources.canvas;
|
|
4
|
+
export declare const canvasDashJwtTokenDataSchema: z.ZodObject<{
|
|
5
|
+
practiceId: z.ZodString;
|
|
6
|
+
source: z.ZodLiteral<"canvas">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
source: "canvas";
|
|
9
|
+
practiceId: string;
|
|
10
|
+
}, {
|
|
11
|
+
source: "canvas";
|
|
12
|
+
practiceId: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type CanvasDashJwtTokenData = z.infer<typeof canvasDashJwtTokenDataSchema>;
|
|
15
|
+
export declare const canvasClientSource: "canvas-client";
|
|
16
|
+
export declare const canvasClientJwtTokenDataSchema: z.ZodObject<{
|
|
17
|
+
practiceId: z.ZodString;
|
|
18
|
+
cxId: z.ZodString;
|
|
19
|
+
source: z.ZodLiteral<"canvas-client">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
cxId: string;
|
|
22
|
+
source: "canvas-client";
|
|
23
|
+
practiceId: string;
|
|
24
|
+
}, {
|
|
25
|
+
cxId: string;
|
|
26
|
+
source: "canvas-client";
|
|
27
|
+
practiceId: string;
|
|
28
|
+
}>;
|
|
29
|
+
export type CanvasClientJwtTokenData = z.infer<typeof canvasClientJwtTokenDataSchema>;
|
|
30
|
+
export declare const canvasWebhookSource: "canvas-webhook";
|
|
31
|
+
export declare const canvasWebhookJwtTokenDataSchema: z.ZodObject<{
|
|
32
|
+
practiceId: z.ZodString;
|
|
33
|
+
cxId: z.ZodString;
|
|
34
|
+
source: z.ZodLiteral<"canvas-webhook">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
cxId: string;
|
|
37
|
+
source: "canvas-webhook";
|
|
38
|
+
practiceId: string;
|
|
39
|
+
}, {
|
|
40
|
+
cxId: string;
|
|
41
|
+
source: "canvas-webhook";
|
|
42
|
+
practiceId: string;
|
|
43
|
+
}>;
|
|
44
|
+
export type CanvasWebhookJwtTokenData = z.infer<typeof canvasWebhookJwtTokenDataSchema>;
|
|
45
|
+
export declare const canvasClientJwtTokenResponseSchema: z.ZodObject<{
|
|
46
|
+
scope: z.ZodString;
|
|
47
|
+
access_token: z.ZodString;
|
|
48
|
+
expires_in: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
scope: string;
|
|
51
|
+
access_token: string;
|
|
52
|
+
expires_in: string;
|
|
53
|
+
}, {
|
|
54
|
+
scope: string;
|
|
55
|
+
access_token: string;
|
|
56
|
+
expires_in: string;
|
|
57
|
+
}>;
|
|
58
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|