@metriport/shared 0.23.8 → 0.23.10-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.
Files changed (135) hide show
  1. package/dist/common/__tests__/date.test.js +42 -0
  2. package/dist/common/__tests__/date.test.js.map +1 -1
  3. package/dist/common/__tests__/demographics.test.d.ts +2 -0
  4. package/dist/common/__tests__/demographics.test.d.ts.map +1 -0
  5. package/dist/common/__tests__/demographics.test.js +131 -0
  6. package/dist/common/__tests__/demographics.test.js.map +1 -0
  7. package/dist/common/__tests__/html-encode.test.d.ts +2 -0
  8. package/dist/common/__tests__/html-encode.test.d.ts.map +1 -0
  9. package/dist/common/__tests__/html-encode.test.js +31 -0
  10. package/dist/common/__tests__/html-encode.test.js.map +1 -0
  11. package/dist/common/__tests__/retry.test.js +2 -2
  12. package/dist/common/__tests__/retry.test.js.map +1 -1
  13. package/dist/common/date.d.ts +23 -0
  14. package/dist/common/date.d.ts.map +1 -1
  15. package/dist/common/date.js +36 -1
  16. package/dist/common/date.js.map +1 -1
  17. package/dist/common/demographics.d.ts +24 -0
  18. package/dist/common/demographics.d.ts.map +1 -0
  19. package/dist/common/demographics.js +108 -0
  20. package/dist/common/demographics.js.map +1 -0
  21. package/dist/common/duration.d.ts +3 -0
  22. package/dist/common/duration.d.ts.map +1 -1
  23. package/dist/common/duration.js +3 -0
  24. package/dist/common/duration.js.map +1 -1
  25. package/dist/common/env-var.d.ts +4 -2
  26. package/dist/common/env-var.d.ts.map +1 -1
  27. package/dist/common/env-var.js +27 -6
  28. package/dist/common/env-var.js.map +1 -1
  29. package/dist/common/general.d.ts +1 -1
  30. package/dist/common/general.d.ts.map +1 -1
  31. package/dist/common/general.js +1 -1
  32. package/dist/common/general.js.map +1 -1
  33. package/dist/common/html.d.ts +2 -0
  34. package/dist/common/html.d.ts.map +1 -0
  35. package/dist/common/html.js +13 -0
  36. package/dist/common/html.js.map +1 -0
  37. package/dist/common/metriport-organization.d.ts +1 -1
  38. package/dist/common/metriport-organization.d.ts.map +1 -1
  39. package/dist/common/metriport-organization.js.map +1 -1
  40. package/dist/common/response.d.ts +5 -0
  41. package/dist/common/response.d.ts.map +1 -0
  42. package/dist/common/response.js +17 -0
  43. package/dist/common/response.js.map +1 -0
  44. package/dist/domain/__tests__/dob.test.js +1 -1
  45. package/dist/domain/__tests__/gender.test.d.ts +2 -0
  46. package/dist/domain/__tests__/gender.test.d.ts.map +1 -0
  47. package/dist/domain/__tests__/gender.test.js +64 -0
  48. package/dist/domain/__tests__/gender.test.js.map +1 -0
  49. package/dist/domain/customer.d.ts +39 -0
  50. package/dist/domain/customer.d.ts.map +1 -0
  51. package/dist/domain/customer.js +14 -0
  52. package/dist/domain/customer.js.map +1 -0
  53. package/dist/domain/gender.d.ts +6 -2
  54. package/dist/domain/gender.d.ts.map +1 -1
  55. package/dist/domain/gender.js +11 -6
  56. package/dist/domain/gender.js.map +1 -1
  57. package/dist/domain/job/job-status.d.ts +1 -1
  58. package/dist/domain/job/job-status.d.ts.map +1 -1
  59. package/dist/domain/job/job-status.js +9 -4
  60. package/dist/domain/job/job-status.js.map +1 -1
  61. package/dist/domain/job/patient-job.d.ts +32 -0
  62. package/dist/domain/job/patient-job.d.ts.map +1 -1
  63. package/dist/domain/job/patient-job.js +28 -0
  64. package/dist/domain/job/patient-job.js.map +1 -1
  65. package/dist/domain/job/types.d.ts +11 -0
  66. package/dist/domain/job/types.d.ts.map +1 -1
  67. package/dist/domain/job/types.js +6 -1
  68. package/dist/domain/job/types.js.map +1 -1
  69. package/dist/domain/organization.d.ts +2 -2
  70. package/dist/domain/patient/patient-import/types.d.ts +3 -1
  71. package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
  72. package/dist/domain/patient/patient-import/types.js +6 -1
  73. package/dist/domain/patient/patient-import/types.js.map +1 -1
  74. package/dist/domain/patient.d.ts +72 -0
  75. package/dist/domain/patient.d.ts.map +1 -0
  76. package/dist/domain/patient.js +25 -0
  77. package/dist/domain/patient.js.map +1 -0
  78. package/dist/interface/external/ehr/canvas/allergen.d.ts +13 -0
  79. package/dist/interface/external/ehr/canvas/allergen.d.ts.map +1 -0
  80. package/dist/interface/external/ehr/canvas/allergen.js +9 -0
  81. package/dist/interface/external/ehr/canvas/allergen.js.map +1 -0
  82. package/dist/interface/external/ehr/canvas/appointment.d.ts +8 -8
  83. package/dist/interface/external/ehr/canvas/index.d.ts +1 -0
  84. package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -1
  85. package/dist/interface/external/ehr/canvas/index.js +1 -0
  86. package/dist/interface/external/ehr/canvas/index.js.map +1 -1
  87. package/dist/interface/external/ehr/elation/ccda.d.ts +13 -0
  88. package/dist/interface/external/ehr/elation/ccda.d.ts.map +1 -0
  89. package/dist/interface/external/ehr/elation/ccda.js +9 -0
  90. package/dist/interface/external/ehr/elation/ccda.js.map +1 -0
  91. package/dist/interface/external/ehr/elation/event.d.ts +4 -4
  92. package/dist/interface/external/ehr/elation/index.d.ts +1 -0
  93. package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
  94. package/dist/interface/external/ehr/elation/index.js +1 -0
  95. package/dist/interface/external/ehr/elation/index.js.map +1 -1
  96. package/dist/interface/external/ehr/fhir-resource.d.ts +121 -36
  97. package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
  98. package/dist/interface/external/ehr/fhir-resource.js +21 -9
  99. package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
  100. package/dist/interface/external/ehr/healthie/patient.d.ts +8 -8
  101. package/dist/interface/external/ehr/healthie/subscription.d.ts +18 -18
  102. package/dist/interface/external/surescripts/code-list-qualifier.d.ts +6 -0
  103. package/dist/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -0
  104. package/dist/interface/external/surescripts/code-list-qualifier.js +17 -0
  105. package/dist/interface/external/surescripts/code-list-qualifier.js.map +1 -0
  106. package/dist/interface/external/surescripts/dea-schedule.d.ts +7 -0
  107. package/dist/interface/external/surescripts/dea-schedule.d.ts.map +1 -0
  108. package/dist/interface/external/surescripts/dea-schedule.js +32 -0
  109. package/dist/interface/external/surescripts/dea-schedule.js.map +1 -0
  110. package/dist/interface/external/surescripts/index.d.ts +2 -0
  111. package/dist/interface/external/surescripts/index.d.ts.map +1 -0
  112. package/dist/interface/external/surescripts/index.js +18 -0
  113. package/dist/interface/external/surescripts/index.js.map +1 -0
  114. package/dist/interface/external/surescripts/ncpdp.d.ts +12 -0
  115. package/dist/interface/external/surescripts/ncpdp.d.ts.map +1 -0
  116. package/dist/interface/external/surescripts/ncpdp.js +1472 -0
  117. package/dist/interface/external/surescripts/ncpdp.js.map +1 -0
  118. package/dist/interface/external/surescripts/payment-code.d.ts +6 -0
  119. package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -0
  120. package/dist/interface/external/surescripts/payment-code.js +25 -0
  121. package/dist/interface/external/surescripts/payment-code.js.map +1 -0
  122. package/dist/interface/external/surescripts/plan-code.d.ts +7 -0
  123. package/dist/interface/external/surescripts/plan-code.d.ts.map +1 -0
  124. package/dist/interface/external/surescripts/plan-code.js +25 -0
  125. package/dist/interface/external/surescripts/plan-code.js.map +1 -0
  126. package/dist/medical/webhook/webhook-request.d.ts +60 -60
  127. package/dist/util/duration.d.ts +2 -0
  128. package/dist/util/duration.d.ts.map +1 -1
  129. package/dist/util/duration.js +2 -0
  130. package/dist/util/duration.js.map +1 -1
  131. package/dist/util/uuid-v7.d.ts +4 -4
  132. package/dist/util/uuid-v7.d.ts.map +1 -1
  133. package/dist/util/uuid-v7.js +12 -5
  134. package/dist/util/uuid-v7.js.map +1 -1
  135. package/package.json +3 -2
