@cosyte/hl7 0.1.0 → 0.1.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.
- package/CHANGELOG.md +12 -4
- package/README.md +4 -3
- package/TRADEMARKS.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +28 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a729b07: The MSH-2 encoding-characters error message and the published documentation comments now write a range with "to" instead of an en dash, so the message reads "must be 4 (v2.1 to v2.6) or 5 (v2.7+ adds truncation) characters".
|
|
8
|
+
|
|
9
|
+
Code that matches that error message by its text should match the new wording. The error's class and fatal code are unchanged.
|
|
10
|
+
|
|
3
11
|
## 0.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -709,13 +717,13 @@ section stubs that existed to receive the next hand-written entry. No entry was
|
|
|
709
717
|
|
|
710
718
|
The entries below follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the generated
|
|
711
719
|
sections above use the format Changesets writes, which is a version heading and a list of the
|
|
712
|
-
changes that release consumed. Versions follow the
|
|
720
|
+
changes that release consumed. Versions follow the Cosyte pre-alpha ladder, `0.0.x` until first
|
|
713
721
|
alpha, rather than [Semantic Versioning](https://semver.org/spec/v2.0.0.html) alone. An earlier
|
|
714
722
|
`0.1.0` tag was prepared but never published, which is why the public history begins at `0.0.x`.
|
|
715
723
|
|
|
716
724
|
### Added
|
|
717
725
|
|
|
718
|
-
- **The
|
|
726
|
+
- **The Cosyte brand banner heads `README.md` (`ASSETS-P8`, the consuming half).** A plain markdown
|
|
719
727
|
image on the first line of the file, above the H1, pointing at the absolute HTTPS URL published
|
|
720
728
|
for `hl7` in the `assets` repo's `published-urls.json` contract
|
|
721
729
|
(`https://cosyte.com/social/cosyte-banner-hl7-1200x300.png`, `status: live` on
|
|
@@ -879,7 +887,7 @@ precision` reads worse than the text it replaced. The datetime page needed more
|
|
|
879
887
|
published package surface, parser behavior, or warning codes.
|
|
880
888
|
- **Em-dash brand gate in CI (`scripts/check-no-emdash.sh`, `pnpm check:no-emdash`,
|
|
881
889
|
`.github/workflows/no-emdash.yml`; `EMDASH-CONFORMANCE` part 1).** The founder directive of
|
|
882
|
-
2026-07-24 (`knowledgebase/06-brand/voice-and-tone.md`) bans `U+2014` outright across every
|
|
890
|
+
2026-07-24 (`knowledgebase/06-brand/voice-and-tone.md`) bans `U+2014` outright across every Cosyte
|
|
883
891
|
surface and names commit messages explicitly, and the meta-repo's `documentation/conventions.md`
|
|
884
892
|
has described the rule as CI-gated; it was in fact gated in only 3 repos of 10. This ports
|
|
885
893
|
`knowledgebase`'s scanner (the text-only variant, correct here because hl7 tracks no binaries:
|
|
@@ -1119,7 +1127,7 @@ kind, value)`** sets one at a field or `field[rep]` dot-path. Component values a
|
|
|
1119
1127
|
reports `phi-scan ✓`. Dev-tooling only: no change to the published package surface or warning codes.
|
|
1120
1128
|
|
|
1121
1129
|
- **Trademark notice (`TRADEMARKS.md`).** This package names third-party systems to describe what it
|
|
1122
|
-
interoperates with; the notice records that
|
|
1130
|
+
interoperates with; the notice records that Cosyte is not affiliated with, endorsed by, or
|
|
1123
1131
|
sponsored by any of them, that every reference is descriptive, and that the built-in profiles are
|
|
1124
1132
|
authored from public sources only. Added to `files` so it ships inside the published tarball, not
|
|
1125
1133
|
just on GitHub. Documentation only: no runtime or API change.
|
package/README.md
CHANGED
|
@@ -665,8 +665,9 @@ it catches `NaN`, which would otherwise render as `+NaN:NaN`. Every real zone on
|
|
|
665
665
|
it (the widest in use is 14 hours east), a stated offset still wins outright over any
|
|
666
666
|
`assumeOffsetMinutes` beside it, and `parseDtm`, `formatDtm` and `dtmToDate` are unchanged.
|
|
667
667
|
|
|
668
|
-
**Using two `@cosyte` parsers in one file.** The three names are identical in
|
|
669
|
-
|
|
668
|
+
**Using two `@cosyte` parsers in one file.** The three names are identical in `@cosyte/hl7`,
|
|
669
|
+
`@cosyte/x12`, `@cosyte/dicom`, `@cosyte/ncpdp`, `@cosyte/astm` and `@cosyte/ccda`, so importing two
|
|
670
|
+
of them into one file collides. Alias on import:
|
|
670
671
|
|
|
671
672
|
```ts
|
|
672
673
|
import { parseDtm, toISO as hl7ToISO } from "@cosyte/hl7";
|
|
@@ -1314,7 +1315,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for dev setup, how to file an issue, an
|
|
|
1314
1315
|
|
|
1315
1316
|
## Trademarks
|
|
1316
1317
|
|
|
1317
|
-
Epic, Cerner, MEDITECH, athenahealth, LabCorp, Quest Diagnostics, Visage (Visage Imaging), and Philips (Vue PACS) are trademarks of their respective owners.
|
|
1318
|
+
Epic, Cerner, MEDITECH, athenahealth, LabCorp, Quest Diagnostics, Visage (Visage Imaging), and Philips (Vue PACS) are trademarks of their respective owners. Cosyte is not affiliated with, endorsed by, or
|
|
1318
1319
|
sponsored by any of them: the names identify the systems whose real-world message quirks the built-in profiles accommodate. See [TRADEMARKS.md](./TRADEMARKS.md).
|
|
1319
1320
|
|
|
1320
1321
|
## License
|
package/TRADEMARKS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Trademarks
|
|
2
2
|
|
|
3
|
-
`@cosyte/hl7` is an independent open-source project.
|
|
3
|
+
`@cosyte/hl7` is an independent open-source project. Cosyte is **not affiliated with, endorsed by,
|
|
4
4
|
or sponsored by** any company named in this repository or its documentation.
|
|
5
5
|
|
|
6
6
|
## Why these names appear
|
package/dist/index.cjs
CHANGED
|
@@ -103,7 +103,7 @@ function readDelimiters(firstSegment) {
|
|
|
103
103
|
if (chars.length !== 4 && chars.length !== 5) {
|
|
104
104
|
throw new Hl7ParseError(
|
|
105
105
|
FATAL_CODES.INVALID_ENCODING_CHARACTERS,
|
|
106
|
-
`MSH-2 encoding characters must be 4 (v2.1
|
|
106
|
+
`MSH-2 encoding characters must be 4 (v2.1 to v2.6) or 5 (v2.7+ adds truncation) characters (got ${String(chars.length)}).`,
|
|
107
107
|
fatalPosition,
|
|
108
108
|
snip
|
|
109
109
|
);
|
|
@@ -14901,7 +14901,7 @@ async function* parseStream(source, optionsOrProfile) {
|
|
|
14901
14901
|
}
|
|
14902
14902
|
|
|
14903
14903
|
// src/index.ts
|
|
14904
|
-
var VERSION = "0.1.
|
|
14904
|
+
var VERSION = "0.1.1";
|
|
14905
14905
|
|
|
14906
14906
|
exports.ACK_CODES = ACK_CODES;
|
|
14907
14907
|
exports.ACK_CONDITIONS = ACK_CONDITIONS;
|