@metriport/api-sdk 18.10.0 → 18.10.1
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/devices/client/metriport.d.ts.map +1 -1
- package/dist/devices/client/metriport.js.map +1 -1
- package/dist/devices/client/util/date-util.js +1 -2
- package/dist/devices/client/util/date-util.js.map +1 -1
- package/dist/devices/client/util/timezone-util.js +1 -2
- package/dist/devices/client/util/timezone-util.js.map +1 -1
- package/dist/devices/models/common/provider-source.js +1 -1
- package/dist/devices/models/common/provider-source.js.map +1 -1
- package/dist/devices/models/common/source-type.js +1 -1
- package/dist/devices/models/common/source-type.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/medical/client/metriport.d.ts +19 -4
- package/dist/medical/client/metriport.d.ts.map +1 -1
- package/dist/medical/client/metriport.js +26 -4
- package/dist/medical/client/metriport.js.map +1 -1
- package/dist/medical/models/common/address.d.ts +4 -4
- package/dist/medical/models/common/address.js.map +1 -1
- package/dist/medical/models/common/base-update.js +2 -2
- package/dist/medical/models/common/base-update.js.map +1 -1
- package/dist/medical/models/common/hie-control.d.ts +66 -0
- package/dist/medical/models/common/hie-control.d.ts.map +1 -0
- package/dist/medical/models/common/hie-control.js +29 -0
- package/dist/medical/models/common/hie-control.js.map +1 -0
- package/dist/medical/models/common/medical-data-source.js +1 -1
- package/dist/medical/models/common/medical-data-source.js.map +1 -1
- package/dist/medical/models/common/us-data.js.map +1 -1
- package/dist/medical/models/demographics.d.ts +105 -105
- package/dist/medical/models/demographics.d.ts.map +1 -1
- package/dist/medical/models/demographics.js.map +1 -1
- package/dist/medical/models/document.d.ts +159 -54
- package/dist/medical/models/document.d.ts.map +1 -1
- package/dist/medical/models/document.js +25 -3
- package/dist/medical/models/document.js.map +1 -1
- package/dist/medical/models/facility.d.ts +59 -59
- package/dist/medical/models/facility.js.map +1 -1
- package/dist/medical/models/fhir.d.ts +20 -20
- package/dist/medical/models/fhir.js.map +1 -1
- package/dist/medical/models/organization.d.ts +22 -22
- package/dist/medical/models/organization.js.map +1 -1
- package/dist/medical/models/patient.d.ts +798 -436
- package/dist/medical/models/patient.d.ts.map +1 -1
- package/dist/medical/models/patient.js +2 -0
- package/dist/medical/models/patient.js.map +1 -1
- package/dist/shared.js +3 -3
- package/dist/shared.js.map +1 -1
- package/package.json +11 -11
|
@@ -75,21 +75,21 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
75
75
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
addressLine1: string;
|
|
78
|
+
addressLine2?: string | undefined;
|
|
78
79
|
city: string;
|
|
79
80
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
80
81
|
zip: string;
|
|
81
|
-
country: "USA";
|
|
82
|
-
addressLine2?: string | undefined;
|
|
83
82
|
coordinates?: {
|
|
84
83
|
lat: number;
|
|
85
84
|
lon: number;
|
|
86
85
|
} | undefined;
|
|
86
|
+
country: "USA";
|
|
87
87
|
}, {
|
|
88
88
|
addressLine1: string;
|
|
89
|
-
city: string;
|
|
90
|
-
zip: string;
|
|
91
89
|
addressLine2?: string | undefined;
|
|
90
|
+
city: string;
|
|
92
91
|
state?: unknown;
|
|
92
|
+
zip: string;
|
|
93
93
|
coordinates?: {
|
|
94
94
|
lat: number;
|
|
95
95
|
lon: number;
|
|
@@ -97,39 +97,39 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
97
97
|
country?: "USA" | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
name: string;
|
|
101
|
+
npi: string;
|
|
102
|
+
tin?: string | null | undefined;
|
|
103
|
+
active?: boolean | null | undefined;
|
|
100
104
|
address: {
|
|
101
105
|
addressLine1: string;
|
|
106
|
+
addressLine2?: string | undefined;
|
|
102
107
|
city: string;
|
|
103
108
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
104
109
|
zip: string;
|
|
105
|
-
country: "USA";
|
|
106
|
-
addressLine2?: string | undefined;
|
|
107
110
|
coordinates?: {
|
|
108
111
|
lat: number;
|
|
109
112
|
lon: number;
|
|
110
113
|
} | undefined;
|
|
114
|
+
country: "USA";
|
|
111
115
|
};
|
|
116
|
+
}, {
|
|
112
117
|
name: string;
|
|
113
118
|
npi: string;
|
|
114
119
|
tin?: string | null | undefined;
|
|
115
120
|
active?: boolean | null | undefined;
|
|
116
|
-
}, {
|
|
117
121
|
address: {
|
|
118
122
|
addressLine1: string;
|
|
119
|
-
city: string;
|
|
120
|
-
zip: string;
|
|
121
123
|
addressLine2?: string | undefined;
|
|
124
|
+
city: string;
|
|
122
125
|
state?: unknown;
|
|
126
|
+
zip: string;
|
|
123
127
|
coordinates?: {
|
|
124
128
|
lat: number;
|
|
125
129
|
lon: number;
|
|
126
130
|
} | undefined;
|
|
127
131
|
country?: "USA" | undefined;
|
|
128
132
|
};
|
|
129
|
-
name: string;
|
|
130
|
-
npi: string;
|
|
131
|
-
tin?: string | null | undefined;
|
|
132
|
-
active?: boolean | null | undefined;
|
|
133
133
|
}>;
|
|
134
134
|
export type FacilityCreate = z.infer<typeof facilityCreateSchema>;
|
|
135
135
|
export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -208,21 +208,21 @@ export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
208
208
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
addressLine1: string;
|
|
211
|
+
addressLine2?: string | undefined;
|
|
211
212
|
city: string;
|
|
212
213
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
213
214
|
zip: string;
|
|
214
|
-
country: "USA";
|
|
215
|
-
addressLine2?: string | undefined;
|
|
216
215
|
coordinates?: {
|
|
217
216
|
lat: number;
|
|
218
217
|
lon: number;
|
|
219
218
|
} | undefined;
|
|
219
|
+
country: "USA";
|
|
220
220
|
}, {
|
|
221
221
|
addressLine1: string;
|
|
222
|
-
city: string;
|
|
223
|
-
zip: string;
|
|
224
222
|
addressLine2?: string | undefined;
|
|
223
|
+
city: string;
|
|
225
224
|
state?: unknown;
|
|
225
|
+
zip: string;
|
|
226
226
|
coordinates?: {
|
|
227
227
|
lat: number;
|
|
228
228
|
lon: number;
|
|
@@ -234,42 +234,42 @@ export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
234
234
|
eTag: z.ZodOptional<z.ZodString>;
|
|
235
235
|
}>, "strip", z.ZodTypeAny, {
|
|
236
236
|
id: string;
|
|
237
|
+
eTag?: string | undefined;
|
|
238
|
+
name: string;
|
|
239
|
+
npi: string;
|
|
240
|
+
tin?: string | null | undefined;
|
|
241
|
+
active?: boolean | null | undefined;
|
|
237
242
|
address: {
|
|
238
243
|
addressLine1: string;
|
|
244
|
+
addressLine2?: string | undefined;
|
|
239
245
|
city: string;
|
|
240
246
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
241
247
|
zip: string;
|
|
242
|
-
country: "USA";
|
|
243
|
-
addressLine2?: string | undefined;
|
|
244
248
|
coordinates?: {
|
|
245
249
|
lat: number;
|
|
246
250
|
lon: number;
|
|
247
251
|
} | undefined;
|
|
252
|
+
country: "USA";
|
|
248
253
|
};
|
|
254
|
+
}, {
|
|
255
|
+
id: string;
|
|
256
|
+
eTag?: string | undefined;
|
|
249
257
|
name: string;
|
|
250
258
|
npi: string;
|
|
251
|
-
eTag?: string | undefined;
|
|
252
259
|
tin?: string | null | undefined;
|
|
253
260
|
active?: boolean | null | undefined;
|
|
254
|
-
}, {
|
|
255
|
-
id: string;
|
|
256
261
|
address: {
|
|
257
262
|
addressLine1: string;
|
|
258
|
-
city: string;
|
|
259
|
-
zip: string;
|
|
260
263
|
addressLine2?: string | undefined;
|
|
264
|
+
city: string;
|
|
261
265
|
state?: unknown;
|
|
266
|
+
zip: string;
|
|
262
267
|
coordinates?: {
|
|
263
268
|
lat: number;
|
|
264
269
|
lon: number;
|
|
265
270
|
} | undefined;
|
|
266
271
|
country?: "USA" | undefined;
|
|
267
272
|
};
|
|
268
|
-
name: string;
|
|
269
|
-
npi: string;
|
|
270
|
-
eTag?: string | undefined;
|
|
271
|
-
tin?: string | null | undefined;
|
|
272
|
-
active?: boolean | null | undefined;
|
|
273
273
|
}>;
|
|
274
274
|
export type Facility = z.infer<typeof facilitySchema>;
|
|
275
275
|
export declare const facilityListSchema: z.ZodObject<{
|
|
@@ -349,21 +349,21 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
349
349
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
addressLine1: string;
|
|
352
|
+
addressLine2?: string | undefined;
|
|
352
353
|
city: string;
|
|
353
354
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
354
355
|
zip: string;
|
|
355
|
-
country: "USA";
|
|
356
|
-
addressLine2?: string | undefined;
|
|
357
356
|
coordinates?: {
|
|
358
357
|
lat: number;
|
|
359
358
|
lon: number;
|
|
360
359
|
} | undefined;
|
|
360
|
+
country: "USA";
|
|
361
361
|
}, {
|
|
362
362
|
addressLine1: string;
|
|
363
|
-
city: string;
|
|
364
|
-
zip: string;
|
|
365
363
|
addressLine2?: string | undefined;
|
|
364
|
+
city: string;
|
|
366
365
|
state?: unknown;
|
|
366
|
+
zip: string;
|
|
367
367
|
coordinates?: {
|
|
368
368
|
lat: number;
|
|
369
369
|
lon: number;
|
|
@@ -375,84 +375,84 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
375
375
|
eTag: z.ZodOptional<z.ZodString>;
|
|
376
376
|
}>, "strip", z.ZodTypeAny, {
|
|
377
377
|
id: string;
|
|
378
|
+
eTag?: string | undefined;
|
|
379
|
+
name: string;
|
|
380
|
+
npi: string;
|
|
381
|
+
tin?: string | null | undefined;
|
|
382
|
+
active?: boolean | null | undefined;
|
|
378
383
|
address: {
|
|
379
384
|
addressLine1: string;
|
|
385
|
+
addressLine2?: string | undefined;
|
|
380
386
|
city: string;
|
|
381
387
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
382
388
|
zip: string;
|
|
383
|
-
country: "USA";
|
|
384
|
-
addressLine2?: string | undefined;
|
|
385
389
|
coordinates?: {
|
|
386
390
|
lat: number;
|
|
387
391
|
lon: number;
|
|
388
392
|
} | undefined;
|
|
393
|
+
country: "USA";
|
|
389
394
|
};
|
|
395
|
+
}, {
|
|
396
|
+
id: string;
|
|
397
|
+
eTag?: string | undefined;
|
|
390
398
|
name: string;
|
|
391
399
|
npi: string;
|
|
392
|
-
eTag?: string | undefined;
|
|
393
400
|
tin?: string | null | undefined;
|
|
394
401
|
active?: boolean | null | undefined;
|
|
395
|
-
}, {
|
|
396
|
-
id: string;
|
|
397
402
|
address: {
|
|
398
403
|
addressLine1: string;
|
|
399
|
-
city: string;
|
|
400
|
-
zip: string;
|
|
401
404
|
addressLine2?: string | undefined;
|
|
405
|
+
city: string;
|
|
402
406
|
state?: unknown;
|
|
407
|
+
zip: string;
|
|
403
408
|
coordinates?: {
|
|
404
409
|
lat: number;
|
|
405
410
|
lon: number;
|
|
406
411
|
} | undefined;
|
|
407
412
|
country?: "USA" | undefined;
|
|
408
413
|
};
|
|
409
|
-
name: string;
|
|
410
|
-
npi: string;
|
|
411
|
-
eTag?: string | undefined;
|
|
412
|
-
tin?: string | null | undefined;
|
|
413
|
-
active?: boolean | null | undefined;
|
|
414
414
|
}>, "many">;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
416
|
facilities: {
|
|
417
417
|
id: string;
|
|
418
|
+
eTag?: string | undefined;
|
|
419
|
+
name: string;
|
|
420
|
+
npi: string;
|
|
421
|
+
tin?: string | null | undefined;
|
|
422
|
+
active?: boolean | null | undefined;
|
|
418
423
|
address: {
|
|
419
424
|
addressLine1: string;
|
|
425
|
+
addressLine2?: string | undefined;
|
|
420
426
|
city: string;
|
|
421
427
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
422
428
|
zip: string;
|
|
423
|
-
country: "USA";
|
|
424
|
-
addressLine2?: string | undefined;
|
|
425
429
|
coordinates?: {
|
|
426
430
|
lat: number;
|
|
427
431
|
lon: number;
|
|
428
432
|
} | undefined;
|
|
433
|
+
country: "USA";
|
|
429
434
|
};
|
|
430
|
-
name: string;
|
|
431
|
-
npi: string;
|
|
432
|
-
eTag?: string | undefined;
|
|
433
|
-
tin?: string | null | undefined;
|
|
434
|
-
active?: boolean | null | undefined;
|
|
435
435
|
}[];
|
|
436
436
|
}, {
|
|
437
437
|
facilities: {
|
|
438
438
|
id: string;
|
|
439
|
+
eTag?: string | undefined;
|
|
440
|
+
name: string;
|
|
441
|
+
npi: string;
|
|
442
|
+
tin?: string | null | undefined;
|
|
443
|
+
active?: boolean | null | undefined;
|
|
439
444
|
address: {
|
|
440
445
|
addressLine1: string;
|
|
441
|
-
city: string;
|
|
442
|
-
zip: string;
|
|
443
446
|
addressLine2?: string | undefined;
|
|
447
|
+
city: string;
|
|
444
448
|
state?: unknown;
|
|
449
|
+
zip: string;
|
|
445
450
|
coordinates?: {
|
|
446
451
|
lat: number;
|
|
447
452
|
lon: number;
|
|
448
453
|
} | undefined;
|
|
449
454
|
country?: "USA" | undefined;
|
|
450
455
|
};
|
|
451
|
-
name: string;
|
|
452
|
-
npi: string;
|
|
453
|
-
eTag?: string | undefined;
|
|
454
|
-
tin?: string | null | undefined;
|
|
455
|
-
active?: boolean | null | undefined;
|
|
456
456
|
}[];
|
|
457
457
|
}>;
|
|
458
458
|
//# sourceMappingURL=facility.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facility.js","sourceRoot":"","sources":["../../../src/medical/models/facility.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,8CAAgD;AAEnC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,EAAE,CAAC;SACV,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAW,EAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACnE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,uBAAa;CACvB,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"facility.js","sourceRoot":"","sources":["../../../src/medical/models/facility.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,8CAAgD;AAEnC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,EAAE,CAAC;SACV,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAW,EAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACnE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,uBAAa;CACvB,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,QAAA,oBAAoB,CAAC,KAAK,CAAC,8BAAgB,CAAC,CAAC;AAG9D,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,QAAA,cAAc,CAAC;CACpC,CAAC,CAAC"}
|
|
@@ -19,17 +19,17 @@ export declare const getConsolidatedFiltersSchema: z.ZodObject<{
|
|
|
19
19
|
generateAiBrief: z.ZodOptional<z.ZodBoolean>;
|
|
20
20
|
fromDashboard: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
|
|
23
|
-
resources?: ("Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Location" | "Organization" | "Patient" | "Practitioner" | "Binary")[] | undefined;
|
|
22
|
+
resources?: ("Account" | "AdverseEvent" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "Binary" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "Location" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Organization" | "Patient" | "Person" | "Practitioner" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "Task")[] | undefined;
|
|
24
23
|
dateFrom?: string | undefined;
|
|
25
24
|
dateTo?: string | undefined;
|
|
25
|
+
conversionType: "html" | "json" | "pdf";
|
|
26
26
|
generateAiBrief?: boolean | undefined;
|
|
27
27
|
fromDashboard?: boolean | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
|
|
30
|
-
resources?: ("Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Location" | "Organization" | "Patient" | "Practitioner" | "Binary")[] | undefined;
|
|
29
|
+
resources?: ("Account" | "AdverseEvent" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "Binary" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "Location" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Organization" | "Patient" | "Person" | "Practitioner" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "Task")[] | undefined;
|
|
31
30
|
dateFrom?: string | undefined;
|
|
32
31
|
dateTo?: string | undefined;
|
|
32
|
+
conversionType: "html" | "json" | "pdf";
|
|
33
33
|
generateAiBrief?: boolean | undefined;
|
|
34
34
|
fromDashboard?: boolean | undefined;
|
|
35
35
|
}>;
|
|
@@ -47,30 +47,30 @@ export declare const consolidatedCountSchema: z.ZodObject<{
|
|
|
47
47
|
}, "dateFrom" | "dateTo">, {
|
|
48
48
|
resources: z.ZodString;
|
|
49
49
|
}>, "strip", z.ZodTypeAny, {
|
|
50
|
-
resources: string;
|
|
51
50
|
dateFrom?: string | undefined;
|
|
52
51
|
dateTo?: string | undefined;
|
|
53
|
-
}, {
|
|
54
52
|
resources: string;
|
|
53
|
+
}, {
|
|
55
54
|
dateFrom?: string | undefined;
|
|
56
55
|
dateTo?: string | undefined;
|
|
56
|
+
resources: string;
|
|
57
57
|
}>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
total: number;
|
|
60
|
+
resources: Record<string, number>;
|
|
59
61
|
filter: {
|
|
60
|
-
resources: string;
|
|
61
62
|
dateFrom?: string | undefined;
|
|
62
63
|
dateTo?: string | undefined;
|
|
64
|
+
resources: string;
|
|
63
65
|
};
|
|
66
|
+
}, {
|
|
64
67
|
total: number;
|
|
65
68
|
resources: Record<string, number>;
|
|
66
|
-
}, {
|
|
67
69
|
filter: {
|
|
68
|
-
resources: string;
|
|
69
70
|
dateFrom?: string | undefined;
|
|
70
71
|
dateTo?: string | undefined;
|
|
72
|
+
resources: string;
|
|
71
73
|
};
|
|
72
|
-
total: number;
|
|
73
|
-
resources: Record<string, number>;
|
|
74
74
|
}>;
|
|
75
75
|
export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
|
|
76
76
|
export declare const consolidatedQuerySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -85,25 +85,25 @@ export declare const consolidatedQuerySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
85
85
|
startedAt: z.ZodDate;
|
|
86
86
|
status: z.ZodEnum<["processing", "completed", "failed"]>;
|
|
87
87
|
}>, "strip", z.ZodTypeAny, {
|
|
88
|
-
|
|
89
|
-
requestId: string;
|
|
90
|
-
conversionType: "html" | "pdf" | "json";
|
|
91
|
-
startedAt: Date;
|
|
92
|
-
resources?: ("Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Location" | "Organization" | "Patient" | "Practitioner" | "Binary")[] | undefined;
|
|
88
|
+
resources?: ("Account" | "AdverseEvent" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "Binary" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "Location" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Organization" | "Patient" | "Person" | "Practitioner" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "Task")[] | undefined;
|
|
93
89
|
dateFrom?: string | undefined;
|
|
94
90
|
dateTo?: string | undefined;
|
|
91
|
+
conversionType: "html" | "json" | "pdf";
|
|
95
92
|
generateAiBrief?: boolean | undefined;
|
|
96
93
|
fromDashboard?: boolean | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
status: "processing" | "completed" | "failed";
|
|
99
94
|
requestId: string;
|
|
100
|
-
conversionType: "html" | "pdf" | "json";
|
|
101
95
|
startedAt: Date;
|
|
102
|
-
|
|
96
|
+
status: "completed" | "failed" | "processing";
|
|
97
|
+
}, {
|
|
98
|
+
resources?: ("Account" | "AdverseEvent" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "Binary" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "Location" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Organization" | "Patient" | "Person" | "Practitioner" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "Task")[] | undefined;
|
|
103
99
|
dateFrom?: string | undefined;
|
|
104
100
|
dateTo?: string | undefined;
|
|
101
|
+
conversionType: "html" | "json" | "pdf";
|
|
105
102
|
generateAiBrief?: boolean | undefined;
|
|
106
103
|
fromDashboard?: boolean | undefined;
|
|
104
|
+
requestId: string;
|
|
105
|
+
startedAt: Date;
|
|
106
|
+
status: "completed" | "failed" | "processing";
|
|
107
107
|
}>;
|
|
108
108
|
export type ConsolidatedQuery = z.infer<typeof consolidatedQuerySchema>;
|
|
109
109
|
//# sourceMappingURL=fhir.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir.js","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA4C;AAC5C,uCAA8C;AAEjC,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAGpE,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAGpE,QAAA,gBAAgB,GAAG,gBAAO,CAAC,gBAAgB,CAAC;AAG5C,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAIpE,QAAA,cAAc,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"fhir.js","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA4C;AAC5C,uCAA8C;AAEjC,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAGpE,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAGpE,QAAA,gBAAgB,GAAG,gBAAO,CAAC,gBAAgB,CAAC;AAG5C,QAAA,4BAA4B,GAAG,gBAAO,CAAC,4BAA4B,CAAC;AAIpE,QAAA,cAAc,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,QAAA,4BAA4B,CAAC,CAAC,CAAC;AAE/D,QAAA,2BAA2B,GAAG,gBAAO,CAAC,2BAA2B,CAAC;AAGlE,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,4BAA4B,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAClE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,2BAA2B,CAAC;IACnD,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAIU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,MAAM,EAAE,QAAA,4BAA4B,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACjF,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACtB,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,uBAAuB,GAAG,QAAA,4BAA4B,CAAC,MAAM,CAAC;IACzE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,MAAM,EAAE,2BAAiB;CAC1B,CAAC,CAAC"}
|
|
@@ -75,21 +75,21 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
75
75
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
addressLine1: string;
|
|
78
|
+
addressLine2?: string | undefined;
|
|
78
79
|
city: string;
|
|
79
80
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
80
81
|
zip: string;
|
|
81
|
-
country: "USA";
|
|
82
|
-
addressLine2?: string | undefined;
|
|
83
82
|
coordinates?: {
|
|
84
83
|
lat: number;
|
|
85
84
|
lon: number;
|
|
86
85
|
} | undefined;
|
|
86
|
+
country: "USA";
|
|
87
87
|
}, {
|
|
88
88
|
addressLine1: string;
|
|
89
|
-
city: string;
|
|
90
|
-
zip: string;
|
|
91
89
|
addressLine2?: string | undefined;
|
|
90
|
+
city: string;
|
|
92
91
|
state?: unknown;
|
|
92
|
+
zip: string;
|
|
93
93
|
coordinates?: {
|
|
94
94
|
lat: number;
|
|
95
95
|
lon: number;
|
|
@@ -97,29 +97,29 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
97
97
|
country?: "USA" | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
type: TreatmentType;
|
|
101
100
|
name: string;
|
|
101
|
+
type: TreatmentType;
|
|
102
102
|
location: {
|
|
103
103
|
addressLine1: string;
|
|
104
|
+
addressLine2?: string | undefined;
|
|
104
105
|
city: string;
|
|
105
106
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
106
107
|
zip: string;
|
|
107
|
-
country: "USA";
|
|
108
|
-
addressLine2?: string | undefined;
|
|
109
108
|
coordinates?: {
|
|
110
109
|
lat: number;
|
|
111
110
|
lon: number;
|
|
112
111
|
} | undefined;
|
|
112
|
+
country: "USA";
|
|
113
113
|
};
|
|
114
114
|
}, {
|
|
115
|
-
type: TreatmentType;
|
|
116
115
|
name: string;
|
|
116
|
+
type: TreatmentType;
|
|
117
117
|
location: {
|
|
118
118
|
addressLine1: string;
|
|
119
|
-
city: string;
|
|
120
|
-
zip: string;
|
|
121
119
|
addressLine2?: string | undefined;
|
|
120
|
+
city: string;
|
|
122
121
|
state?: unknown;
|
|
122
|
+
zip: string;
|
|
123
123
|
coordinates?: {
|
|
124
124
|
lat: number;
|
|
125
125
|
lon: number;
|
|
@@ -204,21 +204,21 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
204
204
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
addressLine1: string;
|
|
207
|
+
addressLine2?: string | undefined;
|
|
207
208
|
city: string;
|
|
208
209
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
209
210
|
zip: string;
|
|
210
|
-
country: "USA";
|
|
211
|
-
addressLine2?: string | undefined;
|
|
212
211
|
coordinates?: {
|
|
213
212
|
lat: number;
|
|
214
213
|
lon: number;
|
|
215
214
|
} | undefined;
|
|
215
|
+
country: "USA";
|
|
216
216
|
}, {
|
|
217
217
|
addressLine1: string;
|
|
218
|
-
city: string;
|
|
219
|
-
zip: string;
|
|
220
218
|
addressLine2?: string | undefined;
|
|
219
|
+
city: string;
|
|
221
220
|
state?: unknown;
|
|
221
|
+
zip: string;
|
|
222
222
|
coordinates?: {
|
|
223
223
|
lat: number;
|
|
224
224
|
lon: number;
|
|
@@ -230,32 +230,33 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
230
230
|
eTag: z.ZodOptional<z.ZodString>;
|
|
231
231
|
}>, "strip", z.ZodTypeAny, {
|
|
232
232
|
id: string;
|
|
233
|
-
|
|
233
|
+
eTag?: string | undefined;
|
|
234
234
|
name: string;
|
|
235
|
+
type: TreatmentType;
|
|
235
236
|
location: {
|
|
236
237
|
addressLine1: string;
|
|
238
|
+
addressLine2?: string | undefined;
|
|
237
239
|
city: string;
|
|
238
240
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
239
241
|
zip: string;
|
|
240
|
-
country: "USA";
|
|
241
|
-
addressLine2?: string | undefined;
|
|
242
242
|
coordinates?: {
|
|
243
243
|
lat: number;
|
|
244
244
|
lon: number;
|
|
245
245
|
} | undefined;
|
|
246
|
+
country: "USA";
|
|
246
247
|
};
|
|
247
248
|
oid: string;
|
|
248
|
-
eTag?: string | undefined;
|
|
249
249
|
}, {
|
|
250
250
|
id: string;
|
|
251
|
-
|
|
251
|
+
eTag?: string | undefined;
|
|
252
252
|
name: string;
|
|
253
|
+
type: TreatmentType;
|
|
253
254
|
location: {
|
|
254
255
|
addressLine1: string;
|
|
255
|
-
city: string;
|
|
256
|
-
zip: string;
|
|
257
256
|
addressLine2?: string | undefined;
|
|
257
|
+
city: string;
|
|
258
258
|
state?: unknown;
|
|
259
|
+
zip: string;
|
|
259
260
|
coordinates?: {
|
|
260
261
|
lat: number;
|
|
261
262
|
lon: number;
|
|
@@ -263,7 +264,6 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
263
264
|
country?: "USA" | undefined;
|
|
264
265
|
};
|
|
265
266
|
oid: string;
|
|
266
|
-
eTag?: string | undefined;
|
|
267
267
|
}>;
|
|
268
268
|
export type Organization = z.infer<typeof organizationSchema>;
|
|
269
269
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../src/medical/models/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,8CAAkD;AAErC,QAAA,mBAAmB,GAAG,OAAC,CAAC,UAAU,CAAC,sBAAa,CAAC,CAAC;AAElD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../src/medical/models/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,8CAAkD;AAErC,QAAA,mBAAmB,GAAG,OAAC,CAAC,UAAU,CAAC,sBAAa,CAAC,CAAC;AAElD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,QAAA,mBAAmB;IACzB,QAAQ,EAAE,uBAAa;CACxB,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,CAAC;IACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC;KACD,KAAK,CAAC,QAAA,wBAAwB,CAAC;KAC/B,KAAK,CAAC,8BAAgB,CAAC,CAAC"}
|