@metriport/shared 0.23.10-alpha.0 → 0.23.11
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/domain/job/types.d.ts +1 -1
- package/dist/domain/job/types.d.ts.map +1 -1
- package/dist/domain/organization.d.ts.map +1 -1
- package/dist/domain/organization.js +2 -0
- package/dist/domain/organization.js.map +1 -1
- package/dist/domain/patient/patient-import.d.ts +131 -0
- package/dist/domain/patient/patient-import.d.ts.map +1 -0
- package/dist/domain/patient/patient-import.js +32 -0
- package/dist/domain/patient/patient-import.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts +2 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js +66 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +47 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js +32 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts +11 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.js +43 -0
- package/dist/domain/patient/patient-monitoring/utils.js.map +1 -0
- package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
- package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/appointment.js +18 -0
- package/dist/interface/external/athenahealth/appointment.js.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
- package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
- package/dist/interface/external/athenahealth/department.d.ts +28 -0
- package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/department.js +11 -0
- package/dist/interface/external/athenahealth/department.js.map +1 -0
- package/dist/interface/external/athenahealth/index.d.ts +10 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/index.js +26 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts +25 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.js +13 -0
- package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
- package/dist/interface/external/athenahealth/medication.d.ts +50 -0
- package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/medication.js +19 -0
- package/dist/interface/external/athenahealth/medication.js.map +1 -0
- package/dist/interface/external/athenahealth/patient.d.ts +250 -0
- package/dist/interface/external/athenahealth/patient.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/patient.js +34 -0
- package/dist/interface/external/athenahealth/patient.js.map +1 -0
- package/dist/interface/external/athenahealth/problem.d.ts +27 -0
- package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/problem.js +14 -0
- package/dist/interface/external/athenahealth/problem.js.map +1 -0
- package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
- package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/subscription.js +11 -0
- package/dist/interface/external/athenahealth/subscription.js.map +1 -0
- package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
- package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/vitals.js +15 -0
- package/dist/interface/external/athenahealth/vitals.js.map +1 -0
- package/dist/interface/external/canvas/appointment.d.ts +68 -0
- package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
- package/dist/interface/external/canvas/appointment.js +15 -0
- package/dist/interface/external/canvas/appointment.js.map +1 -0
- package/dist/interface/external/canvas/index.d.ts +3 -0
- package/dist/interface/external/canvas/index.d.ts.map +1 -0
- package/dist/interface/external/canvas/index.js +19 -0
- package/dist/interface/external/canvas/index.js.map +1 -0
- package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
- package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/canvas/jwt-token.js +17 -0
- package/dist/interface/external/canvas/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/healthie/allergy.d.ts +144 -0
- package/dist/interface/external/ehr/healthie/allergy.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/allergy.js +24 -0
- package/dist/interface/external/ehr/healthie/allergy.js.map +1 -0
- package/dist/interface/external/ehr/healthie/condition.d.ts +140 -0
- package/dist/interface/external/ehr/healthie/condition.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/condition.js +19 -0
- package/dist/interface/external/ehr/healthie/condition.js.map +1 -0
- package/dist/interface/external/ehr/healthie/immunization.d.ts +108 -0
- package/dist/interface/external/ehr/healthie/immunization.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/immunization.js +19 -0
- package/dist/interface/external/ehr/healthie/immunization.js.map +1 -0
- package/dist/interface/external/ehr/healthie/index.d.ts +5 -0
- package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/index.js +5 -0
- package/dist/interface/external/ehr/healthie/index.js.map +1 -1
- package/dist/interface/external/ehr/healthie/lab.d.ts +492 -0
- package/dist/interface/external/ehr/healthie/lab.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/lab.js +33 -0
- package/dist/interface/external/ehr/healthie/lab.js.map +1 -0
- package/dist/interface/external/ehr/healthie/medication.d.ts +132 -0
- package/dist/interface/external/ehr/healthie/medication.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/medication.js +22 -0
- package/dist/interface/external/ehr/healthie/medication.js.map +1 -0
- package/dist/interface/external/ehr/resource-diff.d.ts +7 -0
- package/dist/interface/external/ehr/resource-diff.d.ts.map +1 -0
- package/dist/interface/external/ehr/resource-diff.js +12 -0
- package/dist/interface/external/ehr/resource-diff.js.map +1 -0
- package/dist/interface/external/elation/appointment.d.ts +68 -0
- package/dist/interface/external/elation/appointment.d.ts.map +1 -0
- package/dist/interface/external/elation/appointment.js +15 -0
- package/dist/interface/external/elation/appointment.js.map +1 -0
- package/dist/interface/external/elation/index.d.ts +4 -0
- package/dist/interface/external/elation/index.d.ts.map +1 -0
- package/dist/interface/external/elation/index.js +20 -0
- package/dist/interface/external/elation/index.js.map +1 -0
- package/dist/interface/external/elation/jwt-token.d.ts +20 -0
- package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/elation/jwt-token.js +13 -0
- package/dist/interface/external/elation/jwt-token.js.map +1 -0
- package/dist/interface/external/elation/patient.d.ts +96 -0
- package/dist/interface/external/elation/patient.d.ts.map +1 -0
- package/dist/interface/external/elation/patient.js +33 -0
- package/dist/interface/external/elation/patient.js.map +1 -0
- package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
- package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
- package/dist/interface/external/shared/ehr/patient.js +35 -0
- package/dist/interface/external/shared/ehr/patient.js.map +1 -0
- package/dist/interface/external/surescripts/payment-code.d.ts +8 -0
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -1
- package/dist/interface/external/surescripts/payment-code.js +54 -1
- package/dist/interface/external/surescripts/payment-code.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const medicationSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
5
|
+
name: z.ZodNullable<z.ZodString>;
|
|
6
|
+
code: z.ZodNullable<z.ZodString>;
|
|
7
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
8
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
9
|
+
directions: z.ZodNullable<z.ZodString>;
|
|
10
|
+
dosage: z.ZodNullable<z.ZodString>;
|
|
11
|
+
frequency: z.ZodNullable<z.ZodString>;
|
|
12
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
code: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
id: string;
|
|
17
|
+
active: boolean | null;
|
|
18
|
+
comment: string | null;
|
|
19
|
+
end_date: string | null;
|
|
20
|
+
start_date: string | null;
|
|
21
|
+
directions: string | null;
|
|
22
|
+
dosage: string | null;
|
|
23
|
+
frequency: string | null;
|
|
24
|
+
}, {
|
|
25
|
+
code: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
id: string;
|
|
28
|
+
active: boolean | null;
|
|
29
|
+
comment: string | null;
|
|
30
|
+
end_date: string | null;
|
|
31
|
+
start_date: string | null;
|
|
32
|
+
directions: string | null;
|
|
33
|
+
dosage: string | null;
|
|
34
|
+
frequency: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
export type Medication = z.infer<typeof medicationSchema>;
|
|
37
|
+
export declare const medicationsGraphqlSchema: z.ZodObject<{
|
|
38
|
+
data: z.ZodObject<{
|
|
39
|
+
medications: z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
name: z.ZodNullable<z.ZodString>;
|
|
43
|
+
code: z.ZodNullable<z.ZodString>;
|
|
44
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
45
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
46
|
+
directions: z.ZodNullable<z.ZodString>;
|
|
47
|
+
dosage: z.ZodNullable<z.ZodString>;
|
|
48
|
+
frequency: z.ZodNullable<z.ZodString>;
|
|
49
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
code: string | null;
|
|
52
|
+
name: string | null;
|
|
53
|
+
id: string;
|
|
54
|
+
active: boolean | null;
|
|
55
|
+
comment: string | null;
|
|
56
|
+
end_date: string | null;
|
|
57
|
+
start_date: string | null;
|
|
58
|
+
directions: string | null;
|
|
59
|
+
dosage: string | null;
|
|
60
|
+
frequency: string | null;
|
|
61
|
+
}, {
|
|
62
|
+
code: string | null;
|
|
63
|
+
name: string | null;
|
|
64
|
+
id: string;
|
|
65
|
+
active: boolean | null;
|
|
66
|
+
comment: string | null;
|
|
67
|
+
end_date: string | null;
|
|
68
|
+
start_date: string | null;
|
|
69
|
+
directions: string | null;
|
|
70
|
+
dosage: string | null;
|
|
71
|
+
frequency: string | null;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
medications: {
|
|
75
|
+
code: string | null;
|
|
76
|
+
name: string | null;
|
|
77
|
+
id: string;
|
|
78
|
+
active: boolean | null;
|
|
79
|
+
comment: string | null;
|
|
80
|
+
end_date: string | null;
|
|
81
|
+
start_date: string | null;
|
|
82
|
+
directions: string | null;
|
|
83
|
+
dosage: string | null;
|
|
84
|
+
frequency: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
medications: {
|
|
88
|
+
code: string | null;
|
|
89
|
+
name: string | null;
|
|
90
|
+
id: string;
|
|
91
|
+
active: boolean | null;
|
|
92
|
+
comment: string | null;
|
|
93
|
+
end_date: string | null;
|
|
94
|
+
start_date: string | null;
|
|
95
|
+
directions: string | null;
|
|
96
|
+
dosage: string | null;
|
|
97
|
+
frequency: string | null;
|
|
98
|
+
}[];
|
|
99
|
+
}>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
data: {
|
|
102
|
+
medications: {
|
|
103
|
+
code: string | null;
|
|
104
|
+
name: string | null;
|
|
105
|
+
id: string;
|
|
106
|
+
active: boolean | null;
|
|
107
|
+
comment: string | null;
|
|
108
|
+
end_date: string | null;
|
|
109
|
+
start_date: string | null;
|
|
110
|
+
directions: string | null;
|
|
111
|
+
dosage: string | null;
|
|
112
|
+
frequency: string | null;
|
|
113
|
+
}[];
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
data: {
|
|
117
|
+
medications: {
|
|
118
|
+
code: string | null;
|
|
119
|
+
name: string | null;
|
|
120
|
+
id: string;
|
|
121
|
+
active: boolean | null;
|
|
122
|
+
comment: string | null;
|
|
123
|
+
end_date: string | null;
|
|
124
|
+
start_date: string | null;
|
|
125
|
+
directions: string | null;
|
|
126
|
+
dosage: string | null;
|
|
127
|
+
frequency: string | null;
|
|
128
|
+
}[];
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
export type MedicationsGraphql = z.infer<typeof medicationsGraphqlSchema>;
|
|
132
|
+
//# sourceMappingURL=medication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/medication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.medicationsGraphqlSchema = exports.medicationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.medicationSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
active: zod_1.z.boolean().nullable(),
|
|
8
|
+
name: zod_1.z.string().nullable(),
|
|
9
|
+
code: zod_1.z.string().nullable(),
|
|
10
|
+
start_date: zod_1.z.string().nullable(),
|
|
11
|
+
end_date: zod_1.z.string().nullable(),
|
|
12
|
+
directions: zod_1.z.string().nullable(),
|
|
13
|
+
dosage: zod_1.z.string().nullable(),
|
|
14
|
+
frequency: zod_1.z.string().nullable(),
|
|
15
|
+
comment: zod_1.z.string().nullable(),
|
|
16
|
+
});
|
|
17
|
+
exports.medicationsGraphqlSchema = zod_1.z.object({
|
|
18
|
+
data: zod_1.z.object({
|
|
19
|
+
medications: exports.medicationSchema.array(),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=medication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/medication.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAGU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,WAAW,EAAE,wBAAgB,CAAC,KAAK,EAAE;KACtC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ResourceDiffDirection: {
|
|
2
|
+
readonly METRIPORT_ONLY: "metriport-only";
|
|
3
|
+
readonly CANVAS_ONLY: "canvas-only";
|
|
4
|
+
};
|
|
5
|
+
export type ResourceDiffDirection = (typeof ResourceDiffDirection)[keyof typeof ResourceDiffDirection];
|
|
6
|
+
export declare function isResourceDiffDirection(direction: string): direction is ResourceDiffDirection;
|
|
7
|
+
//# sourceMappingURL=resource-diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-diff.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/resource-diff.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AACrE,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,IAAI,qBAAqB,CAE7F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isResourceDiffDirection = exports.ResourceDiffDirection = void 0;
|
|
4
|
+
exports.ResourceDiffDirection = {
|
|
5
|
+
METRIPORT_ONLY: "metriport-only",
|
|
6
|
+
CANVAS_ONLY: "canvas-only",
|
|
7
|
+
};
|
|
8
|
+
function isResourceDiffDirection(direction) {
|
|
9
|
+
return Object.values(exports.ResourceDiffDirection).includes(direction);
|
|
10
|
+
}
|
|
11
|
+
exports.isResourceDiffDirection = isResourceDiffDirection;
|
|
12
|
+
//# sourceMappingURL=resource-diff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-diff.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/resource-diff.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;CAClB,CAAC;AAGX,SAAgB,uBAAuB,CAAC,SAAiB;IACvD,OAAO,MAAM,CAAC,MAAM,CAAC,6BAAqB,CAAC,CAAC,QAAQ,CAAC,SAAkC,CAAC,CAAC;AAC3F,CAAC;AAFD,0DAEC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const bookedAppointmentSchema: z.ZodObject<{
|
|
3
|
+
patient: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
patient: string;
|
|
6
|
+
}, {
|
|
7
|
+
patient: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
|
|
10
|
+
export declare const appointmentSchema: z.ZodObject<{
|
|
11
|
+
patient: z.ZodNullable<z.ZodString>;
|
|
12
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
status: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
status: string;
|
|
16
|
+
}, {
|
|
17
|
+
status: string;
|
|
18
|
+
}>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
status: {
|
|
21
|
+
status: string;
|
|
22
|
+
} | null;
|
|
23
|
+
patient: string | null;
|
|
24
|
+
}, {
|
|
25
|
+
status: {
|
|
26
|
+
status: string;
|
|
27
|
+
} | null;
|
|
28
|
+
patient: string | null;
|
|
29
|
+
}>;
|
|
30
|
+
export type Appointment = z.infer<typeof appointmentSchema>;
|
|
31
|
+
export declare const appointmentsSchema: z.ZodObject<{
|
|
32
|
+
results: z.ZodArray<z.ZodObject<{
|
|
33
|
+
patient: z.ZodNullable<z.ZodString>;
|
|
34
|
+
status: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
status: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
status: string;
|
|
38
|
+
}, {
|
|
39
|
+
status: string;
|
|
40
|
+
}>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
status: {
|
|
43
|
+
status: string;
|
|
44
|
+
} | null;
|
|
45
|
+
patient: string | null;
|
|
46
|
+
}, {
|
|
47
|
+
status: {
|
|
48
|
+
status: string;
|
|
49
|
+
} | null;
|
|
50
|
+
patient: string | null;
|
|
51
|
+
}>, "many">;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
results: {
|
|
54
|
+
status: {
|
|
55
|
+
status: string;
|
|
56
|
+
} | null;
|
|
57
|
+
patient: string | null;
|
|
58
|
+
}[];
|
|
59
|
+
}, {
|
|
60
|
+
results: {
|
|
61
|
+
status: {
|
|
62
|
+
status: string;
|
|
63
|
+
} | null;
|
|
64
|
+
patient: string | null;
|
|
65
|
+
}[];
|
|
66
|
+
}>;
|
|
67
|
+
export type Appointments = z.infer<typeof appointmentsSchema>;
|
|
68
|
+
//# sourceMappingURL=appointment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appointmentsSchema = exports.appointmentSchema = exports.bookedAppointmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bookedAppointmentSchema = zod_1.z.object({
|
|
6
|
+
patient: zod_1.z.coerce.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.appointmentSchema = zod_1.z.object({
|
|
9
|
+
patient: zod_1.z.coerce.string().nullable(),
|
|
10
|
+
status: zod_1.z.object({ status: zod_1.z.string() }).nullable(),
|
|
11
|
+
});
|
|
12
|
+
exports.appointmentsSchema = zod_1.z.object({
|
|
13
|
+
results: exports.appointmentSchema.array(),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=appointment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,yBAAiB,CAAC,KAAK,EAAE;CACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./appointment"), exports);
|
|
18
|
+
__exportStar(require("./patient"), exports);
|
|
19
|
+
__exportStar(require("./jwt-token"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export type ElationClientJwtTokenData = {
|
|
3
|
+
practiceId: string;
|
|
4
|
+
cxId: string;
|
|
5
|
+
source: "elation-client";
|
|
6
|
+
};
|
|
7
|
+
export declare const elationClientJwtTokenResponseSchema: z.ZodObject<{
|
|
8
|
+
scope: z.ZodString;
|
|
9
|
+
access_token: z.ZodString;
|
|
10
|
+
expires_in: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
scope: string;
|
|
13
|
+
access_token: string;
|
|
14
|
+
expires_in: string;
|
|
15
|
+
}, {
|
|
16
|
+
scope: string;
|
|
17
|
+
access_token: string;
|
|
18
|
+
expires_in: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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.elationClientJwtTokenResponseSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.elationClientJwtTokenResponseSchema = zod_1.default.object({
|
|
9
|
+
scope: zod_1.default.string(),
|
|
10
|
+
access_token: zod_1.default.string(),
|
|
11
|
+
expires_in: zod_1.default.coerce.string(),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=jwt-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAQP,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,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,96 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientSchema: z.ZodObject<{
|
|
3
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
4
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
middle_name: z.ZodNullable<z.ZodString>;
|
|
6
|
+
sex: z.ZodString;
|
|
7
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
state: z.ZodNullable<z.ZodString>;
|
|
9
|
+
address_line1: z.ZodNullable<z.ZodString>;
|
|
10
|
+
address_line2: z.ZodNullable<z.ZodString>;
|
|
11
|
+
city: z.ZodNullable<z.ZodString>;
|
|
12
|
+
zip: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
state: string | null;
|
|
15
|
+
zip: string | null;
|
|
16
|
+
city: string | null;
|
|
17
|
+
address_line1: string | null;
|
|
18
|
+
address_line2: string | null;
|
|
19
|
+
}, {
|
|
20
|
+
state: string | null;
|
|
21
|
+
zip: string | null;
|
|
22
|
+
city: string | null;
|
|
23
|
+
address_line1: string | null;
|
|
24
|
+
address_line2: string | null;
|
|
25
|
+
}>>;
|
|
26
|
+
dob: z.ZodString;
|
|
27
|
+
phones: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
28
|
+
phone: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
phone: string;
|
|
31
|
+
}, {
|
|
32
|
+
phone: string;
|
|
33
|
+
}>, "many">>;
|
|
34
|
+
emails: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
email: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
email: string;
|
|
38
|
+
}, {
|
|
39
|
+
email: string;
|
|
40
|
+
}>, "many">>;
|
|
41
|
+
ssn: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
dob: string;
|
|
44
|
+
ssn: string | null;
|
|
45
|
+
address: {
|
|
46
|
+
state: string | null;
|
|
47
|
+
zip: string | null;
|
|
48
|
+
city: string | null;
|
|
49
|
+
address_line1: string | null;
|
|
50
|
+
address_line2: string | null;
|
|
51
|
+
} | null;
|
|
52
|
+
first_name: string | null;
|
|
53
|
+
last_name: string | null;
|
|
54
|
+
middle_name: string | null;
|
|
55
|
+
sex: string;
|
|
56
|
+
phones: {
|
|
57
|
+
phone: string;
|
|
58
|
+
}[] | null;
|
|
59
|
+
emails: {
|
|
60
|
+
email: string;
|
|
61
|
+
}[] | null;
|
|
62
|
+
}, {
|
|
63
|
+
dob: string;
|
|
64
|
+
ssn: string | null;
|
|
65
|
+
address: {
|
|
66
|
+
state: string | null;
|
|
67
|
+
zip: string | null;
|
|
68
|
+
city: string | null;
|
|
69
|
+
address_line1: string | null;
|
|
70
|
+
address_line2: string | null;
|
|
71
|
+
} | null;
|
|
72
|
+
first_name: string | null;
|
|
73
|
+
last_name: string | null;
|
|
74
|
+
middle_name: string | null;
|
|
75
|
+
sex: string;
|
|
76
|
+
phones: {
|
|
77
|
+
phone: string;
|
|
78
|
+
}[] | null;
|
|
79
|
+
emails: {
|
|
80
|
+
email: string;
|
|
81
|
+
}[] | null;
|
|
82
|
+
}>;
|
|
83
|
+
export type Patient = z.infer<typeof patientSchema>;
|
|
84
|
+
declare const metadata: z.ZodObject<{
|
|
85
|
+
object_id: z.ZodString;
|
|
86
|
+
object_web_link: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
object_id: string;
|
|
89
|
+
object_web_link: string;
|
|
90
|
+
}, {
|
|
91
|
+
object_id: string;
|
|
92
|
+
object_web_link: string;
|
|
93
|
+
}>;
|
|
94
|
+
export type Metadata = z.infer<typeof metadata>;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,QAAA,MAAM,QAAQ;;;;;;;;;EAGZ,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const address = zod_1.z.object({
|
|
6
|
+
state: zod_1.z.string().nullable(),
|
|
7
|
+
address_line1: zod_1.z.string().nullable(),
|
|
8
|
+
address_line2: zod_1.z.string().nullable(),
|
|
9
|
+
city: zod_1.z.string().nullable(),
|
|
10
|
+
zip: zod_1.z.string().nullable(),
|
|
11
|
+
});
|
|
12
|
+
const phone = zod_1.z.object({
|
|
13
|
+
phone: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
const email = zod_1.z.object({
|
|
16
|
+
email: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
exports.patientSchema = zod_1.z.object({
|
|
19
|
+
first_name: zod_1.z.string().nullable(),
|
|
20
|
+
last_name: zod_1.z.string().nullable(),
|
|
21
|
+
middle_name: zod_1.z.string().nullable(),
|
|
22
|
+
sex: zod_1.z.string(),
|
|
23
|
+
address: address.nullable(),
|
|
24
|
+
dob: zod_1.z.string(),
|
|
25
|
+
phones: phone.array().nullable(),
|
|
26
|
+
emails: email.array().nullable(),
|
|
27
|
+
ssn: zod_1.z.string().nullable(),
|
|
28
|
+
});
|
|
29
|
+
const metadata = zod_1.z.object({
|
|
30
|
+
object_id: zod_1.z.string(),
|
|
31
|
+
object_web_link: zod_1.z.string(),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAIH,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
|