@@ -225,30 +225,30 @@ export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
225
225
  }>, "many">>;
226
226
  text: z.ZodOptional<z.ZodString>;
227
227
  }, "strip", z.ZodTypeAny, {
228
+ text?: string | undefined;
228
229
  coding?: {
229
230
  code?: string | null | undefined;
230
231
  system?: string | null | undefined;
231
232
  display?: string | null | undefined;
232
233
  }[] | undefined;
233
- text?: string | undefined;
234
234
  }, {
235
+ text?: string | undefined;
235
236
  coding?: {
236
237
  code?: string | null | undefined;
237
238
  system?: string | null | undefined;
238
239
  display?: string | null | undefined;
239
240
  }[] | undefined;
240
- text?: string | undefined;
241
241
  }>>;
242
242
  }, "strip", z.ZodTypeAny, {
243
243
  id: string;
244
244
  fileName: string;
245
245
  type?: {
246
+ text?: string | undefined;
246
247
  coding?: {
247
248
  code?: string | null | undefined;
248
249
  system?: string | null | undefined;
249
250
  display?: string | null | undefined;
250
251
  }[] | undefined;
251
- text?: string | undefined;
252
252
  } | undefined;
253
253
  status?: string | undefined;
254
254
  description?: string | undefined;
@@ -259,12 +259,12 @@ export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
259
259
  id: string;
260
260
  fileName: string;
261
261
  type?: {
262
+ text?: string | undefined;
262
263
  coding?: {
263
264
  code?: string | null | undefined;
264
265
  system?: string | null | undefined;
265
266
  display?: string | null | undefined;
266
267
  }[] | undefined;
267
- text?: string | undefined;
268
268
  } | undefined;
269
269
  status?: string | undefined;
270
270
  description?: string | undefined;
@@ -279,12 +279,12 @@ export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
279
279
  id: string;
280
280
  fileName: string;
281
281
  type?: {
282
+ text?: string | undefined;
282
283
  coding?: {
283
284
  code?: string | null | undefined;
284
285
  system?: string | null | undefined;
285
286
  display?: string | null | undefined;
286
287
  }[] | undefined;
287
- text?: string | undefined;
288
288
  } | undefined;
289
289
  status?: string | undefined;
290
290
  description?: string | undefined;
@@ -301,12 +301,12 @@ export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
301
301
  id: string;
302
302
  fileName: string;
303
303
  type?: {
304
+ text?: string | undefined;
304
305
  coding?: {
305
306
  code?: string | null | undefined;
306
307
  system?: string | null | undefined;
307
308
  display?: string | null | undefined;
308
309
  }[] | undefined;
309
- text?: string | undefined;
310
310
  } | undefined;
311
311
  status?: string | undefined;
312
312
  description?: string | undefined;
@@ -368,30 +368,30 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
368
368
  }>, "many">>;
