@metriport/shared 0.14.1 → 0.14.2

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.
@@ -5,7 +5,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
5
5
  requestId: z.ZodString;
6
6
  conversionType: z.ZodOptional<z.ZodEnum<["html", "pdf", "json"]>>;
7
7
  generateAiBrief: z.ZodOptional<z.ZodBoolean>;
8
- resources: z.ZodOptional<z.ZodArray<z.ZodEnum<["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"]>, "many">>;
8
+ resources: z.ZodOptional<z.ZodArray<z.ZodEnum<["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"]>, "many">>;
9
9
  dateFrom: z.ZodOptional<z.ZodString>;
10
10
  dateTo: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
@@ -14,7 +14,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
14
14
  bundleFilename: string;
15
15
  conversionType?: "html" | "pdf" | "json" | undefined;
16
16
  generateAiBrief?: boolean | undefined;
17
- 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;
17
+ resources?: ("Organization" | "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" | "Patient" | "Practitioner")[] | undefined;
18
18
  dateFrom?: string | undefined;
19
19
  dateTo?: string | undefined;
20
20
  }, {
@@ -23,7 +23,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
23
23
  bundleFilename: string;
24
24
  conversionType?: "html" | "pdf" | "json" | undefined;
25
25
  generateAiBrief?: boolean | undefined;
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;
26
+ resources?: ("Organization" | "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" | "Patient" | "Practitioner")[] | undefined;
27
27
  dateFrom?: string | undefined;
28
28
  dateTo?: string | undefined;
29
29
  }>;
@@ -1,6 +1,6 @@
1
1
  export declare const resourcesSearchableByPatient: readonly ["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"];
2
2
  export declare const resourcesSearchableBySubject: readonly ["AdverseEvent", "Task"];
3
- export declare const generalResources: readonly ["Practitioner"];
4
- export declare const resourceTypeForConsolidation: readonly ["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"];
3
+ export declare const generalResources: readonly ["Location", "Organization", "Patient", "Practitioner"];
4
+ export declare const resourceTypeForConsolidation: readonly ["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"];
5
5
  export type ResourceTypeForConsolidation = (typeof resourceTypeForConsolidation)[number];
6
6
  //# sourceMappingURL=resources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AAEX,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAE9E,eAAO,MAAM,gBAAgB,2BAA4B,CAAC;AAE1D,eAAO,MAAM,4BAA4B,6lCAI/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AAEX,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAE9E,eAAO,MAAM,gBAAgB,kEAAmE,CAAC;AAEjG,eAAO,MAAM,4BAA4B,ooCAI/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -66,7 +66,7 @@ exports.resourcesSearchableByPatient = [
66
66
  "Specimen",
67
67
  ];
68
68
  exports.resourcesSearchableBySubject = ["AdverseEvent", "Task"];
