@stedi/sdk 0.0.9 → 0.0.10

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 (105) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +82 -29
  3. package/dist-cjs/Stedi.js +35 -1
  4. package/dist-cjs/StediClient.js +1 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +8 -0
  7. package/dist-cjs/commandBuilder.js +4 -1
  8. package/dist-cjs/commands/CreateEventDestinationCommand.js +8 -0
  9. package/dist-cjs/commands/CreateProfessionalClaimSubmissionCommand.js +1 -1
  10. package/dist-cjs/commands/DeleteEventDestinationCommand.js +8 -0
  11. package/dist-cjs/commands/GetClaimCommand.js +8 -0
  12. package/dist-cjs/commands/GetClaimTimelineCommand.js +8 -0
  13. package/dist-cjs/commands/GetEventDestinationCommand.js +8 -0
  14. package/dist-cjs/commands/GetEventDestinationEventCommand.js +8 -0
  15. package/dist-cjs/commands/GetEventDestinationSecretCommand.js +8 -0
  16. package/dist-cjs/commands/GetProfessionalClaimSubmissionCommand.js +1 -1
  17. package/dist-cjs/commands/ListClaimsCommand.js +8 -0
  18. package/dist-cjs/commands/ListEventDestinationEventsCommand.js +8 -0
  19. package/dist-cjs/commands/ListEventDestinationsCommand.js +8 -0
  20. package/dist-cjs/commands/RotateEventDestinationSecretCommand.js +8 -0
  21. package/dist-cjs/commands/UpdateEventDestinationCommand.js +8 -0
  22. package/dist-cjs/commands/ValidateProfessionalClaimSubmissionCommand.js +1 -1
  23. package/dist-cjs/commands/index.js +12 -0
  24. package/dist-cjs/endpoint/bdd.js +8 -5
  25. package/dist-cjs/index.js +1 -0
  26. package/dist-cjs/models/enums.js +61 -1
  27. package/dist-cjs/models/errors.js +27 -34
  28. package/dist-cjs/pagination/GetClaimTimelinePaginator.js +7 -0
  29. package/dist-cjs/pagination/Interfaces.js +2 -0
  30. package/dist-cjs/pagination/ListClaimsPaginator.js +7 -0
  31. package/dist-cjs/pagination/ListEventDestinationEventsPaginator.js +7 -0
  32. package/dist-cjs/pagination/ListEventDestinationsPaginator.js +7 -0
  33. package/dist-cjs/pagination/index.js +8 -0
  34. package/dist-cjs/runtimeConfig.shared.js +5 -0
  35. package/dist-cjs/schemas/schemas_0.js +487 -127
  36. package/dist-es/Stedi.js +35 -1
  37. package/dist-es/StediClient.js +1 -0
  38. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  39. package/dist-es/auth/httpAuthSchemeProvider.js +8 -0
  40. package/dist-es/commandBuilder.js +3 -0
  41. package/dist-es/commands/CreateEventDestinationCommand.js +4 -0
  42. package/dist-es/commands/CreateProfessionalClaimSubmissionCommand.js +2 -2
  43. package/dist-es/commands/DeleteEventDestinationCommand.js +4 -0
  44. package/dist-es/commands/GetClaimCommand.js +4 -0
  45. package/dist-es/commands/GetClaimTimelineCommand.js +4 -0
  46. package/dist-es/commands/GetEventDestinationCommand.js +4 -0
  47. package/dist-es/commands/GetEventDestinationEventCommand.js +4 -0
  48. package/dist-es/commands/GetEventDestinationSecretCommand.js +4 -0
  49. package/dist-es/commands/GetProfessionalClaimSubmissionCommand.js +2 -2
  50. package/dist-es/commands/ListClaimsCommand.js +4 -0
  51. package/dist-es/commands/ListEventDestinationEventsCommand.js +4 -0
  52. package/dist-es/commands/ListEventDestinationsCommand.js +4 -0
  53. package/dist-es/commands/RotateEventDestinationSecretCommand.js +4 -0
  54. package/dist-es/commands/UpdateEventDestinationCommand.js +4 -0
  55. package/dist-es/commands/ValidateProfessionalClaimSubmissionCommand.js +2 -2
  56. package/dist-es/commands/index.js +12 -0
  57. package/dist-es/endpoint/bdd.js +8 -5
  58. package/dist-es/index.js +1 -0
  59. package/dist-es/models/enums.js +60 -0
  60. package/dist-es/models/errors.js +24 -31
  61. package/dist-es/pagination/GetClaimTimelinePaginator.js +4 -0
  62. package/dist-es/pagination/Interfaces.js +1 -0
  63. package/dist-es/pagination/ListClaimsPaginator.js +4 -0
  64. package/dist-es/pagination/ListEventDestinationEventsPaginator.js +4 -0
  65. package/dist-es/pagination/ListEventDestinationsPaginator.js +4 -0
  66. package/dist-es/pagination/index.js +5 -0
  67. package/dist-es/runtimeConfig.shared.js +6 -1
  68. package/dist-es/schemas/schemas_0.js +485 -126
  69. package/dist-types/Stedi.d.ts +116 -1
  70. package/dist-types/StediClient.d.ts +14 -2
  71. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
  72. package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
  73. package/dist-types/commandBuilder.d.ts +4 -0
  74. package/dist-types/commands/CreateEventDestinationCommand.d.ts +146 -0
  75. package/dist-types/commands/CreateProfessionalClaimSubmissionCommand.d.ts +177 -152
  76. package/dist-types/commands/DeleteEventDestinationCommand.d.ts +105 -0
  77. package/dist-types/commands/GetClaimCommand.d.ts +139 -0
  78. package/dist-types/commands/GetClaimTimelineCommand.d.ts +218 -0
  79. package/dist-types/commands/GetEventDestinationCommand.d.ts +124 -0
  80. package/dist-types/commands/GetEventDestinationEventCommand.d.ts +141 -0
  81. package/dist-types/commands/GetEventDestinationSecretCommand.d.ts +105 -0
  82. package/dist-types/commands/GetProfessionalClaimSubmissionCommand.d.ts +349 -4
  83. package/dist-types/commands/ListClaimsCommand.d.ts +169 -0
  84. package/dist-types/commands/ListEventDestinationEventsCommand.d.ts +120 -0
  85. package/dist-types/commands/ListEventDestinationsCommand.d.ts +132 -0
  86. package/dist-types/commands/RotateEventDestinationSecretCommand.d.ts +113 -0
  87. package/dist-types/commands/UpdateEventDestinationCommand.d.ts +142 -0
  88. package/dist-types/commands/ValidateProfessionalClaimSubmissionCommand.d.ts +363 -9
  89. package/dist-types/commands/index.d.ts +12 -0
  90. package/dist-types/index.d.ts +1 -0
  91. package/dist-types/models/enums.d.ts +263 -1
  92. package/dist-types/models/errors.d.ts +25 -41
  93. package/dist-types/models/models_0.d.ts +1320 -43
  94. package/dist-types/pagination/GetClaimTimelinePaginator.d.ts +7 -0
  95. package/dist-types/pagination/Interfaces.d.ts +8 -0
  96. package/dist-types/pagination/ListClaimsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListEventDestinationEventsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListEventDestinationsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/index.d.ts +5 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +7 -2
  101. package/dist-types/runtimeConfig.d.ts +7 -2
  102. package/dist-types/runtimeConfig.native.d.ts +7 -2
  103. package/dist-types/runtimeConfig.shared.d.ts +7 -3
  104. package/dist-types/schemas/schemas_0.d.ts +54 -3
  105. package/package.json +4 -3