369
369
  text: z.ZodOptional<z.ZodString>;
370
370
  }, "strip", z.ZodTypeAny, {
371
+ text?: string | undefined;
371
372
  coding?: {
372
373
  code?: string | null | undefined;
373
374
  system?: string | null | undefined;
374
375
  display?: string | null | undefined;
375
376
  }[] | undefined;
376
- text?: string | undefined;
377
377
  }, {
378
+ text?: string | undefined;
378
379
  coding?: {
379
380
  code?: string | null | undefined;
380
381
  system?: string | null | undefined;
381
382
  display?: string | null | undefined;
382
383
  }[] | undefined;
383
- text?: string | undefined;
384
384
  }>>;
385
385
  }, "strip", z.ZodTypeAny, {
386
386
  id: string;
387
387
  fileName: string;
388
388
  type?: {
389
+ text?: string | undefined;
389
390
  coding?: {
390
391
  code?: string | null | undefined;
391
392
  system?: string | null | undefined;
392
393
  display?: string | null | undefined;
393
394
  }[] | undefined;
394
- text?: string | undefined;
395
395
  } | undefined;
396
396
  status?: string | undefined;
397
397
  description?: string | undefined;
@@ -402,12 +402,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
402
402
  id: string;
403
403
  fileName: string;
404
404
  type?: {
405
+ text?: string | undefined;
405
406
  coding?: {
406
407
  code?: string | null | undefined;
407
408
  system?: string | null | undefined;
408
409
  display?: string | null | undefined;
409
410
  }[] | undefined;
410
- text?: string | undefined;
411
411
  } | undefined;
412
412
  status?: string | undefined;
413
413
  description?: string | undefined;
@@ -422,12 +422,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
422
422
  id: string;
423
423
  fileName: string;
424
424
  type?: {
425
+ text?: string | undefined;
425
426
  coding?: {
426
427
  code?: string | null | undefined;
427
428
  system?: string | null | undefined;
428
429
  display?: string | null | undefined;
429
430
  }[] | undefined;
430
- text?: string | undefined;
431
431
  } | undefined;
432
432
  status?: string | undefined;
433
433
  description?: string | undefined;
@@ -444,12 +444,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
444
444
  id: string;
445
445
  fileName: string;
446
446
  type?: {
447
+ text?: string | undefined;
447
448
  coding?: {
448
449
  code?: string | null | undefined;
449
450
  system?: string | null | undefined;
450
451
  display?: string | null | undefined;
451
452
  }[] | undefined;
452
- text?: string | undefined;
453
453
  } | undefined;
454
454
  status?: string | undefined;
455
455
  description?: string | undefined;
@@ -474,12 +474,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
474
474
  id: string;
475
475
  fileName: string;
476
476
  type?: {
477
+ text?: string | undefined;
477
478
  coding?: {
478
479
  code?: string | null | undefined;
479
480
  system?: string | null | undefined;
480
481
  display?: string | null | undefined;
481
482
  }[] | undefined;
482
- text?: string | undefined;
483
483
  } | undefined;
484
484
  status?: string | undefined;
485
485
  description?: string | undefined;
@@ -504,12 +504,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
504
504
  id: string;
505
505
  fileName: string;
506
506
  type?: {
507
+ text?: string | undefined;
507
508
  coding?: {
508
509
  code?: string | null | undefined;
509
510
  system?: string | null | undefined;
510
511
  display?: string | null | undefined;
511
512
  }[] | undefined;
512
- text?: string | undefined;
513
513
  } | undefined;
514
514
  status?: string | undefined;
515
515
  description?: string | undefined;
@@ -633,33 +633,33 @@ export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<{
633
633
  }>, "many">>;
634
634
  text: z.ZodOptional<z.ZodString>;
635
635
  }, "strip", z.ZodTypeAny, {
636
+ text?: string | undefined;
636
637
  coding?: {
637
638
  code?: string | null | undefined;
638
639
  system?: string | null | undefined;
639
640
  display?: string | null | undefined;
640
641
  }[] | undefined;
641
- text?: string | undefined;
642
642
  }, {
643
+ text?: string | undefined;
643
644
  coding?: {
644
645
  code?: string | null | undefined;
645
646
  system?: string | null | undefined;
646
647
  display?: string | null | undefined;
647
648
  }[] | undefined;
648
- text?: string | undefined;
649
649
  }>>;
