@metriport/api-sdk 7.5.2-alpha.0 → 7.5.4-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/metriport.d.ts +2 -2
- package/dist/medical/client/metriport.js +2 -2
- 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 +1 -0
- 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 +3 -3
|
@@ -236,8 +236,8 @@ export declare class MetriportMedicalApi {
|
|
|
236
236
|
/**
|
|
237
237
|
* @deprecated - Use createDocumentReference() instead.
|
|
238
238
|
* Returns a URL to upload a file to Metriport and make the document available to other HIEs.
|
|
239
|
-
* To upload your file contents, execute a PUT request using this
|
|
240
|
-
* Refer to Metriport
|
|
239
|
+
* To upload your file contents, execute a PUT request using this URL with the file contents as the request body.
|
|
240
|
+
* Refer to Metriport documentation for more details:
|
|
241
241
|
* https://docs.metriport.com/medical-api/api-reference/document/post-upload-url
|
|
242
242
|
*
|
|
243
243
|
* @param patientId - the ID of the patient.
|
|
@@ -409,8 +409,8 @@ class MetriportMedicalApi {
|
|
|
409
409
|
/**
|
|
410
410
|
* @deprecated - Use createDocumentReference() instead.
|
|
411
411
|
* Returns a URL to upload a file to Metriport and make the document available to other HIEs.
|
|
412
|
-
* To upload your file contents, execute a PUT request using this
|
|
413
|
-
* Refer to Metriport
|
|
412
|
+
* To upload your file contents, execute a PUT request using this URL with the file contents as the request body.
|
|
413
|
+
* Refer to Metriport documentation for more details:
|
|
414
414
|
* https://docs.metriport.com/medical-api/api-reference/document/post-upload-url
|
|
415
415
|
*
|
|
416
416
|
* @param patientId - the ID of the patient.
|
|
@@ -612,6 +612,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
612
612
|
email?: string | undefined;
|
|
613
613
|
}>>]>;
|
|
614
614
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
615
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
615
616
|
}, "strip", z.ZodTypeAny, {
|
|
616
617
|
id: string;
|
|
617
618
|
address: ({
|
|
@@ -669,6 +670,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
669
670
|
phone?: string | undefined;
|
|
670
671
|
email?: string | undefined;
|
|
671
672
|
}[] | undefined;
|
|
673
|
+
externalId?: string | undefined;
|
|
672
674
|
}, {
|
|
673
675
|
id: string;
|
|
674
676
|
address: ({
|
|
@@ -726,6 +728,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
726
728
|
phone?: string | undefined;
|
|
727
729
|
email?: string | undefined;
|
|
728
730
|
}[] | undefined;
|
|
731
|
+
externalId?: string | undefined;
|
|
729
732
|
}>;
|
|
730
733
|
export type Patient = z.infer<typeof patientSchema>;
|
|
731
734
|
export declare const patientListSchema: z.ZodObject<{
|
|
@@ -860,6 +863,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
860
863
|
email?: string | undefined;
|
|
861
864
|
}>>]>;
|
|
862
865
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
866
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
863
867
|
}, "strip", z.ZodTypeAny, {
|
|
864
868
|
id: string;
|
|
865
869
|
address: ({
|
|
@@ -917,6 +921,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
917
921
|
phone?: string | undefined;
|
|
918
922
|
email?: string | undefined;
|
|
919
923
|
}[] | undefined;
|
|
924
|
+
externalId?: string | undefined;
|
|
920
925
|
}, {
|
|
921
926
|
id: string;
|
|
922
927
|
address: ({
|
|
@@ -974,6 +979,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
974
979
|
phone?: string | undefined;
|
|
975
980
|
email?: string | undefined;
|
|
976
981
|
}[] | undefined;
|
|
982
|
+
externalId?: string | undefined;
|
|
977
983
|
}>, "many">;
|
|
978
984
|
}, "strip", z.ZodTypeAny, {
|
|
979
985
|
patients: {
|
|
@@ -1033,6 +1039,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1033
1039
|
phone?: string | undefined;
|
|
1034
1040
|
email?: string | undefined;
|
|
1035
1041
|
}[] | undefined;
|
|
1042
|
+
externalId?: string | undefined;
|
|
1036
1043
|
}[];
|
|
1037
1044
|
}, {
|
|
1038
1045
|
patients: {
|
|
@@ -1092,6 +1099,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1092
1099
|
phone?: string | undefined;
|
|
1093
1100
|
email?: string | undefined;
|
|
1094
1101
|
}[] | undefined;
|
|
1102
|
+
externalId?: string | undefined;
|
|
1095
1103
|
}[];
|
|
1096
1104
|
}>;
|
|
1097
1105
|
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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqB,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ateSchema = exports.patientCreateSchema.merge(base_update_1.baseUpdateSchema);
|
|
9
9
|
exports.patientSchema = exports.patientUpdateSchema.extend({
|
|
10
10
|
facilityIds: zod_1.z.array(zod_1.z.string()),
|
|
11
|
+
externalId: zod_1.z.string().optional(),
|
|
11
12
|
});
|
|
12
13
|
exports.patientListSchema = zod_1.z.object({
|
|
13
14
|
patients: zod_1.z.array(exports.patientSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEvC,QAAA,mBAAmB,GAAG,iCAAkB,CAAC;AAGzC,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;
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEvC,QAAA,mBAAmB,GAAG,iCAAkB,CAAC;AAGzC,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;IAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,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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,EAAE,MAAM,CAAC;KACd,GACD;QACE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACN,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,OAAO,OAAO,CAAC;CAC7B,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,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": "7.5.
|
|
3
|
+
"version": "7.5.4-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/",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"url": "https://github.com/metriport/metriport/issues"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@metriport/commonwell-sdk": "^4.8.
|
|
59
|
+
"@metriport/commonwell-sdk": "^4.8.18-alpha.0",
|
|
60
60
|
"axios": "^1.3.4",
|
|
61
61
|
"dayjs": "^1.11.7",
|
|
62
62
|
"dotenv": "^16.3.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"ts-jest": "29.1.1",
|
|
75
75
|
"typescript": "^4.9.5"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "e854079c72e866549919c41ce260f998b138b063"
|
|
78
78
|
}
|