@metriport/api-sdk 6.4.2 → 6.4.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/document.d.ts +3 -0
- package/dist/medical/models/document.d.ts.map +1 -1
- package/dist/medical/models/document.js +1 -0
- package/dist/medical/models/document.js.map +1 -1
- package/package.json +3 -3
|
@@ -187,14 +187,14 @@ export declare class MetriportMedicalApi {
|
|
|
187
187
|
*
|
|
188
188
|
* @param patientId Patient ID for which to retrieve document metadata.
|
|
189
189
|
* @param facilityId The facility providing the NPI to support this operation.
|
|
190
|
-
* @return The document query progress & status indicating whether its being executed or not.
|
|
190
|
+
* @return The document query ID, progress & status indicating whether its being executed or not.
|
|
191
191
|
*/
|
|
192
192
|
startDocumentQuery(patientId: string, facilityId: string): Promise<DocumentQuery>;
|
|
193
193
|
/**
|
|
194
194
|
* Returns the document query status for the specified patient.
|
|
195
195
|
*
|
|
196
196
|
* @param patientId Patient ID for which to retrieve document query status.
|
|
197
|
-
* @return The document query progress & status indicating whether its being executed or not.
|
|
197
|
+
* @return The document query ID, progress & status indicating whether its being executed or not.
|
|
198
198
|
*/
|
|
199
199
|
getDocumentQueryStatus(patientId: string): Promise<DocumentQuery>;
|
|
200
200
|
/**
|
|
@@ -317,7 +317,7 @@ class MetriportMedicalApi {
|
|
|
317
317
|
*
|
|
318
318
|
* @param patientId Patient ID for which to retrieve document metadata.
|
|
319
319
|
* @param facilityId The facility providing the NPI to support this operation.
|
|
320
|
-
* @return The document query progress & status indicating whether its being executed or not.
|
|
320
|
+
* @return The document query ID, progress & status indicating whether its being executed or not.
|
|
321
321
|
*/
|
|
322
322
|
async startDocumentQuery(patientId, facilityId) {
|
|
323
323
|
const resp = await this.api.post(`${DOCUMENT_URL}/query`, null, {
|
|
@@ -334,7 +334,7 @@ class MetriportMedicalApi {
|
|
|
334
334
|
* Returns the document query status for the specified patient.
|
|
335
335
|
*
|
|
336
336
|
* @param patientId Patient ID for which to retrieve document query status.
|
|
337
|
-
* @return The document query progress & status indicating whether its being executed or not.
|
|
337
|
+
* @return The document query ID, progress & status indicating whether its being executed or not.
|
|
338
338
|
*/
|
|
339
339
|
async getDocumentQueryStatus(patientId) {
|
|
340
340
|
const resp = await this.api.get(`${DOCUMENT_URL}/query`, {
|
|
@@ -125,6 +125,7 @@ export declare const documentQuerySchema: z.ZodObject<{
|
|
|
125
125
|
successful?: number | undefined;
|
|
126
126
|
errors?: number | undefined;
|
|
127
127
|
}>>;
|
|
128
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
128
129
|
}, "strip", z.ZodTypeAny, {
|
|
129
130
|
download?: {
|
|
130
131
|
status: "processing" | "completed" | "failed";
|
|
@@ -138,6 +139,7 @@ export declare const documentQuerySchema: z.ZodObject<{
|
|
|
138
139
|
successful?: number | undefined;
|
|
139
140
|
errors?: number | undefined;
|
|
140
141
|
} | undefined;
|
|
142
|
+
requestId?: string | undefined;
|
|
141
143
|
}, {
|
|
142
144
|
download?: {
|
|
143
145
|
status: "processing" | "completed" | "failed";
|
|
@@ -151,6 +153,7 @@ export declare const documentQuerySchema: z.ZodObject<{
|
|
|
151
153
|
successful?: number | undefined;
|
|
152
154
|
errors?: number | undefined;
|
|
153
155
|
} | undefined;
|
|
156
|
+
requestId?: string | undefined;
|
|
154
157
|
}>;
|
|
155
158
|
export type DocumentQuery = z.infer<typeof documentQuerySchema>;
|
|
156
159
|
export declare const documentListSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/medical/models/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -34,6 +34,7 @@ exports.progressSchema = zod_1.z.object({
|
|
|
34
34
|
exports.documentQuerySchema = zod_1.z.object({
|
|
35
35
|
download: exports.progressSchema.optional(),
|
|
36
36
|
convert: exports.progressSchema.optional(),
|
|
37
|
+
requestId: zod_1.z.string().optional(),
|
|
37
38
|
});
|
|
38
39
|
exports.documentListSchema = zod_1.z.object({
|
|
39
40
|
documents: zod_1.z.array(exports.documentReferenceSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/medical/models/document.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,OAAC;SACJ,MAAM,CAAC;QACN,MAAM,EAAE,OAAC;aACN,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;YACP,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YACxC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YACtC,OAAO,EAAE,OAAC,CAAC,MA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AAS,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC5C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.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/",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"url": "https://github.com/metriport/metriport/issues"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@metriport/commonwell-sdk": "^4.7.
|
|
58
|
+
"@metriport/commonwell-sdk": "^4.7.3-alpha.0",
|
|
59
59
|
"axios": "^1.3.4",
|
|
60
60
|
"dayjs": "^1.11.7",
|
|
61
61
|
"zod": "^3.22.1"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"ts-jest": "29.1.1",
|
|
73
73
|
"typescript": "^4.9.5"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3605cef9607ec1494501296c28f36cafa8108968"
|
|
76
76
|
}
|