650
650
  }, {
651
651
  url: z.ZodString;
652
652
  }>, "strip", z.ZodTypeAny, {
653
- url: string;
654
653
  id: string;
654
+ url: string;
655
655
  fileName: string;
656
656
  type?: {
657
+ text?: string | undefined;
657
658
  coding?: {
658
659
  code?: string | null | undefined;
659
660
  system?: string | null | undefined;
660
661
  display?: string | null | undefined;
661
662
  }[] | undefined;
662
- text?: string | undefined;
663
663
  } | undefined;
664
664
  status?: string | undefined;
665
665
  description?: string | undefined;
@@ -667,16 +667,16 @@ export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<{
667
667
  mimeType?: string | undefined;
668
668
  size?: number | undefined;
669
669
  }, {
670
- url: string;
671
670
  id: string;
671
+ url: string;
672
672
  fileName: string;
673
673
  type?: {
674
+ text?: string | undefined;
674
675
  coding?: {
675
676
  code?: string | null | undefined;
676
677
  system?: string | null | undefined;
677
678
  display?: string | null | undefined;
678
679
  }[] | undefined;
679
- text?: string | undefined;
680
680
  } | undefined;
681
681
  status?: string | undefined;
682
682
  description?: string | undefined;
@@ -688,16 +688,16 @@ export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<{
688
688
  status: "completed" | "failed";
689
689
  patientId: string;
690
690
  documents: {
691
- url: string;
692
691
  id: string;
692
+ url: string;
693
693
  fileName: string;
694
694
  type?: {
695
+ text?: string | undefined;
695
696
  coding?: {
696
697
  code?: string | null | undefined;
697
698
  system?: string | null | undefined;
698
699
  display?: string | null | undefined;
699
700
  }[] | undefined;
700
- text?: string | undefined;
701
701
  } | undefined;
702
702
  status?: string | undefined;
703
703
  description?: string | undefined;
@@ -711,16 +711,16 @@ export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<{
711
711
  status: "completed" | "failed";
712
712
  patientId: string;
713
713
  documents: {
714
- url: string;
715
714
  id: string;
715
+ url: string;
716
716
  fileName: string;
717
717
  type?: {
718
+ text?: string | undefined;
718
719
  coding?: {
719
720
  code?: string | null | undefined;
720
721
  system?: string | null | undefined;
721
722
  display?: string | null | undefined;
722
723
  }[] | undefined;
723
- text?: string | undefined;
724
724
  } | undefined;
725
725
  status?: string | undefined;
726
726
  description?: string | undefined;
@@ -782,33 +782,33 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
782
782
  }>, "many">>;
783
783
  text: z.ZodOptional<z.ZodString>;
784
784
  }, "strip", z.ZodTypeAny, {
785
+ text?: string | undefined;
785
786
  coding?: {
786
787
  code?: string | null | undefined;
787
788
  system?: string | null | undefined;
788
789
  display?: string | null | undefined;
789
790
  }[] | undefined;
790
- text?: string | undefined;
791
791
  }, {
792
+ text?: string | undefined;
792
793
  coding?: {
793
794
  code?: string | null | undefined;
794
795
  system?: string | null | undefined;
795
796
  display?: string | null | undefined;
796
797
  }[] | undefined;
797
- text?: string | undefined;
798
798
  }>>;
799
799
  }, {
800
800
  url: z.ZodString;
801
801
  }>, "strip", z.ZodTypeAny, {
802
- url: string;
803
802
  id: string;
803
+ url: string;
804
804
  fileName: string;
805
805
  type?: {
806
+ text?: string | undefined;
806
807
  coding?: {
807
808
  code?: string | null | undefined;
808
809
  system?: string | null | undefined;
809
810
  display?: string | null | undefined;
810
811
  }[] | undefined;
811
- text?: string | undefined;
812
812
  } | undefined;
813
813
  status?: string | undefined;
814
814
  description?: string | undefined;
@@ -816,16 +816,16 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
816
816
  mimeType?: string | undefined;
817
817
  size?: number | undefined;
818
818
  }, {
819
- url: string;
820
819
  id: string;
820
+ url: string;
821
821
  fileName: string;
822
822
  type?: {
823
+ text?: string | undefined;
823
824
  coding?: {
824
825
  code?: string | null | undefined;
825
826
  system?: string | null | undefined;
826
827
  display?: string | null | undefined;
827
828
  }[] | undefined;
828
- text?: string | undefined;
829
829
  } | undefined;
830
830
  status?: string | undefined;
831
831
  description?: string | undefined;
@@ -837,16 +837,16 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
837
837
  status: "completed" | "failed";
838
838
  patientId: string;
839
839
  documents: {
840
- url: string;
841
840
  id: string;
841
+ url: string;
842
842
  fileName: string;
843
843
  type?: {
844
+ text?: string | undefined;
844
845
  coding?: {
845
846
  code?: string | null | undefined;
846
847
  system?: string | null | undefined;
847
848
  display?: string | null | undefined;
848
849
  }[] | undefined;
849
- text?: string | undefined;
850
850
  } | undefined;
851
851
  status?: string | undefined;
852
852
  description?: string | undefined;
@@ -860,16 +860,16 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
860
860
  status: "completed" | "failed";
861
861
  patientId: string;
862
862
  documents: {
863
- url: string;
864
863
  id: string;
864
+ url: string;
865
865
  fileName: string;
866
866
  type?: {
867
+ text?: string | undefined;
867
868
  coding?: {
868
869
  code?: string | null | undefined;
869
870
  system?: string | null | undefined;
870
871
  display?: string | null | undefined;
871
872
  }[] | undefined;
872
- text?: string | undefined;
873
873
  } | undefined;
874
874
  status?: string | undefined;
875
875
  description?: string | undefined;
@@ -891,16 +891,16 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
891
891
  status: "completed" | "failed";
892
892
  patientId: string;
893
893
  documents: {
894
- url: string;
895
894
  id: string;
895
+ url: string;
896
896
  fileName: string;
897
897
  type?: {
898
+ text?: string | undefined;
898
899
  coding?: {
899
900
  code?: string | null | undefined;
900
901
  system?: string | null | undefined;
901
902
  display?: string | null | undefined;
902
903
  }[] | undefined;
903
- text?: string | undefined;
904
904
  } | undefined;
905
905
  status?: string | undefined;
906
906
  description?: string | undefined;
@@ -922,16 +922,16 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
922
922
  status: "completed" | "failed";
923
923
  patientId: string;
924
924
  documents: {
925
- url: string;
926
925
  id: string;
926
+ url: string;
927
927
  fileName: string;
928
928
  type?: {
929
+ text?: string | undefined;
929
930
  coding?: {
930
931
  code?: string | null | undefined;
931
932
  system?: string | null | undefined;
932
933
  display?: string | null | undefined;
933
934
  }[] | undefined;
934
- text?: string | undefined;
935
935
  } | undefined;
936
936
  status?: string | undefined;
937
937
  description?: string | undefined;
@@ -1179,30 +1179,30 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1179
1179
  }>, "many">>;
1180
1180
  text: z.ZodOptional<z.ZodString>;
1181
1181
  }, "strip", z.ZodTypeAny, {
1182
+ text?: string | undefined;
1182
1183
  coding?: {
1183
1184
  code?: string | null | undefined;
1184
1185
  system?: string | null | undefined;
1185
1186
  display?: string | null | undefined;
1186
1187
  }[] | undefined;
1187
- text?: string | undefined;
1188
1188
  }, {
1189
+ text?: string | undefined;
1189
1190
  coding?: {
1190
1191
  code?: string | null | undefined;
1191
1192
  system?: string | null | undefined;
1192
1193
  display?: string | null | undefined;
1193
1194
  }[] | undefined;
1194
- text?: string | undefined;
1195
1195
  }>>;
1196
1196
  }, "strip", z.ZodTypeAny, {
1197
1197
  id: string;
1198
1198
  fileName: string;
1199
1199
  type?: {
1200
+ text?: string | undefined;
1200
1201
  coding?: {
1201
1202
  code?: string | null | undefined;
1202
1203
  system?: string | null | undefined;
1203
1204
  display?: string | null | undefined;
1204
1205
  }[] | undefined;
1205
- text?: string | undefined;
1206
1206
  } | undefined;
1207
1207
  status?: string | undefined;
1208
1208
  description?: string | undefined;
@@ -1213,12 +1213,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1213
1213
  id: string;
1214
1214
  fileName: string;
1215
1215
  type?: {
1216
+ text?: string | undefined;
1216
1217
  coding?: {
1217
1218
  code?: string | null | undefined;
1218
1219
  system?: string | null | undefined;
1219
1220
  display?: string | null | undefined;
1220
1221
  }[] | undefined;
1221
- text?: string | undefined;
1222
1222
  } | undefined;
1223
1223
  status?: string | undefined;
1224
1224
  description?: string | undefined;
@@ -1233,12 +1233,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1233
1233
  id: string;
1234
1234
  fileName: string;
1235
1235
  type?: {
1236
+ text?: string | undefined;
1236
1237
  coding?: {
1237
1238
  code?: string | null | undefined;
1238
1239
  system?: string | null | undefined;
1239
1240
  display?: string | null | undefined;
1240
1241
  }[] | undefined;
1241
- text?: string | undefined;
1242
1242
  } | undefined;
1243
1243
  status?: string | undefined;
1244
1244
  description?: string | undefined;
@@ -1255,12 +1255,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1255
1255
  id: string;
1256
1256
  fileName: string;
1257
1257
  type?: {
1258
+ text?: string | undefined;
1258
1259
  coding?: {
1259
1260
  code?: string | null | undefined;
1260
1261
  system?: string | null | undefined;
1261
1262
  display?: string | null | undefined;
1262
1263
  }[] | undefined;
1263
- text?: string | undefined;
1264
1264
  } | undefined;
1265
1265
  status?: string | undefined;
1266
1266
  description?: string | undefined;
@@ -1285,12 +1285,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1285
1285
  id: string;
1286
1286
  fileName: string;
1287
1287
  type?: {
1288
+ text?: string | undefined;
1288
1289
  coding?: {
1289
1290
  code?: string | null | undefined;
1290
1291
  system?: string | null | undefined;
1291
1292
  display?: string | null | undefined;
1292
1293
  }[] | undefined;
1293
- text?: string | undefined;
1294
1294
  } | undefined;
1295
1295
  status?: string | undefined;
1296
1296
  description?: string | undefined;
@@ -1315,12 +1315,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1315
1315
  id: string;
1316
1316
  fileName: string;
1317
1317
  type?: {
1318
+ text?: string | undefined;
1318
1319
  coding?: {
1319
1320
  code?: string | null | undefined;
1320
1321
  system?: string | null | undefined;
1321
1322
  display?: string | null | undefined;
1322
1323
  }[] | undefined;
1323
- text?: string | undefined;
1324
1324
  } | undefined;
1325
1325
  status?: string | undefined;
1326
1326
  description?: string | undefined;
@@ -1444,33 +1444,33 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1444
1444
  }>, "many">>;
1445
1445
  text: z.ZodOptional<z.ZodString>;
1446
1446
  }, "strip", z.ZodTypeAny, {
1447
+ text?: string | undefined;
1447
1448
  coding?: {
1448
1449
  code?: string | null | undefined;
1449
1450
  system?: string | null | undefined;
1450
1451
  display?: string | null | undefined;
1451
1452
  }[] | undefined;
1452
- text?: string | undefined;
1453
1453
  }, {
1454
+ text?: string | undefined;
1454
1455
  coding?: {
1455
1456
  code?: string | null | undefined;
1456
1457
  system?: string | null | undefined;
1457
1458
  display?: string | null | undefined;
1458
1459
  }[] | undefined;
1459
- text?: string | undefined;
1460
1460
  }>>;
1461
1461
  }, {
1462
1462
  url: z.ZodString;
1463
1463
  }>, "strip", z.ZodTypeAny, {
1464
- url: string;
1465
1464
  id: string;
1465
+ url: string;
1466
1466
  fileName: string;
1467
1467
  type?: {
1468
+ text?: string | undefined;
1468
1469
  coding?: {
1469
1470
  code?: string | null | undefined;
1470
1471
  system?: string | null | undefined;
1471
1472
  display?: string | null | undefined;
1472
1473
  }[] | undefined;
1473
- text?: string | undefined;
1474
1474
  } | undefined;
1475
1475
  status?: string | undefined;
1476
1476
  description?: string | undefined;
@@ -1478,16 +1478,16 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1478
1478
  mimeType?: string | undefined;
1479
1479
  size?: number | undefined;
1480
1480
  }, {
1481
- url: string;
1482
1481
  id: string;
1482
+ url: string;
1483
1483
  fileName: string;
1484
1484
  type?: {
1485
+ text?: string | undefined;
1485
1486
  coding?: {
1486
1487
  code?: string | null | undefined;
1487
1488
  system?: string | null | undefined;
1488
1489
  display?: string | null | undefined;
1489
1490
  }[] | undefined;
1490
- text?: string | undefined;
1491
1491
  } | undefined;
1492
1492
  status?: string | undefined;
1493
1493
  description?: string | undefined;
@@ -1499,16 +1499,16 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1499
1499
  status: "completed" | "failed";
1500
1500
  patientId: string;
1501
1501
  documents: {
1502
- url: string;
1503
1502
  id: string;
1503
+ url: string;
1504
1504
  fileName: string;
1505
1505
  type?: {
1506
+ text?: string | undefined;
1506
1507
  coding?: {
1507
1508
  code?: string | null | undefined;
1508
1509
  system?: string | null | undefined;
1509
1510
  display?: string | null | undefined;
1510
1511
  }[] | undefined;
1511
- text?: string | undefined;
1512
1512
  } | undefined;
1513
1513
  status?: string | undefined;
1514
1514
  description?: string | undefined;
@@ -1522,16 +1522,16 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1522
1522
  status: "completed" | "failed";
1523
1523
  patientId: string;
1524
1524
  documents: {
1525
- url: string;
1526
1525
  id: string;
1526
+ url: string;
1527
1527
  fileName: string;
1528
1528
  type?: {
1529
+ text?: string | undefined;
1529
1530
  coding?: {
1530
1531
  code?: string | null | undefined;
1531
1532
  system?: string | null | undefined;
1532
1533
  display?: string | null | undefined;
1533
1534
  }[] | undefined;
1534
- text?: string | undefined;
1535
1535
  } | undefined;
1536
1536
  status?: string | undefined;
1537
1537
  description?: string | undefined;
@@ -1553,16 +1553,16 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1553
1553
  status: "completed" | "failed";
1554
1554
  patientId: string;
1555
1555
  documents: {
1556
- url: string;
1557
1556
  id: string;
1557
+ url: string;
1558
1558
  fileName: string;
1559
1559
  type?: {
1560
+ text?: string | undefined;
1560
1561
  coding?: {
1561
1562
  code?: string | null | undefined;
1562
1563
  system?: string | null | undefined;
1563
1564
  display?: string | null | undefined;
1564
1565
  }[] | undefined;
1565
- text?: string | undefined;
1566
1566
  } | undefined;
1567
1567
  status?: string | undefined;
1568
1568
  description?: string | undefined;
@@ -1584,16 +1584,16 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
1584
1584
  status: "completed" | "failed";
1585
1585
  patientId: string;
1586
1586
  documents: {
1587
- url: string;
1588
1587
  id: string;
1588
+ url: string;
1589
1589
  fileName: string;
1590
1590
  type?: {
1591
+ text?: string | undefined;
1591
1592
  coding?: {
1592
1593
  code?: string | null | undefined;
1593
1594
  system?: string | null | undefined;
1594
1595
  display?: string | null | undefined;
1595
1596
  }[] | undefined;
1596
- text?: string | undefined;
1597
1597
  } | undefined;
1598
1598
  status?: string | undefined;
1599
1599
  description?: string | undefined;
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Wraps a function and logs the time it took to execute it.
3
3
  *
4
+ * @deprecated Unify with logDuration(), choose one to keep around.
5
+ *
4
6
  * @param fn - The function to execute.
5
7
  * @param name - The name of the function to log.
6
8
  * @param log - The logger to use.
@@ -1 +1 @@
1
- {"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/util/duration.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,OAAO,CAAC,GAAG,cAMzF"}
1
+ {"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/util/duration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,OAAO,CAAC,GAAG,cAMzF"}
@@ -4,6 +4,8 @@ exports.timed = void 0;
4
4
  /**
5
5
  * Wraps a function and logs the time it took to execute it.
6
6
  *
7
+ * @deprecated Unify with logDuration(), choose one to keep around.
8
+ *
7
9
  * @param fn - The function to execute.
8
10
  * @param name - The name of the function to log.
9
11
  * @param log - The logger to use.
@@ -1 +1 @@
1
- {"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/util/duration.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACI,KAAK,UAAU,KAAK,CAAI,EAAoB,EAAE,IAAY,EAAE,GAAuB;IACxF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,EAAE,EAAE,CAAC;IACvB,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;IAC3C,GAAG,CAAC,QAAQ,IAAI,OAAO,WAAW,KAAK,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC;AACb,CAAC;AAND,sBAMC"}
1
+ {"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/util/duration.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACI,KAAK,UAAU,KAAK,CAAI,EAAoB,EAAE,IAAY,EAAE,GAAuB;IACxF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,EAAE,EAAE,CAAC;IACvB,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;IAC3C,GAAG,CAAC,QAAQ,IAAI,OAAO,WAAW,KAAK,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC;AACb,CAAC;AAND,sBAMC"}
@@ -141,18 +141,18 @@ export declare class V7Generator {
141
141
  * @returns The 8-4-4-4-12 canonical hexadecimal string representation
142
142
  * ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
143
143
  */
144
- export declare const uuidv7: () => string;
144
+ export declare function uuidv7(): string;
145
145
  /** Generates a UUIDv7 object. */
146
- export declare const uuidv7obj: () => UUID;
146
+ export declare function uuidv7obj(): UUID;
147
147
  /**
148
148
  * Generates a UUIDv4 string.
149
149
  *
150
150
  * @returns The 8-4-4-4-12 canonical hexadecimal string representation
151
151
  * ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
152
152
  */
153
- export declare const uuidv4: () => string;
153
+ export declare function uuidv4(): string;
154
154
  /** Generates a UUIDv4 object. */
155
- export declare const uuidv4obj: () => UUID;
155
+ export declare function uuidv4obj(): UUID;
156
156
  /**
157
157
  * Checks if a string matches the UUID regex
158
158
  * @param uuid Any string