@cosyte/terminology 0.0.1 → 0.0.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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@cosyte/terminology",
3
- "version": "0.0.1",
4
- "description": "Terminology parser, serializer, and builder for Node.js and TypeScript — lenient on parse, spec-clean on emit.",
3
+ "version": "0.0.2",
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",
7
- "parser",
7
+ "fhir",
8
8
  "healthcare",
9
9
  "interoperability",
10
10
  "typescript",
11
- "serializer"
11
+ "code-systems"
12
12
  ],
13
13
  "homepage": "https://github.com/cosyte/terminology#readme",
14
14
  "bugs": {
@@ -44,7 +44,8 @@
44
44
  "dist",
45
45
  "README.md",
46
46
  "LICENSE",
47
- "CHANGELOG.md"
47
+ "CHANGELOG.md",
48
+ "vendor/ucum/NOTICE.md"
48
49
  ],
49
50
  "sideEffects": false,
50
51
  "publishConfig": {
@@ -83,6 +84,7 @@
83
84
  "gen:ucum": "tsx scripts/generate-ucum-essence-data.ts",
84
85
  "typecheck": "tsc --noEmit",
85
86
  "phi-scan": "tsx scripts/phi-scan.ts",
87
+ "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
86
88
  "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
87
89
  "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
88
90
  "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
@@ -93,7 +95,7 @@
93
95
  "clean": "rm -rf dist coverage",
94
96
  "pack:docs": "bash scripts/build-docs-artifacts.sh",
95
97
  "attw": "attw --pack .",
96
- "version": "changeset version && prettier --write package.json CHANGELOG.md",
98
+ "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
97
99
  "release": "changeset publish"
98
100
  }
99
101
  }
@@ -0,0 +1,48 @@
1
+ # Vendored UCUM artifacts — attribution & license notices
2
+
3
+ This directory contains **verbatim, unmodified** third-party artifacts vendored into
4
+ `@cosyte/terminology`. They are reproduced here under their own licenses; the notices below are
5
+ required by those licenses. `@cosyte/terminology`'s own code is MIT (see the repo `LICENSE`).
6
+
7
+ **This file ships inside the npm tarball** (`package.json`'s `files` names it), so the notices below
8
+ travel with the package that carries the UCUM table.
9
+
10
+ ## `ucum-essence.xml` — the UCUM unit table
11
+
12
+ > The Unified Code for Units of Measure (UCUM), also known as the "UCUM Specification," is
13
+ > copyright ©1999–2024, Regenstrief Institute, Inc. All rights reserved.
14
+
15
+ Reproduced verbatim under the UCUM Copyright Notice and License
16
+ (<https://ucum.org/license>), which grants a "worldwide, non-exclusive, no-charge, royalty-free,
17
+ revocable license" to reproduce, display, distribute, and develop commercial software that
18
+ interacts with UCUM, on the condition that copies carry a copyright notice, a notice referring to
19
+ the License, a notice referring to the disclaimer of warranties, and the URL of the License.
20
+
21
+ **This copy is unmodified.** The UCUM License forbids adding, deleting, or modifying the Work's
22
+ content (field names, field contents, descriptions, comments) and forbids creating Derivative
23
+ Works from the UCUM tables or specification. Accordingly:
24
+
25
+ - `ucum-essence.xml` is checked in **byte-for-byte as published** (version 2.2, revision-date
26
+ 2024-06-17). Do not edit it.
27
+ - `src/ucum/essence-data.generated.ts` embeds this exact file **verbatim** as a string constant
28
+ (only the mechanical wrapping needed to make it a TypeScript string literal is added; the UCUM
29
+ content itself is untouched). The engine parses that verbatim string at runtime to build its
30
+ in-memory lookup table. The lookup table is an ephemeral transform used solely to *interact with*
31
+ UCUM; no modified or derivative copy of the UCUM table is distributed.
32
+ - What is **distributed** is the table verbatim, and nothing else derived from it. The in-memory
33
+ lookup table exists only for the lifetime of a process that has already loaded the verbatim copy;
34
+ it is never serialized, written out, or published.
35
+
36
+ Disclaimer of warranties: the UCUM Specification is provided "as is" without warranty of any kind;
37
+ see the License for the full disclaimer.
38
+
39
+ ## `UcumFunctionalTests.xml` — the UCUM conformance suite
40
+
41
+ > This file is copyright © 2008–2009 Grahame Grieve and other contributors (Gunther Schadow,
42
+ > Lloyd Mackenzie, Vladimir Alexiev).
43
+
44
+ Reproduced verbatim under the Eclipse Public License v1.0
45
+ (<https://www.eclipse.org/legal/epl-v10.html>). Used **only** as a test fixture — it is **not** part
46
+ of the published npm package: `package.json`'s `files` does not name it, and unlike the unit table it
47
+ is not embedded in the build. Conformance is declared against the most recent history entry in the
48
+ file (3-Feb 2021).