@cosyte/dicom 0.0.1 → 0.0.3

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/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ var __export = (target, all) => {
9
9
  };
10
10
 
11
11
  // src/version.ts
12
- var VERSION = "0.0.1";
12
+ var VERSION = "0.0.3";
13
13
 
14
14
  // src/dictionary/index.ts
15
15
  var dictionary_exports = {};
@@ -10998,7 +10998,7 @@ var Dataset = class {
10998
10998
  /**
10999
10999
  * All elements matching a tag as an array (never `undefined`). A dataset
11000
11000
  * holds at most one element per tag, so this returns a 0- or 1-length
11001
- * array — the convenience complement of {@link Dataset.get} for callers
11001
+ * array - the convenience complement of {@link Dataset.get} for callers
11002
11002
  * that prefer an always-array shape.
11003
11003
  *
11004
11004
  * @example
@@ -11014,7 +11014,7 @@ var Dataset = class {
11014
11014
  }
11015
11015
  /**
11016
11016
  * Patient-identity view (§4.1). Fail-safe typed-absent fields; `id` is
11017
- * **not** globally unique — match on the `{id, issuerOfId, ...}` tuple
11017
+ * **not** globally unique - match on the `{id, issuerOfId, ...}` tuple
11018
11018
  * plus `otherIds`, never on a bare `(0010,0020)`. Memoised on first read.
11019
11019
  *
11020
11020
  * @example
@@ -11296,7 +11296,7 @@ function decodeText(bytes, terms) {
11296
11296
 
11297
11297
  // src/parser/warnings.ts
11298
11298
  var WARNING_CODES = {
11299
- // === Phase 2 actively emits (D-08 active list — alphabetical-within-prefix per CONTEXT specifics §) ===
11299
+ // === Phase 2 actively emits (D-08 active list - alphabetical-within-prefix per CONTEXT specifics §) ===
11300
11300
  DICOM_EMPTY_ITEM_IN_SEQUENCE: "DICOM_EMPTY_ITEM_IN_SEQUENCE",
11301
11301
  DICOM_FILE_META_GROUP_LENGTH_MISMATCH: "DICOM_FILE_META_GROUP_LENGTH_MISMATCH",
11302
11302
  DICOM_FILE_META_GROUP_LENGTH_MISSING: "DICOM_FILE_META_GROUP_LENGTH_MISSING",
@@ -11310,7 +11310,7 @@ var WARNING_CODES = {
11310
11310
  DICOM_UN_PARSED_AS_SQ: "DICOM_UN_PARSED_AS_SQ",
11311
11311
  DICOM_UNDEFINED_LENGTH_IN_EXPLICIT_VR: "DICOM_UNDEFINED_LENGTH_IN_EXPLICIT_VR",
11312
11312
  DICOM_VR_MISMATCH: "DICOM_VR_MISMATCH",
11313
- // === VR-decode-time codes (declared but not emitted in Phase 2; Phase 3 lazy decoders fire these — D-08, D-42) ===
11313
+ // === VR-decode-time codes (declared but not emitted in Phase 2; Phase 3 lazy decoders fire these - D-08, D-42) ===
11314
11314
  DICOM_BOM_IN_TEXT_VR: "DICOM_BOM_IN_TEXT_VR",
11315
11315
  DICOM_DA_LEGACY_FORMAT: "DICOM_DA_LEGACY_FORMAT",
11316
11316
  DICOM_DT_NONSTANDARD_OFFSET: "DICOM_DT_NONSTANDARD_OFFSET",
@@ -11318,14 +11318,14 @@ var WARNING_CODES = {
11318
11318
  DICOM_NON_ASCII_IN_ASCII_VR: "DICOM_NON_ASCII_IN_ASCII_VR",
11319
11319
  DICOM_TRAILING_NULL_IN_TEXT_VR: "DICOM_TRAILING_NULL_IN_TEXT_VR",
11320
11320
  DICOM_UI_TRAILING_SPACE: "DICOM_UI_TRAILING_SPACE",
11321
- // === Phase 4 charset-decode codes (declared, not emitted in Phase 2 — D-08, D-43) ===
11321
+ // === Phase 4 charset-decode codes (declared, not emitted in Phase 2 - D-08, D-43) ===
11322
11322
  DICOM_CHARSET_AMBIGUOUS_SEPARATOR: "DICOM_CHARSET_AMBIGUOUS_SEPARATOR",
11323
11323
  DICOM_UNSUPPORTED_CHARSET: "DICOM_UNSUPPORTED_CHARSET",
11324
11324
  // === Reserved by later phases (declared, not emitted in Phase 2) ===
11325
11325
  DICOM_BURNED_IN_ANNOTATION_NOT_REMOVED: "DICOM_BURNED_IN_ANNOTATION_NOT_REMOVED",
11326
- // reserved by Phase 7 — not emitted in Phase 2
11326
+ // reserved by Phase 7 - not emitted in Phase 2
11327
11327
  DICOM_PRIVATE_CREATOR_UNKNOWN: "DICOM_PRIVATE_CREATOR_UNKNOWN"
11328
- // reserved by Phase 6 — not emitted in Phase 2
11328
+ // reserved by Phase 6 - not emitted in Phase 2
11329
11329
  };
11330
11330
  function missingPreamble(position) {
11331
11331
  return {
@@ -12198,7 +12198,7 @@ var Element = class {
12198
12198
  }
12199
12199
  /**
12200
12200
  * The decoded value of this element, by VR. Decode is lazy (the structural
12201
- * parse stays eager; field decode runs on first access) and memoized — the
12201
+ * parse stays eager; field decode runs on first access) and memoized - the
12202
12202
  * documented ~30× win on large studies where most fields are never read.
12203
12203
  * Fail-safe: never throws; a malformed value surfaces as typed-absent with
12204
12204
  * the deviation on the returned value's `warnings`.
@@ -12485,7 +12485,7 @@ function parseImplicitLE(buffer, datasetStart, ctx, emit, opts = {}) {
12485
12485
  new Element({
12486
12486
  tag,
12487
12487
  vr,
12488
- // Phase 2 placeholder — Phase 3 derives VM from VR + value layout.
12488
+ // Phase 2 placeholder - Phase 3 derives VM from VR + value layout.
12489
12489
  vm: 1,
12490
12490
  length,
12491
12491
  rawBytes: valueSlice,
@@ -12729,7 +12729,7 @@ function _parseExplicit(buffer, datasetStart, ctx, emit, mode, opts = {}) {
12729
12729
  new Element({
12730
12730
  tag,
12731
12731
  vr: finalVr,
12732
- // Phase 2 placeholder — Phase 3 derives VM from VR + value layout.
12732
+ // Phase 2 placeholder - Phase 3 derives VM from VR + value layout.
12733
12733
  vm: 1,
12734
12734
  length,
12735
12735
  rawBytes: valueSlice,