@metriport/commonwell-sdk 6.2.2-alpha.1 → 6.2.3
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/client/commonwell-member.d.ts +1 -1
- package/dist/client/commonwell-member.d.ts.map +1 -1
- package/dist/client/commonwell-member.js +14 -11
- package/dist/client/commonwell-member.js.map +1 -1
- package/dist/models/address.d.ts +3 -2
- package/dist/models/address.d.ts.map +1 -1
- package/dist/models/address.js +10 -2
- package/dist/models/address.js.map +1 -1
- package/dist/models/certificates.d.ts +2 -1
- package/dist/models/certificates.d.ts.map +1 -1
- package/dist/models/certificates.js +1 -0
- package/dist/models/certificates.js.map +1 -1
- package/dist/models/demographics.d.ts +3 -3
- package/dist/models/facility.d.ts +3 -3
- package/dist/models/organization.d.ts +27 -23
- package/dist/models/organization.d.ts.map +1 -1
- package/dist/models/organization.js +6 -2
- package/dist/models/organization.js.map +1 -1
- package/dist/models/patient.d.ts +47 -47
- package/package.json +3 -3
- package/dist/client/commonwell-base.d.ts +0 -44
- package/dist/client/commonwell-base.d.ts.map +0 -1
- package/dist/client/commonwell-base.js +0 -78
- package/dist/client/commonwell-base.js.map +0 -1
|
@@ -162,6 +162,6 @@ export declare class CommonWellMember implements CommonWellMemberAPI {
|
|
|
162
162
|
*/
|
|
163
163
|
getCertificatesFromOrgByThumbprintAndPurpose(id: string, thumbprint: string, purpose: string, options?: BaseOptions): Promise<CertificateResp>;
|
|
164
164
|
private buildQueryHeaders;
|
|
165
|
-
private
|
|
165
|
+
private getDescriptiveError;
|
|
166
166
|
}
|
|
167
167
|
//# sourceMappingURL=commonwell-member.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonwell-member.d.ts","sourceRoot":"","sources":["../../src/client/commonwell-member.ts"],"names":[],"mappings":"AACA,OAAc,
|
|
1
|
+
{"version":3,"file":"commonwell-member.d.ts","sourceRoot":"","sources":["../../src/client/commonwell-member.ts"],"names":[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,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,eAAe,CAAC;IAa3B;;;;;;;;;;OAUG;IACG,4CAA4C,CAChD,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,eAAe,CAAC;IAY3B,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,mBAAmB;CAiB5B"}
|
|
@@ -119,7 +119,7 @@ class CommonWellMember {
|
|
|
119
119
|
return organization_1.organizationSchema.parse(resp.data);
|
|
120
120
|
}
|
|
121
121
|
catch (error) {
|
|
122
|
-
this.
|
|
122
|
+
throw this.getDescriptiveError(error, "Failed to create CW organization");
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
@@ -141,7 +141,7 @@ class CommonWellMember {
|
|
|
141
141
|
return organization_1.organizationSchema.parse(resp.data);
|
|
142
142
|
}
|
|
143
143
|
catch (error) {
|
|
144
|
-
this.
|
|
144
|
+
throw this.getDescriptiveError(error, "Failed to update CW organization");
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
@@ -167,7 +167,7 @@ class CommonWellMember {
|
|
|
167
167
|
return organization_1.organizationListSchema.parse(resp.data);
|
|
168
168
|
}
|
|
169
169
|
catch (error) {
|
|
170
|
-
this.
|
|
170
|
+
throw this.getDescriptiveError(error, "Failed to get CW organization list");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -331,18 +331,21 @@ class CommonWellMember {
|
|
|
331
331
|
});
|
|
332
332
|
return { Authorization: `Bearer ${jwt}` };
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
getDescriptiveError(error, title) {
|
|
335
335
|
if ((0, axios_1.isAxiosError)(error)) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
336
|
+
const status = error.response?.status;
|
|
337
|
+
const data = error.response?.data;
|
|
338
|
+
const responseBody = data ? JSON.stringify(data) : undefined;
|
|
339
|
+
const cwReference = this.lastTransactionId;
|
|
340
|
+
if (status === http_status_1.default.BAD_REQUEST) {
|
|
341
|
+
return new shared_1.BadRequestError(title, error, { status, cwReference, responseBody });
|
|
339
342
|
}
|
|
340
|
-
if (
|
|
341
|
-
|
|
342
|
-
throw new shared_1.MetriportError(title, undefined, { extra: JSON.stringify(data) });
|
|
343
|
+
if (status === http_status_1.default.NOT_FOUND) {
|
|
344
|
+
return new shared_1.NotFoundError(title, error, { status, cwReference, responseBody });
|
|
343
345
|
}
|
|
346
|
+
return new shared_1.MetriportError(title, error, { status, cwReference, responseBody });
|
|
344
347
|
}
|
|
345
|
-
|
|
348
|
+
return error;
|
|
346
349
|
}
|
|
347
350
|
}
|
|
348
351
|
exports.CommonWellMember = CommonWellMember;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonwell-member.js","sourceRoot":"","sources":["../../src/client/commonwell-member.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"commonwell-member.js","sourceRoot":"","sources":["../../src/client/commonwell-member.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAmF;AACnF,+CAAsF;AACtF,8DAAqC;AACrC,iCAA8B;AAC9B,uDAA6D;AAC7D,iDAA6C;AAC7C,yCAAoD;AACpD,yDAAkG;AAClG,yDAKgC;AAChC,qCAAqF;AAGrF;;;;;;GAMG;AACH,MAAa,gBAAgB;IAc3B;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACV,QAAQ,EACR,OAAO,EACP,OAAO,GAAG,EAAE,GAQb;QACC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,IAAI,aAAK,CAAC,EAAE,IAA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I,MAAM,KAAK,qBAAU,CAAC,SAAS,EAAE;gBACnC,OAAO,IAAI,sBAAa,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC;aAC/E;YACD,OAAO,IAAI,uBAAc,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC;SAChF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;;AA7ZH,4CA8ZC;AA7ZQ,+BAAc,GAAG,wDAAwD,CAAC;AAC1E,8BAAa,GAAG,4CAA4C,CAAC;AAE7D,6BAAY,GAAG,SAAS,CAAC;AACzB,gCAAe,GAAG,YAAY,CAAC"}
|
package/dist/models/address.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const addressTypeCodesSchema: z.ZodEffects<z.ZodNativeEnum<typeof
|
|
|
17
17
|
export declare const addressSchema: z.ZodObject<{
|
|
18
18
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
19
19
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
20
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
21
21
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
22
22
|
postalCode: z.ZodString;
|
|
23
23
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof AddressUseCodes>, AddressUseCodes, unknown>>>>;
|
|
@@ -54,8 +54,9 @@ export declare const addressSchema: z.ZodObject<{
|
|
|
54
54
|
} | null | undefined;
|
|
55
55
|
line?: string[] | null | undefined;
|
|
56
56
|
city?: string | null | undefined;
|
|
57
|
-
state?:
|
|
57
|
+
state?: unknown;
|
|
58
58
|
country?: unknown;
|
|
59
59
|
}>;
|
|
60
60
|
export type Address = z.infer<typeof addressSchema>;
|
|
61
|
+
export declare function normalizeStatePreprocess(arg: unknown): unknown;
|
|
61
62
|
//# sourceMappingURL=address.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AACD,eAAO,MAAM,qBAAqB,iFAA8D,CAAC;AAEjG,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AACD,eAAO,MAAM,sBAAsB,mFAA+D,CAAC;AAInG,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AACD,eAAO,MAAM,qBAAqB,iFAA8D,CAAC;AAEjG,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AACD,eAAO,MAAM,sBAAsB,mFAA+D,CAAC;AAInG,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAI9D"}
|
package/dist/models/address.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addressSchema = exports.addressTypeCodesSchema = exports.AddressTypeCodes = exports.addressUseCodesSchema = exports.AddressUseCodes = void 0;
|
|
3
|
+
exports.normalizeStatePreprocess = exports.addressSchema = exports.addressTypeCodesSchema = exports.AddressTypeCodes = exports.addressUseCodesSchema = exports.AddressUseCodes = void 0;
|
|
4
4
|
const shared_1 = require("@metriport/shared");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_2 = require("../common/zod");
|
|
@@ -27,11 +27,19 @@ exports.addressTypeCodesSchema = zod_1.z.preprocess(shared_1.zodToLowerCase, zod
|
|
|
27
27
|
exports.addressSchema = zod_1.z.object({
|
|
28
28
|
line: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
29
29
|
city: zod_1.z.string().nullish(),
|
|
30
|
-
state: zod_1.z.string().nullish(),
|
|
30
|
+
state: zod_1.z.preprocess(normalizeStatePreprocess, zod_1.z.string().nullish()),
|
|
31
31
|
country: zod_2.emptyStringToUndefinedSchema,
|
|
32
32
|
postalCode: zod_1.z.string(),
|
|
33
33
|
use: zod_2.emptyStringToUndefinedSchema.pipe(exports.addressUseCodesSchema.nullish()),
|
|
34
34
|
type: zod_2.emptyStringToUndefinedSchema.pipe(exports.addressTypeCodesSchema.nullish()),
|
|
35
35
|
period: period_1.periodSchema.nullish(),
|
|
36
36
|
});
|
|
37
|
+
function normalizeStatePreprocess(arg) {
|
|
38
|
+
if (typeof arg === "string" && ["", "undefined", "null"].includes(arg.trim()))
|
|
39
|
+
return undefined;
|
|
40
|
+
if (typeof arg === "string")
|
|
41
|
+
return (0, shared_1.normalizeState)(arg);
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
exports.normalizeStatePreprocess = normalizeStatePreprocess;
|
|
37
45
|
//# sourceMappingURL=address.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":";;;AAAA,8CAAmE;AACnE,6BAAwB;AACxB,uCAA6D;AAC7D,qCAAwC;AAExC;;;GAGG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,8BAAW,CAAA;AACb,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AACY,QAAA,qBAAqB,GAAG,OAAC,CAAC,UAAU,CAAC,uBAAc,EAAE,OAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC;AAEjG,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AACY,QAAA,sBAAsB,GAAG,OAAC,CAAC,UAAU,CAAC,uBAAc,EAAE,OAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEnG,oBAAoB;AACpB,gGAAgG;AACnF,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,KAAK,EAAE,OAAC,CAAC,UAAU,CAAC,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACnE,OAAO,EAAE,kCAA4B;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,GAAG,EAAE,kCAA4B,CAAC,IAAI,CAAC,6BAAqB,CAAC,OAAO,EAAE,CAAC;IACvE,IAAI,EAAE,kCAA4B,CAAC,IAAI,CAAC,8BAAsB,CAAC,OAAO,EAAE,CAAC;IACzE,MAAM,EAAE,qBAAY,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAGH,SAAgB,wBAAwB,CAAC,GAAY;IACnD,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAAE,OAAO,SAAS,CAAC;IAChG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAA,uBAAc,EAAC,GAAG,CAAC,CAAC;IACxD,OAAO,SAAS,CAAC;AACnB,CAAC;AAJD,4DAIC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare enum CertificatePurpose {
|
|
3
3
|
Signing = "signing",
|
|
4
|
-
Authentication = "authentication"
|
|
4
|
+
Authentication = "authentication",
|
|
5
|
+
Pix = "pix"
|
|
5
6
|
}
|
|
6
7
|
export declare const certificatePurposeSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, unknown, string>, z.ZodNativeEnum<typeof CertificatePurpose>>;
|
|
7
8
|
export declare const certificateSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/models/certificates.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,cAAc,mBAAmB;
|
|
1
|
+
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/models/certificates.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,GAAG,QAAQ;CACZ;AACD,eAAO,MAAM,wBAAwB,uGAGI,CAAC;AAE1C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ var CertificatePurpose;
|
|
|
7
7
|
(function (CertificatePurpose) {
|
|
8
8
|
CertificatePurpose["Signing"] = "signing";
|
|
9
9
|
CertificatePurpose["Authentication"] = "authentication";
|
|
10
|
+
CertificatePurpose["Pix"] = "pix";
|
|
10
11
|
})(CertificatePurpose = exports.CertificatePurpose || (exports.CertificatePurpose = {}));
|
|
11
12
|
exports.certificatePurposeSchema = zod_1.z
|
|
12
13
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificates.js","sourceRoot":"","sources":["../../src/models/certificates.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,6BAAwB;AAExB,IAAY,
|
|
1
|
+
{"version":3,"file":"certificates.js","sourceRoot":"","sources":["../../src/models/certificates.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,6BAAwB;AAExB,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,iCAAW,CAAA;AACb,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AACY,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,EAAE;KACR,SAAS,CAAC,uBAAc,CAAC;KACzB,IAAI,CAAC,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE7B,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,gCAAwB;CAClC,CAAC,CAAC;AAQU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -97,7 +97,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
97
97
|
address: z.ZodArray<z.ZodObject<{
|
|
98
98
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
99
99
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
100
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
101
101
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
102
102
|
postalCode: z.ZodString;
|
|
103
103
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -134,7 +134,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
134
134
|
} | null | undefined;
|
|
135
135
|
line?: string[] | null | undefined;
|
|
136
136
|
city?: string | null | undefined;
|
|
137
|
-
state?:
|
|
137
|
+
state?: unknown;
|
|
138
138
|
country?: unknown;
|
|
139
139
|
}>, "many">;
|
|
140
140
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -251,7 +251,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
251
251
|
} | null | undefined;
|
|
252
252
|
line?: string[] | null | undefined;
|
|
253
253
|
city?: string | null | undefined;
|
|
254
|
-
state?:
|
|
254
|
+
state?: unknown;
|
|
255
255
|
country?: unknown;
|
|
256
256
|
}[];
|
|
257
257
|
gender?: unknown;
|
|
@@ -5,7 +5,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
5
5
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
6
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
7
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
8
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
9
9
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
10
10
|
postalCode: z.ZodString;
|
|
11
11
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -42,7 +42,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
42
42
|
} | null | undefined;
|
|
43
43
|
line?: string[] | null | undefined;
|
|
44
44
|
city?: string | null | undefined;
|
|
45
|
-
state?:
|
|
45
|
+
state?: unknown;
|
|
46
46
|
country?: unknown;
|
|
47
47
|
}>>>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,7 +73,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
73
73
|
} | null | undefined;
|
|
74
74
|
line?: string[] | null | undefined;
|
|
75
75
|
city?: string | null | undefined;
|
|
76
|
-
state?:
|
|
76
|
+
state?: unknown;
|
|
77
77
|
country?: unknown;
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
id?: string | null | undefined;
|
|
@@ -40,7 +40,7 @@ declare const organizationBaseSchema: z.ZodObject<{
|
|
|
40
40
|
address1: z.ZodString;
|
|
41
41
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
city: z.ZodString;
|
|
43
|
-
state: z.ZodString
|
|
43
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
44
44
|
postalCode: z.ZodString;
|
|
45
45
|
country: z.ZodString;
|
|
46
46
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -58,10 +58,10 @@ declare const organizationBaseSchema: z.ZodObject<{
|
|
|
58
58
|
address2?: string | null | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
city: string;
|
|
61
|
-
state: string;
|
|
62
61
|
country: string;
|
|
63
62
|
postalCode: string;
|
|
64
63
|
address1: string;
|
|
64
|
+
state?: unknown;
|
|
65
65
|
phone?: string | null | undefined;
|
|
66
66
|
fax?: string | null | undefined;
|
|
67
67
|
email?: string | null | undefined;
|
|
@@ -137,10 +137,10 @@ declare const organizationBaseSchema: z.ZodObject<{
|
|
|
137
137
|
isActive: boolean;
|
|
138
138
|
locations: {
|
|
139
139
|
city: string;
|
|
140
|
-
state: string;
|
|
141
140
|
country: string;
|
|
142
141
|
postalCode: string;
|
|
143
142
|
address1: string;
|
|
143
|
+
state?: unknown;
|
|
144
144
|
phone?: string | null | undefined;
|
|
145
145
|
fax?: string | null | undefined;
|
|
146
146
|
email?: string | null | undefined;
|
|
@@ -209,7 +209,7 @@ export declare const organizationSchemaWithNetworkInfo: z.ZodObject<z.objectUtil
|
|
|
209
209
|
address1: z.ZodString;
|
|
210
210
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
211
|
city: z.ZodString;
|
|
212
|
-
state: z.ZodString
|
|
212
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
213
213
|
postalCode: z.ZodString;
|
|
214
214
|
country: z.ZodString;
|
|
215
215
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -227,10 +227,10 @@ export declare const organizationSchemaWithNetworkInfo: z.ZodObject<z.objectUtil
|
|
|
227
227
|
address2?: string | null | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
city: string;
|
|
230
|
-
state: string;
|
|
231
230
|
country: string;
|
|
232
231
|
postalCode: string;
|
|
233
232
|
address1: string;
|
|
233
|
+
state?: unknown;
|
|
234
234
|
phone?: string | null | undefined;
|
|
235
235
|
fax?: string | null | undefined;
|
|
236
236
|
email?: string | null | undefined;
|
|
@@ -417,10 +417,10 @@ export declare const organizationSchemaWithNetworkInfo: z.ZodObject<z.objectUtil
|
|
|
417
417
|
isActive: boolean;
|
|
418
418
|
locations: {
|
|
419
419
|
city: string;
|
|
420
|
-
state: string;
|
|
421
420
|
country: string;
|
|
422
421
|
postalCode: string;
|
|
423
422
|
address1: string;
|
|
423
|
+
state?: unknown;
|
|
424
424
|
phone?: string | null | undefined;
|
|
425
425
|
fax?: string | null | undefined;
|
|
426
426
|
email?: string | null | undefined;
|
|
@@ -516,7 +516,7 @@ export declare const organizationSchemaWithoutNetworkInfo: z.ZodObject<Omit<z.ob
|
|
|
516
516
|
address1: z.ZodString;
|
|
517
517
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
518
518
|
city: z.ZodString;
|
|
519
|
-
state: z.ZodString
|
|
519
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
520
520
|
postalCode: z.ZodString;
|
|
521
521
|
country: z.ZodString;
|
|
522
522
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -534,10 +534,10 @@ export declare const organizationSchemaWithoutNetworkInfo: z.ZodObject<Omit<z.ob
|
|
|
534
534
|
address2?: string | null | undefined;
|
|
535
535
|
}, {
|
|
536
536
|
city: string;
|
|
537
|
-
state: string;
|
|
538
537
|
country: string;
|
|
539
538
|
postalCode: string;
|
|
540
539
|
address1: string;
|
|
540
|
+
state?: unknown;
|
|
541
541
|
phone?: string | null | undefined;
|
|
542
542
|
fax?: string | null | undefined;
|
|
543
543
|
email?: string | null | undefined;
|
|
@@ -717,10 +717,10 @@ export declare const organizationSchemaWithoutNetworkInfo: z.ZodObject<Omit<z.ob
|
|
|
717
717
|
isActive: boolean;
|
|
718
718
|
locations: {
|
|
719
719
|
city: string;
|
|
720
|
-
state: string;
|
|
721
720
|
country: string;
|
|
722
721
|
postalCode: string;
|
|
723
722
|
address1: string;
|
|
723
|
+
state?: unknown;
|
|
724
724
|
phone?: string | null | undefined;
|
|
725
725
|
fax?: string | null | undefined;
|
|
726
726
|
email?: string | null | undefined;
|
|
@@ -809,7 +809,7 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
809
809
|
address1: z.ZodString;
|
|
810
810
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
811
|
city: z.ZodString;
|
|
812
|
-
state: z.ZodString
|
|
812
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
813
813
|
postalCode: z.ZodString;
|
|
814
814
|
country: z.ZodString;
|
|
815
815
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -827,10 +827,10 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
827
827
|
address2?: string | null | undefined;
|
|
828
828
|
}, {
|
|
829
829
|
city: string;
|
|
830
|
-
state: string;
|
|
831
830
|
country: string;
|
|
832
831
|
postalCode: string;
|
|
833
832
|
address1: string;
|
|
833
|
+
state?: unknown;
|
|
834
834
|
phone?: string | null | undefined;
|
|
835
835
|
fax?: string | null | undefined;
|
|
836
836
|
email?: string | null | undefined;
|
|
@@ -1017,10 +1017,10 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
1017
1017
|
isActive: boolean;
|
|
1018
1018
|
locations: {
|
|
1019
1019
|
city: string;
|
|
1020
|
-
state: string;
|
|
1021
1020
|
country: string;
|
|
1022
1021
|
postalCode: string;
|
|
1023
1022
|
address1: string;
|
|
1023
|
+
state?: unknown;
|
|
1024
1024
|
phone?: string | null | undefined;
|
|
1025
1025
|
fax?: string | null | undefined;
|
|
1026
1026
|
email?: string | null | undefined;
|
|
@@ -1114,7 +1114,7 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
1114
1114
|
address1: z.ZodString;
|
|
1115
1115
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1116
1116
|
city: z.ZodString;
|
|
1117
|
-
state: z.ZodString
|
|
1117
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
1118
1118
|
postalCode: z.ZodString;
|
|
1119
1119
|
country: z.ZodString;
|
|
1120
1120
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1132,10 +1132,10 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
1132
1132
|
address2?: string | null | undefined;
|
|
1133
1133
|
}, {
|
|
1134
1134
|
city: string;
|
|
1135
|
-
state: string;
|
|
1136
1135
|
country: string;
|
|
1137
1136
|
postalCode: string;
|
|
1138
1137
|
address1: string;
|
|
1138
|
+
state?: unknown;
|
|
1139
1139
|
phone?: string | null | undefined;
|
|
1140
1140
|
fax?: string | null | undefined;
|
|
1141
1141
|
email?: string | null | undefined;
|
|
@@ -1315,10 +1315,10 @@ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.ex
|
|
|
1315
1315
|
isActive: boolean;
|
|
1316
1316
|
locations: {
|
|
1317
1317
|
city: string;
|
|
1318
|
-
state: string;
|
|
1319
1318
|
country: string;
|
|
1320
1319
|
postalCode: string;
|
|
1321
1320
|
address1: string;
|
|
1321
|
+
state?: unknown;
|
|
1322
1322
|
phone?: string | null | undefined;
|
|
1323
1323
|
fax?: string | null | undefined;
|
|
1324
1324
|
email?: string | null | undefined;
|
|
@@ -1411,7 +1411,7 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1411
1411
|
address1: z.ZodString;
|
|
1412
1412
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1413
1413
|
city: z.ZodString;
|
|
1414
|
-
state: z.ZodString
|
|
1414
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
1415
1415
|
postalCode: z.ZodString;
|
|
1416
1416
|
country: z.ZodString;
|
|
1417
1417
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1429,10 +1429,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1429
1429
|
address2?: string | null | undefined;
|
|
1430
1430
|
}, {
|
|
1431
1431
|
city: string;
|
|
1432
|
-
state: string;
|
|
1433
1432
|
country: string;
|
|
1434
1433
|
postalCode: string;
|
|
1435
1434
|
address1: string;
|
|
1435
|
+
state?: unknown;
|
|
1436
1436
|
phone?: string | null | undefined;
|
|
1437
1437
|
fax?: string | null | undefined;
|
|
1438
1438
|
email?: string | null | undefined;
|
|
@@ -1619,10 +1619,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1619
1619
|
isActive: boolean;
|
|
1620
1620
|
locations: {
|
|
1621
1621
|
city: string;
|
|
1622
|
-
state: string;
|
|
1623
1622
|
country: string;
|
|
1624
1623
|
postalCode: string;
|
|
1625
1624
|
address1: string;
|
|
1625
|
+
state?: unknown;
|
|
1626
1626
|
phone?: string | null | undefined;
|
|
1627
1627
|
fax?: string | null | undefined;
|
|
1628
1628
|
email?: string | null | undefined;
|
|
@@ -1716,7 +1716,7 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1716
1716
|
address1: z.ZodString;
|
|
1717
1717
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1718
1718
|
city: z.ZodString;
|
|
1719
|
-
state: z.ZodString
|
|
1719
|
+
state: z.ZodEffects<z.ZodString, string, unknown>;
|
|
1720
1720
|
postalCode: z.ZodString;
|
|
1721
1721
|
country: z.ZodString;
|
|
1722
1722
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1734,10 +1734,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1734
1734
|
address2?: string | null | undefined;
|
|
1735
1735
|
}, {
|
|
1736
1736
|
city: string;
|
|
1737
|
-
state: string;
|
|
1738
1737
|
country: string;
|
|
1739
1738
|
postalCode: string;
|
|
1740
1739
|
address1: string;
|
|
1740
|
+
state?: unknown;
|
|
1741
1741
|
phone?: string | null | undefined;
|
|
1742
1742
|
fax?: string | null | undefined;
|
|
1743
1743
|
email?: string | null | undefined;
|
|
@@ -1917,10 +1917,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
1917
1917
|
isActive: boolean;
|
|
1918
1918
|
locations: {
|
|
1919
1919
|
city: string;
|
|
1920
|
-
state: string;
|
|
1921
1920
|
country: string;
|
|
1922
1921
|
postalCode: string;
|
|
1923
1922
|
address1: string;
|
|
1923
|
+
state?: unknown;
|
|
1924
1924
|
phone?: string | null | undefined;
|
|
1925
1925
|
fax?: string | null | undefined;
|
|
1926
1926
|
email?: string | null | undefined;
|
|
@@ -2114,10 +2114,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
2114
2114
|
isActive: boolean;
|
|
2115
2115
|
locations: {
|
|
2116
2116
|
city: string;
|
|
2117
|
-
state: string;
|
|
2118
2117
|
country: string;
|
|
2119
2118
|
postalCode: string;
|
|
2120
2119
|
address1: string;
|
|
2120
|
+
state?: unknown;
|
|
2121
2121
|
phone?: string | null | undefined;
|
|
2122
2122
|
fax?: string | null | undefined;
|
|
2123
2123
|
email?: string | null | undefined;
|
|
@@ -2181,10 +2181,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
2181
2181
|
isActive: boolean;
|
|
2182
2182
|
locations: {
|
|
2183
2183
|
city: string;
|
|
2184
|
-
state: string;
|
|
2185
2184
|
country: string;
|
|
2186
2185
|
postalCode: string;
|
|
2187
2186
|
address1: string;
|
|
2187
|
+
state?: unknown;
|
|
2188
2188
|
phone?: string | null | undefined;
|
|
2189
2189
|
fax?: string | null | undefined;
|
|
2190
2190
|
email?: string | null | undefined;
|
|
@@ -2232,6 +2232,10 @@ export declare const organizationListSchema: z.ZodObject<{
|
|
|
2232
2232
|
}[] | null | undefined;
|
|
2233
2233
|
})[];
|
|
2234
2234
|
}>;
|
|
2235
|
+
/**
|
|
2236
|
+
* Keep these in lowercase since the code that uses it to map the CW type to the Metriport type
|
|
2237
|
+
* expects the keys to be lowercase.
|
|
2238
|
+
*/
|
|
2235
2239
|
export declare enum CwTreatmentType {
|
|
2236
2240
|
acuteCare = "acute care",
|
|
2237
2241
|
ambulatory = "ambulatory",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsC1B,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA3D,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiF3D,CAAC;AAEH;;;GAGG;AACH,oBAAY,eAAe;IACzB,SAAS,eAAe;IACxB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,UAAU,gBAAgB;IAC1B,QAAQ,aAAa;IACrB,aAAa,oBAAoB;CAClC;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAErE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isOrgInitiatorAndResponder = exports.CwTreatmentType = exports.organizationListSchema = exports.organizationSchema = exports.organizationSchemaWithoutNetworkInfo = exports.organizationSchemaWithNetworkInfo = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
|
|
5
|
+
const address_1 = require("./address");
|
|
6
6
|
const organizationBaseSchema = zod_1.z.object({
|
|
7
7
|
organizationId: zod_1.z.string(),
|
|
8
8
|
homeCommunityId: zod_1.z.string(),
|
|
@@ -32,7 +32,7 @@ const organizationBaseSchema = zod_1.z.object({
|
|
|
32
32
|
address1: zod_1.z.string(),
|
|
33
33
|
address2: zod_1.z.string().nullish(),
|
|
34
34
|
city: zod_1.z.string(),
|
|
35
|
-
state: zod_1.z.string(),
|
|
35
|
+
state: zod_1.z.preprocess(address_1.normalizeStatePreprocess, zod_1.z.string()),
|
|
36
36
|
postalCode: zod_1.z.string(),
|
|
37
37
|
country: zod_1.z.string(),
|
|
38
38
|
phone: zod_1.z.string().nullish(),
|
|
@@ -104,6 +104,10 @@ exports.organizationListSchema = zod_1.z.object({
|
|
|
104
104
|
to: zod_1.z.number(),
|
|
105
105
|
organizations: zod_1.z.array(exports.organizationSchema),
|
|
106
106
|
});
|
|
107
|
+
/**
|
|
108
|
+
* Keep these in lowercase since the code that uses it to map the CW type to the Metriport type
|
|
109
|
+
* expects the keys to be lowercase.
|
|
110
|
+
*/
|
|
107
111
|
var CwTreatmentType;
|
|
108
112
|
(function (CwTreatmentType) {
|
|
109
113
|
CwTreatmentType["acuteCare"] = "acute care";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAAqD;AAErD,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,OAAC,CAAC,MAAM,E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CAAC;SACD,OAAO,EAAE;CACb,CAAC,CAAC;AAGU,QAAA,oCAAoC,GAAG,yCAAiC,CAAC,IAAI,CAAC;IACzF,wBAAwB,EAAE,IAAI;CAC/B,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,OAAC,CAAC,KAAK,CAAC;IACxC,yCAAiC;IACjC,4CAAoC;CACrC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,0BAAkB,CAAC;CAC3C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,2CAAwB,CAAA;IACxB,4CAAyB,CAAA;IACzB,wCAAqB,CAAA;IACrB,6CAA0B,CAAA;IAC1B,wCAAqB,CAAA;IACrB,oDAAiC,CAAA;AACnC,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAID,SAAgB,0BAA0B,CAAC,GAAiB;IAC1D,OAAO,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;AACpC,CAAC;AAFD,gEAEC"}
|
package/dist/models/patient.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
108
108
|
address: z.ZodArray<z.ZodObject<{
|
|
109
109
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
110
110
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
111
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
112
112
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
113
113
|
postalCode: z.ZodString;
|
|
114
114
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -145,7 +145,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
145
145
|
} | null | undefined;
|
|
146
146
|
line?: string[] | null | undefined;
|
|
147
147
|
city?: string | null | undefined;
|
|
148
|
-
state?:
|
|
148
|
+
state?: unknown;
|
|
149
149
|
country?: unknown;
|
|
150
150
|
}>, "many">;
|
|
151
151
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -247,7 +247,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
247
247
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
248
248
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
249
249
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
250
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
251
251
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
252
252
|
postalCode: z.ZodString;
|
|
253
253
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -284,7 +284,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
284
284
|
} | null | undefined;
|
|
285
285
|
line?: string[] | null | undefined;
|
|
286
286
|
city?: string | null | undefined;
|
|
287
|
-
state?:
|
|
287
|
+
state?: unknown;
|
|
288
288
|
country?: unknown;
|
|
289
289
|
}>>>;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -315,7 +315,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
315
315
|
} | null | undefined;
|
|
316
316
|
line?: string[] | null | undefined;
|
|
317
317
|
city?: string | null | undefined;
|
|
318
|
-
state?:
|
|
318
|
+
state?: unknown;
|
|
319
319
|
country?: unknown;
|
|
320
320
|
} | null | undefined;
|
|
321
321
|
id?: string | null | undefined;
|
|
@@ -434,7 +434,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
434
434
|
} | null | undefined;
|
|
435
435
|
line?: string[] | null | undefined;
|
|
436
436
|
city?: string | null | undefined;
|
|
437
|
-
state?:
|
|
437
|
+
state?: unknown;
|
|
438
438
|
country?: unknown;
|
|
439
439
|
}[];
|
|
440
440
|
link?: {
|
|
@@ -473,7 +473,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
473
473
|
} | null | undefined;
|
|
474
474
|
line?: string[] | null | undefined;
|
|
475
475
|
city?: string | null | undefined;
|
|
476
|
-
state?:
|
|
476
|
+
state?: unknown;
|
|
477
477
|
country?: unknown;
|
|
478
478
|
} | null | undefined;
|
|
479
479
|
id?: string | null | undefined;
|
|
@@ -564,7 +564,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
564
564
|
address: z.ZodArray<z.ZodObject<{
|
|
565
565
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
566
566
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
567
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
568
568
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
569
569
|
postalCode: z.ZodString;
|
|
570
570
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -601,7 +601,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
601
601
|
} | null | undefined;
|
|
602
602
|
line?: string[] | null | undefined;
|
|
603
603
|
city?: string | null | undefined;
|
|
604
|
-
state?:
|
|
604
|
+
state?: unknown;
|
|
605
605
|
country?: unknown;
|
|
606
606
|
}>, "many">;
|
|
607
607
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -703,7 +703,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
703
703
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
704
704
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
705
705
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
706
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
706
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
707
707
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
708
708
|
postalCode: z.ZodString;
|
|
709
709
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -740,7 +740,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
740
740
|
} | null | undefined;
|
|
741
741
|
line?: string[] | null | undefined;
|
|
742
742
|
city?: string | null | undefined;
|
|
743
|
-
state?:
|
|
743
|
+
state?: unknown;
|
|
744
744
|
country?: unknown;
|
|
745
745
|
}>>>;
|
|
746
746
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -771,7 +771,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
771
771
|
} | null | undefined;
|
|
772
772
|
line?: string[] | null | undefined;
|
|
773
773
|
city?: string | null | undefined;
|
|
774
|
-
state?:
|
|
774
|
+
state?: unknown;
|
|
775
775
|
country?: unknown;
|
|
776
776
|
} | null | undefined;
|
|
777
777
|
id?: string | null | undefined;
|
|
@@ -890,7 +890,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
890
890
|
} | null | undefined;
|
|
891
891
|
line?: string[] | null | undefined;
|
|
892
892
|
city?: string | null | undefined;
|
|
893
|
-
state?:
|
|
893
|
+
state?: unknown;
|
|
894
894
|
country?: unknown;
|
|
895
895
|
}[];
|
|
896
896
|
link?: {
|
|
@@ -929,7 +929,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
929
929
|
} | null | undefined;
|
|
930
930
|
line?: string[] | null | undefined;
|
|
931
931
|
city?: string | null | undefined;
|
|
932
|
-
state?:
|
|
932
|
+
state?: unknown;
|
|
933
933
|
country?: unknown;
|
|
934
934
|
} | null | undefined;
|
|
935
935
|
id?: string | null | undefined;
|
|
@@ -1085,7 +1085,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
1085
1085
|
} | null | undefined;
|
|
1086
1086
|
line?: string[] | null | undefined;
|
|
1087
1087
|
city?: string | null | undefined;
|
|
1088
|
-
state?:
|
|
1088
|
+
state?: unknown;
|
|
1089
1089
|
country?: unknown;
|
|
1090
1090
|
}[];
|
|
1091
1091
|
link?: {
|
|
@@ -1124,7 +1124,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
|
|
|
1124
1124
|
} | null | undefined;
|
|
1125
1125
|
line?: string[] | null | undefined;
|
|
1126
1126
|
city?: string | null | undefined;
|
|
1127
|
-
state?:
|
|
1127
|
+
state?: unknown;
|
|
1128
1128
|
country?: unknown;
|
|
1129
1129
|
} | null | undefined;
|
|
1130
1130
|
id?: string | null | undefined;
|
|
@@ -1224,7 +1224,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1224
1224
|
address: z.ZodArray<z.ZodObject<{
|
|
1225
1225
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1226
1226
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1227
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1227
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
1228
1228
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
1229
1229
|
postalCode: z.ZodString;
|
|
1230
1230
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -1261,7 +1261,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1261
1261
|
} | null | undefined;
|
|
1262
1262
|
line?: string[] | null | undefined;
|
|
1263
1263
|
city?: string | null | undefined;
|
|
1264
|
-
state?:
|
|
1264
|
+
state?: unknown;
|
|
1265
1265
|
country?: unknown;
|
|
1266
1266
|
}>, "many">;
|
|
1267
1267
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1363,7 +1363,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1363
1363
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1364
1364
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1365
1365
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1366
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1366
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
1367
1367
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
1368
1368
|
postalCode: z.ZodString;
|
|
1369
1369
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -1400,7 +1400,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1400
1400
|
} | null | undefined;
|
|
1401
1401
|
line?: string[] | null | undefined;
|
|
1402
1402
|
city?: string | null | undefined;
|
|
1403
|
-
state?:
|
|
1403
|
+
state?: unknown;
|
|
1404
1404
|
country?: unknown;
|
|
1405
1405
|
}>>>;
|
|
1406
1406
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1431,7 +1431,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1431
1431
|
} | null | undefined;
|
|
1432
1432
|
line?: string[] | null | undefined;
|
|
1433
1433
|
city?: string | null | undefined;
|
|
1434
|
-
state?:
|
|
1434
|
+
state?: unknown;
|
|
1435
1435
|
country?: unknown;
|
|
1436
1436
|
} | null | undefined;
|
|
1437
1437
|
id?: string | null | undefined;
|
|
@@ -1550,7 +1550,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1550
1550
|
} | null | undefined;
|
|
1551
1551
|
line?: string[] | null | undefined;
|
|
1552
1552
|
city?: string | null | undefined;
|
|
1553
|
-
state?:
|
|
1553
|
+
state?: unknown;
|
|
1554
1554
|
country?: unknown;
|
|
1555
1555
|
}[];
|
|
1556
1556
|
link?: {
|
|
@@ -1589,7 +1589,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1589
1589
|
} | null | undefined;
|
|
1590
1590
|
line?: string[] | null | undefined;
|
|
1591
1591
|
city?: string | null | undefined;
|
|
1592
|
-
state?:
|
|
1592
|
+
state?: unknown;
|
|
1593
1593
|
country?: unknown;
|
|
1594
1594
|
} | null | undefined;
|
|
1595
1595
|
id?: string | null | undefined;
|
|
@@ -1745,7 +1745,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1745
1745
|
} | null | undefined;
|
|
1746
1746
|
line?: string[] | null | undefined;
|
|
1747
1747
|
city?: string | null | undefined;
|
|
1748
|
-
state?:
|
|
1748
|
+
state?: unknown;
|
|
1749
1749
|
country?: unknown;
|
|
1750
1750
|
}[];
|
|
1751
1751
|
link?: {
|
|
@@ -1784,7 +1784,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1784
1784
|
} | null | undefined;
|
|
1785
1785
|
line?: string[] | null | undefined;
|
|
1786
1786
|
city?: string | null | undefined;
|
|
1787
|
-
state?:
|
|
1787
|
+
state?: unknown;
|
|
1788
1788
|
country?: unknown;
|
|
1789
1789
|
} | null | undefined;
|
|
1790
1790
|
id?: string | null | undefined;
|
|
@@ -1939,7 +1939,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1939
1939
|
} | null | undefined;
|
|
1940
1940
|
line?: string[] | null | undefined;
|
|
1941
1941
|
city?: string | null | undefined;
|
|
1942
|
-
state?:
|
|
1942
|
+
state?: unknown;
|
|
1943
1943
|
country?: unknown;
|
|
1944
1944
|
}[];
|
|
1945
1945
|
link?: {
|
|
@@ -1978,7 +1978,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
|
|
|
1978
1978
|
} | null | undefined;
|
|
1979
1979
|
line?: string[] | null | undefined;
|
|
1980
1980
|
city?: string | null | undefined;
|
|
1981
|
-
state?:
|
|
1981
|
+
state?: unknown;
|
|
1982
1982
|
country?: unknown;
|
|
1983
1983
|
} | null | undefined;
|
|
1984
1984
|
id?: string | null | undefined;
|
|
@@ -2118,7 +2118,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2118
2118
|
address: z.ZodArray<z.ZodObject<{
|
|
2119
2119
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2120
2120
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2121
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2121
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2122
2122
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2123
2123
|
postalCode: z.ZodString;
|
|
2124
2124
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -2155,7 +2155,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2155
2155
|
} | null | undefined;
|
|
2156
2156
|
line?: string[] | null | undefined;
|
|
2157
2157
|
city?: string | null | undefined;
|
|
2158
|
-
state?:
|
|
2158
|
+
state?: unknown;
|
|
2159
2159
|
country?: unknown;
|
|
2160
2160
|
}>, "many">;
|
|
2161
2161
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -2257,7 +2257,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2257
2257
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2258
2258
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2259
2259
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2260
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2260
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2261
2261
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2262
2262
|
postalCode: z.ZodString;
|
|
2263
2263
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -2294,7 +2294,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2294
2294
|
} | null | undefined;
|
|
2295
2295
|
line?: string[] | null | undefined;
|
|
2296
2296
|
city?: string | null | undefined;
|
|
2297
|
-
state?:
|
|
2297
|
+
state?: unknown;
|
|
2298
2298
|
country?: unknown;
|
|
2299
2299
|
}>>>;
|
|
2300
2300
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2325,7 +2325,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2325
2325
|
} | null | undefined;
|
|
2326
2326
|
line?: string[] | null | undefined;
|
|
2327
2327
|
city?: string | null | undefined;
|
|
2328
|
-
state?:
|
|
2328
|
+
state?: unknown;
|
|
2329
2329
|
country?: unknown;
|
|
2330
2330
|
} | null | undefined;
|
|
2331
2331
|
id?: string | null | undefined;
|
|
@@ -2444,7 +2444,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2444
2444
|
} | null | undefined;
|
|
2445
2445
|
line?: string[] | null | undefined;
|
|
2446
2446
|
city?: string | null | undefined;
|
|
2447
|
-
state?:
|
|
2447
|
+
state?: unknown;
|
|
2448
2448
|
country?: unknown;
|
|
2449
2449
|
}[];
|
|
2450
2450
|
link?: {
|
|
@@ -2483,7 +2483,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2483
2483
|
} | null | undefined;
|
|
2484
2484
|
line?: string[] | null | undefined;
|
|
2485
2485
|
city?: string | null | undefined;
|
|
2486
|
-
state?:
|
|
2486
|
+
state?: unknown;
|
|
2487
2487
|
country?: unknown;
|
|
2488
2488
|
} | null | undefined;
|
|
2489
2489
|
id?: string | null | undefined;
|
|
@@ -2629,7 +2629,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2629
2629
|
} | null | undefined;
|
|
2630
2630
|
line?: string[] | null | undefined;
|
|
2631
2631
|
city?: string | null | undefined;
|
|
2632
|
-
state?:
|
|
2632
|
+
state?: unknown;
|
|
2633
2633
|
country?: unknown;
|
|
2634
2634
|
}[];
|
|
2635
2635
|
link?: {
|
|
@@ -2668,7 +2668,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
|
|
|
2668
2668
|
} | null | undefined;
|
|
2669
2669
|
line?: string[] | null | undefined;
|
|
2670
2670
|
city?: string | null | undefined;
|
|
2671
|
-
state?:
|
|
2671
|
+
state?: unknown;
|
|
2672
2672
|
country?: unknown;
|
|
2673
2673
|
} | null | undefined;
|
|
2674
2674
|
id?: string | null | undefined;
|
|
@@ -2761,7 +2761,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
2761
2761
|
address: z.ZodArray<z.ZodObject<{
|
|
2762
2762
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2763
2763
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2764
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2764
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2765
2765
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2766
2766
|
postalCode: z.ZodString;
|
|
2767
2767
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -2798,7 +2798,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
2798
2798
|
} | null | undefined;
|
|
2799
2799
|
line?: string[] | null | undefined;
|
|
2800
2800
|
city?: string | null | undefined;
|
|
2801
|
-
state?:
|
|
2801
|
+
state?: unknown;
|
|
2802
2802
|
country?: unknown;
|
|
2803
2803
|
}>, "many">;
|
|
2804
2804
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -2900,7 +2900,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
2900
2900
|
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2901
2901
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2902
2902
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2903
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2903
|
+
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2904
2904
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
2905
2905
|
postalCode: z.ZodString;
|
|
2906
2906
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
|
|
@@ -2937,7 +2937,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
2937
2937
|
} | null | undefined;
|
|
2938
2938
|
line?: string[] | null | undefined;
|
|
2939
2939
|
city?: string | null | undefined;
|
|
2940
|
-
state?:
|
|
2940
|
+
state?: unknown;
|
|
2941
2941
|
country?: unknown;
|
|
2942
2942
|
}>>>;
|
|
2943
2943
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2968,7 +2968,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
2968
2968
|
} | null | undefined;
|
|
2969
2969
|
line?: string[] | null | undefined;
|
|
2970
2970
|
city?: string | null | undefined;
|
|
2971
|
-
state?:
|
|
2971
|
+
state?: unknown;
|
|
2972
2972
|
country?: unknown;
|
|
2973
2973
|
} | null | undefined;
|
|
2974
2974
|
id?: string | null | undefined;
|
|
@@ -3087,7 +3087,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3087
3087
|
} | null | undefined;
|
|
3088
3088
|
line?: string[] | null | undefined;
|
|
3089
3089
|
city?: string | null | undefined;
|
|
3090
|
-
state?:
|
|
3090
|
+
state?: unknown;
|
|
3091
3091
|
country?: unknown;
|
|
3092
3092
|
}[];
|
|
3093
3093
|
link?: {
|
|
@@ -3126,7 +3126,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3126
3126
|
} | null | undefined;
|
|
3127
3127
|
line?: string[] | null | undefined;
|
|
3128
3128
|
city?: string | null | undefined;
|
|
3129
|
-
state?:
|
|
3129
|
+
state?: unknown;
|
|
3130
3130
|
country?: unknown;
|
|
3131
3131
|
} | null | undefined;
|
|
3132
3132
|
id?: string | null | undefined;
|
|
@@ -3272,7 +3272,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3272
3272
|
} | null | undefined;
|
|
3273
3273
|
line?: string[] | null | undefined;
|
|
3274
3274
|
city?: string | null | undefined;
|
|
3275
|
-
state?:
|
|
3275
|
+
state?: unknown;
|
|
3276
3276
|
country?: unknown;
|
|
3277
3277
|
}[];
|
|
3278
3278
|
link?: {
|
|
@@ -3311,7 +3311,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3311
3311
|
} | null | undefined;
|
|
3312
3312
|
line?: string[] | null | undefined;
|
|
3313
3313
|
city?: string | null | undefined;
|
|
3314
|
-
state?:
|
|
3314
|
+
state?: unknown;
|
|
3315
3315
|
country?: unknown;
|
|
3316
3316
|
} | null | undefined;
|
|
3317
3317
|
id?: string | null | undefined;
|
|
@@ -3462,7 +3462,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3462
3462
|
} | null | undefined;
|
|
3463
3463
|
line?: string[] | null | undefined;
|
|
3464
3464
|
city?: string | null | undefined;
|
|
3465
|
-
state?:
|
|
3465
|
+
state?: unknown;
|
|
3466
3466
|
country?: unknown;
|
|
3467
3467
|
}[];
|
|
3468
3468
|
link?: {
|
|
@@ -3501,7 +3501,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
|
|
|
3501
3501
|
} | null | undefined;
|
|
3502
3502
|
line?: string[] | null | undefined;
|
|
3503
3503
|
city?: string | null | undefined;
|
|
3504
|
-
state?:
|
|
3504
|
+
state?: unknown;
|
|
3505
3505
|
country?: unknown;
|
|
3506
3506
|
} | null | undefined;
|
|
3507
3507
|
id?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/commonwell-sdk",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"description": "SDK to simplify CommonWell API integration - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"url": "https://github.com/metriport/metriport/issues"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@metriport/shared": "^0.
|
|
63
|
+
"@metriport/shared": "^0.26.1",
|
|
64
64
|
"axios": "^1.8.2",
|
|
65
65
|
"http-status": "~1.7.0",
|
|
66
66
|
"jsonwebtoken": "^9.0.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"prettier": "^2.8.3",
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "bcda0133f54a8651cc6007e6727542eacc326852"
|
|
82
82
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance } from "axios";
|
|
2
|
-
import { APIMode, CommonWellOptions } from "./common";
|
|
3
|
-
/**
|
|
4
|
-
* Implementation of the CommonWell API, v4.
|
|
5
|
-
* @see https://www.commonwellalliance.org/specification/
|
|
6
|
-
*
|
|
7
|
-
* For the Organization management API (member API):
|
|
8
|
-
* @see https://commonwellalliance.sharepoint.com/sites/CommonWellServicesPlatform/SitePages/Organization-APIs.aspx
|
|
9
|
-
*/
|
|
10
|
-
export declare class CommonWellBase {
|
|
11
|
-
static integrationUrl: string;
|
|
12
|
-
static productionUrl: string;
|
|
13
|
-
readonly api: AxiosInstance;
|
|
14
|
-
protected rsaPrivateKey: string;
|
|
15
|
-
private httpsAgent;
|
|
16
|
-
private _lastTransactionId;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new instance of the CommonWell API client pertaining to an
|
|
19
|
-
* organization to make requests on behalf of.
|
|
20
|
-
*
|
|
21
|
-
* @param orgCert The certificate (public key) for the organization.
|
|
22
|
-
* @param rsaPrivateKey An RSA key corresponding to the specified orgCert.
|
|
23
|
-
* @param memberName The name of the member.
|
|
24
|
-
* @param memberId The ID of the member (not the OID).
|
|
25
|
-
* @param apiMode The mode the client will be running.
|
|
26
|
-
* @param options Optional parameters
|
|
27
|
-
* @param options.timeout Connection timeout in milliseconds, default 120 seconds.
|
|
28
|
-
*/
|
|
29
|
-
constructor({ orgCert, rsaPrivateKey, apiMode, options, }: {
|
|
30
|
-
orgCert: string;
|
|
31
|
-
rsaPrivateKey: string;
|
|
32
|
-
apiMode: APIMode;
|
|
33
|
-
options?: CommonWellOptions;
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Returns the transaction ID from the last request.
|
|
37
|
-
*/
|
|
38
|
-
get lastTransactionId(): string | undefined;
|
|
39
|
-
private axiosPreRequest;
|
|
40
|
-
private postRequest;
|
|
41
|
-
private axiosSuccessfulResponse;
|
|
42
|
-
private axiosErrorResponse;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=commonwell-base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commonwell-base.d.ts","sourceRoot":"","sources":["../../src/client/commonwell-base.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAiC,MAAM,UAAU,CAAC;AAErF;;;;;;GAMG;AACH,qBAAa,cAAc;IACzB,MAAM,CAAC,cAAc,SAA4D;IACjF,MAAM,CAAC,aAAa,SAAgD;IAEpE,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,kBAAkB,CAAqB;IAE/C;;;;;;;;;;;OAWG;gBACS,EACV,OAAO,EACP,aAAa,EACb,OAAO,EACP,OAAY,GACb,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC;KAC7B;IAmBD;;OAEG;IACH,IAAI,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAE1C;IAED,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,uBAAuB;IAM/B,OAAO,CAAC,kBAAkB;CAO3B"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonWellBase = void 0;
|
|
7
|
-
const axios_1 = __importDefault(require("axios"));
|
|
8
|
-
const https_1 = require("https");
|
|
9
|
-
const common_1 = require("./common");
|
|
10
|
-
/**
|
|
11
|
-
* Implementation of the CommonWell API, v4.
|
|
12
|
-
* @see https://www.commonwellalliance.org/specification/
|
|
13
|
-
*
|
|
14
|
-
* For the Organization management API (member API):
|
|
15
|
-
* @see https://commonwellalliance.sharepoint.com/sites/CommonWellServicesPlatform/SitePages/Organization-APIs.aspx
|
|
16
|
-
*/
|
|
17
|
-
class CommonWellBase {
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new instance of the CommonWell API client pertaining to an
|
|
20
|
-
* organization to make requests on behalf of.
|
|
21
|
-
*
|
|
22
|
-
* @param orgCert The certificate (public key) for the organization.
|
|
23
|
-
* @param rsaPrivateKey An RSA key corresponding to the specified orgCert.
|
|
24
|
-
* @param memberName The name of the member.
|
|
25
|
-
* @param memberId The ID of the member (not the OID).
|
|
26
|
-
* @param apiMode The mode the client will be running.
|
|
27
|
-
* @param options Optional parameters
|
|
28
|
-
* @param options.timeout Connection timeout in milliseconds, default 120 seconds.
|
|
29
|
-
*/
|
|
30
|
-
constructor({ orgCert, rsaPrivateKey, apiMode, options = {}, }) {
|
|
31
|
-
this.rsaPrivateKey = rsaPrivateKey;
|
|
32
|
-
this.httpsAgent = new https_1.Agent({ cert: orgCert, key: rsaPrivateKey });
|
|
33
|
-
this.api = axios_1.default.create({
|
|
34
|
-
timeout: options?.timeout ?? common_1.DEFAULT_AXIOS_TIMEOUT_SECONDS * 1000,
|
|
35
|
-
baseURL: apiMode === common_1.APIMode.production
|
|
36
|
-
? CommonWellBase.productionUrl
|
|
37
|
-
: CommonWellBase.integrationUrl,
|
|
38
|
-
httpsAgent: this.httpsAgent,
|
|
39
|
-
});
|
|
40
|
-
options.preRequestHook &&
|
|
41
|
-
this.api.interceptors.request.use(this.axiosPreRequest(this, options.preRequestHook));
|
|
42
|
-
this.api.interceptors.response.use(this.axiosSuccessfulResponse(this), this.axiosErrorResponse(this));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns the transaction ID from the last request.
|
|
46
|
-
*/
|
|
47
|
-
get lastTransactionId() {
|
|
48
|
-
return this._lastTransactionId;
|
|
49
|
-
}
|
|
50
|
-
axiosPreRequest(_this, preRequestHook) {
|
|
51
|
-
return (reqConfig) => {
|
|
52
|
-
preRequestHook?.(reqConfig);
|
|
53
|
-
return reqConfig;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
// Being extra safe with these bc a failure here fails the actual request
|
|
57
|
-
postRequest(response) {
|
|
58
|
-
this._lastTransactionId =
|
|
59
|
-
response && response.headers ? response.headers["x-trace-id"] : undefined;
|
|
60
|
-
}
|
|
61
|
-
axiosSuccessfulResponse(_this) {
|
|
62
|
-
return (response) => {
|
|
63
|
-
_this && _this.postRequest(response);
|
|
64
|
-
return response;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
axiosErrorResponse(_this) {
|
|
68
|
-
//eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
-
return (error) => {
|
|
70
|
-
_this && _this.postRequest(error.response);
|
|
71
|
-
throw error;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.CommonWellBase = CommonWellBase;
|
|
76
|
-
CommonWellBase.integrationUrl = "https://api.integration.commonwellalliance.lkopera.com";
|
|
77
|
-
CommonWellBase.productionUrl = "https://api.commonwellalliance.lkopera.com";
|
|
78
|
-
//# sourceMappingURL=commonwell-base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commonwell-base.js","sour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