@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.
@@ -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.ZodEffects<z.ZodNativeEnum<typeof AddressUseCodes>, AddressUseCodes, unknown>>>>;
27
- type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof AddressTypeCodes>, AddressTypeCodes, unknown>>>>;
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?: AddressTypeCodes | null | undefined;
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?: AddressUseCodes | null | undefined;
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;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"}
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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeStatePreprocess = exports.addressSchema = exports.addressTypeCodesSchema = exports.AddressTypeCodes = exports.addressUseCodesSchema = exports.AddressUseCodes = void 0;
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(exports.addressUseCodesSchema.nullish()),
37
- type: zod_2.emptyStringToUndefinedSchema.pipe(exports.addressTypeCodesSchema.nullish()),
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,8CAAmE;AACnE,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,EAN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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"}
@@ -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.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof ContactSystemCodes>>>>>;
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?: ContactSystemCodes | null | undefined;
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":"AACA,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;AACD,eAAO,MAAM,wBAAwB,sIAII,CAAC;AAc1C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
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"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contactSchema = exports.contactSystemCodesSchema = exports.ContactSystemCodes = void 0;
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(exports.contactSystemCodesSchema.nullish()),
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,8CAAmD;AACnD,6BAAwB;AACxB,uCAA6D;AAC7D,qCAAwC;AAExC;;;GAGG;AACH,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IAC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AAW,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.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
17
- type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
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?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
33
- use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
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.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./human-name").NameUseCodes>, import("./human-name").NameUseCodes, unknown>>>, import("./human-name").NameUseCodes | null | undefined, unknown>>;
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?: import("./human-name").NameUseCodes | null | undefined;
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.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
99
- type: 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").AddressTypeCodes>, import("./address").AddressTypeCodes, unknown>>>>;
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?: import("./address").AddressTypeCodes | null | undefined;
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?: import("./address").AddressUseCodes | null | undefined;
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.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof import("./contact").ContactSystemCodes>>>>>;
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?: import("./contact").ContactSystemCodes | null | undefined;
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?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
171
- use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
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?: import("./human-name").NameUseCodes | null | undefined;
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?: import("./address").AddressTypeCodes | null | undefined;
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?: import("./address").AddressUseCodes | null | undefined;
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?: import("./contact").ContactSystemCodes | null | undefined;
212
+ system?: string | null | undefined;
213
213
  }[] | null | undefined;
214
214
  }, {
215
215
  identifier: {