Skip to content
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

Apply fallbackencoding of DicomServices to the DicomDatasets that are sent through this DicomService #1780

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

gofal
Copy link
Contributor

@gofal gofal commented May 2, 2024

Fixes #1642 .

Checklist

  • The pull request branch is in sync with latest commit on the fo-dicom/development branch
  • I have updated API documentation
  • I have included unit tests
  • I have updated the change log
  • I am listed in the CONTRIBUTORS file

Changes proposed in this pull request:

  • If a DicomServer or a DicomClient has a fallbackencoding set, then until now only the reader of incomming data uses this. Now also the writer of outgoing messages applies this fallbackencoding

@@ -24,7 +24,7 @@ public partial class DicomDataset : IEnumerable<DicomItem>, IEquatable<DicomData
private readonly IDictionary<DicomTag, DicomItem> _items;

private DicomTransferSyntax _syntax;
private Encoding[] _fallbackEncodings = DicomEncoding.DefaultArray;
internal Encoding[] _fallbackEncodings = DicomEncoding.DefaultArray;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of making this internal, wouldn't it make more sense to move the Clone method back to DicomDataset? If you look at how records are implemented in C#, they are also responsible for their own cloning, this is not implemented externally.

@amoerie
Copy link
Collaborator

amoerie commented May 23, 2024

One minor consideration related to cloning, but other than that a nice improvement! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting FallbackEncoding on AdvancedDicomClientConnectionRequest has no effect on C-Find requests
3 participants