Skip to content

Commit

Permalink
fix(metaData): transfer syntax retrieval in metaDataProvider (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored May 23, 2024
1 parent f879264 commit a10b9f1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,16 @@ function metaDataProvider(type, imageId) {
// Note: this is not a DICOM module, but a useful metadata that can be
// retrieved from the image
if (type === 'transferSyntax') {
let transferSyntaxUID;

try {
transferSyntaxUID = dataSet.string('x00020010');
} catch (error) {
// Do nothing
}

return {
transferSyntaxUID: dataSet.string('x00020010'),
transferSyntaxUID,
};
}

Expand Down

0 comments on commit a10b9f1

Please sign in to comment.