@lowlysre/icd-10-cm 2.0.0 → 3.1.0
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 +57 -14
- package/data/icd10.min.json +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +27 -7
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getICD10Description = exports.normalizeICD10Code = exports.ensureICD10DatasetLoaded = void 0;
|
|
3
|
+
exports.getICD10Description = exports.normalizeICD10Code = exports.ensureICD10DatasetLoaded = exports.ICD10_CM_RELEASE = void 0;
|
|
4
4
|
const node_fs_1 = require("node:fs");
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
|
+
exports.ICD10_CM_RELEASE = Object.freeze({
|
|
7
|
+
fiscalYear: 2027,
|
|
8
|
+
effectiveDate: "2026-10-01",
|
|
9
|
+
codeCount: 74879,
|
|
10
|
+
});
|
|
6
11
|
const ensureICD10DatasetLoaded = (data) => {
|
|
7
12
|
const datasetHasEntries = data && Object.keys(data).length > 0;
|
|
8
13
|
if (!datasetHasEntries) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export type ICD10Dictionary = {
|
|
2
2
|
[code: string]: string;
|
|
3
3
|
};
|
|
4
|
+
export type ICD10CMRelease = {
|
|
5
|
+
readonly fiscalYear: number;
|
|
6
|
+
readonly effectiveDate: string;
|
|
7
|
+
readonly codeCount: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ICD10_CM_RELEASE: ICD10CMRelease;
|
|
4
10
|
export declare const ensureICD10DatasetLoaded: (data: ICD10Dictionary) => ICD10Dictionary;
|
|
5
11
|
export declare const normalizeICD10Code: (code: string) => string;
|
|
6
12
|
export declare const getICD10Description: (code: string) => string | undefined;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { getICD10Description } from "./index.cjs";
|
|
2
|
-
export { getICD10Description, ensureICD10DatasetLoaded, normalizeICD10Code, } from "./index.cjs";
|
|
3
|
-
export type { ICD10Dictionary } from "./index.cjs";
|
|
2
|
+
export { getICD10Description, ensureICD10DatasetLoaded, normalizeICD10Code, ICD10_CM_RELEASE, } from "./index.cjs";
|
|
3
|
+
export type { ICD10Dictionary, ICD10CMRelease } from "./index.cjs";
|
|
4
4
|
export default getICD10Description;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { getICD10Description } from "./index.cjs";
|
|
2
|
-
export { getICD10Description, ensureICD10DatasetLoaded, normalizeICD10Code, } from "./index.cjs";
|
|
2
|
+
export { getICD10Description, ensureICD10DatasetLoaded, normalizeICD10Code, ICD10_CM_RELEASE, } from "./index.cjs";
|
|
3
3
|
export default getICD10Description;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowlysre/icd-10-cm",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "ICD-10-CM (
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "FY2027 ICD-10-CM diagnosis codes and descriptions (CDC/NCHS, effective October 1, 2026) with TypeScript types and zero dependencies",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.cts",
|
|
@@ -23,9 +23,13 @@
|
|
|
23
23
|
"types": "./dist/index.d.cts",
|
|
24
24
|
"default": "./dist/index.cjs"
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
27
28
|
},
|
|
28
29
|
"sideEffects": false,
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22"
|
|
32
|
+
},
|
|
29
33
|
"author": "John McCall",
|
|
30
34
|
"license": "MIT",
|
|
31
35
|
"files": [
|
|
@@ -38,7 +42,12 @@
|
|
|
38
42
|
"tag": "latest"
|
|
39
43
|
},
|
|
40
44
|
"repository": {
|
|
41
|
-
"
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/lowlysre/icd-10-cm.git"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/lowlysre/icd-10-cm#readme",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/lowlysre/icd-10-cm/issues"
|
|
42
51
|
},
|
|
43
52
|
"keywords": [
|
|
44
53
|
"icd",
|
|
@@ -46,13 +55,24 @@
|
|
|
46
55
|
"icd-code",
|
|
47
56
|
"icd10",
|
|
48
57
|
"icd-10-cm",
|
|
58
|
+
"icd10cm",
|
|
59
|
+
"icd-10-cm-codes",
|
|
60
|
+
"diagnosis",
|
|
61
|
+
"diagnosis-codes",
|
|
49
62
|
"medical",
|
|
63
|
+
"medical-coding",
|
|
64
|
+
"medical-billing",
|
|
50
65
|
"healthcare",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
66
|
+
"health-data",
|
|
67
|
+
"cdc",
|
|
68
|
+
"nchs",
|
|
69
|
+
"cms",
|
|
70
|
+
"fhir",
|
|
71
|
+
"fy2027",
|
|
72
|
+
"typescript"
|
|
53
73
|
],
|
|
54
74
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^
|
|
75
|
+
"@types/node": "^26.1.1",
|
|
56
76
|
"oxlint": "^1.0.0",
|
|
57
77
|
"prettier": "^3.3.2",
|
|
58
78
|
"typescript": "^7.0.2"
|