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