@@ -24,7 +24,7 @@ declare const ValidateProfessionalClaimSubmissionCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * Validate a professional claim in the Stedi JSON format without submitting it.
27
+ * Validate a professional claim in the Stedi JSON format without submitting it
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -323,6 +323,15 @@ declare const ValidateProfessionalClaimSubmissionCommand_base: {
323
323
  * commercialNumber: "STRING_VALUE",
324
324
  * },
325
325
  * },
326
+ * purchasedService: { // ProfessionalClaimSubmissionPurchasedService
327
+ * chargeAmount: "STRING_VALUE", // required
328
+ * provider: { // ProfessionalClaimSubmissionPurchasedServiceProvider
329
+ * entityType: "PERSON" || "ORGANIZATION", // required
330
+ * identifiers: { // ProfessionalClaimSubmissionPurchasedServiceProviderIdentifiers
331
+ * npi: "STRING_VALUE", // required
332
+ * },
333
+ * },
334
+ * },
326
335
  * lineItemControlNumber: "STRING_VALUE",
327
336
  * drugIdentification: { // ProfessionalClaimSubmissionDrugIdentification
328
337
  * nationalDrugCode: "STRING_VALUE", // required
@@ -380,7 +389,13 @@ declare const ValidateProfessionalClaimSubmissionCommand_base: {
380
389
  * };
381
390
  * const command = new ValidateProfessionalClaimSubmissionCommand(input);
382
391
  * const response = await client.send(command);
383
- * // {};
392
+ * // { // ValidateProfessionalClaimSubmissionOutput
393
+ * // errors: [ // ClaimRejectionErrors
394
+ * // { // ClaimRejectionError
395
+ * // description: "STRING_VALUE", // required
396
+ * // },
397
+ * // ],
398
+ * // };
384
399
  *
385
400
  * ```
386
401
  *
@@ -390,9 +405,6 @@ declare const ValidateProfessionalClaimSubmissionCommand_base: {
390
405
  * @see {@link ValidateProfessionalClaimSubmissionCommandOutput} for command's `response` shape.
391
406
  * @see {@link StediClientResolvedConfig | config} for StediClient's `config` shape.
392
407
  *
393
- * @throws {@link ClaimEditException} (client fault)
394
- * Exception returned when the claim fails one or more pre-submission edits.
395
- *
396
408
  * @throws {@link AuthenticationFailedException} (client fault)
397
409
  * The request credentials are missing or not valid.
398
410
  *
@@ -408,13 +420,355 @@ declare const ValidateProfessionalClaimSubmissionCommand_base: {
408
420
  * @throws {@link TooManyRequestsException} (client fault)
409
421
  * The caller has exceeded a rate limit. Retry with backoff.
410
422
  *
411
- * @throws {@link InternalFailureException} (server fault)
412
- * The server response when an unexpected error occurred while processing request.
413
- *
414
423
  * @throws {@link StediServiceException}
415
424
  * <p>Base exception class for all service exceptions from Stedi service.</p>
416
425
  *
417
426
  *
427
+ * @example Validate claim
428
+ * ```javascript
429
+ * //
430
+ * const input = {
431
+ * authorization: {
432
+ * insuredAuthorizesAssignment: "YES",
433
+ * patientReleasesMedicalInfo: "YES",
434
+ * providerAcceptsAssignment: "ASSIGNED",
435
+ * providerSignature: "ON_FILE"
436
+ * },
437
+ * billing: {
438
+ * billingProvider: {
439
+ * address: {
440
+ * addressLine1: "123 St",
441
+ * city: "City",
442
+ * postalCode: "12345",
443
+ * state: "IL"
444
+ * },
445
+ * identifiers: {
446
+ * npi: "1999999984",
447
+ * taxonomyCode: "207Q00000X"
448
+ * },
449
+ * name: {
450
+ * organization: "Test Provider"
451
+ * }
452
+ * },
453
+ * patientControlNumber: "TEST-004",
454
+ * taxId: {
455
+ * ein: "123456789"
456
+ * },
457
+ * totalCharge: "100.00"
458
+ * },
459
+ * encounter: {
460
+ * attachments: [
461
+ * {
462
+ * attachmentControlNumber: "PWK-2026-0001",
463
+ * reportTypeCode: "PROGRESS_REPORT",
464
+ * transmissionCode: "ELECTRONICALLY_ONLY"
465
+ * }
466
+ * ],
467
+ * claimCodes: [
468
+ * "AV"
469
+ * ],
470
+ * claimNote: {
471
+ * additionalInformation: "Patient presented with persistent cough and bronchospasm; treated in office."
472
+ * },
473
+ * clinicalDates: {
474
+ * hospitalization: {
475
+ * end: "2026-03-06",
476
+ * start: "2026-03-04"
477
+ * },
478
+ * initialTreatment: "2026-03-03",
479
+ * onsetOfCurrentIllness: "2026-03-02",
480
+ * unableToWork: {
481
+ * end: "2026-03-10",
482
+ * start: "2026-03-03"
483
+ * }
484
+ * },
485
+ * patientCondition: {
486
+ * isAutoAccidentRelated: false,
487
+ * isEmploymentRelated: false,
488
+ * isOtherAccidentRelated: false
489
+ * },
490
+ * primaryDiagnosisCode: "J0190",
491
+ * priorReferringProvider: {
492
+ * identifiers: {
493
+ * npi: "1999999984"
494
+ * },
495
+ * name: {
496
+ * person: {
497
+ * firstName: "John",
498
+ * lastName: "Doe"
499
+ * }
500
+ * }
501
+ * },
502
+ * referenceNumbers: {
503
+ * clia: "14D2089999",
504
+ * priorAuthorization: "PA-2026-11111",
505
+ * referral: "REF-4321"
506
+ * },
507
+ * referringProvider: {
508
+ * identifiers: {
509
+ * npi: "1999999984"
510
+ * },
511
+ * name: {
512
+ * person: {
513
+ * firstName: "Jane",
514
+ * lastName: "Doe"
515
+ * }
516
+ * }
517
+ * },
518
+ * resubmission: {
519
+ * code: "REPLACEMENT_OF_PRIOR_CLAIM",
520
+ * originalReferenceNumber: "CLM-ORIG-998877"
521
+ * },
522
+ * supervisingProvider: {
523
+ * identifiers: {
524
+ * npi: "1999999984"
525
+ * },
526
+ * name: {
527
+ * person: {
528
+ * firstName: "Jane",
529
+ * lastName: "Smith"
530
+ * }
531
+ * }
532
+ * }
533
+ * },
534
+ * insured: {
535
+ * address: {
536
+ * addressLine1: "111 A Place",
537
+ * city: "Somewhere",
538
+ * postalCode: "123450000",
539
+ * state: "IL"
540
+ * },
541
+ * dateOfBirth: "1990-01-01",
542
+ * gender: "FEMALE",
543
+ * insuranceType: "OTHER",
544
+ * memberId: "W123456789",
545
+ * name: {
546
+ * person: {
547
+ * firstName: "June",
548
+ * lastName: "Doe"
549
+ * }
550
+ * },
551
+ * paymentResponsibilityLevelCode: "PRIMARY"
552
+ * },
553
+ * otherInsured: [
554
+ * {
555
+ * address: {
556
+ * addressLine1: "111 A Place",
557
+ * city: "Somewhere",
558
+ * postalCode: "123450000",
559
+ * state: "IL"
560
+ * },
561
+ * authorization: {
562
+ * insuredAuthorizesAssignment: "YES",
563
+ * patientReleasesMedicalInfo: "YES",
564
+ * providerGeneratedPatientSignature: false
565
+ * },
566
+ * claimFilingIndicator: "BLUE_CROSS_BLUE_SHIELD",
567
+ * memberId: "BCBS-IL-554433221",
568
+ * name: {
569
+ * person: {
570
+ * firstName: "Michael",
571
+ * lastName: "Doe"
572
+ * }
573
+ * },
574
+ * otherPayer: {
575
+ * id: {
576
+ * payerId: "00621"
577
+ * },
578
+ * name: {
579
+ * organization: "Blue Cross Blue Shield of Illinois"
580
+ * }
581
+ * },
582
+ * planName: "BCBS PPO",
583
+ * policyOrGroupNumber: "BCBS-GRP-3344",
584
+ * relationshipToInsured: "SPOUSE",
585
+ * responsibilityLevel: "SECONDARY"
586
+ * }
587
+ * ],
588
+ * patient: {
589
+ * address: {
590
+ * addressLine1: "111 A Place",
591
+ * city: "Somewhere",
592
+ * postalCode: "123450000",
593
+ * state: "IL"
594
+ * },
595
+ * dateOfBirth: "1900-02-02",
596
+ * gender: "MALE",
597
+ * name: {
598
+ * person: {
599
+ * firstName: "Liam",
600
+ * lastName: "Doe"
601
+ * }
602
+ * },
603
+ * relationshipToInsured: "CHILD"
604
+ * },
605
+ * payer: {
606
+ * id: "60054",
607
+ * name: {
608
+ * organization: "Aetna"
609
+ * }
610
+ * },
611
+ * purpose: "CHARGEABLE",
612
+ * serviceLines: [
613
+ * {
614
+ * datesOfService: {
615
+ * end: "2026-03-03",
616
+ * start: "2026-03-03"
617
+ * },
618
+ * diagnosisCodes: [
619
+ * "J0190"
620
+ * ],
621
+ * lineItemChargeAmount: "100.00",
622
+ * placeOfService: "11",
623
+ * procedureCode: {
624
+ * code: "99213"
625
+ * },
626
+ * units: "1"
627
+ * }
628
+ * ],
629
+ * submitter: {
630
+ * contact: {
631
+ * phoneNumber: "5555551234"
632
+ * },
633
+ * etin: "TEST001",
634
+ * name: {
635
+ * organization: "Test Submitter"
636
+ * }
637
+ * }
638
+ * };
639
+ * const command = new ValidateProfessionalClaimSubmissionCommand(input);
640
+ * const response = await client.send(command);
641
+ * /* response is
642
+ * { /* empty *\/ }
643
+ * *\/
644
+ * ```
645
+ *
646
+ * @example Failed edits
647
+ * ```javascript
648
+ * //
649
+ * const input = {
650
+ * authorization: {
651
+ * insuredAuthorizesAssignment: "YES",
652
+ * patientReleasesMedicalInfo: "YES",
653
+ * providerAcceptsAssignment: "ASSIGNED",
654
+ * providerSignature: "ON_FILE"
655
+ * },
656
+ * billing: {
657
+ * billingProvider: {
658
+ * address: {
659
+ * addressLine1: "123 St",
660
+ * city: "City",
661
+ * postalCode: "12345",
662
+ * state: "IL"
663
+ * },
664
+ * identifiers: {
665
+ * npi: "1730289013",
666
+ * taxonomyCode: "207Q0000X"
667
+ * },
668
+ * name: {
669
+ * organization: "Test Provider"
670
+ * }
671
+ * },
672
+ * patientControlNumber: "TEST-005",
673
+ * taxId: {
674
+ * ein: "123456789"
675
+ * },
676
+ * totalCharge: "100.00"
677
+ * },
678
+ * encounter: {
679
+ * patientCondition: {
680
+ * isAutoAccidentRelated: false,
681
+ * isEmploymentRelated: false,
682
+ * isOtherAccidentRelated: false
683
+ * },
684
+ * primaryDiagnosisCode: "J0190"
685
+ * },
686
+ * insured: {
687
+ * address: {
688
+ * addressLine1: "111 A Place",
689
+ * city: "Somewhere",
690
+ * postalCode: "123450000",
691
+ * state: "IL"
692
+ * },
693
+ * dateOfBirth: "1990-01-01",
694
+ * gender: "FEMALE",
695
+ * insuranceType: "OTHER",
696
+ * memberId: "W123456789",
697
+ * name: {
698
+ * person: {
699
+ * firstName: "June",
700
+ * lastName: "Doe"
701
+ * }
702
+ * },
703
+ * paymentResponsibilityLevelCode: "PRIMARY"
704
+ * },
705
+ * patient: {
706
+ * address: {
707
+ * addressLine1: "111 A Place",
708
+ * city: "Somewhere",
709
+ * postalCode: "123450000",
710
+ * state: "IL"
711
+ * },
712
+ * dateOfBirth: "1900-02-02",
713
+ * gender: "MALE",
714
+ * name: {
715
+ * person: {
716
+ * firstName: "Liam",
717
+ * lastName: "Doe"
718
+ * }
719
+ * },
720
+ * relationshipToInsured: "CHILD"
721
+ * },
722
+ * payer: {
723
+ * id: "60054",
724
+ * name: {
725
+ * organization: "Aetna"
726
+ * }
727
+ * },
728
+ * purpose: "CHARGEABLE",
729
+ * serviceLines: [
730
+ * {
731
+ * datesOfService: {
732
+ * end: "2026-03-03",
733
+ * start: "2026-03-03"
734
+ * },
735
+ * diagnosisCodes: [
736
+ * "J0190"
737
+ * ],
738
+ * lineItemChargeAmount: "100.00",
739
+ * placeOfService: "11",
740
+ * procedureCode: {
741
+ * code: "99213"
742
+ * },
743
+ * units: "1"
744
+ * }
745
+ * ],
746
+ * submitter: {
747
+ * contact: {
748
+ * phoneNumber: "5555551234"
749
+ * },
750
+ * etin: "TEST001",
751
+ * name: {
752
+ * organization: "Test Submitter"
753
+ * }
754
+ * }
755
+ * };
756
+ * const command = new ValidateProfessionalClaimSubmissionCommand(input);
757
+ * const response = await client.send(command);
758
+ * /* response is
759
+ * {
760
+ * errors: [
761
+ * {
762
+ * description: "Invalid NPI. The Billing Provider NPI of 1730289013 is invalid. The National Provider Identifier must be valid with 10 digits and no prefixes or dashes. Correct and resubmit."
763
+ * },
764
+ * {
765
+ * description: "Invalid Taxonomy Code. The taxonomy code for Billing Provider does not meet the required format. Taxonomy codes must be 10 uppercase alphanumeric characters ending with 'X'. Correct and resubmit."
766
+ * }
767
+ * ]
768
+ * }
769
+ * *\/
770
+ * ```
771
+ *
418
772
  * @internal
419
773
  */
420
774
  export declare class ValidateProfessionalClaimSubmissionCommand extends ValidateProfessionalClaimSubmissionCommand_base {
@@ -422,7 +776,7 @@ export declare class ValidateProfessionalClaimSubmissionCommand extends Validate
422
776
  protected static __types: {
423
777
  api: {
424
778
  input: ValidateProfessionalClaimSubmissionInput;
425
- output: {};
779
+ output: ValidateProfessionalClaimSubmissionOutput;
426
780
  };
427
781
  sdk: {
428
782
  input: ValidateProfessionalClaimSubmissionCommandInput;
@@ -1,3 +1,15 @@
1
+ export * from "./CreateEventDestinationCommand";
1
2
  export * from "./CreateProfessionalClaimSubmissionCommand";
3
+ export * from "./DeleteEventDestinationCommand";
4
+ export * from "./GetClaimCommand";
5
+ export * from "./GetClaimTimelineCommand";
6
+ export * from "./GetEventDestinationCommand";
7
+ export * from "./GetEventDestinationEventCommand";
8
+ export * from "./GetEventDestinationSecretCommand";
2
9
  export * from "./GetProfessionalClaimSubmissionCommand";
10
+ export * from "./ListClaimsCommand";
11
+ export * from "./ListEventDestinationEventsCommand";
12
+ export * from "./ListEventDestinationsCommand";
13
+ export * from "./RotateEventDestinationSecretCommand";
14
+ export * from "./UpdateEventDestinationCommand";
3
15
  export * from "./ValidateProfessionalClaimSubmissionCommand";
@@ -11,6 +11,7 @@ export type { StediExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export { Command as $Command } from "@smithy/core/client";
13
13
  export * from "./schemas/schemas_0";
14
+ export * from "./pagination";
14
15
  export * from "./models/enums";
15
16
  export * from "./models/errors";
16
17
  export * from "./models/models_0";