@metriport/shared 0.13.3 → 0.13.4
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/date.d.ts +3 -2
- package/dist/common/date.d.ts.map +1 -1
- package/dist/common/date.js +11 -5
- package/dist/common/date.js.map +1 -1
- package/dist/common/error.d.ts +3 -3
- package/dist/common/error.js +3 -3
- package/dist/common/filter-map.d.ts +11 -0
- package/dist/common/filter-map.d.ts.map +1 -0
- package/dist/common/filter-map.js +17 -0
- package/dist/common/filter-map.js.map +1 -0
- package/dist/common/xml-parser.d.ts +3 -0
- package/dist/common/xml-parser.d.ts.map +1 -0
- package/dist/common/xml-parser.js +17 -0
- package/dist/common/xml-parser.js.map +1 -0
- package/dist/domain/address/__tests__/normalize-zip.test.js +109 -30
- package/dist/domain/address/__tests__/normalize-zip.test.js.map +1 -1
- package/dist/domain/address/__tests__/state.test.d.ts +2 -0
- package/dist/domain/address/__tests__/state.test.d.ts.map +1 -0
- package/dist/domain/address/__tests__/state.test.js +40 -0
- package/dist/domain/address/__tests__/state.test.js.map +1 -0
- package/dist/domain/address/__tests__/territory.test.d.ts +2 -0
- package/dist/domain/address/__tests__/territory.test.d.ts.map +1 -0
- package/dist/domain/address/__tests__/territory.test.js +35 -0
- package/dist/domain/address/__tests__/territory.test.js.map +1 -0
- package/dist/domain/address/index.d.ts +6 -0
- package/dist/domain/address/index.d.ts.map +1 -0
- package/dist/domain/address/index.js +21 -0
- package/dist/domain/address/index.js.map +1 -0
- package/dist/domain/address/state.d.ts +1 -3
- package/dist/domain/address/state.d.ts.map +1 -1
- package/dist/domain/address/state.js +55 -61
- package/dist/domain/address/state.js.map +1 -1
- package/dist/domain/address/territory.d.ts +10 -0
- package/dist/domain/address/territory.d.ts.map +1 -0
- package/dist/domain/address/territory.js +30 -0
- package/dist/domain/address/territory.js.map +1 -0
- package/dist/domain/address/zip.d.ts +5 -2
- package/dist/domain/address/zip.d.ts.map +1 -1
- package/dist/domain/address/zip.js +45 -5
- package/dist/domain/address/zip.js.map +1 -1
- package/dist/domain/contact/__tests__/email.test.d.ts +2 -0
- package/dist/domain/contact/__tests__/email.test.d.ts.map +1 -0
- package/dist/domain/contact/__tests__/email.test.js +39 -0
- package/dist/domain/contact/__tests__/email.test.js.map +1 -0
- package/dist/domain/contact/__tests__/phone.test.js +28 -0
- package/dist/domain/contact/__tests__/phone.test.js.map +1 -1
- package/dist/domain/contact/email.d.ts +1 -0
- package/dist/domain/contact/email.d.ts.map +1 -1
- package/dist/domain/contact/email.js +5 -1
- package/dist/domain/contact/email.js.map +1 -1
- package/dist/domain/contact/phone.d.ts +1 -0
- package/dist/domain/contact/phone.d.ts.map +1 -1
- package/dist/domain/contact/phone.js +6 -1
- package/dist/domain/contact/phone.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.d.ts +23 -0
- package/dist/domain/patient/patient.d.ts.map +1 -0
- package/dist/domain/patient/patient.js +14 -0
- package/dist/domain/patient/patient.js.map +1 -0
- package/dist/error/metriport-error.d.ts +1 -1
- package/dist/error/metriport-error.d.ts.map +1 -1
- package/dist/index.d.ts +11 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/interface/external/athenahealth/appointment.d.ts +50 -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 +27 -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 +6 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -1
- package/dist/interface/external/athenahealth/index.js +6 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -1
- package/dist/interface/external/athenahealth/jwt-token.d.ts +5 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.js +3 -0
- package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
- package/dist/interface/external/athenahealth/medication.d.ts +38 -0
- package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/medication.js +15 -0
- package/dist/interface/external/athenahealth/medication.js.map +1 -0
- package/dist/interface/external/athenahealth/patient.d.ts +277 -8
- package/dist/interface/external/athenahealth/patient.d.ts.map +1 -1
- package/dist/interface/external/athenahealth/patient.js +8 -1
- package/dist/interface/external/athenahealth/patient.js.map +1 -1
- package/dist/interface/external/athenahealth/subscription.d.ts +10 -0
- package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/subscription.js +8 -0
- package/dist/interface/external/athenahealth/subscription.js.map +1 -0
- package/dist/interface/internal/consolidated.d.ts +2 -2
- package/dist/medical/fhir/bundle.d.ts +3 -0
- package/dist/medical/fhir/bundle.d.ts.map +1 -1
- package/dist/medical/fhir/bundle.js +21 -0
- package/dist/medical/fhir/bundle.js.map +1 -1
- package/dist/medical/webhook/webhook-request.d.ts +25 -25
- package/dist/net/error.d.ts.map +1 -1
- package/dist/net/error.js +1 -0
- package/dist/net/error.js.map +1 -1
- package/dist/net/retry.d.ts.map +1 -1
- package/dist/net/retry.js +3 -1
- package/dist/net/retry.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientImportPatientSchema: z.ZodObject<{
|
|
3
|
+
dob: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
+
gender: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
+
firstname: z.ZodString;
|
|
6
|
+
lastname: z.ZodString;
|
|
7
|
+
zip: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
city: z.ZodString;
|
|
9
|
+
state: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
addressline1: z.ZodString;
|
|
11
|
+
addressline2: z.ZodOptional<z.ZodString>;
|
|
12
|
+
phone1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
13
|
+
phone2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
14
|
+
email1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
15
|
+
email2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
|
+
externalid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
state: string;
|
|
19
|
+
dob: string;
|
|
20
|
+
gender: string;
|
|
21
|
+
firstname: string;
|
|
22
|
+
lastname: string;
|
|
23
|
+
zip: string;
|
|
24
|
+
city: string;
|
|
25
|
+
addressline1: string;
|
|
26
|
+
addressline2?: string | undefined;
|
|
27
|
+
phone1?: string | undefined;
|
|
28
|
+
phone2?: string | undefined;
|
|
29
|
+
email1?: string | undefined;
|
|
30
|
+
email2?: string | undefined;
|
|
31
|
+
externalid?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
state: string;
|
|
34
|
+
dob: string;
|
|
35
|
+
gender: string;
|
|
36
|
+
firstname: string;
|
|
37
|
+
lastname: string;
|
|
38
|
+
zip: string;
|
|
39
|
+
city: string;
|
|
40
|
+
addressline1: string;
|
|
41
|
+
addressline2?: string | undefined;
|
|
42
|
+
phone1?: string | undefined;
|
|
43
|
+
phone2?: string | undefined;
|
|
44
|
+
email1?: string | undefined;
|
|
45
|
+
email2?: string | undefined;
|
|
46
|
+
externalid?: string | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
export type PatientImportPatient = z.infer<typeof patientImportPatientSchema>;
|
|
49
|
+
export declare const patientImportSchema: z.ZodObject<{
|
|
50
|
+
patients: z.ZodArray<z.ZodObject<{
|
|
51
|
+
dob: z.ZodEffects<z.ZodString, string, string>;
|
|
52
|
+
gender: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
firstname: z.ZodString;
|
|
54
|
+
lastname: z.ZodString;
|
|
55
|
+
zip: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
+
city: z.ZodString;
|
|
57
|
+
state: z.ZodEffects<z.ZodString, string, string>;
|
|
58
|
+
addressline1: z.ZodString;
|
|
59
|
+
addressline2: z.ZodOptional<z.ZodString>;
|
|
60
|
+
phone1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
61
|
+
phone2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
62
|
+
email1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
63
|
+
email2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
64
|
+
externalid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
state: string;
|
|
67
|
+
dob: string;
|
|
68
|
+
gender: string;
|
|
69
|
+
firstname: string;
|
|
70
|
+
lastname: string;
|
|
71
|
+
zip: string;
|
|
72
|
+
city: string;
|
|
73
|
+
addressline1: string;
|
|
74
|
+
addressline2?: string | undefined;
|
|
75
|
+
phone1?: string | undefined;
|
|
76
|
+
phone2?: string | undefined;
|
|
77
|
+
email1?: string | undefined;
|
|
78
|
+
email2?: string | undefined;
|
|
79
|
+
externalid?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
state: string;
|
|
82
|
+
dob: string;
|
|
83
|
+
gender: string;
|
|
84
|
+
firstname: string;
|
|
85
|
+
lastname: string;
|
|
86
|
+
zip: string;
|
|
87
|
+
city: string;
|
|
88
|
+
addressline1: string;
|
|
89
|
+
addressline2?: string | undefined;
|
|
90
|
+
phone1?: string | undefined;
|
|
91
|
+
phone2?: string | undefined;
|
|
92
|
+
email1?: string | undefined;
|
|
93
|
+
email2?: string | undefined;
|
|
94
|
+
externalid?: string | undefined;
|
|
95
|
+
}>, "many">;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
patients: {
|
|
98
|
+
state: string;
|
|
99
|
+
dob: string;
|
|
100
|
+
gender: string;
|
|
101
|
+
firstname: string;
|
|
102
|
+
lastname: string;
|
|
103
|
+
zip: string;
|
|
104
|
+
city: string;
|
|
105
|
+
addressline1: string;
|
|
106
|
+
addressline2?: string | undefined;
|
|
107
|
+
phone1?: string | undefined;
|
|
108
|
+
phone2?: string | undefined;
|
|
109
|
+
email1?: string | undefined;
|
|
110
|
+
email2?: string | undefined;
|
|
111
|
+
externalid?: string | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
}, {
|
|
114
|
+
patients: {
|
|
115
|
+
state: string;
|
|
116
|
+
dob: string;
|
|
117
|
+
gender: string;
|
|
118
|
+
firstname: string;
|
|
119
|
+
lastname: string;
|
|
120
|
+
zip: string;
|
|
121
|
+
city: string;
|
|
122
|
+
addressline1: string;
|
|
123
|
+
addressline2?: string | undefined;
|
|
124
|
+
phone1?: string | undefined;
|
|
125
|
+
phone2?: string | undefined;
|
|
126
|
+
email1?: string | undefined;
|
|
127
|
+
email2?: string | undefined;
|
|
128
|
+
externalid?: string | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
}>;
|
|
131
|
+
//# sourceMappingURL=patient-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-import.d.ts","sourceRoot":"","sources":["../../../src/domain/patient/patient-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientImportSchema = exports.patientImportPatientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const address_1 = require("../address");
|
|
6
|
+
const zip_1 = require("../address/zip");
|
|
7
|
+
const email_1 = require("../contact/email");
|
|
8
|
+
const phone_1 = require("../contact/phone");
|
|
9
|
+
const dob_1 = require("../dob");
|
|
10
|
+
const gender_1 = require("../gender");
|
|
11
|
+
exports.patientImportPatientSchema = zod_1.z.object({
|
|
12
|
+
dob: zod_1.z.string().refine(dob_1.normalizeDateSafe, { message: "Invalid dob" }),
|
|
13
|
+
gender: zod_1.z.string().refine(gender_1.normalizeGenderSafe, { message: "Invalid gender" }),
|
|
14
|
+
firstname: zod_1.z.string().min(1, { message: "First name must be defined" }),
|
|
15
|
+
lastname: zod_1.z.string().min(1, { message: "Last name must be defined" }),
|
|
16
|
+
zip: zod_1.z.string().refine(zip_1.normalizeZipCodeNewSafe, { message: "Invalid zip" }),
|
|
17
|
+
city: zod_1.z.string().min(1, { message: "City must be defined" }),
|
|
18
|
+
state: zod_1.z
|
|
19
|
+
.string()
|
|
20
|
+
.refine(address_1.normalizeUSStateForAddressSafe, { message: "Invalid state or territory" }),
|
|
21
|
+
addressline1: zod_1.z.string().min(1, { message: "Address line must be defined" }),
|
|
22
|
+
addressline2: zod_1.z.string().optional(),
|
|
23
|
+
phone1: zod_1.z.string().refine(phone_1.isPhoneValid, { message: "Invalid phone" }).optional(),
|
|
24
|
+
phone2: zod_1.z.string().refine(phone_1.isPhoneValid, { message: "Invalid phone" }).optional(),
|
|
25
|
+
email1: zod_1.z.string().refine(email_1.isEmailValid, { message: "Invalid email" }).optional(),
|
|
26
|
+
email2: zod_1.z.string().refine(email_1.isEmailValid, { message: "Invalid email" }).optional(),
|
|
27
|
+
externalid: zod_1.z.string().optional(),
|
|
28
|
+
});
|
|
29
|
+
exports.patientImportSchema = zod_1.z.object({
|
|
30
|
+
patients: exports.patientImportPatientSchema.array(),
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=patient-import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-import.js","sourceRoot":"","sources":["../../../src/domain/patient/patient-import.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,wCAAyD;AACzD,4CAAgD;AAChD,4CAAgD;AAChD,gCAA2C;AAC3C,sCAAgD;AAEnC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,uBAAiB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACrE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,4BAAmB,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC7E,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACvE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,6BAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAC3E,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAC5D,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,MAAM,CAAC,wCAA8B,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACpF,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5E,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,kCAA0B,CAAC,KAAK,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientCreateResponseSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
id: string;
|
|
6
|
+
}, {
|
|
7
|
+
id: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const patientDiscoveryResponseSchema: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
requestId: string;
|
|
13
|
+
}, {
|
|
14
|
+
requestId: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const patientDocumentQueryResponseSchema: z.ZodObject<{
|
|
17
|
+
requestId: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
requestId: string;
|
|
20
|
+
}, {
|
|
21
|
+
requestId: string;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/domain/patient/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;EAEzC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;EAE7C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientDocumentQueryResponseSchema = exports.patientDiscoveryResponseSchema = exports.patientCreateResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.patientCreateResponseSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.patientDiscoveryResponseSchema = zod_1.z.object({
|
|
9
|
+
requestId: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
exports.patientDocumentQueryResponseSchema = zod_1.z.object({
|
|
12
|
+
requestId: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/domain/patient/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AdditionalInfo = Record<string, string | number | undefined | null>;
|
|
1
|
+
export type AdditionalInfo = Record<string, string | number | boolean | undefined | null>;
|
|
2
2
|
export declare class MetriportError extends Error {
|
|
3
3
|
readonly cause?: unknown;
|
|
4
4
|
readonly additionalInfo?: AdditionalInfo | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metriport-error.d.ts","sourceRoot":"","sources":["../../src/error/metriport-error.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"metriport-error.d.ts","sourceRoot":"","sources":["../../src/error/metriport-error.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AAE1F,qBAAa,cAAe,SAAQ,KAAK;IAEV,QAAQ,CAAC,KAAK,CAAC;IAAW,QAAQ,CAAC,cAAc,CAAC;IAD/E,MAAM,EAAE,MAAM,CAAgC;gBAClC,OAAO,EAAE,MAAM,EAAW,KAAK,CAAC,SAAS,EAAW,cAAc,CAAC,4BAAgB;CAIhG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,24 +4,28 @@ export { dateSchema, optionalDateSchema } from "./common/date";
|
|
|
4
4
|
export { getDomainFromEmailWithoutTld } from "./common/email";
|
|
5
5
|
export * from "./common/env-var";
|
|
6
6
|
export { emptyFunction } from "./common/general";
|
|
7
|
+
export { metriportOrganization } from "./common/metriport-organization";
|
|
7
8
|
export { isValidUrl } from "./common/net";
|
|
8
9
|
export { normalizeOid } from "./common/normalize-oid";
|
|
10
|
+
export { PurposeOfUse } from "./common/purpose-of-use";
|
|
11
|
+
export * from "./common/retry";
|
|
12
|
+
export { sleep } from "./common/sleep";
|
|
13
|
+
export * from "./common/string";
|
|
9
14
|
export { toTitleCase } from "./common/titleCase";
|
|
15
|
+
export { AtLeastOne, stringToBoolean } from "./common/types";
|
|
16
|
+
export { validateNPI } from "./common/validate-npi";
|
|
17
|
+
export * from "./domain/address/index";
|
|
10
18
|
export * from "./domain/address/state";
|
|
19
|
+
export * from "./domain/address/territory";
|
|
11
20
|
export * from "./domain/address/zip";
|
|
12
21
|
export * from "./domain/contact/email";
|
|
13
22
|
export * from "./domain/contact/phone";
|
|
14
23
|
export * from "./domain/dob";
|
|
15
24
|
export * from "./domain/externalId";
|
|
16
25
|
export * from "./domain/gender";
|
|
17
|
-
export { PurposeOfUse } from "./common/purpose-of-use";
|
|
18
|
-
export * from "./common/retry";
|
|
19
|
-
export { sleep } from "./common/sleep";
|
|
20
|
-
export * from "./common/string";
|
|
21
|
-
export { AtLeastOne, stringToBoolean } from "./common/types";
|
|
22
|
-
export { validateNPI } from "./common/validate-npi";
|
|
23
26
|
export { metriportCompanyDetails } from "./domain/metriport";
|
|
24
|
-
export
|
|
27
|
+
export * from "./domain/patient/patient";
|
|
28
|
+
export * from "./domain/patient/patient-import";
|
|
25
29
|
export { BadRequestError } from "./error/bad-request";
|
|
26
30
|
export { MetriportError } from "./error/metriport-error";
|
|
27
31
|
export { NotFoundError } from "./error/not-found";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.medical = exports.errorToString = exports.NotFoundError = exports.MetriportError = exports.BadRequestError = exports.
|
|
29
|
+
exports.medical = exports.errorToString = exports.NotFoundError = exports.MetriportError = exports.BadRequestError = exports.metriportCompanyDetails = exports.validateNPI = exports.stringToBoolean = exports.toTitleCase = exports.sleep = exports.PurposeOfUse = exports.normalizeOid = exports.isValidUrl = exports.metriportOrganization = exports.emptyFunction = exports.getDomainFromEmailWithoutTld = exports.optionalDateSchema = exports.dateSchema = exports.isTrue = exports.toArray = void 0;
|
|
30
30
|
var array_1 = require("./common/array");
|
|
31
31
|
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return array_1.toArray; } });
|
|
32
32
|
var boolean_1 = require("./common/boolean");
|
|
@@ -39,33 +39,37 @@ Object.defineProperty(exports, "getDomainFromEmailWithoutTld", { enumerable: tru
|
|
|
39
39
|
__exportStar(require("./common/env-var"), exports);
|
|
40
40
|
var general_1 = require("./common/general");
|
|
41
41
|
Object.defineProperty(exports, "emptyFunction", { enumerable: true, get: function () { return general_1.emptyFunction; } });
|
|
42
|
+
var metriport_organization_1 = require("./common/metriport-organization");
|
|
43
|
+
Object.defineProperty(exports, "metriportOrganization", { enumerable: true, get: function () { return metriport_organization_1.metriportOrganization; } });
|
|
42
44
|
var net_1 = require("./common/net");
|
|
43
45
|
Object.defineProperty(exports, "isValidUrl", { enumerable: true, get: function () { return net_1.isValidUrl; } });
|
|
44
46
|
var normalize_oid_1 = require("./common/normalize-oid");
|
|
45
47
|
Object.defineProperty(exports, "normalizeOid", { enumerable: true, get: function () { return normalize_oid_1.normalizeOid; } });
|
|
46
|
-
var titleCase_1 = require("./common/titleCase");
|
|
47
|
-
Object.defineProperty(exports, "toTitleCase", { enumerable: true, get: function () { return titleCase_1.toTitleCase; } });
|
|
48
|
-
__exportStar(require("./domain/address/state"), exports);
|
|
49
|
-
__exportStar(require("./domain/address/zip"), exports);
|
|
50
|
-
__exportStar(require("./domain/contact/email"), exports);
|
|
51
|
-
__exportStar(require("./domain/contact/phone"), exports);
|
|
52
|
-
__exportStar(require("./domain/dob"), exports);
|
|
53
|
-
__exportStar(require("./domain/externalId"), exports);
|
|
54
|
-
__exportStar(require("./domain/gender"), exports);
|
|
55
48
|
var purpose_of_use_1 = require("./common/purpose-of-use");
|
|
56
49
|
Object.defineProperty(exports, "PurposeOfUse", { enumerable: true, get: function () { return purpose_of_use_1.PurposeOfUse; } });
|
|
57
50
|
__exportStar(require("./common/retry"), exports);
|
|
58
51
|
var sleep_1 = require("./common/sleep");
|
|
59
52
|
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_1.sleep; } });
|
|
60
53
|
__exportStar(require("./common/string"), exports);
|
|
54
|
+
var titleCase_1 = require("./common/titleCase");
|
|
55
|
+
Object.defineProperty(exports, "toTitleCase", { enumerable: true, get: function () { return titleCase_1.toTitleCase; } });
|
|
61
56
|
var types_1 = require("./common/types");
|
|
62
57
|
Object.defineProperty(exports, "stringToBoolean", { enumerable: true, get: function () { return types_1.stringToBoolean; } });
|
|
63
58
|
var validate_npi_1 = require("./common/validate-npi");
|
|
64
59
|
Object.defineProperty(exports, "validateNPI", { enumerable: true, get: function () { return validate_npi_1.validateNPI; } });
|
|
60
|
+
__exportStar(require("./domain/address/index"), exports);
|
|
61
|
+
__exportStar(require("./domain/address/state"), exports);
|
|
62
|
+
__exportStar(require("./domain/address/territory"), exports);
|
|
63
|
+
__exportStar(require("./domain/address/zip"), exports);
|
|
64
|
+
__exportStar(require("./domain/contact/email"), exports);
|
|
65
|
+
__exportStar(require("./domain/contact/phone"), exports);
|
|
66
|
+
__exportStar(require("./domain/dob"), exports);
|
|
67
|
+
__exportStar(require("./domain/externalId"), exports);
|
|
68
|
+
__exportStar(require("./domain/gender"), exports);
|
|
65
69
|
var metriport_1 = require("./domain/metriport");
|
|
66
70
|
Object.defineProperty(exports, "metriportCompanyDetails", { enumerable: true, get: function () { return metriport_1.metriportCompanyDetails; } });
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
__exportStar(require("./domain/patient/patient"), exports);
|
|
72
|
+
__exportStar(require("./domain/patient/patient-import"), exports);
|
|
69
73
|
var bad_request_1 = require("./error/bad-request");
|
|
70
74
|
Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return bad_request_1.BadRequestError; } });
|
|
71
75
|
var metriport_error_1 = require("./error/metriport-error");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAyC;AAAhC,gGAAA,OAAO,OAAA;AAChB,4CAA0C;AAAjC,iGAAA,MAAM,OAAA;AACf,sCAA+D;AAAtD,kGAAA,UAAU,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AACvC,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA;AACrC,mDAAiC;AACjC,4CAAiD;AAAxC,wGAAA,aAAa,OAAA;AACtB,oCAA0C;AAAjC,iGAAA,UAAU,OAAA;AACnB,wDAAsD;AAA7C,6GAAA,YAAY,OAAA;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAyC;AAAhC,gGAAA,OAAO,OAAA;AAChB,4CAA0C;AAAjC,iGAAA,MAAM,OAAA;AACf,sCAA+D;AAAtD,kGAAA,UAAU,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AACvC,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA;AACrC,mDAAiC;AACjC,4CAAiD;AAAxC,wGAAA,aAAa,OAAA;AACtB,0EAAwE;AAA/D,+HAAA,qBAAqB,OAAA;AAC9B,oCAA0C;AAAjC,iGAAA,UAAU,OAAA;AACnB,wDAAsD;AAA7C,6GAAA,YAAY,OAAA;AACrB,0DAAuD;AAA9C,8GAAA,YAAY,OAAA;AACrB,iDAA+B;AAC/B,wCAAuC;AAA9B,8FAAA,KAAK,OAAA;AACd,kDAAgC;AAChC,gDAAiD;AAAxC,wGAAA,WAAW,OAAA;AACpB,wCAA6D;AAAxC,wGAAA,eAAe,OAAA;AACpC,sDAAoD;AAA3C,2GAAA,WAAW,OAAA;AACpB,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,yDAAuC;AACvC,yDAAuC;AACvC,+CAA6B;AAC7B,sDAAoC;AACpC,kDAAgC;AAChC,gDAA6D;AAApD,oHAAA,uBAAuB,OAAA;AAChC,2DAAyC;AACzC,kEAAgD;AAChD,mDAAsD;AAA7C,8GAAA,eAAe,OAAA;AACxB,2DAAyD;AAAhD,iHAAA,cAAc,OAAA;AACvB,+CAAkD;AAAzC,0GAAA,aAAa,OAAA;AACtB,yCAA+C;AAAtC,uGAAA,aAAa,OAAA;AACtB,8CAA4B;AAC5B,qDAAqC;AACrC,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const bookedAppointmentSchema: z.ZodObject<{
|
|
3
|
+
patientid: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
patientid: string;
|
|
6
|
+
}, {
|
|
7
|
+
patientid: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
|
|
10
|
+
export declare const bookedAppointmentsGetResponseSchema: z.ZodObject<{
|
|
11
|
+
appointments: z.ZodArray<z.ZodObject<{
|
|
12
|
+
patientid: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
patientid: string;
|
|
15
|
+
}, {
|
|
16
|
+
patientid: string;
|
|
17
|
+
}>, "many">;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
appointments: {
|
|
20
|
+
patientid: string;
|
|
21
|
+
}[];
|
|
22
|
+
}, {
|
|
23
|
+
appointments: {
|
|
24
|
+
patientid: string;
|
|
25
|
+
}[];
|
|
26
|
+
}>;
|
|
27
|
+
export declare const appointmentEventGetResponseSchema: z.ZodObject<{
|
|
28
|
+
appointments: z.ZodArray<z.ZodObject<{
|
|
29
|
+
patientid: z.ZodOptional<z.ZodString>;
|
|
30
|
+
appointmentstatus: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
appointmentstatus: string;
|
|
33
|
+
patientid?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
appointmentstatus: string;
|
|
36
|
+
patientid?: string | undefined;
|
|
37
|
+
}>, "many">;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
appointments: {
|
|
40
|
+
appointmentstatus: string;
|
|
41
|
+
patientid?: string | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
}, {
|
|
44
|
+
appointments: {
|
|
45
|
+
appointmentstatus: string;
|
|
46
|
+
patientid?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
}>;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=appointment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,uBAAuB;;;;;;EAE3B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;EAE9C,CAAC;AAMH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;EAE5C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appointmentEventGetResponseSchema = exports.bookedAppointmentsGetResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const bookedAppointmentSchema = zod_1.z.object({
|
|
6
|
+
patientid: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.bookedAppointmentsGetResponseSchema = zod_1.z.object({
|
|
9
|
+
appointments: bookedAppointmentSchema.array(),
|
|
10
|
+
});
|
|
11
|
+
const appointmentEventSchema = zod_1.z.object({
|
|
12
|
+
patientid: zod_1.z.string().optional(),
|
|
13
|
+
appointmentstatus: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
exports.appointmentEventGetResponseSchema = zod_1.z.object({
|
|
16
|
+
appointments: appointmentEventSchema.array(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=appointment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,YAAY,EAAE,uBAAuB,CAAC,KAAK,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AACU,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,YAAY,EAAE,sBAAsB,CAAC,KAAK,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const athenaSecondaryMappingsSchema: z.ZodObject<{
|
|
3
|
+
departmentIds: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
departmentIds: string[];
|
|
6
|
+
}, {
|
|
7
|
+
departmentIds: string[];
|
|
8
|
+
}>;
|
|
9
|
+
export type AthenaSecondaryMappings = z.infer<typeof athenaSecondaryMappingsSchema>;
|
|
10
|
+
//# sourceMappingURL=cx-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
});
|
|
8
|
+
//# sourceMappingURL=cx-mapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../src/interface/external/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;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 departmentsGetResponseSchema: 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
|
+
//# sourceMappingURL=department.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"department.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/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,4BAA4B;;;;;;;;;;;;;;;;EAEvC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.departmentsGetResponseSchema = 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.departmentsGetResponseSchema = 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/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,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,WAAW,EAAE,wBAAgB,CAAC,KAAK,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -15,4 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./patient"), exports);
|
|
18
|
+
__exportStar(require("./cx-mapping"), exports);
|
|
19
|
+
__exportStar(require("./jwt-token"), exports);
|
|
20
|
+
__exportStar(require("./appointment"), exports);
|
|
21
|
+
__exportStar(require("./medication"), exports);
|
|
22
|
+
__exportStar(require("./subscription"), exports);
|
|
23
|
+
__exportStar(require("./department"), exports);
|
|
18
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/jwt-token.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/jwt-token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const medicationCreateResponseSchema: 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 MedicationCreateResponse = z.infer<typeof medicationCreateResponseSchema>;
|
|
16
|
+
declare const medicationReferenceSchema: z.ZodObject<{
|
|
17
|
+
medication: z.ZodString;
|
|
18
|
+
medicationid: z.ZodNumber;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
medication: string;
|
|
21
|
+
medicationid: number;
|
|
22
|
+
}, {
|
|
23
|
+
medication: string;
|
|
24
|
+
medicationid: number;
|
|
25
|
+
}>;
|
|
26
|
+
export type MedicationReference = z.infer<typeof medicationReferenceSchema>;
|
|
27
|
+
export declare const medicationReferencesGetResponseSchema: z.ZodArray<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
|
+
}>, "many">;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=medication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/medication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,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,qCAAqC;;;;;;;;;WAAoC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.medicationReferencesGetResponseSchema = exports.medicationCreateResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.medicationCreateResponseSchema = zod_1.z.object({
|
|
6
|
+
success: zod_1.z.boolean(),
|
|
7
|
+
errormessage: zod_1.z.string().optional(),
|
|
8
|
+
medicationentryid: zod_1.z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
const medicationReferenceSchema = zod_1.z.object({
|
|
11
|
+
medication: zod_1.z.string(),
|
|
12
|
+
medicationid: zod_1.z.number(),
|
|
13
|
+
});
|
|
14
|
+
exports.medicationReferencesGetResponseSchema = medicationReferenceSchema.array();
|
|
15
|
+
//# sourceMappingURL=medication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/medication.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,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,qCAAqC,GAAG,yBAAyB,CAAC,KAAK,EAAE,CAAC"}
|