@metriport/api-sdk 12.2.1 → 12.2.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.
@@ -232,6 +232,7 @@ export declare const facilitySchema: z.ZodObject<{
232
232
  id: z.ZodString;
233
233
  eTag: z.ZodOptional<z.ZodString>;
234
234
  }, "strip", z.ZodTypeAny, {
235
+ id: string;
235
236
  address: {
236
237
  addressLine1: string;
237
238
  city: string;
@@ -246,11 +247,11 @@ export declare const facilitySchema: z.ZodObject<{
246
247
  };
247
248
  name: string;
248
249
  npi: string;
249
- id: string;
250
250
  tin?: string | null | undefined;
251
251
  active?: boolean | null | undefined;
252
252
  eTag?: string | undefined;
253
253
  }, {
254
+ id: string;
254
255
  address: {
255
256
  addressLine1: string;
256
257
  city: string;
@@ -265,7 +266,6 @@ export declare const facilitySchema: z.ZodObject<{
265
266
  };
266
267
  name: string;
267
268
  npi: string;
268
- id: string;
269
269
  tin?: string | null | undefined;
270
270
  active?: boolean | null | undefined;
271
271
  eTag?: string | undefined;
@@ -372,6 +372,7 @@ export declare const facilityListSchema: z.ZodObject<{
372
372
  id: z.ZodString;
373
373
  eTag: z.ZodOptional<z.ZodString>;
374
374
  }, "strip", z.ZodTypeAny, {
375
+ id: string;
375
376
  address: {
376
377
  addressLine1: string;
377
378
  city: string;
@@ -386,11 +387,11 @@ export declare const facilityListSchema: z.ZodObject<{
386
387
  };
387
388
  name: string;
388
389
  npi: string;
389
- id: string;
390
390
  tin?: string | null | undefined;
391
391
  active?: boolean | null | undefined;
392
392
  eTag?: string | undefined;
393
393
  }, {
394
+ id: string;
394
395
  address: {
395
396
  addressLine1: string;
396
397
  city: string;
@@ -405,13 +406,13 @@ export declare const facilityListSchema: z.ZodObject<{
405
406
  };
406
407
  name: string;
407
408
  npi: string;
408
- id: string;
409
409
  tin?: string | null | undefined;
410
410
  active?: boolean | null | undefined;
411
411
  eTag?: string | undefined;
412
412
  }>, "many">;
413
413
  }, "strip", z.ZodTypeAny, {
414
414
  facilities: {
415
+ id: string;
415
416
  address: {
416
417
  addressLine1: string;
417
418
  city: string;
@@ -426,13 +427,13 @@ export declare const facilityListSchema: z.ZodObject<{
426
427
  };
427
428
  name: string;
428
429
  npi: string;
429
- id: string;
430
430
  tin?: string | null | undefined;
431
431
  active?: boolean | null | undefined;
432
432
  eTag?: string | undefined;
433
433
  }[];
434
434
  }, {
435
435
  facilities: {
436
+ id: string;
436
437
  address: {
437
438
  addressLine1: string;
438
439
  city: string;
@@ -447,7 +448,6 @@ export declare const facilityListSchema: z.ZodObject<{
447
448
  };
448
449
  name: string;
449
450
  npi: string;
450
- id: string;
451
451
  tin?: string | null | undefined;
452
452
  active?: boolean | null | undefined;
453
453
  eTag?: string | undefined;
@@ -4,29 +4,29 @@ export declare const resourcesSearchableByPatient: readonly ["Account", "Allergy
4
4
  export type ResourceSearchableByPatient = (typeof resourcesSearchableByPatient)[number];
5
5
  export declare const resourcesSearchableBySubject: readonly ["AdverseEvent", "Task"];
6
6
  export type ResourceSearchableBySubject = (typeof resourcesSearchableBySubject)[number];
7
- export declare const generalResources: readonly ["Practitioner"];
7
+ export declare const generalResources: readonly ["Location", "Organization", "Patient", "Practitioner"];
8
8
  export type GeneralResources = (typeof generalResources)[number];
9
- 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"];
9
+ 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"];
10
10
  export type ResourceTypeForConsolidation = medical.ResourceTypeForConsolidation;
11
- export declare const resourceSchema: 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">;
11
+ export declare const resourceSchema: 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">;
12
12
  export declare const consolidationConversionType: readonly ["html", "pdf", "json"];
13
13
  export type ConsolidationConversionType = (typeof consolidationConversionType)[number];
14
14
  export declare const getConsolidatedFiltersSchema: z.ZodObject<{
15
- 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">>;
15
+ 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">>;
16
16
  dateFrom: z.ZodOptional<z.ZodString>;
17
17
  dateTo: z.ZodOptional<z.ZodString>;
18
18
  conversionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["html", "pdf", "json"]>>>;
19
19
  generateAiBrief: z.ZodOptional<z.ZodBoolean>;
20
20
  fromDashboard: z.ZodOptional<z.ZodBoolean>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- 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;
22
+ 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")[] | undefined;
23
23
  dateFrom?: string | undefined;
24
24
  dateTo?: string | undefined;
25
25
  conversionType?: "html" | "pdf" | "json" | undefined;
26
26
  generateAiBrief?: boolean | undefined;
27
27
  fromDashboard?: boolean | undefined;
28
28
  }, {
29
- 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;
29
+ 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")[] | undefined;
30
30
  dateFrom?: string | undefined;
31
31
  dateTo?: string | undefined;
32
32
  conversionType?: "html" | "pdf" | "json" | undefined;
@@ -56,20 +56,20 @@ export declare const consolidatedCountSchema: z.ZodObject<{
56
56
  dateFrom?: string | undefined;
57
57
  dateTo?: string | undefined;
58
58
  };
59
- resources: Record<string, number>;
60
59
  total: number;
60
+ resources: Record<string, number>;
61
61
  }, {
62
62
  filter: {
63
63
  resources: string;
64
64
  dateFrom?: string | undefined;
65
65
  dateTo?: string | undefined;
66
66
  };
67
- resources: Record<string, number>;
68
67
  total: number;
68
+ resources: Record<string, number>;
69
69
  }>;
70
70
  export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
71
71
  export declare const consolidatedQuerySchema: z.ZodObject<{
72
- 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">>;
72
+ 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">>;
73
73
  dateFrom: z.ZodOptional<z.ZodString>;
74
74
  dateTo: z.ZodOptional<z.ZodString>;
75
75
  conversionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["html", "pdf", "json"]>>>;
@@ -82,7 +82,7 @@ export declare const consolidatedQuerySchema: z.ZodObject<{
82
82
  status: "processing" | "completed" | "failed";
83
83
  requestId: string;
84
84
  startedAt: Date;
85
- 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;
85
+ 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")[] | undefined;
86
86
  dateFrom?: string | undefined;
87
87
  dateTo?: string | undefined;
88
88
  conversionType?: "html" | "pdf" | "json" | undefined;
@@ -92,7 +92,7 @@ export declare const consolidatedQuerySchema: z.ZodObject<{
92
92
  status: "processing" | "completed" | "failed";
93
93
  requestId: string;
94
94
  startedAt: Date;
95
- 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;
95
+ 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")[] | undefined;
96
96
  dateFrom?: string | undefined;
97
97
  dateTo?: string | undefined;
98
98
  conversionType?: "html" | "pdf" | "json" | undefined;
@@ -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;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,eAAO,MAAM,4BAA4B,qjCAAuC,CAAC;AACjF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,mCAAuC,CAAC;AACjF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,eAAO,MAAM,4BAA4B,6lCAAuC,CAAC;AAEjF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;AAEhF,eAAO,MAAM,cAAc,mnCAAgD,CAAC;AAE5E,eAAO,MAAM,2BAA2B,kCAAsC,CAAC;AAC/E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,eAAO,MAAM,4BAA4B,qjCAAuC,CAAC;AACjF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,mCAAuC,CAAC;AACjF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,gBAAgB,kEAA2B,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,eAAO,MAAM,4BAA4B,ooCAAuC,CAAC;AAEjF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;AAEhF,eAAO,MAAM,cAAc,0pCAAgD,CAAC;AAE5E,eAAO,MAAM,2BAA2B,kCAAsC,CAAC;AAC/E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -235,8 +235,8 @@ export declare const organizationSchema: z.ZodObject<{
235
235
  eTag: z.ZodOptional<z.ZodString>;
236
236
  }, "strip", z.ZodTypeAny, {
237
237
  type: OrgType;
238
- name: string;
239
238
  id: string;
239
+ name: string;
240
240
  location: {
241
241
  addressLine1: string;
242
242
  city: string;
@@ -253,8 +253,8 @@ export declare const organizationSchema: z.ZodObject<{
253
253
  eTag?: string | undefined;
254
254
  }, {
255
255
  type: OrgType;
256
- name: string;
257
256
  id: string;
257
+ name: string;
258
258
  location: {
259
259
  addressLine1: string;
260
260
  city: string;
@@ -945,6 +945,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
945
945
  id: z.ZodString;
946
946
  eTag: z.ZodOptional<z.ZodString>;
947
947
  }, "strip", z.ZodTypeAny, {
948
+ id: string;
948
949
  firstName: string;
949
950
  lastName: string;
950
951
  dob: string;
@@ -1016,7 +1017,6 @@ export declare const patientUpdateSchema: z.ZodObject<{
1016
1017
  lon: number;
1017
1018
  } | undefined;
1018
1019
  }[]] | undefined);
1019
- id: string;
1020
1020
  personalIdentifiers?: ({
1021
1021
  type: "driversLicense";
1022
1022
  value: string;
@@ -1051,6 +1051,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
1051
1051
  externalId?: string | undefined;
1052
1052
  eTag?: string | undefined;
1053
1053
  }, {
1054
+ id: string;
1054
1055
  firstName: string;
1055
1056
  lastName: string;
1056
1057
  dob: string;
@@ -1122,7 +1123,6 @@ export declare const patientUpdateSchema: z.ZodObject<{
1122
1123
  } | undefined;
1123
1124
  country?: "USA" | undefined;
1124
1125
  }[]] | undefined);
1125
- id: string;
1126
1126
  personalIdentifiers?: ({
1127
1127
  type: "driversLicense";
1128
1128
  value: string;
@@ -1159,6 +1159,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
1159
1159
  }>;
1160
1160
  export type PatientUpdate = z.infer<typeof patientUpdateSchema>;
1161
1161
  export declare const patientSchema: z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ eTag: z.ZodOptional<z.ZodString>;
1162
1164
  firstName: z.ZodString;
1163
1165
  lastName: z.ZodString;
1164
1166
  dob: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1523,11 +1525,10 @@ export declare const patientSchema: z.ZodObject<{
1523
1525
  phone?: string | null | undefined;
1524
1526
  email?: string | null | undefined;
1525
1527
  }>>]>;
1526
- id: z.ZodString;
1527
- eTag: z.ZodOptional<z.ZodString>;
1528
1528
  externalId: z.ZodOptional<z.ZodString>;
1529
1529
  facilityIds: z.ZodArray<z.ZodString, "many">;
1530
1530
  }, "strip", z.ZodTypeAny, {
1531
+ id: string;
1531
1532
  firstName: string;
1532
1533
  lastName: string;
1533
1534
  dob: string;
@@ -1599,8 +1600,8 @@ export declare const patientSchema: z.ZodObject<{
1599
1600
  lon: number;
1600
1601
  } | undefined;
1601
1602
  }[]] | undefined);
1602
- id: string;
1603
1603
  facilityIds: string[];
1604
+ eTag?: string | undefined;
1604
1605
  personalIdentifiers?: ({
1605
1606
  type: "driversLicense";
1606
1607
  value: string;
@@ -1632,9 +1633,9 @@ export declare const patientSchema: z.ZodObject<{
1632
1633
  phone?: string | null | undefined;
1633
1634
  email?: string | null | undefined;
1634
1635
  }[] | undefined;
1635
- eTag?: string | undefined;
1636
1636
  externalId?: string | undefined;
1637
1637
  }, {
1638
+ id: string;
1638
1639
  firstName: string;
1639
1640
  lastName: string;
1640
1641
  dob: string;
@@ -1706,8 +1707,8 @@ export declare const patientSchema: z.ZodObject<{
1706
1707
  } | undefined;
1707
1708
  country?: "USA" | undefined;
1708
1709
  }[]] | undefined);
1709
- id: string;
1710
1710
  facilityIds: string[];
1711
+ eTag?: string | undefined;
1711
1712
  personalIdentifiers?: ({
1712
1713
  type: "driversLicense";
1713
1714
  value: string;
@@ -1739,12 +1740,13 @@ export declare const patientSchema: z.ZodObject<{
1739
1740
  phone?: string | null | undefined;
1740
1741
  email?: string | null | undefined;
1741
1742
  }[] | undefined;
1742
- eTag?: string | undefined;
1743
1743
  externalId?: string | undefined;
1744
1744
  }>;
1745
1745
  export type Patient = z.infer<typeof patientSchema>;
1746
1746
  export declare const patientListSchema: z.ZodObject<{
1747
1747
  patients: z.ZodArray<z.ZodObject<{
1748
+ id: z.ZodString;
1749
+ eTag: z.ZodOptional<z.ZodString>;
1748
1750
  firstName: z.ZodString;
1749
1751
  lastName: z.ZodString;
1750
1752
  dob: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -2109,11 +2111,10 @@ export declare const patientListSchema: z.ZodObject<{
2109
2111
  phone?: string | null | undefined;
2110
2112
  email?: string | null | undefined;
2111
2113
  }>>]>;
2112
- id: z.ZodString;
2113
- eTag: z.ZodOptional<z.ZodString>;
2114
2114
  externalId: z.ZodOptional<z.ZodString>;
2115
2115
  facilityIds: z.ZodArray<z.ZodString, "many">;
2116
2116
  }, "strip", z.ZodTypeAny, {
2117
+ id: string;
2117
2118
  firstName: string;
2118
2119
  lastName: string;
2119
2120
  dob: string;
@@ -2185,8 +2186,8 @@ export declare const patientListSchema: z.ZodObject<{
2185
2186
  lon: number;
2186
2187
  } | undefined;
2187
2188
  }[]] | undefined);
2188
- id: string;
2189
2189
  facilityIds: string[];
2190
+ eTag?: string | undefined;
2190
2191
  personalIdentifiers?: ({
2191
2192
  type: "driversLicense";
2192
2193
  value: string;
@@ -2218,9 +2219,9 @@ export declare const patientListSchema: z.ZodObject<{
2218
2219
  phone?: string | null | undefined;
2219
2220
  email?: string | null | undefined;
2220
2221
  }[] | undefined;
2221
- eTag?: string | undefined;
2222
2222
  externalId?: string | undefined;
2223
2223
  }, {
2224
+ id: string;
2224
2225
  firstName: string;
2225
2226
  lastName: string;
2226
2227
  dob: string;
@@ -2292,8 +2293,8 @@ export declare const patientListSchema: z.ZodObject<{
2292
2293
  } | undefined;
2293
2294
  country?: "USA" | undefined;
2294
2295
  }[]] | undefined);
2295
- id: string;
2296
2296
  facilityIds: string[];
2297
+ eTag?: string | undefined;
2297
2298
  personalIdentifiers?: ({
2298
2299
  type: "driversLicense";
2299
2300
  value: string;
@@ -2325,11 +2326,11 @@ export declare const patientListSchema: z.ZodObject<{
2325
2326
  phone?: string | null | undefined;
2326
2327
  email?: string | null | undefined;
2327
2328
  }[] | undefined;
2328
- eTag?: string | undefined;
2329
2329
  externalId?: string | undefined;
2330
2330
  }>, "many">;
2331
2331
  }, "strip", z.ZodTypeAny, {
2332
2332
  patients: {
2333
+ id: string;
2333
2334
  firstName: string;
2334
2335
  lastName: string;
2335
2336
  dob: string;
@@ -2401,8 +2402,8 @@ export declare const patientListSchema: z.ZodObject<{
2401
2402
  lon: number;
2402
2403
  } | undefined;
2403
2404
  }[]] | undefined);
2404
- id: string;
2405
2405
  facilityIds: string[];
2406
+ eTag?: string | undefined;
2406
2407
  personalIdentifiers?: ({
2407
2408
  type: "driversLicense";
2408
2409
  value: string;
@@ -2434,11 +2435,11 @@ export declare const patientListSchema: z.ZodObject<{
2434
2435
  phone?: string | null | undefined;
2435
2436
  email?: string | null | undefined;
2436
2437
  }[] | undefined;
2437
- eTag?: string | undefined;
2438
2438
  externalId?: string | undefined;
2439
2439
  }[];
2440
2440
  }, {
2441
2441
  patients: {
2442
+ id: string;
2442
2443
  firstName: string;
2443
2444
  lastName: string;
2444
2445
  dob: string;
@@ -2510,8 +2511,8 @@ export declare const patientListSchema: z.ZodObject<{
2510
2511
  } | undefined;
2511
2512
  country?: "USA" | undefined;
2512
2513
  }[]] | undefined);
2513
- id: string;
2514
2514
  facilityIds: string[];
2515
+ eTag?: string | undefined;
2515
2516
  personalIdentifiers?: ({
2516
2517
  type: "driversLicense";
2517
2518
  value: string;
@@ -2543,7 +2544,6 @@ export declare const patientListSchema: z.ZodObject<{
2543
2544
  phone?: string | null | undefined;
2544
2545
  email?: string | null | undefined;
2545
2546
  }[] | undefined;
2546
- eTag?: string | undefined;
2547
2547
  externalId?: string | undefined;
2548
2548
  }[];
2549
2549
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "12.2.1",
3
+ "version": "12.2.2",
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/",
@@ -58,8 +58,8 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@medplum/fhirtypes": "^2.0.32",
61
- "@metriport/commonwell-sdk": "^5.1.6",
62
- "@metriport/shared": "^0.14.1",
61
+ "@metriport/commonwell-sdk": "^5.1.7",
62
+ "@metriport/shared": "^0.14.2",
63
63
  "axios": "^1.4.0",
64
64
  "dayjs": "^1.11.7",
65
65
  "dotenv": "^16.3.1",
@@ -77,5 +77,5 @@
77
77
  "ts-jest": "29.1.1",
78
78
  "typescript": "^4.9.5"
79
79
  },
80
- "gitHead": "09a06299b2c6ecf0a8a1500e0dcf2a40dff23edd"
80
+ "gitHead": "68111f59ec139812e2c1711444e1cb890e2e2f1e"
81
81
  }