@sequoiaport/codes 0.1.4-beta.3 → 0.1.4-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  CodesApiError: () => CodesApiError,
24
+ CostCategory: () => CostCategory,
24
25
  CptCategory: () => CptCategory,
25
26
  HcpcsCategory: () => HcpcsCategory,
26
27
  Icd10Category: () => Icd10Category,
@@ -442,6 +443,95 @@ var NdcCategory = class {
442
443
  return this.request("ndc/health", {});
443
444
  }
444
445
  };
446
+ var CostProjectTieredInputSchema = import_zod.z.object({
447
+ cpt_codes: import_zod.z.array(import_zod.z.string().min(1)).optional(),
448
+ items: import_zod.z.array(
449
+ import_zod.z.object({
450
+ cpt_code: import_zod.z.string().min(1),
451
+ modifier: import_zod.z.string().optional(),
452
+ quantity: import_zod.z.number().int().min(1).optional()
453
+ })
454
+ ).optional(),
455
+ zip_code: import_zod.z.string().min(1),
456
+ include_anesthesia: import_zod.z.boolean().optional(),
457
+ provider_ccn: import_zod.z.string().optional()
458
+ });
459
+ var CostProjectInputSchema = import_zod.z.object({
460
+ cpt_codes: import_zod.z.array(import_zod.z.string().min(1)).min(1),
461
+ zip_code: import_zod.z.string().min(1)
462
+ });
463
+ var CostLookupFacilityFeeInputSchema = import_zod.z.object({
464
+ cpt_code: import_zod.z.string().min(1),
465
+ zip_code: import_zod.z.string().min(1)
466
+ });
467
+ var CostLookupMPFSInputSchema = import_zod.z.object({
468
+ cpt_code: import_zod.z.string().min(1),
469
+ zip_code: import_zod.z.string().min(1),
470
+ modifier: import_zod.z.string().optional()
471
+ });
472
+ var CostLookupAnesthesiaInputSchema = import_zod.z.object({
473
+ cpt_code: import_zod.z.string().min(1),
474
+ zip_code: import_zod.z.string().min(1)
475
+ });
476
+ var CostGetFacilitiesInputSchema = import_zod.z.object({
477
+ zip_code: import_zod.z.string().optional(),
478
+ state: import_zod.z.string().optional()
479
+ });
480
+ var CostCategory = class {
481
+ constructor(request) {
482
+ this.request = request;
483
+ }
484
+ async projectCostTiered(input) {
485
+ const validated = CostProjectTieredInputSchema.parse(input);
486
+ return this.request(
487
+ "cost/projectCostTiered",
488
+ validated,
489
+ "POST"
490
+ );
491
+ }
492
+ async projectCost(input) {
493
+ const validated = CostProjectInputSchema.parse(input);
494
+ return this.request(
495
+ "cost/projectCost",
496
+ validated,
497
+ "POST"
498
+ );
499
+ }
500
+ async lookupFacilityFee(input) {
501
+ const validated = CostLookupFacilityFeeInputSchema.parse(input);
502
+ return this.request(
503
+ "cost/lookupFacilityFee",
504
+ validated
505
+ );
506
+ }
507
+ async lookupMPFS(input) {
508
+ const validated = CostLookupMPFSInputSchema.parse(input);
509
+ return this.request(
510
+ "cost/lookupMPFS",
511
+ validated
512
+ );
513
+ }
514
+ async lookupAnesthesia(input) {
515
+ const validated = CostLookupAnesthesiaInputSchema.parse(input);
516
+ return this.request(
517
+ "cost/lookupAnesthesia",
518
+ validated
519
+ );
520
+ }
521
+ async getFacilities(input) {
522
+ const validated = CostGetFacilitiesInputSchema.parse(input ?? {});
523
+ return this.request(
524
+ "cost/getFacilities",
525
+ validated
526
+ );
527
+ }
528
+ async getStats() {
529
+ return this.request("cost/getStats", {});
530
+ }
531
+ async health() {
532
+ return this.request("cost/health", {});
533
+ }
534
+ };
445
535
 
