@metriport/commonwell-sdk 7.0.2 → 7.0.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/models/address.d.ts +4 -6
- package/dist/models/address.d.ts.map +1 -1
- package/dist/models/address.js +3 -5
- package/dist/models/address.js.map +1 -1
- package/dist/models/contact.d.ts +2 -3
- package/dist/models/contact.d.ts.map +1 -1
- package/dist/models/contact.js +2 -17
- package/dist/models/contact.js.map +1 -1
- package/dist/models/demographics.d.ts +18 -18
- package/dist/models/document.d.ts +280 -280
- package/dist/models/document.js +1 -1
- package/dist/models/document.js.map +1 -1
- package/dist/models/facility.d.ts +6 -6
- package/dist/models/human-name.d.ts +2 -3
- package/dist/models/human-name.d.ts.map +1 -1
- package/dist/models/human-name.js +2 -4
- package/dist/models/human-name.js.map +1 -1
- package/dist/models/identifier.d.ts +8 -16
- package/dist/models/identifier.d.ts.map +1 -1
- package/dist/models/identifier.js +5 -35
- package/dist/models/identifier.js.map +1 -1
- package/dist/models/organization.d.ts +89 -89
- package/dist/models/patient-organization.d.ts +2 -2
- package/dist/models/patient.d.ts +276 -276
- package/dist/models/reference.d.ts +6 -6
- package/package.json +3 -3
package/dist/models/address.d.ts
CHANGED
|
@@ -10,21 +10,19 @@ export declare enum AddressUseCodes {
|
|
|
10
10
|
old = "old",
|
|
11
11
|
billing = "billing"
|
|
12
12
|
}
|
|
13
|
-
export declare const addressUseCodesSchema: z.ZodEffects<z.ZodNativeEnum<typeof AddressUseCodes>, AddressUseCodes, unknown>;
|
|
14
13
|
export declare enum AddressTypeCodes {
|
|
15
14
|
postal = "postal",
|
|
16
15
|
physical = "physical",
|
|
17
16
|
both = "both"
|
|
18
17
|
}
|
|
19
|
-
export declare const addressTypeCodesSchema: z.ZodEffects<z.ZodNativeEnum<typeof AddressTypeCodes>, AddressTypeCodes, unknown>;
|
|
20
18
|
export declare const addressSchema: z.ZodObject<{
|
|
21
19
|
line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
22
20
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
21
|
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
24
22
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
25
23
|
postalCode: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
26
|
-
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
27
|
-
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
24
|
+
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
25
|
+
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
28
26
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
27
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
30
28
|
end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -36,13 +34,13 @@ export declare const addressSchema: z.ZodObject<{
|
|
|
36
34
|
end?: unknown;
|
|
37
35
|
}>>>;
|
|
38
36
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
type?:
|
|
37
|
+
type?: string | null | undefined;
|
|
40
38
|
line?: string[] | null | undefined;
|
|
41
39
|
city?: string | null | undefined;
|
|
42
40
|
state?: string | null | undefined;
|
|
43
41
|
country?: string | null | undefined;
|
|
44
42
|
postalCode?: string | null | undefined;
|
|
45
|
-
use?:
|
|
43
|
+
use?: string | null | undefined;
|
|
46
44
|
period?: {
|
|
47
45
|
start?: string | null | undefined;
|
|
48
46
|
end?: string | null | undefined;
|
|
@@ -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,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;
|
|
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,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAID,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.normalizeStatePreprocess = exports.addressSchema = exports.
|
|
3
|
+
exports.normalizeStatePreprocess = exports.addressSchema = exports.AddressTypeCodes = 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");
|
|
@@ -17,14 +17,12 @@ var AddressUseCodes;
|
|
|
17
17
|
AddressUseCodes["old"] = "old";
|
|
18
18
|
AddressUseCodes["billing"] = "billing";
|
|
19
19
|
})(AddressUseCodes = exports.AddressUseCodes || (exports.AddressUseCodes = {}));
|
|
20
|
-
exports.addressUseCodesSchema = zod_1.z.preprocess(shared_1.zodToLowerCase, zod_1.z.nativeEnum(AddressUseCodes));
|
|
21
20
|
var AddressTypeCodes;
|
|
22
21
|
(function (AddressTypeCodes) {
|
|
23
22
|
AddressTypeCodes["postal"] = "postal";
|
|
24
23
|
AddressTypeCodes["physical"] = "physical";
|
|
25
24
|
AddressTypeCodes["both"] = "both";
|
|
26
25
|
})(AddressTypeCodes = exports.AddressTypeCodes || (exports.AddressTypeCodes = {}));
|
|
27
|
-
exports.addressTypeCodesSchema = zod_1.z.preprocess(shared_1.zodToLowerCase, zod_1.z.nativeEnum(AddressTypeCodes));
|
|
28
26
|
// A postal address.
|
|
29
27
|
// See: https://specification.commonwellalliance.org/services/rest-api-reference (8.4.3 Address)
|
|
30
28
|
exports.addressSchema = zod_1.z.object({
|
|
@@ -33,8 +31,8 @@ exports.addressSchema = zod_1.z.object({
|
|
|
33
31
|
state: zod_1.z.preprocess(normalizeStatePreprocess, zod_1.z.string().nullish()),
|
|
34
32
|
country: zod_2.emptyStringToUndefinedSchema,
|
|
35
33
|
postalCode: zod_2.emptyStringToUndefinedSchema.pipe(zod_1.z.string().nullish()),
|
|
36
|
-
use: zod_2.emptyStringToUndefinedSchema.pipe(
|
|
37
|
-
type: zod_2.emptyStringToUndefinedSchema.pipe(
|
|
34
|
+
use: zod_2.emptyStringToUndefinedSchema.pipe(zod_1.z.string().nullish()),
|
|
35
|
+
type: zod_2.emptyStringToUndefinedSchema.pipe(zod_1.z.string().nullish()),
|
|
38
36
|
period: period_1.periodSchema.nullish(),
|
|
39
37
|
});
|
|
40
38
|
function normalizeStatePreprocess(arg) {
|
|
@@ -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,8CAAmD;AACnD,6BAAwB;AACxB,uCAA6D;AAC7D,qCAAwC;AAExC;;;GAGG;AACH,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,sCAAmB,CAAA;AACrB,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,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,kCAA4B,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACnE,GAAG,EAAE,kCAA4B,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5D,IAAI,EAAE,kCAA4B,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7D,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"}
|
package/dist/models/contact.d.ts
CHANGED
|
@@ -12,10 +12,9 @@ export declare enum ContactSystemCodes {
|
|
|
12
12
|
sms = "sms",
|
|
13
13
|
other = "other"
|
|
14
14
|
}
|
|
15
|
-
export declare const contactSystemCodesSchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof ContactSystemCodes>>;
|
|
16
15
|
export declare const contactSchema: z.ZodObject<{
|
|
17
16
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
17
|
+
system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
19
18
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
20
19
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
20
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -34,7 +33,7 @@ export declare const contactSchema: z.ZodObject<{
|
|
|
34
33
|
start?: string | null | undefined;
|
|
35
34
|
end?: string | null | undefined;
|
|
36
35
|
} | null | undefined;
|
|
37
|
-
system?:
|
|
36
|
+
system?: string | null | undefined;
|
|
38
37
|
}, {
|
|
39
38
|
value?: string | null | undefined;
|
|
40
39
|
use?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/models/contact.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/models/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAKD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/models/contact.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.contactSchema = exports.
|
|
4
|
-
const shared_1 = require("@metriport/shared");
|
|
3
|
+
exports.contactSchema = exports.ContactSystemCodes = void 0;
|
|
5
4
|
const zod_1 = require("zod");
|
|
6
5
|
const zod_2 = require("../common/zod");
|
|
7
6
|
const period_1 = require("./period");
|
|
@@ -19,26 +18,12 @@ var ContactSystemCodes;
|
|
|
19
18
|
ContactSystemCodes["sms"] = "sms";
|
|
20
19
|
ContactSystemCodes["other"] = "other";
|
|
21
20
|
})(ContactSystemCodes = exports.ContactSystemCodes || (exports.ContactSystemCodes = {}));
|
|
22
|
-
exports.contactSystemCodesSchema = zod_1.z
|
|
23
|
-
.string()
|
|
24
|
-
.transform(shared_1.zodToLowerCase)
|
|
25
|
-
.transform(normalizeContactSystem)
|
|
26
|
-
.pipe(zod_1.z.nativeEnum(ContactSystemCodes));
|
|
27
|
-
function normalizeContactSystem(system) {
|
|
28
|
-
if (typeof system !== "string")
|
|
29
|
-
return system;
|
|
30
|
-
switch (system.toLowerCase()) {
|
|
31
|
-
case "mobile":
|
|
32
|
-
return "phone";
|
|
33
|
-
}
|
|
34
|
-
return system;
|
|
35
|
-
}
|
|
36
21
|
// A variety of technology-mediated contact details for a person or organization, including
|
|
37
22
|
// telephone, email, etc.
|
|
38
23
|
// See: https://specification.commonwellalliance.org/services/rest-api-reference (8.4.7 Contact)
|
|
39
24
|
exports.contactSchema = zod_1.z.object({
|
|
40
25
|
value: zod_1.z.string().nullish(),
|
|
41
|
-
system: zod_2.emptyStringToUndefinedSchema.pipe(
|
|
26
|
+
system: zod_2.emptyStringToUndefinedSchema.pipe(zod_1.z.string().nullish()),
|
|
42
27
|
use: zod_2.emptyStringToUndefinedSchema.pipe(zod_1.z.string().nullish()),
|
|
43
28
|
period: period_1.periodSchema.nullish(),
|
|
44
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/models/contact.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/models/contact.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA6D;AAC7D,qCAAwC;AAExC;;;GAGG;AACH,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,iCAAW,CAAA;IACX,iCAAW,CAAA;IACX,qCAAe,CAAA;AACjB,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B;AAED,2FAA2F;AAC3F,yBAAyB;AACzB,gGAAgG;AACnF,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC3B,MAAM,EAAE,kCAA4B,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IAC/D,GAAG,EAAE,kCAA4B,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5D,MAAM,EAAE,qBAAY,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -13,8 +13,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
13
13
|
identifier: z.ZodArray<z.ZodObject<{
|
|
14
14
|
value: z.ZodString;
|
|
15
15
|
system: z.ZodString;
|
|
16
|
-
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
17
|
-
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
16
|
+
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
17
|
+
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
18
18
|
assigner: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
19
19
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -29,8 +29,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
value: string;
|
|
31
31
|
system: string;
|
|
32
|
-
type?:
|
|
33
|
-
use?:
|
|
32
|
+
type?: string | null | undefined;
|
|
33
|
+
use?: string | null | undefined;
|
|
34
34
|
period?: {
|
|
35
35
|
start?: string | null | undefined;
|
|
36
36
|
end?: string | null | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
52
52
|
family: z.ZodArray<z.ZodString, "many">;
|
|
53
53
|
prefix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
|
|
54
54
|
suffix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
|
|
55
|
-
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.
|
|
55
|
+
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
56
56
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
57
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
58
58
|
end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -68,7 +68,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
68
68
|
family: string[];
|
|
69
69
|
given: string[];
|
|
70
70
|
text?: string | null | undefined;
|
|
71
|
-
use?:
|
|
71
|
+
use?: string | null | undefined;
|
|
72
72
|
period?: {
|
|
73
73
|
start?: string | null | undefined;
|
|
74
74
|
end?: string | null | undefined;
|
|
@@ -95,8 +95,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
95
95
|
state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
96
96
|
country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
97
97
|
postalCode: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
98
|
-
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
99
|
-
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
98
|
+
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
99
|
+
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
100
100
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
101
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
102
102
|
end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -108,13 +108,13 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
108
108
|
end?: unknown;
|
|
109
109
|
}>>>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
type?:
|
|
111
|
+
type?: string | null | undefined;
|
|
112
112
|
line?: string[] | null | undefined;
|
|
113
113
|
city?: string | null | undefined;
|
|
114
114
|
state?: string | null | undefined;
|
|
115
115
|
country?: string | null | undefined;
|
|
116
116
|
postalCode?: string | null | undefined;
|
|
117
|
-
use?:
|
|
117
|
+
use?: string | null | undefined;
|
|
118
118
|
period?: {
|
|
119
119
|
start?: string | null | undefined;
|
|
120
120
|
end?: string | null | undefined;
|
|
@@ -134,7 +134,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
134
134
|
}>, "many">;
|
|
135
135
|
telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
136
136
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
-
system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.
|
|
137
|
+
system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
138
138
|
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
139
139
|
period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
140
140
|
start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
|
|
@@ -153,7 +153,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
153
153
|
start?: string | null | undefined;
|
|
154
154
|
end?: string | null | undefined;
|
|
155
155
|
} | null | undefined;
|
|
156
|
-
system?:
|
|
156
|
+
system?: string | null | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
value?: string | null | undefined;
|
|
159
159
|
use?: unknown;
|
|
@@ -167,8 +167,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
167
167
|
identifier: {
|
|
168
168
|
value: string;
|
|
169
169
|
system: string;
|
|
170
|
-
type?:
|
|
171
|
-
use?:
|
|
170
|
+
type?: string | null | undefined;
|
|
171
|
+
use?: string | null | undefined;
|
|
172
172
|
period?: {
|
|
173
173
|
start?: string | null | undefined;
|
|
174
174
|
end?: string | null | undefined;
|
|
@@ -179,7 +179,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
179
179
|
family: string[];
|
|
180
180
|
given: string[];
|
|
181
181
|
text?: string | null | undefined;
|
|
182
|
-
use?:
|
|
182
|
+
use?: string | null | undefined;
|
|
183
183
|
period?: {
|
|
184
184
|
start?: string | null | undefined;
|
|
185
185
|
end?: string | null | undefined;
|
|
@@ -189,13 +189,13 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
189
189
|
}[];
|
|
190
190
|
birthDate: string;
|
|
191
191
|
address: {
|
|
192
|
-
type?:
|
|
192
|
+
type?: string | null | undefined;
|
|
193
193
|
line?: string[] | null | undefined;
|
|
194
194
|
city?: string | null | undefined;
|
|
195
195
|
state?: string | null | undefined;
|
|
196
196
|
country?: string | null | undefined;
|
|
197
197
|
postalCode?: string | null | undefined;
|
|
198
|
-
use?:
|
|
198
|
+
use?: string | null | undefined;
|
|
199
199
|
period?: {
|
|
200
200
|
start?: string | null | undefined;
|
|
201
201
|
end?: string | null | undefined;
|
|
@@ -209,7 +209,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
209
209
|
start?: string | null | undefined;
|
|
210
210
|
end?: string | null | undefined;
|
|
211
211
|
} | null | undefined;
|
|
212
|
-
system?:
|
|
212
|
+
system?: string | null | undefined;
|
|
213
213
|
}[] | null | undefined;
|
|
214
214
|
}, {
|
|
215
215
|
identifier: {
|