@sequoiaport/codes 0.1.0 → 0.1.2-beta.1

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 (2) hide show
  1. package/README.md +34 -3
  2. package/package.json +9 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Official TypeScript/JavaScript SDK for the [Sequoia Codes API](https://sequoiacodes.com) — a unified API for medical code search and lookup.
4
4
 
5
- Query **ICD-10**, **CPT**, **HCPCS**, **SNOMED CT**, **LOINC**, and **RxNorm** codes through a single client. The SDK also covers **LCD/NCD** coverage guidelines and a **clinical orchestrator** for cross-system operations like coverage checks and diagnosis-to-procedure mapping.
5
+ Query **ICD-10**, **CPT**, **HCPCS**, **SNOMED CT**, **LOINC**, and **RxNorm** codes through a single client. The SDK also covers **LCD/NCD** coverage guidelines, **Life Expectancy** actuarial tables (CDC/CMS WCMSA standard), and a **clinical orchestrator** for cross-system operations like coverage checks and diagnosis-to-procedure mapping.
6
6
 
7
7
  - Fully typed with Zod-validated responses
8
8
  - Supports both ESM and CommonJS
@@ -47,6 +47,10 @@ console.log(cptResults.results);
47
47
  - **`client.loinc`** - LOINC laboratory test codes
48
48
  - **`client.rxnorm`** - RxNorm drug/medication codes
49
49
 
50
+ ### Actuarial / Reference Data
51
+
52
+ - **`client.lifeExpectancy`** - CDC/CMS WCMSA life expectancy actuarial tables
53
+
50
54
  ### Guidelines
51
55
 
52
56
  - **`client.lcd`** - Local Coverage Determinations
@@ -156,6 +160,29 @@ const ncdResults = await client.ncd.searchGuidelines({ query: "oxygen" });
156
160
  const ncd = await client.ncd.identifyGuideline({ section: "220.6" });
157
161
  ```
158
162
 
163
+ ### Life Expectancy
164
+
165
+ ```typescript
166
+ // Look up life expectancy for a 65-year-old
167
+ const le = await client.lifeExpectancy.lookupByAge({ age: 65 });
168
+ console.log(le.result?.ex); // e.g. 19.09 years
169
+
170
+ // Batch lookup for multiple ages
171
+ const batch = await client.lifeExpectancy.lookupBatch({
172
+ ages: [30, 50, 70],
173
+ gender: "female",
174
+ });
175
+
176
+ // Get the full actuarial life table
177
+ const table = await client.lifeExpectancy.getTable({ gender: "total" });
178
+
179
+ // Get active dataset version metadata
180
+ const version = await client.lifeExpectancy.getVersion();
181
+
182
+ // Health check
183
+ const health = await client.lifeExpectancy.health();
184
+ ```
185
+
159
186
  ### Clinical Orchestrator
160
187
 
161
188
  ```typescript
@@ -220,6 +247,8 @@ import type {
220
247
  CPTCode,
221
248
  LoincCode,
222
249
  RxnormDrug,
250
+ LifeExpectancyResult,
251
+ LEVersionInfo,
223
252
  } from "@sequoiaport/codes";
224
253
  ```
225
254
 
@@ -234,24 +263,26 @@ This SDK includes agent skills compatible with the [Vercel Agent Skills](https:/
234
263
  npx skills add sequoia-port/codes
235
264
 
236
265
  # Or install individual skills
237
- npx skills add sequoia-port/codes --skill icd-10-codes
266
+ npx skills add sequoia-port/codes --skill icd10-codes
238
267
  npx skills add sequoia-port/codes --skill cpt-codes
239
268
  npx skills add sequoia-port/codes --skill snomed-codes
240
269
  npx skills add sequoia-port/codes --skill hcpcs-codes
241
270
  npx skills add sequoia-port/codes --skill loinc-codes
242
271
  npx skills add sequoia-port/codes --skill rxnorm-codes
272
+ npx skills add sequoia-port/codes --skill life-expectancy
243
273
  ```
244
274
 
245
275
  ### Available Skills
246
276
 
247
277
  | Skill | Description |
248
278
  |-------|-------------|
249
- | `icd-10-codes` | ICD-10 diagnosis code search and lookup |
279
+ | `icd10-codes` | ICD-10 diagnosis code search and lookup |
250
280
  | `cpt-codes` | CPT procedure code search, lookup, cost/RVU, and ICD-10 linking |
251
281
  | `snomed-codes` | SNOMED CT clinical terminology search and lookup |
252
282
  | `hcpcs-codes` | HCPCS Level II code search, lookup, and cost |
253
283
  | `loinc-codes` | LOINC laboratory test code search, lookup, and panel members |
254
284
  | `rxnorm-codes` | RxNorm drug code search, NDC/RXCUI lookup, and ingredients |
285
+ | `life-expectancy` | CDC/CMS life expectancy actuarial table lookups for WCMSA calculations |
255
286
 
256
287
  Skills are compatible with Claude Code, Cursor, GitHub Copilot, Gemini, and [17+ other agents](https://skills.sh).
257
288
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequoiaport/codes",
3
- "version": "0.1.0",
3
+ "version": "0.1.2-beta.1",
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"