Skip to content

Conversation

jackschofield23
Copy link
Contributor

@jackschofield23 jackschofield23 commented Sep 28, 2022

Signed-off-by: Jack Schofield jack.schofield@answerdigital.com

Description

Fixes # .

Only submits dicom files for export.
Now fails task and workflow if there are no files to export.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • All tests passed locally.
  • Documentation comments included/updated.

@jackschofield23 jackschofield23 marked this pull request as ready for review September 29, 2022 09:16
Signed-off-by: Jack Schofield <jack.schofield@answerdigital.com>
Signed-off-by: Jack Schofield <jack.schofield@answerdigital.com>
Signed-off-by: Jack Schofield <jack.schofield@answerdigital.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

81.0% 81.0% Coverage
0.0% 0.0% Duplication

@jackschofield23 jackschofield23 merged commit d01c4f6 into develop Sep 29, 2022
@jackschofield23 jackschofield23 deleted the jschofield/export-fix branch September 29, 2022 13:08
true);
if (objects.IsNullOrEmpty() is false)

var dcmFiles = objects?.Where(o => o.FilePath.EndsWith(".dcm"))?.ToList();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sometimes, users may not use .dcm extension.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this change also removes the ability to export HL7/FHIR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we know what other file extensions we will support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently we only support exporting to the dicom scu endpoint. So when we extend the export to other endpoints we can update supported filetypes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We will need to support DICOM, FHIR, and HL7 but no guarantee what file extensions users will use. Therefore, I think we must document the usage, e.g., without .dcm we will not export their DICOM files.

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.

3 participants