@cosyte/terminology 0.0.12 → 0.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/CHANGELOG.md +168 -0
- package/README.md +102 -10
- package/dist/index.cjs +254 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -31
- package/dist/index.d.ts +221 -31
- package/dist/index.mjs +254 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +48 -26
- package/vendor/ucum/NOTICE.md +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosyte/terminology",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Terminology engine for US healthcare code systems in Node.js and TypeScript: FHIR $translate, $lookup, $validate-code and $expand over code systems, value sets and maps you supply.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"terminology",
|
|
@@ -8,9 +8,16 @@
|
|
|
8
8
|
"healthcare",
|
|
9
9
|
"interoperability",
|
|
10
10
|
"typescript",
|
|
11
|
-
"code-systems"
|
|
11
|
+
"code-systems",
|
|
12
|
+
"conceptmap",
|
|
13
|
+
"valueset",
|
|
14
|
+
"ucum",
|
|
15
|
+
"rxnorm",
|
|
16
|
+
"loinc",
|
|
17
|
+
"snomed-ct",
|
|
18
|
+
"icd-10"
|
|
12
19
|
],
|
|
13
|
-
"homepage": "https://
|
|
20
|
+
"homepage": "https://docs.cosyte.com/terminology",
|
|
14
21
|
"bugs": {
|
|
15
22
|
"url": "https://github.com/cosyte/terminology/issues"
|
|
16
23
|
},
|
|
@@ -24,6 +31,14 @@
|
|
|
24
31
|
"engines": {
|
|
25
32
|
"node": ">=22.0.0"
|
|
26
33
|
},
|
|
34
|
+
"packageManager": "pnpm@10.0.0",
|
|
35
|
+
"pnpm": {
|
|
36
|
+
"overrides": {
|
|
37
|
+
"esbuild@>=0.27.3 <0.28.1": "0.28.1",
|
|
38
|
+
"js-yaml@>=4.0.0 <4.3.1": "4.3.1",
|
|
39
|
+
"js-yaml@>=3.0.0 <3.15.1": "3.15.1"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
27
42
|
"main": "./dist/index.cjs",
|
|
28
43
|
"module": "./dist/index.mjs",
|
|
29
44
|
"types": "./dist/index.d.ts",
|
|
@@ -53,6 +68,33 @@
|
|
|
53
68
|
"provenance": true
|
|
54
69
|
},
|
|
55
70
|
"prettier": "@cosyte/prettier-config",
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "cosyte-process build",
|
|
73
|
+
"changeset": "changeset",
|
|
74
|
+
"gen:ucum": "tsx scripts/generate-ucum-essence-data.ts",
|
|
75
|
+
"conformance:tx": "tsx scripts/tx-conformance.ts",
|
|
76
|
+
"typecheck": "cosyte-process typecheck",
|
|
77
|
+
"phi-scan": "tsx scripts/phi-scan.ts",
|
|
78
|
+
"check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
|
|
79
|
+
"check:no-emdash": "node scripts/check-no-emdash.mjs",
|
|
80
|
+
"check:agent-notes": "node scripts/check-agent-notes.mjs",
|
|
81
|
+
"check:process": "cosyte-process check",
|
|
82
|
+
"lint": "cosyte-process lint",
|
|
83
|
+
"lint:fix": "cosyte-process lint --fix",
|
|
84
|
+
"format": "cosyte-process format",
|
|
85
|
+
"format:check": "cosyte-process format --check",
|
|
86
|
+
"test": "cosyte-process test",
|
|
87
|
+
"test:watch": "cosyte-process test --watch",
|
|
88
|
+
"test:coverage": "cosyte-process test --coverage",
|
|
89
|
+
"examples": "tsx scripts/run-examples.ts",
|
|
90
|
+
"clean": "rm -rf dist coverage",
|
|
91
|
+
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
92
|
+
"attw": "node scripts/attw.mjs",
|
|
93
|
+
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
|
|
94
|
+
"release": "changeset publish",
|
|
95
|
+
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
|
|
96
|
+
"prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
|
|
97
|
+
},
|
|
56
98
|
"simple-git-hooks": {
|
|
57
99
|
"pre-commit": "pnpm phi-scan --staged"
|
|
58
100
|
},
|
|
@@ -61,6 +103,7 @@
|
|
|
61
103
|
"@changesets/cli": "2.31.0",
|
|
62
104
|
"@cosyte/eslint-config": "^0.0.4",
|
|
63
105
|
"@cosyte/prettier-config": "^0.0.2",
|
|
106
|
+
"@cosyte/process": "0.0.2",
|
|
64
107
|
"@cosyte/test-utils": "^0.0.2",
|
|
65
108
|
"@cosyte/tsconfig": "^0.0.2",
|
|
66
109
|
"@cosyte/tsup-config": "^0.0.1",
|
|
@@ -77,26 +120,5 @@
|
|
|
77
120
|
"vite": "7.3.6",
|
|
78
121
|
"vitest": "4.1.4"
|
|
79
122
|
},
|
|
80
|
-
"dependencies": {}
|
|
81
|
-
|
|
82
|
-
"build": "tsup",
|
|
83
|
-
"changeset": "changeset",
|
|
84
|
-
"gen:ucum": "tsx scripts/generate-ucum-essence-data.ts",
|
|
85
|
-
"typecheck": "tsc --noEmit",
|
|
86
|
-
"phi-scan": "tsx scripts/phi-scan.ts",
|
|
87
|
-
"check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
|
|
88
|
-
"check:no-emdash": "node scripts/check-no-emdash.mjs",
|
|
89
|
-
"lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
|
|
90
|
-
"lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
|
|
91
|
-
"format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
|
|
92
|
-
"format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
|
|
93
|
-
"test": "vitest run",
|
|
94
|
-
"test:watch": "vitest",
|
|
95
|
-
"test:coverage": "vitest run --coverage",
|
|
96
|
-
"clean": "rm -rf dist coverage",
|
|
97
|
-
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
98
|
-
"attw": "node scripts/attw.mjs",
|
|
99
|
-
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
|
|
100
|
-
"release": "changeset publish"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
123
|
+
"dependencies": {}
|
|
124
|
+
}
|
package/vendor/ucum/NOTICE.md
CHANGED
|
@@ -45,4 +45,6 @@ Reproduced verbatim under the Eclipse Public License v1.0
|
|
|
45
45
|
(<https://www.eclipse.org/legal/epl-v10.html>). Used **only** as a test fixture, and it is **not** part
|
|
46
46
|
of the published npm package: `package.json`'s `files` does not name it, and unlike the unit table it
|
|
47
47
|
is not embedded in the build. Conformance is declared against the most recent history entry in the
|
|
48
|
-
file (3-Feb 2021)
|
|
48
|
+
file (3-Feb 2021), and only for the `validation` and `conversion` case kinds: the
|
|
49
|
+
`displayNameGeneration` and `multiplication` cases are not executed and are not claimed. The
|
|
50
|
+
package's README states the same claim in full.
|