@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
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.patientsCustomFieldsSchema = exports.patientCustomFieldSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
const name = zod_1.z.object({
|
|
17
|
-
family: zod_1.z.string(),
|
|
18
|
-
given: zod_1.z.string().array(),
|
|
19
|
-
});
|
|
20
|
-
exports.patientSchema = zod_1.z.object({
|
|
21
|
-
gender: zod_1.z.string(),
|
|
22
|
-
name: name.array().optional(),
|
|
23
|
-
address: address.array().optional(),
|
|
24
|
-
birthDate: zod_1.z.string(),
|
|
25
|
-
telecom: telecome.array().optional(),
|
|
26
|
-
});
|
|
27
|
-
exports.patientSearchSchema = zod_1.z.object({
|
|
28
|
-
entry: zod_1.z
|
|
29
|
-
.object({
|
|
30
|
-
resource: exports.patientSchema,
|
|
31
|
-
})
|
|
32
|
-
.array(),
|
|
33
|
-
});
|
|
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();
|
|
34
15
|
//# sourceMappingURL=patient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../src/interface/external/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"}
|
|
@@ -1,68 +1,152 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const slimBookedAppointmentSchema: z.ZodObject<{
|
|
3
|
+
patientId: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
|
|
5
|
+
patientId: string;
|
|
6
6
|
}, {
|
|
7
|
-
|
|
7
|
+
patientId: string;
|
|
8
8
|
}>;
|
|
9
|
-
export type
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
}>;
|
|
14
23
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
|
|
24
|
+
actor: {
|
|
25
|
+
type: "Patient" | "Practitioner";
|
|
26
|
+
reference: string;
|
|
27
|
+
};
|
|
16
28
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
actor: {
|
|
30
|
+
type: "Patient" | "Practitioner";
|
|
31
|
+
reference: string;
|
|
32
|
+
};
|
|
33
|
+
}>, "many">;
|
|
34
|
+
status: z.ZodLiteral<"booked">;
|
|
19
35
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
status:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
36
|
+
status: "booked";
|
|
37
|
+
resourceType: "Appointment";
|
|
38
|
+
participant: {
|
|
39
|
+
actor: {
|
|
40
|
+
type: "Patient" | "Practitioner";
|
|
41
|
+
reference: string;
|
|
42
|
+
};
|
|
43
|
+
}[];
|
|
24
44
|
}, {
|
|
25
|
-
status:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
45
|
+
status: "booked";
|
|
46
|
+
resourceType: "Appointment";
|
|
47
|
+
participant: {
|
|
48
|
+
actor: {
|
|
49
|
+
type: "Patient" | "Practitioner";
|
|
50
|
+
reference: string;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
29
53
|
}>;
|
|
30
|
-
export type
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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">;
|
|
36
82
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
status:
|
|
83
|
+
status: "booked";
|
|
84
|
+
resourceType: "Appointment";
|
|
85
|
+
participant: {
|
|
86
|
+
actor: {
|
|
87
|
+
type: "Patient" | "Practitioner";
|
|
88
|
+
reference: string;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
38
91
|
}, {
|
|
39
|
-
status:
|
|
40
|
-
|
|
92
|
+
status: "booked";
|
|
93
|
+
resourceType: "Appointment";
|
|
94
|
+
participant: {
|
|
95
|
+
actor: {
|
|
96
|
+
type: "Patient" | "Practitioner";
|
|
97
|
+
reference: string;
|
|
98
|
+
};
|
|
99
|
+
}[];
|
|
100
|
+
}>;
|
|
41
101
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
|
|
43
|
-
status:
|
|
44
|
-
|
|
45
|
-
|
|
102
|
+
resource: {
|
|
103
|
+
status: "booked";
|
|
104
|
+
resourceType: "Appointment";
|
|
105
|
+
participant: {
|
|
106
|
+
actor: {
|
|
107
|
+
type: "Patient" | "Practitioner";
|
|
108
|
+
reference: string;
|
|
109
|
+
};
|
|
110
|
+
}[];
|
|
111
|
+
};
|
|
46
112
|
}, {
|
|
47
|
-
|
|
48
|
-
status:
|
|
49
|
-
|
|
50
|
-
|
|
113
|
+
resource: {
|
|
114
|
+
status: "booked";
|
|
115
|
+
resourceType: "Appointment";
|
|
116
|
+
participant: {
|
|
117
|
+
actor: {
|
|
118
|
+
type: "Patient" | "Practitioner";
|
|
119
|
+
reference: string;
|
|
120
|
+
};
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
51
123
|
}>, "many">;
|
|
52
124
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
status:
|
|
56
|
-
|
|
57
|
-
|
|
125
|
+
entry: {
|
|
126
|
+
resource: {
|
|
127
|
+
status: "booked";
|
|
128
|
+
resourceType: "Appointment";
|
|
129
|
+
participant: {
|
|
130
|
+
actor: {
|
|
131
|
+
type: "Patient" | "Practitioner";
|
|
132
|
+
reference: string;
|
|
133
|
+
};
|
|
134
|
+
}[];
|
|
135
|
+
};
|
|
58
136
|
}[];
|
|
59
137
|
}, {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
status:
|
|
63
|
-
|
|
64
|
-
|
|
138
|
+
entry: {
|
|
139
|
+
resource: {
|
|
140
|
+
status: "booked";
|
|
141
|
+
resourceType: "Appointment";
|
|
142
|
+
participant: {
|
|
143
|
+
actor: {
|
|
144
|
+
type: "Patient" | "Practitioner";
|
|
145
|
+
reference: string;
|
|
146
|
+
};
|
|
147
|
+
}[];
|
|
148
|
+
};
|
|
65
149
|
}[];
|
|
66
150
|
}>;
|
|
67
|
-
export type
|
|
151
|
+
export type BookedAppointments = z.infer<typeof bookedAppointmentsSchema>;
|
|
68
152
|
//# sourceMappingURL=appointment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/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"}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.bookedAppointmentsSchema = exports.bookedAppointmentSchema = exports.slimBookedAppointmentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
6
|
-
|
|
5
|
+
exports.slimBookedAppointmentSchema = zod_1.z.object({
|
|
6
|
+
patientId: zod_1.z.string(),
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
|
|
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"),
|
|
11
19
|
});
|
|
12
|
-
exports.
|
|
13
|
-
|
|
20
|
+
exports.bookedAppointmentsSchema = zod_1.z.object({
|
|
21
|
+
entry: zod_1.z.object({ resource: exports.bookedAppointmentSchema }).array(),
|
|
14
22
|
});
|
|
15
23
|
//# sourceMappingURL=appointment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../src/interface/external/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"}
|
|
@@ -15,6 +15,20 @@ export type CanvasClientJwtTokenData = {
|
|
|
15
15
|
cxId: string;
|
|
16
16
|
source: "canvas-client";
|
|
17
17
|
};
|
|
18
|
+
export declare const canvasWebhookJwtTokenDataSchema: z.ZodObject<{
|
|
19
|
+
practiceId: z.ZodString;
|
|
20
|
+
cxId: z.ZodString;
|
|
21
|
+
source: z.ZodLiteral<"canvas-webhook">;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
cxId: string;
|
|
24
|
+
source: "canvas-webhook";
|
|
25
|
+
practiceId: string;
|
|
26
|
+
}, {
|
|
27
|
+
cxId: string;
|
|
28
|
+
source: "canvas-webhook";
|
|
29
|
+
practiceId: string;
|
|
30
|
+
}>;
|
|
31
|
+
export type CanvasWebhookJwtTokenData = z.infer<typeof canvasWebhookJwtTokenDataSchema>;
|
|
18
32
|
export declare const canvasClientJwtTokenResponseSchema: z.ZodObject<{
|
|
19
33
|
scope: z.ZodString;
|
|
20
34
|
access_token: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAI1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
|
|
@@ -3,12 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.canvasClientJwtTokenResponseSchema = exports.canvasJwtTokenDataSchema = void 0;
|
|
6
|
+
exports.canvasClientJwtTokenResponseSchema = exports.canvasWebhookJwtTokenDataSchema = exports.canvasJwtTokenDataSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.canvasJwtTokenDataSchema = zod_1.default.object({
|
|
9
9
|
practiceId: zod_1.default.string(),
|
|
10
10
|
source: zod_1.default.literal("canvas"),
|
|
11
11
|
});
|
|
12
|
+
exports.canvasWebhookJwtTokenDataSchema = zod_1.default.object({
|
|
13
|
+
practiceId: zod_1.default.string(),
|
|
14
|
+
cxId: zod_1.default.string(),
|
|
15
|
+
source: zod_1.default.literal("canvas-webhook"),
|
|
16
|
+
});
|
|
12
17
|
exports.canvasClientJwtTokenResponseSchema = zod_1.default.object({
|
|
13
18
|
scope: zod_1.default.string(),
|
|
14
19
|
access_token: zod_1.default.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC,CAAC;AAUU,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"}
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC,CAAC;AAUU,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;CACpC,CAAC,CAAC;AAIU,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,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const bookedAppointmentSchema: z.ZodObject<{
|
|
3
|
+
patientid: z.ZodString;
|
|
4
|
+
appointmenttypeid: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
patientid: string;
|
|
7
|
+
appointmenttypeid: string;
|
|
8
|
+
}, {
|
|
9
|
+
patientid: string;
|
|
10
|
+
appointmenttypeid: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
|
|
13
|
+
export declare const bookedAppointmentsSchema: z.ZodObject<{
|
|
14
|
+
appointments: z.ZodArray<z.ZodObject<{
|
|
15
|
+
patientid: z.ZodString;
|
|
16
|
+
appointmenttypeid: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
patientid: string;
|
|
19
|
+
appointmenttypeid: string;
|
|
20
|
+
}, {
|
|
21
|
+
patientid: string;
|
|
22
|
+
appointmenttypeid: string;
|
|
23
|
+
}>, "many">;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
appointments: {
|
|
26
|
+
patientid: string;
|
|
27
|
+
appointmenttypeid: string;
|
|
28
|
+
}[];
|
|
29
|
+
}, {
|
|
30
|
+
appointments: {
|
|
31
|
+
patientid: string;
|
|
32
|
+
appointmenttypeid: string;
|
|
33
|
+
}[];
|
|
34
|
+
}>;
|
|
35
|
+
export type BookedAppointments = z.infer<typeof bookedAppointmentsSchema>;
|
|
36
|
+
declare const appointmentEventSchema: z.ZodObject<{
|
|
37
|
+
patientid: z.ZodOptional<z.ZodString>;
|
|
38
|
+
appointmentstatus: z.ZodString;
|
|
39
|
+
appointmenttypeid: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
appointmenttypeid: string;
|
|
42
|
+
appointmentstatus: string;
|
|
43
|
+
patientid?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
appointmenttypeid: string;
|
|
46
|
+
appointmentstatus: string;
|
|
47
|
+
patientid?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export type AppointmentEvent = z.infer<typeof appointmentEventSchema>;
|
|
50
|
+
export declare const appointmentEventsSchema: z.ZodObject<{
|
|
51
|
+
appointments: z.ZodArray<z.ZodObject<{
|
|
52
|
+
patientid: z.ZodOptional<z.ZodString>;
|
|
53
|
+
appointmentstatus: z.ZodString;
|
|
54
|
+
appointmenttypeid: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
appointmenttypeid: string;
|
|
57
|
+
appointmentstatus: string;
|
|
58
|
+
patientid?: string | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
appointmenttypeid: string;
|
|
61
|
+
appointmentstatus: string;
|
|
62
|
+
patientid?: string | undefined;
|
|
63
|
+
}>, "many">;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
appointments: {
|
|
66
|
+
appointmenttypeid: string;
|
|
67
|
+
appointmentstatus: string;
|
|
68
|
+
patientid?: string | undefined;
|
|
69
|
+
}[];
|
|
70
|
+
}, {
|
|
71
|
+
appointments: {
|
|
72
|
+
appointmenttypeid: string;
|
|
73
|
+
appointmentstatus: string;
|
|
74
|
+
patientid?: string | undefined;
|
|
75
|
+
}[];
|
|
76
|
+
}>;
|
|
77
|
+
export type AppointmentEvents = z.infer<typeof appointmentEventsSchema>;
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=appointment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,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;AAE1E,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appointmentEventsSchema = exports.bookedAppointmentsSchema = exports.bookedAppointmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bookedAppointmentSchema = zod_1.z.object({
|
|
6
|
+
patientid: zod_1.z.string(),
|
|
7
|
+
appointmenttypeid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports.bookedAppointmentsSchema = zod_1.z.object({
|
|
10
|
+
appointments: exports.bookedAppointmentSchema.array(),
|
|
11
|
+
});
|
|
12
|
+
const appointmentEventSchema = zod_1.z.object({
|
|
13
|
+
patientid: zod_1.z.string().optional(),
|
|
14
|
+
appointmentstatus: zod_1.z.string(),
|
|
15
|
+
appointmenttypeid: zod_1.z.string(),
|
|
16
|
+
});
|
|
17
|
+
exports.appointmentEventsSchema = zod_1.z.object({
|
|
18
|
+
appointments: appointmentEventSchema.array(),
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=appointment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,+BAAuB,CAAC,KAAK,EAAE;CAC9C,CAAC,CAAC;AAGH,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC7B,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,sBAAsB,CAAC,KAAK,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const athenaSecondaryMappingsSchema: z.ZodObject<{
|
|
3
|
+
departmentIds: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
backgroundAppointmentsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
departmentIds: string[];
|
|
7
|
+
backgroundAppointmentsDisabled?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
departmentIds: string[];
|
|
10
|
+
backgroundAppointmentsDisabled?: boolean | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type AthenaSecondaryMappings = z.infer<typeof athenaSecondaryMappingsSchema>;
|
|
13
|
+
//# sourceMappingURL=cx-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.athenaSecondaryMappingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.athenaSecondaryMappingsSchema = zod_1.z.object({
|
|
6
|
+
departmentIds: zod_1.z.string().array(),
|
|
7
|
+
backgroundAppointmentsDisabled: zod_1.z.boolean().optional(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=cx-mapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACjC,8BAA8B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const departmentSchema: z.ZodObject<{
|
|
3
|
+
departmentid: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
departmentid: string;
|
|
6
|
+
}, {
|
|
7
|
+
departmentid: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type Department = z.infer<typeof departmentSchema>;
|
|
10
|
+
export declare const departmentsSchema: z.ZodObject<{
|
|
11
|
+
departments: z.ZodArray<z.ZodObject<{
|
|
12
|
+
departmentid: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
departmentid: string;
|
|
15
|
+
}, {
|
|
16
|
+
departmentid: string;
|
|
17
|
+
}>, "many">;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
departments: {
|
|
20
|
+
departmentid: string;
|
|
21
|
+
}[];
|
|
22
|
+
}, {
|
|
23
|
+
departments: {
|
|
24
|
+
departmentid: string;
|
|
25
|
+
}[];
|
|
26
|
+
}>;
|
|
27
|
+
export type Departments = z.infer<typeof departmentsSchema>;
|
|
28
|
+
//# sourceMappingURL=department.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"department.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/department.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;EAE5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.departmentsSchema = exports.departmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.departmentSchema = zod_1.z.object({
|
|
6
|
+
departmentid: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.departmentsSchema = zod_1.z.object({
|
|
9
|
+
departments: exports.departmentSchema.array(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=department.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"department.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/department.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,wBAAgB,CAAC,KAAK,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./cx-mapping";
|
|
2
|
+
export * from "./jwt-token";
|
|
3
|
+
export * from "./appointment";
|
|
4
|
+
export * from "./medication";
|
|
5
|
+
export * from "./subscription";
|
|
6
|
+
export * from "./department";
|
|
7
|
+
export * from "./problem";
|
|
8
|
+
export * from "./vitals";
|
|
9
|
+
export * from "./patient";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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("./cx-mapping"), exports);
|
|
18
|
+
__exportStar(require("./jwt-token"), exports);
|
|
19
|
+
__exportStar(require("./appointment"), exports);
|
|
20
|
+
__exportStar(require("./medication"), exports);
|
|
21
|
+
__exportStar(require("./subscription"), exports);
|
|
22
|
+
__exportStar(require("./department"), exports);
|
|
23
|
+
__exportStar(require("./problem"), exports);
|
|
24
|
+
__exportStar(require("./vitals"), exports);
|
|
25
|
+
__exportStar(require("./patient"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { EhrSources } from "../source";
|
|
3
|
+
export declare const athenaDashSource: EhrSources.athena;
|
|
4
|
+
export declare const athenaDashJwtTokenDataSchema: z.ZodObject<{
|
|
5
|
+
ah_practice: z.ZodString;
|
|
6
|
+
ah_department: z.ZodString;
|
|
7
|
+
source: z.ZodLiteral<"athenahealth">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
ah_practice: string;
|
|
10
|
+
ah_department: string;
|
|
11
|
+
source: "athenahealth";
|
|
12
|
+
}, {
|
|
13
|
+
ah_practice: string;
|
|
14
|
+
ah_department: string;
|
|
15
|
+
source: "athenahealth";
|
|
16
|
+
}>;
|
|
17
|
+
export type AthenaDashJwtTokenData = z.infer<typeof athenaDashJwtTokenDataSchema>;
|
|
18
|
+
export declare const athenaClientSource: "athenahealth-client";
|
|
19
|
+
export declare const athenaClientJwtTokenDataSchema: z.ZodObject<{
|
|
20
|
+
practiceId: z.ZodString;
|
|
21
|
+
cxId: z.ZodString;
|
|
22
|
+
source: z.ZodLiteral<"athenahealth-client">;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
cxId: string;
|
|
25
|
+
source: "athenahealth-client";
|
|
26
|
+
practiceId: string;
|
|
27
|
+
}, {
|
|
28
|
+
cxId: string;
|
|
29
|
+
source: "athenahealth-client";
|
|
30
|
+
practiceId: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type AthenaClientJwtTokenData = z.infer<typeof athenaClientJwtTokenDataSchema>;
|
|
33
|
+
export declare const athenaClientJwtTokenResponseSchema: z.ZodObject<{
|
|
34
|
+
scope: z.ZodString;
|
|
35
|
+
access_token: z.ZodString;
|
|
36
|
+
expires_in: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
scope: string;
|
|
39
|
+
access_token: string;
|
|
40
|
+
expires_in: string;
|
|
41
|
+
}, {
|
|
42
|
+
scope: string;
|
|
43
|
+
access_token: string;
|
|
44
|
+
expires_in: string;
|
|
45
|
+
}>;
|
|
46
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,UAAU,EAAsB,MAAM,WAAW,CAAC;AAE3D,eAAO,MAAM,gBAAgB,mBAA6B,CAAC;AAC3D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,kBAAkB,uBAAuD,CAAC;AACvF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
|