Skip to content

Don't include tag if not needed - #52

Open
jssuttles wants to merge 4 commits into
cornerstonejs:masterfrom
jssuttles:master
Open

Don't include tag if not needed#52
jssuttles wants to merge 4 commits into
cornerstonejs:masterfrom
jssuttles:master

Conversation

@jssuttles

Copy link
Copy Markdown

#43
{
untilTag: {
tag: '',
include: false
}
}
untilTag option now takes object like above or string like before

@yagni

yagni commented Aug 2, 2016

Copy link
Copy Markdown
Collaborator

Is c55297f necessary? You can already tell if a byteArrayParser is big or little endian by comparing it to the dicomParser.bigEndianByteArrayParser and dicomParser.littleEndianByteArrayParser objects directly.

@jssuttles

Copy link
Copy Markdown
Author

Probably didn't need to push that to this pull request, however, if the dicomWriter that I wrote is to understand whether data is to be handled with little endian or big endian without having to look at the data itself, then it's a really nice helper. The dicomWriter, then, doesn't need to require the dicomParser, so that it can compare the parsers.

@jssuttles jssuttles changed the title Don't include tag if not not needed Don't include tag if not needed Sep 23, 2020
MichaelLeeHobbs referenced this pull request in MichaelLeeHobbs/dicomParser Jul 23, 2026
…pixel data

Phase 1 PR 3/5. Adds the discriminated-union element model
(value | sequence | encapsulated | unknown, upstream cornerstonejs#257/cornerstonejs#278), a frame-stack
tokenizer with no recursion and bounded loops (mission-critical standard;
maxDepth guard), structural delimiter consumption (cornerstonejs#244/cornerstonejs#143) with
delimitation items always treated as zero-length (cornerstonejs#266), CP-246 UN
undefined-length sequences, cornerstonejs#114 private implicit policy (never peek
private defined-length elements), stopAt with >= semantics (cornerstonejs#104/cornerstonejs#268/#52),
typed errors with partial-result salvage (#46/cornerstonejs#203/cornerstonejs#277), and the
encapsulated pixel-data scanner (BOT + fragments).

Ports readSequenceItemsExplicit/Implicit tests and the sequence/UN halves
of readDicomElementExplicit/Implicit tests; adds delimiter-pathology,
stopAt, truncation-salvage and depth-bound coverage.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DSSLWZvjSRByQP3KsghQcJ
MichaelLeeHobbs referenced this pull request in MichaelLeeHobbs/dicomParser Jul 23, 2026
…pixel data (#5)

Phase 1 PR 3/5. Adds the discriminated-union element model
(value | sequence | encapsulated | unknown, upstream cornerstonejs#257/cornerstonejs#278), a frame-stack
tokenizer with no recursion and bounded loops (mission-critical standard;
maxDepth guard), structural delimiter consumption (cornerstonejs#244/cornerstonejs#143) with
delimitation items always treated as zero-length (cornerstonejs#266), CP-246 UN
undefined-length sequences, cornerstonejs#114 private implicit policy (never peek
private defined-length elements), stopAt with >= semantics (cornerstonejs#104/cornerstonejs#268/#52),
typed errors with partial-result salvage (#46/cornerstonejs#203/cornerstonejs#277), and the
encapsulated pixel-data scanner (BOT + fragments).

Ports readSequenceItemsExplicit/Implicit tests and the sequence/UN halves
of readDicomElementExplicit/Implicit tests; adds delimiter-pathology,
stopAt, truncation-salvage and depth-bound coverage.


Claude-Session: https://claude.ai/code/session_01DSSLWZvjSRByQP3KsghQcJ

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants