@metriport/api-sdk 12.0.2 → 12.0.5-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/fhir.d.ts +6 -0
- package/dist/medical/models/fhir.d.ts.map +1 -1
- package/dist/medical/models/fhir.js +1 -0
- package/dist/medical/models/fhir.js.map +1 -1
- package/package.json +4 -4
|
@@ -195,8 +195,8 @@ export declare class MetriportMedicalApi {
|
|
|
195
195
|
* Add patient data as FHIR resources. Those can later be queried with startConsolidatedQuery(),
|
|
196
196
|
* and will be made available to HIEs.
|
|
197
197
|
*
|
|
198
|
-
* Note: each call to this function is limited to
|
|
199
|
-
* calls to this function to add more data.
|
|
198
|
+
* Note: each call to this function is limited to 1Mb of data (and 50 resources when in sandbox).
|
|
199
|
+
* You can make multiple calls to this function to add more data.
|
|
200
200
|
*
|
|
201
201
|
* @param patientId The ID of the patient to associate resources to.
|
|
202
202
|
* @param payload The FHIR Bundle to create resources.
|
|
@@ -343,8 +343,8 @@ class MetriportMedicalApi {
|
|
|
343
343
|
* Add patient data as FHIR resources. Those can later be queried with startConsolidatedQuery(),
|
|
344
344
|
* and will be made available to HIEs.
|
|
345
345
|
*
|
|
346
|
-
* Note: each call to this function is limited to
|
|
347
|
-
* calls to this function to add more data.
|
|
346
|
+
* Note: each call to this function is limited to 1Mb of data (and 50 resources when in sandbox).
|
|
347
|
+
* You can make multiple calls to this function to add more data.
|
|
348
348
|
*
|
|
349
349
|
* @param patientId The ID of the patient to associate resources to.
|
|
350
350
|
* @param payload The FHIR Bundle to create resources.
|
|
@@ -15,16 +15,19 @@ export declare const getConsolidatedFiltersSchema: z.ZodObject<{
|
|
|
15
15
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
16
16
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
17
17
|
conversionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["html", "pdf", "json"]>>>;
|
|
18
|
+
generateAiBrief: z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
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" | "Practitioner")[] | undefined;
|
|
20
21
|
dateFrom?: string | undefined;
|
|
21
22
|
dateTo?: string | undefined;
|
|
22
23
|
conversionType?: "html" | "pdf" | "json" | undefined;
|
|
24
|
+
generateAiBrief?: boolean | undefined;
|
|
23
25
|
}, {
|
|
24
26
|
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" | "Practitioner")[] | undefined;
|
|
25
27
|
dateFrom?: string | undefined;
|
|
26
28
|
dateTo?: string | undefined;
|
|
27
29
|
conversionType?: "html" | "pdf" | "json" | undefined;
|
|
30
|
+
generateAiBrief?: boolean | undefined;
|
|
28
31
|
}>;
|
|
29
32
|
export type GetConsolidatedFilters = z.infer<typeof getConsolidatedFiltersSchema>;
|
|
30
33
|
export declare const consolidatedCountSchema: z.ZodObject<{
|
|
@@ -66,6 +69,7 @@ export declare const consolidatedQuerySchema: z.ZodObject<{
|
|
|
66
69
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
67
70
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
68
71
|
conversionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["html", "pdf", "json"]>>>;
|
|
72
|
+
generateAiBrief: z.ZodOptional<z.ZodBoolean>;
|
|
69
73
|
requestId: z.ZodString;
|
|
70
74
|
startedAt: z.ZodDate;
|
|
71
75
|
status: z.ZodEnum<["processing", "completed", "failed"]>;
|
|
@@ -77,6 +81,7 @@ export declare const consolidatedQuerySchema: z.ZodObject<{
|
|
|
77
81
|
dateFrom?: string | undefined;
|
|
78
82
|
dateTo?: string | undefined;
|
|
79
83
|
conversionType?: "html" | "pdf" | "json" | undefined;
|
|
84
|
+
generateAiBrief?: boolean | undefined;
|
|
80
85
|
}, {
|
|
81
86
|
status: "processing" | "completed" | "failed";
|
|
82
87
|
requestId: string;
|
|
@@ -85,6 +90,7 @@ export declare const consolidatedQuerySchema: z.ZodObject<{
|
|
|
85
90
|
dateFrom?: string | undefined;
|
|
86
91
|
dateTo?: string | undefined;
|
|
87
92
|
conversionType?: "html" | "pdf" | "json" | undefined;
|
|
93
|
+
generateAiBrief?: boolean | undefined;
|
|
88
94
|
}>;
|
|
89
95
|
export type ConsolidatedQuery = z.infer<typeof consolidatedQuerySchema>;
|
|
90
96
|
//# sourceMappingURL=fhir.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAC9E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,gBAAgB,2BAA4B,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,eAAO,MAAM,4BAA4B,6lCAI/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF,eAAO,MAAM,cAAc,mnCAAgD,CAAC;AAE5E,eAAO,MAAM,2BAA2B,kCAAmC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,M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AAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -81,6 +81,7 @@ exports.getConsolidatedFiltersSchema = zod_1.z.object({
|
|
|
81
81
|
dateFrom: zod_1.z.string().optional(),
|
|
82
82
|
dateTo: zod_1.z.string().optional(),
|
|
83
83
|
conversionType: zod_1.z.enum(exports.consolidationConversionType).default("json").optional(),
|
|
84
|
+
generateAiBrief: zod_1.z.boolean().optional(),
|
|
84
85
|
});
|
|
85
86
|
exports.consolidatedCountSchema = zod_1.z.object({
|
|
86
87
|
total: zod_1.z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir.js","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA8C;AAEjC,QAAA,4BAA4B,GAAG;IAC1C,SAAS;IACT,oBAAoB;IACpB,aAAa;IACb,qBAAqB;IACrB,YAAY;IACZ,OAAO;IACP,eAAe;IACf,UAAU;IACV,UAAU;IACV,YAAY;IACZ,OAAO;IACP,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,sBAAsB;IACtB,aAAa;IACb,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,4BAA4B;IAC5B,6BAA6B;IAC7B,eAAe;IACf,QAAQ;IACR,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,WAAW;IACX,mBAAmB;IACnB,eAAe;IACf,sBAAsB;IACtB,qBAAqB;IACrB,MAAM;IACN,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,cAAc;IACd,wBAAwB;IACxB,4BAA4B;IAC5B,SAAS;IACT,MAAM;IACN,eAAe;IACf,OAAO;IACP,0BAA0B;IAC1B,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,aAAa;IACb,QAAQ;IACR,WAAW;IACX,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,EAAE;IAC7B,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,mCAA2B,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IAC9E,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACxC,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,oCAA4B,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,oCAA4B,CAAC,MAAM,CAAC;IACzE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,MAAM,EAAE,2BAAiB;CAC1B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.5-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/",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@medplum/fhirtypes": "^2.0.32",
|
|
60
|
-
"@metriport/commonwell-sdk": "^5.0.
|
|
61
|
-
"@metriport/shared": "^0.
|
|
60
|
+
"@metriport/commonwell-sdk": "^5.0.5-alpha.0",
|
|
61
|
+
"@metriport/shared": "^0.12.2-alpha.0",
|
|
62
62
|
"axios": "^1.4.0",
|
|
63
63
|
"dayjs": "^1.11.7",
|
|
64
64
|
"dotenv": "^16.3.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"ts-jest": "29.1.1",
|
|
77
77
|
"typescript": "^4.9.5"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "d1f338dda48dc916ad9eedce294095d9783f2a76"
|
|
80
80
|
}
|