-
Notifications
You must be signed in to change notification settings - Fork 131
454 refactored Encoding/Decoding logic to expose DICOM encoding mappings for consumption #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
luissantosHCIT
wants to merge
59
commits into
dcmjs-org:master
Choose a base branch
from
luissantosHCIT:454_incorrect_decoding_of_iso_ir_100
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
3d8f679
chore refactored proper location of dictionaries and removed redundan…
b2fa72d
chore refactored the logic for switching to target decoder such that …
4d55daf
chore Forgot to pass the ignoreErrors flag.
6b70b60
chore Moved the decoder logic to the base BufferStream class since it…
5596de1
chore Refactored core encoding decoding logic to be in its own class …
50327d2
chore Added docstrings to new class to clarify usage and expectations.
8164601
Merge branch 'master' into 454_incorrect_decoding_of_iso_ir_100
luissantosHCIT 89b7498
chore moving constants into their own files.
luissantosHCIT b4e15c7
chore removing duplicated constant => encodingMapping
luissantosHCIT da8812e
chore cleaned up usage of constants and adding new constant file impo…
luissantosHCIT c91b13a
chore cleaned up class exports.
luissantosHCIT f2e2b17
chore imported the encodingMapping constant and removed logic directl…
luissantosHCIT 6ff636f
chore refactored the encoding selection logic for clarity and to make…
luissantosHCIT 3bce05a
chore moved the DicomBufferCODEC into its own file and made the encod…
luissantosHCIT 0c60c55
chore converting structs into Maps and Sets.
luissantosHCIT daa7276
chore changing vars into const and lets for clarity.
luissantosHCIT d1f03b5
chore moved the log.js source to utilities.
luissantosHCIT 46ec4bf
chore moved a few constants to constants/dicom, switched a few checks…
luissantosHCIT d1383aa
chore moved selectEncoding to utilities
luissantosHCIT 16ed19c
chore changed vars to consts and lets.
luissantosHCIT 011cdd0
chore checked for key in constant encodingMapping.
luissantosHCIT 591806b
chore changed the ES version to 11 in JSHints to kill false positive …
luissantosHCIT 067783a
fix bug introduced by accidentally setting variables to const.
luissantosHCIT 1ae8d7a
fix added parameter guard check in selectEncoding
luissantosHCIT 46e8d4a
fix added missing has check.
luissantosHCIT e25344f
fix restored removed new keyword when I was cleaning the project. Oops.
luissantosHCIT 5654097
fix reverted some of the linter suggested changes to const and equali…
luissantosHCIT 39e2fb4
fix reverted some of the linter suggested changes to const and equali…
luissantosHCIT 5f3c70e
chore moved out encoding function into selectEncoding source.
luissantosHCIT 8442409
fix(BufferStream) corrected issues with encoding due to changing stru…
luissantosHCIT 134b3c9
chore(selectEncoding) added note.
luissantosHCIT c0012d4
fix(DicomMetaDictionary) generation of struct sopClassUIDsByName prop…
luissantosHCIT 690ece8
chore(DicomMetaDictionary) added addEncoding method to allow external…
luissantosHCIT db96bf6
chore(BufferStream) consolidated the encoding methods into a singular…
luissantosHCIT 487fa4a
chore(Tag) pass through encoding option upon initialization of a writ…
luissantosHCIT fc7a36e
chore(DicomDict) pass through encoding option upon initialization of …
luissantosHCIT b565467
fix(BufferStream) missing default endianness for ReadBufferStream.
luissantosHCIT 0e501c2
chore(Tag) const correctness
luissantosHCIT e09fb64
fix(DicomMessage) calling wrong encoding method (was renamed today in…
luissantosHCIT b0c8c73
chore(ValueRepresentation) moving common formatting/value filtering l…
luissantosHCIT f30cc2f
fix(ValueRepresentation) reverted initial changes to ValueRepresentat…
luissantosHCIT 1843eca
fix(tests) renamed the encoding method to the new one.
luissantosHCIT b140d6a
feature(tests) added basic tests tracking encoded write/reads of Dico…
luissantosHCIT 7f8f808
chore(encodings) renamed latin1 to iso-8859-1 for consistency.
luissantosHCIT 942620c
chore(encodings) added the other two Ox VRs in AsyncDicomReader.
luissantosHCIT c1a87ac
chore(encodings) renamed DicomBufferCODEC to DicomTextTranscode for a…
luissantosHCIT b0e8b67
chore(encodings) renamed codec to textTranscoder for consistency with…
luissantosHCIT 4ff3ca4
chore(encodings) forced littleEndian and simplified constructor of de…
luissantosHCIT f4e7e8e
chore(encodings) corrected the fact that the DicomDataReadBufferStrea…
luissantosHCIT 3d59ff3
chore(encodings) refactored the constructor of WriteStreamBuffer to a…
luissantosHCIT 49d957c
chore(encodings) refactored the tests making use of WriteStreamBuffer…
luissantosHCIT a1bfa85
chore(encodings) removed options improperly added during the original…
luissantosHCIT baab404
docs(BufferStream) Added documentation notes on the constructor chang…
luissantosHCIT 608fd52
chore removed unused imports
luissantosHCIT 2e07a30
chore corrected function doc string
luissantosHCIT df6eabd
chore(sopClassUIDs) moved the name-uid set into the constants source …
luissantosHCIT 133ddf6
chore(sopClassUIDs) Removed the generation of sopClassUIDsByName and …
luissantosHCIT 5e1913a
chore(style) fixed code style with yarn prettier
luissantosHCIT f44ed90
Merge branch 'master' into 454_incorrect_decoding_of_iso_ir_100
luissantosHCIT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "esversion": 6 | ||
| "esversion": 11 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Migration Guide for Breaking Changes | ||
|
|
||
| ## v 0.50.1 to higher | ||
|
|
||
| After version 0.50.1, we introduced a breaking change to `WriteBufferStream` and `ReadBufferStream`. | ||
|
|
||
| ### What Changed | ||
|
|
||
| - `ReadBufferStream`: Constructor signature changed from | ||
| ```js | ||
| constructor( | ||
| buffer, | ||
| littleEndian = false, | ||
| options = { | ||
| start: null, | ||
| stop: null, | ||
| noCopy: false | ||
| }, | ||
| encoding = defaultDICOMEncoding | ||
| ) | ||
| ``` | ||
| to | ||
| ```js | ||
| constructor( | ||
| buffer, | ||
| options = { | ||
| start: null, | ||
| stop: null, | ||
| encoding: defaultDICOMEncoding, | ||
| noCopy: false, | ||
| littleEndian: true | ||
| } | ||
| ) | ||
| ``` | ||
|
|
||
| - `WriteBufferStream`: Constructor signature changed from | ||
| ```js | ||
| constructor(defaultSize, options = null) | ||
| ``` | ||
| to | ||
| ```js | ||
| constructor(options = null) | ||
| ``` | ||
|
|
||
| ### Notes | ||
|
|
||
| Essentially, the options that used to be separate parameters were moved into the flexible `options` object. | ||
|
|
||
| For reading situations, the `littleEndian` and `encoding` options are now in that options object. Moving forward, any | ||
| new parameters will be introduced as options here. | ||
|
|
||
| For writing situations, the `defaultSize` parameter was moved into the options object. | ||
|
|
||
| In all situations, the legacy usage of the constructor will fire a warning reminding you of the change to prompt you to | ||
| update your usage of the library. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.