446
536
  // src/schemas/clinical.ts
447
537
  var import_zod2 = require("zod");
@@ -568,6 +658,8 @@ var SequoiaCodesClient = class {
568
658
  // ==========================================================================
569
659
  /** Life Expectancy actuarial tables (CDC/CMS WCMSA standard) */
570
660
  lifeExpectancy;
661
+ /** Cost Projection engine — 4-tier surgical/procedural cost estimates (CMS PFS/IPPS + RAND + BLS CPI) */
662
+ cost;
571
663
  // ==========================================================================
572
664
  // Guideline Categories
573
665
  // ==========================================================================
@@ -590,6 +682,7 @@ var SequoiaCodesClient = class {
590
682
  this.rxnorm = new RxnormCategory(boundRequest);
591
683
  this.ndc = new NdcCategory(boundRequest);
592
684
  this.lifeExpectancy = new LifeExpectancyCategory(boundRequest);
685
+ this.cost = new CostCategory(boundRequest);
593
686
  this.lcd = new LcdCategory(boundRequest);
594
687
  this.ncd = new NcdCategory(boundRequest);
595
688
  }
@@ -636,6 +729,7 @@ var SequoiaCodesClient = class {
636
729
  // Annotate the CommonJS export names for ESM import in node:
637
730
  0 && (module.exports = {
638
731
  CodesApiError,
732
+ CostCategory,
639
733
  CptCategory,
640
734
  HcpcsCategory,
641
735
  Icd10Category,
package/dist/index.mjs CHANGED
@@ -405,6 +405,95 @@ var NdcCategory = class {
405
405
  return this.request("ndc/health", {});
406
406
  }
407
407
  };
408
+ var CostProjectTieredInputSchema = z.object({
409
+ cpt_codes: z.array(z.string().min(1)).optional(),
410
+ items: z.array(
411
+ z.object({
412
+ cpt_code: z.string().min(1),
413
+ modifier: z.string().optional(),
414
+ quantity: z.number().int().min(1).optional()
415
+ })
416
+ ).optional(),
417
+ zip_code: z.string().min(1),
418
+ include_anesthesia: z.boolean().optional(),
419
+ provider_ccn: z.string().optional()
420
+ });
421
+ var CostProjectInputSchema = z.object({
422
+ cpt_codes: z.array(z.string().min(1)).min(1),
423
+ zip_code: z.string().min(1)
424
+ });
425
+ var CostLookupFacilityFeeInputSchema = z.object({
426
+ cpt_code: z.string().min(1),
427
+ zip_code: z.string().min(1)
428
+ });
429
+ var CostLookupMPFSInputSchema = z.object({
430
+ cpt_code: z.string().min(1),
431
+ zip_code: z.string().min(1),
432
+ modifier: z.string().optional()
433
+ });
434
+ var CostLookupAnesthesiaInputSchema = z.object({
435
+ cpt_code: z.string().min(1),
436
+ zip_code: z.string().min(1)
437
+ });
438
+ var CostGetFacilitiesInputSchema = z.object({
439
+ zip_code: z.string().optional(),
440
+ state: z.string().optional()
441
+ });
442
+ var CostCategory = class {
443
+ constructor(request) {
444
+ this.request = request;
445
+ }
446
+ async projectCostTiered(input) {
447
+ const validated = CostProjectTieredInputSchema.parse(input);
448
+ return this.request(
449
+ "cost/projectCostTiered",
450
+ validated,
451
+ "POST"
452
+ );
453
+ }
454
+ async projectCost(input) {
455
+ const validated = CostProjectInputSchema.parse(input);
456
+ return this.request(
457
+ "cost/projectCost",
458
+ validated,
459
+ "POST"
460
+ );
461
+ }
462
+ async lookupFacilityFee(input) {
463
+ const validated = CostLookupFacilityFeeInputSchema.parse(input);
464
+ return this.request(
465
+ "cost/lookupFacilityFee",
466
+ validated
467
+ );
468
+ }
469
+ async lookupMPFS(input) {
470
+ const validated = CostLookupMPFSInputSchema.parse(input);
471
+ return this.request(
472
+ "cost/lookupMPFS",
473
+ validated
474
+ );
475
+ }
476
+ async lookupAnesthesia(input) {
477
+ const validated = CostLookupAnesthesiaInputSchema.parse(input);
478
+ return this.request(
479
+ "cost/lookupAnesthesia",
480
+ validated
481
+ );
482
+ }
483
+ async getFacilities(input) {
484
+ const validated = CostGetFacilitiesInputSchema.parse(input ?? {});
485
+ return this.request(
486
+ "cost/getFacilities",
487
+ validated
488
+ );
489
+ }
490
+ async getStats() {
491
+ return this.request("cost/getStats", {});
492
+ }
493
+ async health() {
494
+ return this.request("cost/health", {});
495
+ }
496
+ };
408
497
 
409
498
  // src/schemas/clinical.ts
410
499
  import { z as z2 } from "zod";
@@ -531,6 +620,8 @@ var SequoiaCodesClient = class {
531
620
  // ==========================================================================
532
621
  /** Life Expectancy actuarial tables (CDC/CMS WCMSA standard) */
533
622
  lifeExpectancy;
623
+ /** Cost Projection engine — 4-tier surgical/procedural cost estimates (CMS PFS/IPPS + RAND + BLS CPI) */
624
+ cost;
534
625
  // ==========================================================================
535
626
  // Guideline Categories
536
627
  // ==========================================================================
@@ -553,6 +644,7 @@ var SequoiaCodesClient = class {
553
644
  this.rxnorm = new RxnormCategory(boundRequest);
554
645
  this.ndc = new NdcCategory(boundRequest);
555
646
  this.lifeExpectancy = new LifeExpectancyCategory(boundRequest);
647
+ this.cost = new CostCategory(boundRequest);
556
648
  this.lcd = new LcdCategory(boundRequest);
557
649
  this.ncd = new NcdCategory(boundRequest);
558
650
  }
@@ -598,6 +690,7 @@ var SequoiaCodesClient = class {
598
690
  };
599
691
  export {
600
692
  CodesApiError,
693
+ CostCategory,
601
694
  CptCategory,
602
695
  HcpcsCategory,
603
696
  Icd10Category,
package/dist/mcp.js CHANGED
@@ -413,6 +413,95 @@ var NdcCategory = class {
413
413
  return this.request("ndc/health", {});
414
414
  }
415
415
  };
416
+ var CostProjectTieredInputSchema = import_zod.z.object({
417
+ cpt_codes: import_zod.z.array(import_zod.z.string().min(1)).optional(),
418
+ items: import_zod.z.array(
419
+ import_zod.z.object({
420
+ cpt_code: import_zod.z.string().min(1),
421
+ modifier: import_zod.z.string().optional(),
422
+ quantity: import_zod.z.number().int().min(1).optional()
423
+ })
424
+ ).optional(),
425
+ zip_code: import_zod.z.string().min(1),
426
+ include_anesthesia: import_zod.z.boolean().optional(),
427
+ provider_ccn: import_zod.z.string().optional()
428
+ });
429
+ var CostProjectInputSchema = import_zod.z.object({
430
+ cpt_codes: import_zod.z.array(import_zod.z.string().min(1)).min(1),
431
+ zip_code: import_zod.z.string().min(1)
432
+ });
433
+ var CostLookupFacilityFeeInputSchema = import_zod.z.object({
434
+ cpt_code: import_zod.z.string().min(1),
435
+ zip_code: import_zod.z.string().min(1)
436
+ });
437
+ var CostLookupMPFSInputSchema = import_zod.z.object({
438
+ cpt_code: import_zod.z.string().min(1),
439
+ zip_code: import_zod.z.string().min(1),
440
+ modifier: import_zod.z.string().optional()
441
+ });
442
+ var CostLookupAnesthesiaInputSchema = import_zod.z.object({
443
+ cpt_code: import_zod.z.string().min(1),
444
+ zip_code: import_zod.z.string().min(1)
445
+ });
446
+ var CostGetFacilitiesInputSchema = import_zod.z.object({
447
+ zip_code: import_zod.z.string().optional(),
448
+ state: import_zod.z.string().optional()
449
+ });
450
+ var CostCategory = class {
451
+ constructor(request) {
452
+ this.request = request;
453
+ }
454
+ async projectCostTiered(input) {
455
+ const validated = CostProjectTieredInputSchema.parse(input);
456
+ return this.request(
457
+ "cost/projectCostTiered",
458
+ validated,
459
+ "POST"
460
+ );
461
+ }
462
+ async projectCost(input) {
463
+ const validated = CostProjectInputSchema.parse(input);
464
+ return this.request(
465
+ "cost/projectCost",
466
+ validated,
467
+ "POST"
468
+ );
469
+ }
470
+ async lookupFacilityFee(input) {
471
+ const validated = CostLookupFacilityFeeInputSchema.parse(input);
472
+ return this.request(
473
+ "cost/lookupFacilityFee",
474
+ validated
475
+ );
476
+ }
477
+ async lookupMPFS(input) {
478
+ const validated = CostLookupMPFSInputSchema.parse(input);
479
+ return this.request(
480
+ "cost/lookupMPFS",
481
+ validated
482
+ );
483
+ }
484
+ async lookupAnesthesia(input) {
485
+ const validated = CostLookupAnesthesiaInputSchema.parse(input);
486
+ return this.request(
487
+ "cost/lookupAnesthesia",
488
+ validated
489
+ );
490
+ }
491
+ async getFacilities(input) {
492
+ const validated = CostGetFacilitiesInputSchema.parse(input ?? {});
493
+ return this.request(
494
+ "cost/getFacilities",
495
+ validated
496
+ );
497
+ }
498
+ async getStats() {
499
+ return this.request("cost/getStats", {});
500
+ }
501
+ async health() {
502
+ return this.request("cost/health", {});
503
+ }
504
+ };
416
505
 
417
506
  // src/schemas/clinical.ts
418
507
  var import_zod2 = require("zod");
@@ -539,6 +628,8 @@ var SequoiaCodesClient = class {
539
628
  // ==========================================================================
540
629
  /** Life Expectancy actuarial tables (CDC/CMS WCMSA standard) */
541
630
  lifeExpectancy;
631
+ /** Cost Projection engine — 4-tier surgical/procedural cost estimates (CMS PFS/IPPS + RAND + BLS CPI) */
632
+ cost;
542
633
  // ==========================================================================
543
634
  // Guideline Categories
544
635
  // ==========================================================================
@@ -561,6 +652,7 @@ var SequoiaCodesClient = class {
561
652
  this.rxnorm = new RxnormCategory(boundRequest);
562
653
  this.ndc = new NdcCategory(boundRequest);
563
654
  this.lifeExpectancy = new LifeExpectancyCategory(boundRequest);
655
+ this.cost = new CostCategory(boundRequest);
564
656
  this.lcd = new LcdCategory(boundRequest);
565
657
  this.ncd = new NcdCategory(boundRequest);
566
658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequoiaport/codes",
3
- "version": "0.1.4-beta.3",
3
+ "version": "0.1.4-beta.5",
4
4
  "description": "Retrieve ICD-10, CPT, SNOMED, RxNorm, LOINC, NDC, cost projections, and more medical codes via the Sequoia Codes API.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",