@sequoiaport/codes 0.1.1 → 0.1.2-beta.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.
- package/README.md +34 -3
- package/dist/index.d.mts +546 -3
- package/dist/index.d.ts +546 -3
- package/dist/index.js +59 -0
- package/dist/index.mjs +58 -0
- package/dist/mcp.js +57 -0
- package/package.json +9 -1
package/dist/index.mjs
CHANGED
|
@@ -263,6 +263,57 @@ var NcdCategory = class {
|
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
+
var LELookupByAgeInputSchema = z.object({
|
|
267
|
+
age: z.number().int().min(0).max(125),
|
|
268
|
+
gender: z.enum(["male", "female", "total"]).optional()
|
|
269
|
+
});
|
|
270
|
+
var LELookupBatchInputSchema = z.object({
|
|
271
|
+
ages: z.array(z.number().int().min(0).max(125)).min(1).max(500),
|
|
272
|
+
gender: z.enum(["male", "female", "total"]).optional()
|
|
273
|
+
});
|
|
274
|
+
var LEGetTableInputSchema = z.object({
|
|
275
|
+
gender: z.enum(["male", "female", "total"]).optional(),
|
|
276
|
+
min_age: z.number().int().min(0).optional(),
|
|
277
|
+
max_age: z.number().int().max(125).optional()
|
|
278
|
+
});
|
|
279
|
+
var LifeExpectancyCategory = class {
|
|
280
|
+
constructor(request) {
|
|
281
|
+
this.request = request;
|
|
282
|
+
}
|
|
283
|
+
async lookupByAge(input) {
|
|
284
|
+
const validated = LELookupByAgeInputSchema.parse(input);
|
|
285
|
+
return this.request(
|
|
286
|
+
"lifeExpectancy/lookupByAge",
|
|
287
|
+
validated
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
async lookupBatch(input) {
|
|
291
|
+
const validated = LELookupBatchInputSchema.parse(input);
|
|
292
|
+
return this.request(
|
|
293
|
+
"lifeExpectancy/lookupBatch",
|
|
294
|
+
validated
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
async getTable(input) {
|
|
298
|
+
const validated = LEGetTableInputSchema.parse(input ?? {});
|
|
299
|
+
return this.request(
|
|
300
|
+
"lifeExpectancy/getTable",
|
|
301
|
+
validated
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
async getVersion() {
|
|
305
|
+
return this.request(
|
|
306
|
+
"lifeExpectancy/getVersion",
|
|
307
|
+
{}
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
async getStats() {
|
|
311
|
+
return this.request("lifeExpectancy/getStats", {});
|
|
312
|
+
}
|
|
313
|
+
async health() {
|
|
314
|
+
return this.request("lifeExpectancy/health", {});
|
|
315
|
+
}
|
|
316
|
+
};
|
|
266
317
|
|
|
267
318
|
// src/schemas/clinical.ts
|
|
268
319
|
import { z as z2 } from "zod";
|
|
@@ -383,6 +434,11 @@ var SequoiaCodesClient = class {
|
|
|
383
434
|
/** RxNorm drug/medication codes */
|
|
384
435
|
rxnorm;
|
|
385
436
|
// ==========================================================================
|
|
437
|
+
// Actuarial / Reference Data Categories
|
|
438
|
+
// ==========================================================================
|
|
439
|
+
/** Life Expectancy actuarial tables (CDC/CMS WCMSA standard) */
|
|
440
|
+
lifeExpectancy;
|
|
441
|
+
// ==========================================================================
|
|
386
442
|
// Guideline Categories
|
|
387
443
|
// ==========================================================================
|
|
388
444
|
/** LCD (Local Coverage Determination) guidelines */
|
|
@@ -402,6 +458,7 @@ var SequoiaCodesClient = class {
|
|
|
402
458
|
this.hcpcs = new HcpcsCategory(boundRequest);
|
|
403
459
|
this.loinc = new LoincCategory(boundRequest);
|
|
404
460
|
this.rxnorm = new RxnormCategory(boundRequest);
|
|
461
|
+
this.lifeExpectancy = new LifeExpectancyCategory(boundRequest);
|
|
405
462
|
this.lcd = new LcdCategory(boundRequest);
|
|
406
463
|
this.ncd = new NcdCategory(boundRequest);
|
|
407
464
|
}
|
|
@@ -451,6 +508,7 @@ export {
|
|
|
451
508
|
HcpcsCategory,
|
|
452
509
|
Icd10Category,
|
|
453
510
|
LcdCategory,
|
|
511
|
+
LifeExpectancyCategory,
|
|
454
512
|
LoincCategory,
|
|
455
513
|
NcdCategory,
|
|
456
514
|
RxnormCategory,
|
package/dist/mcp.js
CHANGED
|
@@ -271,6 +271,57 @@ var NcdCategory = class {
|
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
|
+
var LELookupByAgeInputSchema = import_zod.z.object({
|
|
275
|
+
age: import_zod.z.number().int().min(0).max(125),
|
|
276
|
+
gender: import_zod.z.enum(["male", "female", "total"]).optional()
|
|
277
|
+
});
|
|
278
|
+
var LELookupBatchInputSchema = import_zod.z.object({
|
|
279
|
+
ages: import_zod.z.array(import_zod.z.number().int().min(0).max(125)).min(1).max(500),
|
|
280
|
+
gender: import_zod.z.enum(["male", "female", "total"]).optional()
|
|
281
|
+
});
|
|
282
|
+
var LEGetTableInputSchema = import_zod.z.object({
|
|
283
|
+
gender: import_zod.z.enum(["male", "female", "total"]).optional(),
|
|
284
|
+
min_age: import_zod.z.number().int().min(0).optional(),
|
|
285
|
+
max_age: import_zod.z.number().int().max(125).optional()
|
|
286
|
+
});
|
|
287
|
+
var LifeExpectancyCategory = class {
|
|
288
|
+
constructor(request) {
|
|
289
|
+
this.request = request;
|
|
290
|
+
}
|
|
291
|
+
async lookupByAge(input) {
|
|
292
|
+
const validated = LELookupByAgeInputSchema.parse(input);
|
|
293
|
+
return this.request(
|
|
294
|
+
"lifeExpectancy/lookupByAge",
|
|
295
|
+
validated
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
async lookupBatch(input) {
|
|
299
|
+
const validated = LELookupBatchInputSchema.parse(input);
|
|
300
|
+
return this.request(
|
|
301
|
+
"lifeExpectancy/lookupBatch",
|
|
302
|
+
validated
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
async getTable(input) {
|
|
306
|
+
const validated = LEGetTableInputSchema.parse(input ?? {});
|
|
307
|
+
return this.request(
|
|
308
|
+
"lifeExpectancy/getTable",
|
|
309
|
+
validated
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
async getVersion() {
|
|
313
|
+
return this.request(
|
|
314
|
+
"lifeExpectancy/getVersion",
|
|
315
|
+
{}
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
async getStats() {
|
|
319
|
+
return this.request("lifeExpectancy/getStats", {});
|
|
320
|
+
}
|
|
321
|
+
async health() {
|
|
322
|
+
return this.request("lifeExpectancy/health", {});
|
|
323
|
+
}
|
|
324
|
+
};
|
|
274
325
|
|
|
275
326
|
// src/schemas/clinical.ts
|
|
276
327
|
var import_zod2 = require("zod");
|
|
@@ -391,6 +442,11 @@ var SequoiaCodesClient = class {
|
|
|
391
442
|
/** RxNorm drug/medication codes */
|
|
392
443
|
rxnorm;
|
|
393
444
|
// ==========================================================================
|
|
445
|
+
// Actuarial / Reference Data Categories
|
|
446
|
+
// ==========================================================================
|
|
447
|
+
/** Life Expectancy actuarial tables (CDC/CMS WCMSA standard) */
|
|
448
|
+
lifeExpectancy;
|
|
449
|
+
// ==========================================================================
|
|
394
450
|
// Guideline Categories
|
|
395
451
|
// ==========================================================================
|
|
396
452
|
/** LCD (Local Coverage Determination) guidelines */
|
|
@@ -410,6 +466,7 @@ var SequoiaCodesClient = class {
|
|
|
410
466
|
this.hcpcs = new HcpcsCategory(boundRequest);
|
|
411
467
|
this.loinc = new LoincCategory(boundRequest);
|
|
412
468
|
this.rxnorm = new RxnormCategory(boundRequest);
|
|
469
|
+
this.lifeExpectancy = new LifeExpectancyCategory(boundRequest);
|
|
413
470
|
this.lcd = new LcdCategory(boundRequest);
|
|
414
471
|
this.ncd = new NcdCategory(boundRequest);
|
|
415
472
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequoiaport/codes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-beta.2",
|
|
4
4
|
"description": "Retrieve ICD-10, CPT, SNOMED, and more medical codes via the Sequoia Codes API.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"snomed",
|
|
23
23
|
"lcd",
|
|
24
24
|
"ncd",
|
|
25
|
+
"life-expectancy",
|
|
26
|
+
"actuarial",
|
|
25
27
|
"clinical",
|
|
26
28
|
"codes",
|
|
27
29
|
"medical",
|
|
@@ -38,6 +40,12 @@
|
|
|
38
40
|
"url": "https://github.com/Sequoia-Port/codes/issues"
|
|
39
41
|
},
|
|
40
42
|
"author": "wconvery",
|
|
43
|
+
"contributors": [
|
|
44
|
+
{
|
|
45
|
+
"name": "jyito",
|
|
46
|
+
"email": "jito@sequoiaport.com"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
41
49
|
"license": "MIT",
|
|
42
50
|
"publishConfig": {
|
|
43
51
|
"access": "public"
|