@sequoiaport/codes 0.1.4-beta.4 → 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/README.md +67 -1
- package/package.json +1 -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 **
|
|
5
|
+
Query **ICD-10**, **CPT**, **HCPCS**, **SNOMED CT**, **LOINC**, **RxNorm**, and **NDC** codes through a single client. The SDK also covers **LCD/NCD** coverage guidelines, **Life Expectancy** actuarial tables (CDC/CMS WCMSA standard), **4-tier cost projections** (Medicare, Commercial, 80th Percentile, Billed Charges), 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,10 +47,18 @@ console.log(cptResults.results);
|
|
|
47
47
|
- **`client.loinc`** - LOINC laboratory test codes
|
|
48
48
|
- **`client.rxnorm`** - RxNorm drug/medication codes
|
|
49
49
|
|
|
50
|
+
### Drug Identification
|
|
51
|
+
|
|
52
|
+
- **`client.ndc`** - FDA NDC Directory (drug product identification, package lookup, RxNorm cross-reference)
|
|
53
|
+
|
|
50
54
|
### Actuarial / Reference Data
|
|
51
55
|
|
|
52
56
|
- **`client.lifeExpectancy`** - CDC/CMS WCMSA life expectancy actuarial tables
|
|
53
57
|
|
|
58
|
+
### Cost Projection
|
|
59
|
+
|
|
60
|
+
- **`client.cost`** - 4-tier surgical/procedural cost estimates (Medicare, Commercial, 80th %ile, Billed)
|
|
61
|
+
|
|
54
62
|
### Guidelines
|
|
55
63
|
|
|
56
64
|
- **`client.lcd`** - Local Coverage Determinations
|
|
@@ -144,6 +152,57 @@ const rxcuiResult = await client.rxnorm.identifyCode({
|
|
|
144
152
|
const ingredients = await client.rxnorm.getIngredients({ rxcui: "861004" });
|
|
145
153
|
```
|
|
146
154
|
|
|
155
|
+
### NDC (Drug Products)
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
// Look up a drug by NDC (any format: dashed, 10-digit, 11-digit)
|
|
159
|
+
const product = await client.ndc.lookupNdc({ ndc: "0071-0157-23" });
|
|
160
|
+
console.log(product.result?.brand_name); // "Lipitor"
|
|
161
|
+
|
|
162
|
+
// Search by drug name
|
|
163
|
+
const results = await client.ndc.searchProducts({ query: "metformin", limit: 10 });
|
|
164
|
+
|
|
165
|
+
// Fuzzy search (handles misspellings)
|
|
166
|
+
const fuzzy = await client.ndc.searchFuzzy({ query: "acetaminofen" });
|
|
167
|
+
|
|
168
|
+
// Batch lookup
|
|
169
|
+
const batch = await client.ndc.lookupBatch({ ndcs: ["0071-0157-23", "0006-3026-02"] });
|
|
170
|
+
|
|
171
|
+
// Cross-reference with RxNorm
|
|
172
|
+
const crossRef = await client.ndc.crossRefRxcui({ ndc: "0071-0157-23" });
|
|
173
|
+
|
|
174
|
+
// Get packages for a product
|
|
175
|
+
const packages = await client.ndc.getPackages({ productNdc: "0071-0157" });
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Cost Projection
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
// Full 4-tier cost projection (Medicare, Commercial, 80th %ile, Billed)
|
|
182
|
+
const tiered = await client.cost.projectCostTiered({
|
|
183
|
+
cpt_codes: ["27447"],
|
|
184
|
+
zip_code: "60601",
|
|
185
|
+
include_anesthesia: true,
|
|
186
|
+
});
|
|
187
|
+
console.log(tiered.result?.medicare.total);
|
|
188
|
+
console.log(tiered.result?.commercial.total);
|
|
189
|
+
|
|
190
|
+
// Medicare-only projection
|
|
191
|
+
const medicare = await client.cost.projectCost({
|
|
192
|
+
cpt_codes: ["99213", "99214"],
|
|
193
|
+
zip_code: "10001",
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// MPFS rate lookup
|
|
197
|
+
const mpfs = await client.cost.lookupMPFS({ cpt_code: "99213", zip_code: "10001" });
|
|
198
|
+
|
|
199
|
+
// DRG-based facility fee
|
|
200
|
+
const fee = await client.cost.lookupFacilityFee({ cpt_code: "27447", zip_code: "60601" });
|
|
201
|
+
|
|
202
|
+
// WCMSA designated medical centers
|
|
203
|
+
const facilities = await client.cost.getFacilities({ zip_code: "60601" });
|
|
204
|
+
```
|
|
205
|
+
|
|
147
206
|
### Guidelines (LCD/NCD)
|
|
148
207
|
|
|
149
208
|
```typescript
|
|
@@ -247,8 +306,13 @@ import type {
|
|
|
247
306
|
CPTCode,
|
|
248
307
|
LoincCode,
|
|
249
308
|
RxnormDrug,
|
|
309
|
+
NdcProduct,
|
|
310
|
+
NdcPackage,
|
|
250
311
|
LifeExpectancyResult,
|
|
251
312
|
LEVersionInfo,
|
|
313
|
+
TierBreakdown,
|
|
314
|
+
MPFSRate,
|
|
315
|
+
CostProjectTieredOutput,
|
|
252
316
|
} from "@sequoiaport/codes";
|
|
253
317
|
```
|
|
254
318
|
|
|
@@ -282,7 +346,9 @@ npx skills add sequoia-port/codes --skill life-expectancy
|
|
|
282
346
|
| `hcpcs-codes` | HCPCS Level II code search, lookup, and cost |
|
|
283
347
|
| `loinc-codes` | LOINC laboratory test code search, lookup, and panel members |
|
|
284
348
|
| `rxnorm-codes` | RxNorm drug code search, NDC/RXCUI lookup, and ingredients |
|
|
349
|
+
| `ndc-codes` | FDA NDC Directory lookup, product search, fuzzy search, and RxNorm cross-reference |
|
|
285
350
|
| `life-expectancy` | CDC/CMS life expectancy actuarial table lookups for WCMSA calculations |
|
|
351
|
+
| `cost-projection` | 4-tier surgical cost projections (Medicare, Commercial, 80th %ile, Billed Charges) |
|
|
286
352
|
|
|
287
353
|
Skills are compatible with Claude Code, Cursor, GitHub Copilot, Gemini, and [17+ other agents](https://skills.sh).
|
|
288
354
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequoiaport/codes",
|
|
3
|
-
"version": "0.1.4-beta.
|
|
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",
|