69
- exports.generalResources = ["Practitioner"];
69
+ exports.generalResources = ["Location", "Organization", "Patient", "Practitioner"];
70
70
  exports.resourceTypeForConsolidation = [
71
71
  ...exports.resourcesSearchableByPatient,
72
72
  ...exports.resourcesSearchableBySubject,
@@ -1 +1 @@
1
- {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":";;;AAAa,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,YAAY;IACZ,uBAAuB;IACvB,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;CACF,CAAC;AAEE,QAAA,4BAA4B,GAAG,CAAC,cAAc,EAAE,MAAM,CAAU,CAAC;AAEjE,QAAA,gBAAgB,GAAG,CAAC,cAAc,CAAU,CAAC;AAE7C,QAAA,4BAA4B,GAAG;IAC1C,GAAG,oCAA4B;IAC/B,GAAG,oCAA4B;IAC/B,GAAG,wBAAgB;CACX,CAAC"}
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":";;;AAAa,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,YAAY;IACZ,uBAAuB;IACvB,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;CACF,CAAC;AAEE,QAAA,4BAA4B,GAAG,CAAC,cAAc,EAAE,MAAM,CAAU,CAAC;AAEjE,QAAA,gBAAgB,GAAG,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,CAAU,CAAC;AAEpF,QAAA,4BAA4B,GAAG;IAC1C,GAAG,oCAA4B;IAC/B,GAAG,oCAA4B;IAC/B,GAAG,wBAAgB;CACX,CAAC"}
@@ -33,9 +33,9 @@ export declare const baseWebhookMetadataSchema: z.ZodObject<{
33
33
  data?: unknown;
34
34
  }>;
35
35
  export declare const webhookMetadataSchema: z.ZodObject<{
36
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
36
37
  messageId: z.ZodString;
37
38
  when: z.ZodEffects<z.ZodString, string, string>;
38
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
39
39
  type: z.ZodString;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  type: string;
@@ -51,9 +51,9 @@ export declare const webhookMetadataSchema: z.ZodObject<{
51
51
  export type WebhookMetadata = z.infer<typeof webhookMetadataSchema>;
52
52
  export declare const pingWebhookRequestDataSchema: z.ZodObject<{
53
53
  meta: z.ZodObject<{
54
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
54
55
  messageId: z.ZodString;
55
56
  when: z.ZodEffects<z.ZodString, string, string>;
56
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
57
57
  type: z.ZodLiteral<"ping">;
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  type: "ping";
@@ -68,21 +68,21 @@ export declare const pingWebhookRequestDataSchema: z.ZodObject<{
68
68
  }>;
69
69
  ping: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
- ping: string;
72
71
  meta: {
73
72
  type: "ping";
74
73
  messageId: string;
75
74
  when: string;
76
75
  data?: unknown;
77
76
  };
78
- }, {
79
77
  ping: string;
78
+ }, {
80
79
  meta: {
81
80
  type: "ping";
82
81
  messageId: string;
83
82
  when: string;
84
83
  data?: unknown;
85
84
  };
85
+ ping: string;
86
86
  }>;
87
87
  export type PingWebhookRequest = z.infer<typeof pingWebhookRequestDataSchema>;
88
88
  export declare const filtersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodBoolean>>]>>;
@@ -105,9 +105,9 @@ export declare const consolidatedWebhookPatientSchema: z.ZodObject<{
105
105
  export type ConsolidatedWebhookPatient = z.infer<typeof consolidatedWebhookPatientSchema>;
106
106
  export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
107
107
  meta: z.ZodObject<{
108
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
108
109
  messageId: z.ZodString;
109
110
  when: z.ZodEffects<z.ZodString, string, string>;
110
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
111
111
  type: z.ZodLiteral<"medical.consolidated-data">;
112
112
  }, "strip", z.ZodTypeAny, {
113
113
  type: "medical.consolidated-data";
@@ -137,38 +137,38 @@ export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
137
137
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
138
138
  }>, "many">;
139
139
  }, "strip", z.ZodTypeAny, {
140
- meta: {
141
- type: "medical.consolidated-data";
142
- messageId: string;
143
- when: string;
144
- data?: unknown;
145
- };
146
140
  patients: {
147
141
  status: "completed" | "failed";
148
142
  patientId: string;
149
143
  bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
150
144
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
151
145
  }[];
152
- }, {
153
146
  meta: {
154
147
  type: "medical.consolidated-data";
155
148
  messageId: string;
156
149
  when: string;
157
150
  data?: unknown;
158
151
  };
152
+ }, {
159
153
  patients: {
160
154
  status: "completed" | "failed";
161
155
  patientId: string;
162
156
  bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
163
157
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
164
158
  }[];
159
+ meta: {
160
+ type: "medical.consolidated-data";
161
+ messageId: string;
162
+ when: string;
163
+ data?: unknown;
164
+ };
165
165
  }>;
166
166
  export type ConsolidatedWebhookRequest = z.infer<typeof consolidatedWebhookRequestSchema>;
167
167
  export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
168
168
  meta: z.ZodObject<{
169
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
169
170
  messageId: z.ZodString;
170
171
  when: z.ZodEffects<z.ZodString, string, string>;
171
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
172
172
  type: z.ZodLiteral<"medical.document-download">;
173
173
  }, "strip", z.ZodTypeAny, {
174
174
  type: "medical.document-download";
@@ -199,9 +199,9 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
199
199
  export type DocumentDownloadWebhookRequest = z.infer<typeof documentDownloadWebhookRequestSchema>;
200
200
  export declare const documentConversionWebhookRequestSchema: z.ZodObject<{
201
201
  meta: z.ZodObject<{
202
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
202
203
  messageId: z.ZodString;
203
204
  when: z.ZodEffects<z.ZodString, string, string>;
204
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
205
205
  type: z.ZodLiteral<"medical.document-conversion">;
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  type: "medical.document-conversion";
@@ -232,9 +232,9 @@ export declare const documentConversionWebhookRequestSchema: z.ZodObject<{
232
232
  export type DocumentConversionWebhookRequest = z.infer<typeof documentConversionWebhookRequestSchema>;
233
233
  export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
234
234
  meta: z.ZodObject<{
235
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
235
236
  messageId: z.ZodString;
236
237
  when: z.ZodEffects<z.ZodString, string, string>;
237
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
238
238
  type: z.ZodLiteral<"medical.document-bulk-download-urls">;
239
239
  }, "strip", z.ZodTypeAny, {
240
240
  type: "medical.document-bulk-download-urls";
@@ -265,9 +265,9 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
265
265
  export type DocumentBulkDownloadWebhookRequest = z.infer<typeof documentBulkDownloadWebhookRequestSchema>;
266
266
  export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
267
267
  meta: z.ZodObject<{
268
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
268
269
  messageId: z.ZodString;
269
270
  when: z.ZodEffects<z.ZodString, string, string>;
270
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
271
271
  type: z.ZodLiteral<"ping">;
272
272
  }, "strip", z.ZodTypeAny, {
273
273
  type: "ping";
@@ -282,26 +282,26 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
282
282
  }>;
283
283
  ping: z.ZodString;
284
284
  }, "strip", z.ZodTypeAny, {
285
- ping: string;
286
285
  meta: {
287
286
  type: "ping";
288
287
  messageId: string;
289
288
  when: string;
290
289
  data?: unknown;
291
290
  };
292
- }, {
293
291
  ping: string;
292
+ }, {
294
293
  meta: {
295
294
  type: "ping";
296
295
  messageId: string;
297
296
  when: string;
298
297
  data?: unknown;
299
298
  };
299
+ ping: string;
300
300
  }>, z.ZodObject<{
301
301
  meta: z.ZodObject<{
302
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
302
303
  messageId: z.ZodString;
303
304
  when: z.ZodEffects<z.ZodString, string, string>;
304
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
305
305
  type: z.ZodLiteral<"medical.consolidated-data">;
306
306
  }, "strip", z.ZodTypeAny, {
307
307
  type: "medical.consolidated-data";
@@ -331,36 +331,36 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
331
331
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
332
332
  }>, "many">;
333
333
  }, "strip", z.ZodTypeAny, {
334
- meta: {
335
- type: "medical.consolidated-data";
336
- messageId: string;
337
- when: string;
338
- data?: unknown;
339
- };
340
334
  patients: {
341
335
  status: "completed" | "failed";
342
336
  patientId: string;
343
337
  bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
344
338
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
345
339
  }[];
346
- }, {
347
340
  meta: {
348
341
  type: "medical.consolidated-data";
349
342
  messageId: string;
350
343
  when: string;
351
344
  data?: unknown;
352
345
  };
346
+ }, {
353
347
  patients: {
354
348
  status: "completed" | "failed";
355
349
  patientId: string;
356
350
  bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
357
351
  filters?: Record<string, string | boolean | null | undefined> | null | undefined;
358
352
  }[];
353
+ meta: {
354
+ type: "medical.consolidated-data";
355
+ messageId: string;
356
+ when: string;
357
+ data?: unknown;
358
+ };
359
359
  }>, z.ZodObject<{
360
360
  meta: z.ZodObject<{
361
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
361
362
  messageId: z.ZodString;
362
363
  when: z.ZodEffects<z.ZodString, string, string>;
363
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
364
364
  type: z.ZodLiteral<"medical.document-download">;
365
365
  }, "strip", z.ZodTypeAny, {
366
366
  type: "medical.document-download";
@@ -389,9 +389,9 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
389
389
  };
390
390
  }>, z.ZodObject<{
391
391
  meta: z.ZodObject<{
392
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
392
393
  messageId: z.ZodString;
393
394
  when: z.ZodEffects<z.ZodString, string, string>;
394
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
395
395
  type: z.ZodLiteral<"medical.document-conversion">;
396
396
  }, "strip", z.ZodTypeAny, {
397
397
  type: "medical.document-conversion";
@@ -420,9 +420,9 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
420
420
  };
421
421
  }>, z.ZodObject<{
422
422
  meta: z.ZodObject<{
423
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
423
424
  messageId: z.ZodString;
424
425
  when: z.ZodEffects<z.ZodString, string, string>;
425
- data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
426
426
  type: z.ZodLiteral<"medical.document-bulk-download-urls">;
427
427
  }, "strip", z.ZodTypeAny, {
428
428
  type: "medical.document-bulk-download-urls";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/shared",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Common code shared across packages - by Metriport Inc.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -66,5 +66,5 @@
66
66
  "devDependencies": {
67
67
  "@faker-js/faker": "^8.0.2"
68
68
  },
69
- "gitHead": "09a06299b2c6ecf0a8a1500e0dcf2a40dff23edd"
69
+ "gitHead": "68111f59ec139812e2c1711444e1cb890e2e2f1e"
70
70
  }