@metriport/api-sdk 18.9.0 → 18.10.0
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/medical/models/patient.d.ts +26 -20
- package/dist/medical/models/patient.d.ts.map +1 -1
- package/dist/medical/models/patient.js +3 -7
- package/dist/medical/models/patient.js.map +1 -1
- package/dist/medical/models/patientDTO.d.ts +1 -0
- package/dist/medical/models/patientDTO.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ConsolidatedQuery } from "./fhir";
|
|
3
|
-
export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
3
|
+
export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
4
|
firstName: z.ZodString;
|
|
5
5
|
lastName: z.ZodString;
|
|
6
6
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -221,7 +221,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
221
221
|
lat: number;
|
|
222
222
|
lon: number;
|
|
223
223
|
}>>;
|
|
224
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
224
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
addressLine1: string;
|
|
227
227
|
city: string;
|
|
@@ -312,7 +312,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
312
312
|
lat: number;
|
|
313
313
|
lon: number;
|
|
314
314
|
}>>;
|
|
315
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
315
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
addressLine1: string;
|
|
318
318
|
city: string;
|
|
@@ -369,7 +369,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
369
369
|
}>>]>;
|
|
370
370
|
}, {
|
|
371
371
|
externalId: z.ZodOptional<z.ZodString>;
|
|
372
|
-
|
|
372
|
+
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
373
373
|
settings: z.ZodOptional<z.ZodObject<{
|
|
374
374
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
375
375
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -387,7 +387,6 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
387
387
|
adt?: string[] | undefined;
|
|
388
388
|
} | undefined;
|
|
389
389
|
}>>;
|
|
390
|
-
}>, {
|
|
391
390
|
cohorts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
392
391
|
}>, "strip", z.ZodTypeAny, {
|
|
393
392
|
firstName: string;
|
|
@@ -460,6 +459,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
460
459
|
email?: string | null | undefined;
|
|
461
460
|
}[] | undefined;
|
|
462
461
|
externalId?: string | undefined;
|
|
462
|
+
hieOptOut?: boolean | undefined;
|
|
463
463
|
settings?: {
|
|
464
464
|
subscriptions?: {
|
|
465
465
|
adt?: string[] | undefined;
|
|
@@ -537,6 +537,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
537
537
|
email?: string | null | undefined;
|
|
538
538
|
}[] | undefined;
|
|
539
539
|
externalId?: string | undefined;
|
|
540
|
+
hieOptOut?: boolean | undefined;
|
|
540
541
|
settings?: {
|
|
541
542
|
subscriptions?: {
|
|
542
543
|
adt?: string[] | undefined;
|
|
@@ -545,7 +546,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
545
546
|
cohorts?: string[] | undefined;
|
|
546
547
|
}>;
|
|
547
548
|
export type PatientCreate = z.infer<typeof patientCreateSchema>;
|
|
548
|
-
export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
549
|
+
export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
549
550
|
firstName: z.ZodString;
|
|
550
551
|
lastName: z.ZodString;
|
|
551
552
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -766,7 +767,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
766
767
|
lat: number;
|
|
767
768
|
lon: number;
|
|
768
769
|
}>>;
|
|
769
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
770
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
770
771
|
}, "strip", z.ZodTypeAny, {
|
|
771
772
|
addressLine1: string;
|
|
772
773
|
city: string;
|
|
@@ -857,7 +858,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
857
858
|
lat: number;
|
|
858
859
|
lon: number;
|
|
859
860
|
}>>;
|
|
860
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
861
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
861
862
|
}, "strip", z.ZodTypeAny, {
|
|
862
863
|
addressLine1: string;
|
|
863
864
|
city: string;
|
|
@@ -914,7 +915,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
914
915
|
}>>]>;
|
|
915
916
|
}, {
|
|
916
917
|
externalId: z.ZodOptional<z.ZodString>;
|
|
917
|
-
|
|
918
|
+
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
918
919
|
settings: z.ZodOptional<z.ZodObject<{
|
|
919
920
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
920
921
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -932,7 +933,6 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
932
933
|
adt?: string[] | undefined;
|
|
933
934
|
} | undefined;
|
|
934
935
|
}>>;
|
|
935
|
-
}>, {
|
|
936
936
|
cohorts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
937
937
|
}>, {
|
|
938
938
|
id: z.ZodString;
|
|
@@ -1010,6 +1010,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1010
1010
|
email?: string | null | undefined;
|
|
1011
1011
|
}[] | undefined;
|
|
1012
1012
|
externalId?: string | undefined;
|
|
1013
|
+
hieOptOut?: boolean | undefined;
|
|
1013
1014
|
settings?: {
|
|
1014
1015
|
subscriptions?: {
|
|
1015
1016
|
adt?: string[] | undefined;
|
|
@@ -1089,6 +1090,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1089
1090
|
email?: string | null | undefined;
|
|
1090
1091
|
}[] | undefined;
|
|
1091
1092
|
externalId?: string | undefined;
|
|
1093
|
+
hieOptOut?: boolean | undefined;
|
|
1092
1094
|
settings?: {
|
|
1093
1095
|
subscriptions?: {
|
|
1094
1096
|
adt?: string[] | undefined;
|
|
@@ -1097,7 +1099,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1097
1099
|
cohorts?: string[] | undefined;
|
|
1098
1100
|
}>;
|
|
1099
1101
|
export type PatientUpdate = z.infer<typeof patientUpdateSchema>;
|
|
1100
|
-
export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
1102
|
+
export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1101
1103
|
firstName: z.ZodString;
|
|
1102
1104
|
lastName: z.ZodString;
|
|
1103
1105
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -1318,7 +1320,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1318
1320
|
lat: number;
|
|
1319
1321
|
lon: number;
|
|
1320
1322
|
}>>;
|
|
1321
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1323
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
1322
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1323
1325
|
addressLine1: string;
|
|
1324
1326
|
city: string;
|
|
@@ -1409,7 +1411,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1409
1411
|
lat: number;
|
|
1410
1412
|
lon: number;
|
|
1411
1413
|
}>>;
|
|
1412
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1414
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
1413
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1414
1416
|
addressLine1: string;
|
|
1415
1417
|
city: string;
|
|
@@ -1466,7 +1468,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1466
1468
|
}>>]>;
|
|
1467
1469
|
}, {
|
|
1468
1470
|
externalId: z.ZodOptional<z.ZodString>;
|
|
1469
|
-
|
|
1471
|
+
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
1470
1472
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1471
1473
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
1472
1474
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1484,7 +1486,6 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1484
1486
|
adt?: string[] | undefined;
|
|
1485
1487
|
} | undefined;
|
|
1486
1488
|
}>>;
|
|
1487
|
-
}>, {
|
|
1488
1489
|
cohorts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1489
1490
|
}>, {
|
|
1490
1491
|
id: z.ZodString;
|
|
@@ -1565,6 +1566,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1565
1566
|
email?: string | null | undefined;
|
|
1566
1567
|
}[] | undefined;
|
|
1567
1568
|
externalId?: string | undefined;
|
|
1569
|
+
hieOptOut?: boolean | undefined;
|
|
1568
1570
|
settings?: {
|
|
1569
1571
|
subscriptions?: {
|
|
1570
1572
|
adt?: string[] | undefined;
|
|
@@ -1645,6 +1647,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1645
1647
|
email?: string | null | undefined;
|
|
1646
1648
|
}[] | undefined;
|
|
1647
1649
|
externalId?: string | undefined;
|
|
1650
|
+
hieOptOut?: boolean | undefined;
|
|
1648
1651
|
settings?: {
|
|
1649
1652
|
subscriptions?: {
|
|
1650
1653
|
adt?: string[] | undefined;
|
|
@@ -1654,7 +1657,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1654
1657
|
}>;
|
|
1655
1658
|
export type Patient = z.infer<typeof patientSchema>;
|
|
1656
1659
|
export declare const patientListSchema: z.ZodObject<{
|
|
1657
|
-
patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
1660
|
+
patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1658
1661
|
firstName: z.ZodString;
|
|
1659
1662
|
lastName: z.ZodString;
|
|
1660
1663
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -1875,7 +1878,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1875
1878
|
lat: number;
|
|
1876
1879
|
lon: number;
|
|
1877
1880
|
}>>;
|
|
1878
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1881
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
1879
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1880
1883
|
addressLine1: string;
|
|
1881
1884
|
city: string;
|
|
@@ -1966,7 +1969,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1966
1969
|
lat: number;
|
|
1967
1970
|
lon: number;
|
|
1968
1971
|
}>>;
|
|
1969
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1972
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>; /** @deprecated status should no longer be used. Refer to queries array instead. */
|
|
1970
1973
|
}, "strip", z.ZodTypeAny, {
|
|
1971
1974
|
addressLine1: string;
|
|
1972
1975
|
city: string;
|
|
@@ -2023,7 +2026,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2023
2026
|
}>>]>;
|
|
2024
2027
|
}, {
|
|
2025
2028
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2026
|
-
|
|
2029
|
+
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
2027
2030
|
settings: z.ZodOptional<z.ZodObject<{
|
|
2028
2031
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
2029
2032
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2041,7 +2044,6 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2041
2044
|
adt?: string[] | undefined;
|
|
2042
2045
|
} | undefined;
|
|
2043
2046
|
}>>;
|
|
2044
|
-
}>, {
|
|
2045
2047
|
cohorts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2046
2048
|
}>, {
|
|
2047
2049
|
id: z.ZodString;
|
|
@@ -2122,6 +2124,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2122
2124
|
email?: string | null | undefined;
|
|
2123
2125
|
}[] | undefined;
|
|
2124
2126
|
externalId?: string | undefined;
|
|
2127
|
+
hieOptOut?: boolean | undefined;
|
|
2125
2128
|
settings?: {
|
|
2126
2129
|
subscriptions?: {
|
|
2127
2130
|
adt?: string[] | undefined;
|
|
@@ -2202,6 +2205,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2202
2205
|
email?: string | null | undefined;
|
|
2203
2206
|
}[] | undefined;
|
|
2204
2207
|
externalId?: string | undefined;
|
|
2208
|
+
hieOptOut?: boolean | undefined;
|
|
2205
2209
|
settings?: {
|
|
2206
2210
|
subscriptions?: {
|
|
2207
2211
|
adt?: string[] | undefined;
|
|
@@ -2284,6 +2288,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2284
2288
|
email?: string | null | undefined;
|
|
2285
2289
|
}[] | undefined;
|
|
2286
2290
|
externalId?: string | undefined;
|
|
2291
|
+
hieOptOut?: boolean | undefined;
|
|
2287
2292
|
settings?: {
|
|
2288
2293
|
subscriptions?: {
|
|
2289
2294
|
adt?: string[] | undefined;
|
|
@@ -2366,6 +2371,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2366
2371
|
email?: string | null | undefined;
|
|
2367
2372
|
}[] | undefined;
|
|
2368
2373
|
externalId?: string | undefined;
|
|
2374
|
+
hieOptOut?: boolean | undefined;
|
|
2369
2375
|
settings?: {
|
|
2370
2376
|
subscriptions?: {
|
|
2371
2377
|
adt?: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAG3C,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAG3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAyB9B,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAAnF,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApBnF,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EANnF,CAAC;AAEH,eAAO,MAAM,iBAAiB,kDAAgD,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,oCAAoC,GAAG;IACjD,mFAAmF;IACnF,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG,iBAAiB,CAAC;AAE3E,MAAM,MAAM,sCAAsC,GAAG,iBAAiB,CAAC;AAEvE,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;EAEzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -5,16 +5,12 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const base_update_1 = require("./common/base-update");
|
|
6
6
|
const demographics_1 = require("./demographics");
|
|
7
7
|
const shared_1 = require("@metriport/shared");
|
|
8
|
-
exports.patientCreateSchema = demographics_1.demographicsSchema
|
|
9
|
-
.merge(zod_1.z.object({
|
|
8
|
+
exports.patientCreateSchema = demographics_1.demographicsSchema.extend({
|
|
10
9
|
externalId: zod_1.z.string().optional(),
|
|
11
|
-
|
|
12
|
-
.merge(zod_1.z.object({
|
|
10
|
+
hieOptOut: zod_1.z.boolean().optional(),
|
|
13
11
|
settings: shared_1.patientSettingsSchema.optional(),
|
|
14
|
-
}))
|
|
15
|
-
.merge(zod_1.z.object({
|
|
16
12
|
cohorts: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17
|
-
})
|
|
13
|
+
});
|
|
18
14
|
exports.patientUpdateSchema = exports.patientCreateSchema.merge(base_update_1.baseUpdateSchema);
|
|
19
15
|
exports.patientSchema = exports.patientUpdateSchema.extend({
|
|
20
16
|
facilityIds: zod_1.z.array(zod_1.z.string()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEpD,8CAA0D;AAE7C,QAAA,mBAAmB,GAAG,iCAAkB
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEpD,8CAA0D;AAE7C,QAAA,mBAAmB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,8BAAqB,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,2BAAmB,CAAC,KAAK,CAAC,8BAAgB,CAAC,CAAC;AAGlE,QAAA,aAAa,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC;CACjC,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CA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,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.10.0",
|
|
4
4
|
"description": "Metriport helps you access and manage health and medical data, through a single open source API.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"ts-jest": "29.1.1",
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "0ec7aa1620ba5fad76cc1177243e08280c4e012e"
|
|
82
82
|
}
|