@metriport/api-sdk 15.0.1 → 15.0.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/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 +8 -1
- package/dist/medical/client/metriport.d.ts.map +1 -1
- package/dist/medical/client/metriport.js +13 -0
- package/dist/medical/client/metriport.js.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/patient.d.ts +8 -0
- package/dist/medical/models/patient.d.ts.map +1 -1
- package/dist/medical/models/patient.js +4 -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,6BAA8B,CAAC;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AACrF,MAAM,MAAM,gCAAgC,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAmBjG,eAAO,MAAM,6BAA6B;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACH;SACA,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEU,QAAA,6BAA6B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AM,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"}
|
|
@@ -2371,4 +2371,12 @@ export type PatientHieOptOutResponse = {
|
|
|
2371
2371
|
hieOptOut: boolean;
|
|
2372
2372
|
message: string;
|
|
2373
2373
|
};
|
|
2374
|
+
export declare const medicalRecordUrlResponseSchema: z.ZodObject<{
|
|
2375
|
+
url: z.ZodString;
|
|
2376
|
+
}, "strip", z.ZodTypeAny, {
|
|
2377
|
+
url: string;
|
|
2378
|
+
}, {
|
|
2379
|
+
url: string;
|
|
2380
|
+
}>;
|
|
2381
|
+
export type MedicalRecordUrlResponse = z.infer<typeof medicalRecordUrlResponseSchema>;
|
|
2374
2382
|
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryStatusSchema = exports.patientListSchema = exports.patientSchema = exports.patientUpdateSchema = exports.patientCreateSchema = void 0;
|
|
3
|
+
exports.medicalRecordUrlResponseSchema = exports.queryStatusSchema = exports.patientListSchema = exports.patientSchema = exports.patientUpdateSchema = exports.patientCreateSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_update_1 = require("./common/base-update");
|
|
6
6
|
const demographics_1 = require("./demographics");
|
|
@@ -20,4 +20,7 @@ exports.patientListSchema = zod_1.z.object({
|
|
|
20
20
|
patients: zod_1.z.array(exports.patientSchema),
|
|
21
21
|
});
|
|
22
22
|
exports.queryStatusSchema = zod_1.z.enum(["processing", "completed", "failed"]);
|
|
23
|
+
exports.medicalRecordUrlResponseSchema = zod_1.z.object({
|
|
24
|
+
url: zod_1.z.string(),
|
|
25
|
+
});
|
|
23
26
|
//# sourceMappingURL=patient.js.map
|
|
@@ -1 +1 @@
|
|
|
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;K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ACxC,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;AAoBlE,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,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": "15.0.
|
|
3
|
+
"version": "15.0.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.9.
|
|
62
|
-
"@metriport/shared": "^0.23.
|
|
61
|
+
"@metriport/commonwell-sdk": "^5.9.5-alpha.0",
|
|
62
|
+
"@metriport/shared": "^0.23.7-alpha.0",
|
|
63
63
|
"axios": "^1.8.2",
|
|
64
64
|
"dayjs": "^1.11.7",
|
|
65
65
|
"dotenv": "^16.3.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"ts-jest": "29.1.1",
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "2b1ad024eb1700d937f8932ccd246a7bc1c822c1"
|
|
82
82
|
}
|