Giter Club home page Giter Club logo

Comments (3)

swederik avatar swederik commented on September 17, 2024

Hi Martin,

It looks like studyComments has not been added to the Cornerstone metadata provider. Check here:

https://github.com/OHIF/Viewers/blob/b2c5b587bc6ec68164466a989412876aee053400/Packages/viewerbase/lib/metaDataProvider.js#L40

Called from here:

Hope that helps!

from viewers.

mtjvankuik avatar mtjvankuik commented on September 17, 2024

Hi Erik,

Thanks for the tip, however I am still unable to display this dicom tag in the viewport. Instead of adding it to studyMetaData, I have added it to instanceMetaData in metadataProvider:
metaData.instance = { wadouri: instanceMetaData.wadouri, imageType: instanceMetaData.imageType, photometricInterpretation: instanceMetaData.photometricInterpretation, sopInstanceUid: instanceMetaData.sopInstanceUid, sopClassUid: instanceMetaData.sopClassUid, instanceNumber: instanceMetaData.instanceNumber, laterality: instanceMetaData.laterality, viewPosition: instanceMetaData.viewPosition, sliceThickness: instanceMetaData.sliceThickness, studyComments: instanceMetaData.studyComments, index: imageIndex };
I added this line to Instance level in QidoRs.cpp in Orthanc:
result.push_back(gdcm::Tag(0x0032, 0x4000)); // Study Comments

I also added this line to instances.js in qido:
studyComments: DICOMWeb.getString(instance['00324000'])

I added this line in ViewportOverlay.html:
<div>{{studyComments}}</div>

And finally this line to ViewportOverlay.js:
studyComments: function() { return getInstance.call(this, 'studyComments'); },

I have double checked whether or not the DICOM tag is correct (and it is). The tag is filled as a string, which I can confirm when looking at the initialisation of DICOM tags in the instance level of orthanc.

from viewers.

mtjvankuik avatar mtjvankuik commented on September 17, 2024

UPDATE: I can add dicom tag 0008,0070. It is displayed wonderfully in the upper left corner. Once I replace this tag with 0032,4000 (the desired tag), it stays blank. I suspect it is because this is not a regular DICOM tag, but added by the specific software manufacturer.

I guess there should be a translation file in which all standard dicom tags are noted. I remember a file called dataDictionary.json. Any idea what the exact location of this file is?

Is there a max on the length of a DICOM string? Because the dicom tag contains 123 characters.

I shall keep you informed.

from viewers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.