@metriport/api-sdk 14.12.0 → 14.12.2-alpha.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/medical/client/get-adt-subscribers-backup.d.ts +3 -0
- package/dist/medical/client/get-adt-subscribers-backup.d.ts.map +1 -0
- package/dist/medical/client/get-adt-subscribers-backup.js +42 -0
- package/dist/medical/client/get-adt-subscribers-backup.js.map +1 -0
- package/dist/medical/client/metriport.d.ts +1 -0
- package/dist/medical/client/metriport.d.ts.map +1 -1
- package/dist/medical/models/demographics copy.d.ts +903 -0
- package/dist/medical/models/demographics copy.d.ts.map +1 -0
- package/dist/medical/models/demographics copy.js +59 -0
- package/dist/medical/models/demographics copy.js.map +1 -0
- package/dist/medical/models/network-entry.d.ts +3 -2
- package/dist/medical/models/network-entry.d.ts.map +1 -1
- package/dist/medical/models/patient-settings.d.ts +28 -0
- package/dist/medical/models/patient-settings.d.ts.map +1 -0
- package/dist/medical/models/patient-settings.js +11 -0
- package/dist/medical/models/patient-settings.js.map +1 -0
- package/dist/medical/models/patient.d.ts +126 -4
- package/dist/medical/models/patient.d.ts.map +1 -1
- package/dist/medical/models/patient.js +6 -1
- package/dist/medical/models/patient.js.map +1 -1
- package/dist/medical/models/subscriptions.d.ts +28 -0
- package/dist/medical/models/subscriptions.d.ts.map +1 -0
- package/dist/medical/models/subscriptions.js +11 -0
- package/dist/medical/models/subscriptions.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demographics copy.d.ts","sourceRoot":"","sources":["../../../src/medical/models/demographics copy.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B,kBAAmB,CAAC;AAC3D,eAAO,MAAM,gCAAgC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C,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.demographicsSchema = exports.contactSchema = exports.emailSchema = exports.genderAtBirthSchema = exports.personalIdentifierSchema = exports.generalTypeIdentifierWithBaseSchema = exports.generalTypeIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema = exports.driverLicenseIdentifierSchema = exports.driversLicensePersonalIdentifier = exports.generalPersonalIdentifiers = void 0;
|
|
4
|
+
const shared_1 = require("@metriport/shared");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const shared_2 = require("../../shared");
|
|
7
|
+
const address_1 = require("./common/address");
|
|
8
|
+
const us_data_1 = require("./common/us-data");
|
|
9
|
+
exports.generalPersonalIdentifiers = ["ssn"];
|
|
10
|
+
exports.driversLicensePersonalIdentifier = ["driversLicense"];
|
|
11
|
+
const basePersonalIdentifierSchema = zod_1.z.object({
|
|
12
|
+
value: zod_1.z.string(),
|
|
13
|
+
period: zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
start: zod_1.z.string(),
|
|
16
|
+
end: zod_1.z.string().optional(),
|
|
17
|
+
})
|
|
18
|
+
.or(zod_1.z.object({
|
|
19
|
+
start: zod_1.z.string().optional(),
|
|
20
|
+
end: zod_1.z.string(),
|
|
21
|
+
}))
|
|
22
|
+
.optional(),
|
|
23
|
+
assigner: zod_1.z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
exports.driverLicenseIdentifierSchema = zod_1.z.object({
|
|
26
|
+
type: zod_1.z.enum(exports.driversLicensePersonalIdentifier),
|
|
27
|
+
state: us_data_1.usStateSchema,
|
|
28
|
+
});
|
|
29
|
+
exports.driverLicenseIdentifierWithBaseSchema = basePersonalIdentifierSchema.merge(exports.driverLicenseIdentifierSchema);
|
|
30
|
+
exports.generalTypeIdentifierSchema = zod_1.z.object({
|
|
31
|
+
type: zod_1.z.enum(exports.generalPersonalIdentifiers),
|
|
32
|
+
});
|
|
33
|
+
exports.generalTypeIdentifierWithBaseSchema = basePersonalIdentifierSchema.merge(exports.generalTypeIdentifierSchema);
|
|
34
|
+
exports.personalIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema.or(exports.generalTypeIdentifierWithBaseSchema);
|
|
35
|
+
exports.genderAtBirthSchema = zod_1.z.enum(["F", "M", "O", "U"]);
|
|
36
|
+
exports.emailSchema = zod_1.z.string().email();
|
|
37
|
+
exports.contactSchema = zod_1.z
|
|
38
|
+
.object({
|
|
39
|
+
phone: zod_1.z.coerce
|
|
40
|
+
.string()
|
|
41
|
+
.transform(shared_1.normalizeUsPhoneWithPlusOne)
|
|
42
|
+
.refine(shared_1.isPhoneValid, {
|
|
43
|
+
message: `Phone must be a string consisting of ${shared_1.phoneLength} numbers. For example: ${shared_1.examplePhoneNumber}`,
|
|
44
|
+
})
|
|
45
|
+
.or(zod_1.z.null())
|
|
46
|
+
.or(zod_1.z.undefined()),
|
|
47
|
+
email: exports.emailSchema.nullish(),
|
|
48
|
+
})
|
|
49
|
+
.refine(c => c.email || c.phone, { message: "Either email or phone must be present" });
|
|
50
|
+
exports.demographicsSchema = zod_1.z.object({
|
|
51
|
+
firstName: shared_2.defaultNameString,
|
|
52
|
+
lastName: shared_2.defaultNameString,
|
|
53
|
+
dob: shared_2.validDateOfBirthString,
|
|
54
|
+
genderAtBirth: exports.genderAtBirthSchema,
|
|
55
|
+
personalIdentifiers: zod_1.z.array(exports.personalIdentifierSchema).optional(),
|
|
56
|
+
address: zod_1.z.array(address_1.addressSchema).nonempty().or(address_1.addressSchema),
|
|
57
|
+
contact: zod_1.z.array(exports.contactSchema).optional().or(exports.contactSchema.optional()),
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=demographics%20copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demographics copy.js","sourceRoot":"","sources":["../../../src/medical/models/demographics copy.ts"],"names":[],"mappings":";;;AAAA,8CAK2B;AAC3B,6BAAwB;AACxB,yCAAyE;AACzE,8CAAiD;AACjD,8CAAiD;AAEpC,QAAA,0BAA0B,GAAG,CAAC,KAAK,CAAU,CAAC;AAC9C,QAAA,gCAAgC,GAAG,CAAC,gBAAgB,CAAU,CAAC;AAI5E,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC3B,CAAC;SACD,EAAE,CACD,OAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE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,EAAE,mBAAW,CAAC,OAAO,EAAE;CAC7B,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC,CAAC;AAG5E,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,0BAAiB;IAC5B,QAAQ,EAAE,0BAAiB;IAC3B,GAAG,EAAE,+BAAsB;IAC3B,aAAa,EAAE,2BAAmB;IAClC,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,uBAAa,CAAC;IAC5D,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,qBAAa,CAAC,QAAQ,EAAE,CAAC;CACxE,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { USStateForAddress } from "@metriport/shared/domain/address";
|
|
2
2
|
export interface NetworkEntry {
|
|
3
3
|
name: string;
|
|
4
4
|
oid: string;
|
|
5
5
|
zip?: string;
|
|
6
|
-
state?:
|
|
6
|
+
state?: USStateForAddress;
|
|
7
7
|
rootOrganization?: string;
|
|
8
8
|
managingOrgOid?: string;
|
|
9
|
+
network: "COMMONWELL" | "CAREQUALITY";
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=network-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-entry.d.ts","sourceRoot":"","sources":["../../../src/medical/models/network-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"network-entry.d.ts","sourceRoot":"","sources":["../../../src/medical/models/network-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,YAAY,GAAG,aAAa,CAAC;CACvC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const subscriptionsSchema: z.ZodObject<{
|
|
3
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
adt?: boolean | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
adt?: boolean | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export type PatientSubscriptions = z.infer<typeof subscriptionsSchema>;
|
|
10
|
+
export declare const patientSettingsSchema: z.ZodObject<{
|
|
11
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
adt?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
adt?: boolean | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
subscriptions?: {
|
|
20
|
+
adt?: boolean | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
subscriptions?: {
|
|
24
|
+
adt?: boolean | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=patient-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-settings.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mBAAmB;;;;;;EAEvB,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;EAEhC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSettingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const subscriptionsSchema = zod_1.z.object({
|
|
6
|
+
adt: zod_1.z.boolean().optional(),
|
|
7
|
+
});
|
|
8
|
+
exports.patientSettingsSchema = zod_1.z.object({
|
|
9
|
+
subscriptions: subscriptionsSchema.optional(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=patient-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient-settings.js","sourceRoot":"","sources":["../../../src/medical/models/patient-settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,GAAG,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,aAAa,EAAE,mBAAmB,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -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<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>;
|
|
@@ -369,6 +369,24 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
369
369
|
}>>]>;
|
|
370
370
|
}, {
|
|
371
371
|
externalId: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}>, {
|
|
373
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
adt?: boolean | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
adt?: boolean | undefined;
|
|
380
|
+
}>>;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
subscriptions?: {
|
|
383
|
+
adt?: boolean | undefined;
|
|
384
|
+
} | undefined;
|
|
385
|
+
}, {
|
|
386
|
+
subscriptions?: {
|
|
387
|
+
adt?: boolean | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
}>>;
|
|
372
390
|
}>, "strip", z.ZodTypeAny, {
|
|
373
391
|
firstName: string;
|
|
374
392
|
lastName: string;
|
|
@@ -440,6 +458,11 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
440
458
|
email?: string | null | undefined;
|
|
441
459
|
}[] | undefined;
|
|
442
460
|
externalId?: string | undefined;
|
|
461
|
+
settings?: {
|
|
462
|
+
subscriptions?: {
|
|
463
|
+
adt?: boolean | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
} | undefined;
|
|
443
466
|
}, {
|
|
444
467
|
firstName: string;
|
|
445
468
|
lastName: string;
|
|
@@ -511,9 +534,14 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
511
534
|
email?: string | null | undefined;
|
|
512
535
|
}[] | undefined;
|
|
513
536
|
externalId?: string | undefined;
|
|
537
|
+
settings?: {
|
|
538
|
+
subscriptions?: {
|
|
539
|
+
adt?: boolean | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
} | undefined;
|
|
514
542
|
}>;
|
|
515
543
|
export type PatientCreate = z.infer<typeof patientCreateSchema>;
|
|
516
|
-
export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
544
|
+
export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
517
545
|
firstName: z.ZodString;
|
|
518
546
|
lastName: z.ZodString;
|
|
519
547
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -882,6 +910,24 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
882
910
|
}>>]>;
|
|
883
911
|
}, {
|
|
884
912
|
externalId: z.ZodOptional<z.ZodString>;
|
|
913
|
+
}>, {
|
|
914
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
915
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
917
|
+
}, "strip", z.ZodTypeAny, {
|
|
918
|
+
adt?: boolean | undefined;
|
|
919
|
+
}, {
|
|
920
|
+
adt?: boolean | undefined;
|
|
921
|
+
}>>;
|
|
922
|
+
}, "strip", z.ZodTypeAny, {
|
|
923
|
+
subscriptions?: {
|
|
924
|
+
adt?: boolean | undefined;
|
|
925
|
+
} | undefined;
|
|
926
|
+
}, {
|
|
927
|
+
subscriptions?: {
|
|
928
|
+
adt?: boolean | undefined;
|
|
929
|
+
} | undefined;
|
|
930
|
+
}>>;
|
|
885
931
|
}>, {
|
|
886
932
|
id: z.ZodString;
|
|
887
933
|
eTag: z.ZodOptional<z.ZodString>;
|
|
@@ -958,6 +1004,11 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
958
1004
|
email?: string | null | undefined;
|
|
959
1005
|
}[] | undefined;
|
|
960
1006
|
externalId?: string | undefined;
|
|
1007
|
+
settings?: {
|
|
1008
|
+
subscriptions?: {
|
|
1009
|
+
adt?: boolean | undefined;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
} | undefined;
|
|
961
1012
|
}, {
|
|
962
1013
|
id: string;
|
|
963
1014
|
firstName: string;
|
|
@@ -1031,9 +1082,14 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1031
1082
|
email?: string | null | undefined;
|
|
1032
1083
|
}[] | undefined;
|
|
1033
1084
|
externalId?: string | undefined;
|
|
1085
|
+
settings?: {
|
|
1086
|
+
subscriptions?: {
|
|
1087
|
+
adt?: boolean | undefined;
|
|
1088
|
+
} | undefined;
|
|
1089
|
+
} | undefined;
|
|
1034
1090
|
}>;
|
|
1035
1091
|
export type PatientUpdate = z.infer<typeof patientUpdateSchema>;
|
|
1036
|
-
export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1092
|
+
export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1037
1093
|
firstName: z.ZodString;
|
|
1038
1094
|
lastName: z.ZodString;
|
|
1039
1095
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -1402,6 +1458,24 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1402
1458
|
}>>]>;
|
|
1403
1459
|
}, {
|
|
1404
1460
|
externalId: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
}>, {
|
|
1462
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
1464
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
+
}, "strip", z.ZodTypeAny, {
|
|
1466
|
+
adt?: boolean | undefined;
|
|
1467
|
+
}, {
|
|
1468
|
+
adt?: boolean | undefined;
|
|
1469
|
+
}>>;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
subscriptions?: {
|
|
1472
|
+
adt?: boolean | undefined;
|
|
1473
|
+
} | undefined;
|
|
1474
|
+
}, {
|
|
1475
|
+
subscriptions?: {
|
|
1476
|
+
adt?: boolean | undefined;
|
|
1477
|
+
} | undefined;
|
|
1478
|
+
}>>;
|
|
1405
1479
|
}>, {
|
|
1406
1480
|
id: z.ZodString;
|
|
1407
1481
|
eTag: z.ZodOptional<z.ZodString>;
|
|
@@ -1481,6 +1555,11 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1481
1555
|
email?: string | null | undefined;
|
|
1482
1556
|
}[] | undefined;
|
|
1483
1557
|
externalId?: string | undefined;
|
|
1558
|
+
settings?: {
|
|
1559
|
+
subscriptions?: {
|
|
1560
|
+
adt?: boolean | undefined;
|
|
1561
|
+
} | undefined;
|
|
1562
|
+
} | undefined;
|
|
1484
1563
|
}, {
|
|
1485
1564
|
id: string;
|
|
1486
1565
|
firstName: string;
|
|
@@ -1555,10 +1634,15 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1555
1634
|
email?: string | null | undefined;
|
|
1556
1635
|
}[] | undefined;
|
|
1557
1636
|
externalId?: string | undefined;
|
|
1637
|
+
settings?: {
|
|
1638
|
+
subscriptions?: {
|
|
1639
|
+
adt?: boolean | undefined;
|
|
1640
|
+
} | undefined;
|
|
1641
|
+
} | undefined;
|
|
1558
1642
|
}>;
|
|
1559
1643
|
export type Patient = z.infer<typeof patientSchema>;
|
|
1560
1644
|
export declare const patientListSchema: z.ZodObject<{
|
|
1561
|
-
patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1645
|
+
patients: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1562
1646
|
firstName: z.ZodString;
|
|
1563
1647
|
lastName: z.ZodString;
|
|
1564
1648
|
dob: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -1927,6 +2011,24 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1927
2011
|
}>>]>;
|
|
1928
2012
|
}, {
|
|
1929
2013
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
}>, {
|
|
2015
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2016
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
2017
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
2018
|
+
}, "strip", z.ZodTypeAny, {
|
|
2019
|
+
adt?: boolean | undefined;
|
|
2020
|
+
}, {
|
|
2021
|
+
adt?: boolean | undefined;
|
|
2022
|
+
}>>;
|
|
2023
|
+
}, "strip", z.ZodTypeAny, {
|
|
2024
|
+
subscriptions?: {
|
|
2025
|
+
adt?: boolean | undefined;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
}, {
|
|
2028
|
+
subscriptions?: {
|
|
2029
|
+
adt?: boolean | undefined;
|
|
2030
|
+
} | undefined;
|
|
2031
|
+
}>>;
|
|
1930
2032
|
}>, {
|
|
1931
2033
|
id: z.ZodString;
|
|
1932
2034
|
eTag: z.ZodOptional<z.ZodString>;
|
|
@@ -2006,6 +2108,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2006
2108
|
email?: string | null | undefined;
|
|
2007
2109
|
}[] | undefined;
|
|
2008
2110
|
externalId?: string | undefined;
|
|
2111
|
+
settings?: {
|
|
2112
|
+
subscriptions?: {
|
|
2113
|
+
adt?: boolean | undefined;
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
} | undefined;
|
|
2009
2116
|
}, {
|
|
2010
2117
|
id: string;
|
|
2011
2118
|
firstName: string;
|
|
@@ -2080,6 +2187,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2080
2187
|
email?: string | null | undefined;
|
|
2081
2188
|
}[] | undefined;
|
|
2082
2189
|
externalId?: string | undefined;
|
|
2190
|
+
settings?: {
|
|
2191
|
+
subscriptions?: {
|
|
2192
|
+
adt?: boolean | undefined;
|
|
2193
|
+
} | undefined;
|
|
2194
|
+
} | undefined;
|
|
2083
2195
|
}>, "many">;
|
|
2084
2196
|
}, "strip", z.ZodTypeAny, {
|
|
2085
2197
|
patients: {
|
|
@@ -2156,6 +2268,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2156
2268
|
email?: string | null | undefined;
|
|
2157
2269
|
}[] | undefined;
|
|
2158
2270
|
externalId?: string | undefined;
|
|
2271
|
+
settings?: {
|
|
2272
|
+
subscriptions?: {
|
|
2273
|
+
adt?: boolean | undefined;
|
|
2274
|
+
} | undefined;
|
|
2275
|
+
} | undefined;
|
|
2159
2276
|
}[];
|
|
2160
2277
|
}, {
|
|
2161
2278
|
patients: {
|
|
@@ -2232,6 +2349,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2232
2349
|
email?: string | null | undefined;
|
|
2233
2350
|
}[] | undefined;
|
|
2234
2351
|
externalId?: string | undefined;
|
|
2352
|
+
settings?: {
|
|
2353
|
+
subscriptions?: {
|
|
2354
|
+
adt?: boolean | undefined;
|
|
2355
|
+
} | undefined;
|
|
2356
|
+
} | undefined;
|
|
2235
2357
|
}[];
|
|
2236
2358
|
}>;
|
|
2237
2359
|
export declare const queryStatusSchema: z.ZodEnum<["processing", "completed", "failed"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":"AAAA,OAAO,E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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"}
|
|
@@ -4,8 +4,13 @@ exports.queryStatusSchema = exports.patientListSchema = exports.patientSchema =
|
|
|
4
4
|
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 patient_settings_1 = require("./patient-settings");
|
|
8
|
+
exports.patientCreateSchema = demographics_1.demographicsSchema
|
|
9
|
+
.merge(zod_1.z.object({
|
|
8
10
|
externalId: zod_1.z.string().optional(),
|
|
11
|
+
}))
|
|
12
|
+
.merge(zod_1.z.object({
|
|
13
|
+
settings: patient_settings_1.patientSettingsSchema.optional(),
|
|
9
14
|
}));
|
|
10
15
|
exports.patientUpdateSchema = exports.patientCreateSchema.merge(base_update_1.baseUpdateSchema);
|
|
11
16
|
exports.patientSchema = exports.patientUpdateSchema.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEpD,yDAA2D;AAE9C,QAAA,mBAAmB,GAAG,iCAAkB;KAClD,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CACH;KACA,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,wCAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CACH,CAAC;AAIS,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,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const subscriptions: z.ZodObject<{
|
|
3
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
adt?: boolean | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
adt?: boolean | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export type PatientSubscriptions = z.infer<typeof subscriptions>;
|
|
10
|
+
export declare const patientSubscriptionsSchema: z.ZodObject<{
|
|
11
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
adt: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
adt?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
adt?: boolean | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
subscriptions?: {
|
|
20
|
+
adt?: boolean | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
subscriptions?: {
|
|
24
|
+
adt?: boolean | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/medical/models/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,aAAa;;;;;;EAEjB,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAErC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSubscriptionsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const subscriptions = zod_1.z.object({
|
|
6
|
+
adt: zod_1.z.boolean().optional(),
|
|
7
|
+
});
|
|
8
|
+
exports.patientSubscriptionsSchema = zod_1.z.object({
|
|
9
|
+
subscriptions: subscriptions.optional(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/medical/models/subscriptions.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,aAAa,EAAE,aAAa,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "14.12.0",
|
|
3
|
+
"version": "14.12.2-alpha.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/",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@medplum/fhirtypes": "^2.0.32",
|
|
61
|
-
"@metriport/commonwell-sdk": "^5.6.0",
|
|
62
|
-
"@metriport/shared": "^0.20.0",
|
|
61
|
+
"@metriport/commonwell-sdk": "^5.6.2-alpha.0",
|
|
62
|
+
"@metriport/shared": "^0.20.2-alpha.0",
|
|
63
63
|
"axios": "^1.4.0",
|
|
64
64
|
"dayjs": "^1.11.7",
|
|
65
65
|
"dotenv": "^16.3.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"ts-jest": "29.1.1",
|
|
78
78
|
"typescript": "^4.9.5"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "77a9702ccacbef171d1f13a872c5bc1e647a3e8d"
|
|
81
81
|
}
|