question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to solve dicomParser.explicitElementToString: cannot convert implicit element to string?

See original GitHub issue

In the Example of displaying a DICOM P10 from the local file system I can load the dicom file.

But in my one, I get the below error:

image

Here is my code: the error happens in 17 line image

Can anyone help me to figure out this? Thanks so much!

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
yagnicommented, Sep 29, 2022

@LinkunGao After digging in the code, it looks like I only ever hooked up the VR callback to sequence parsing, not every implicit element. I’ll get a PR through in the next week or so to fix this.

0reactions
yagnicommented, Oct 11, 2022

@LinkunGao Please try with the latest release–this should work much better. The explicitDataSetToJs and explicitDataSetToJson examples have been updated with code similar to what we talked about. I also realized the tag needed to be upper cased:

const formatted = `(${tag.substr(1, 4).toUpperCase()},${tag.substr(5,9).toUpperCase()})`;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · cornerstonejs/dicomParser - GitHub
How to solve dicomParser.explicitElementToString : cannot convert implicit element to string? #212 opened on Sep 20 by LinkunGao.
Read more >
c# - Cannot implicitly convert type 'object' to 'string'. An explicit ...
I have use data set to get values from db. The code is given below. Give me a proper solution. Thank you. Code:...
Read more >
src/dicom/dicomParser.js - Documentation
* Tell if a given syntax is an implicit one (element with no VR). *; * @param {string} syntax The transfer syntax to...
Read more >
dicom-parser - npm
Javascript parser for DICOM Part 10 data. Latest version: 1.8.20, last published: 23 days ago. Start using dicom-parser in your project by ...
Read more >
Top 5 dicom-parser Code Examples - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here. github FNNDSC /...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found