Stone Viewer: ? Scale embedded PDF's, and ? controls for mobile devices.

I’ve been attaching PDF reports to studies using the RESTAPI, which works fine, although maybe not implemented completely.

On a smaller mobile device, it looks like embedded .png images actually scale to the width of the viewport, but a .pdf does not. I’ve attached a screen capture of the issue here. Also, seems like the mobile touch screen controls are not working, or I do not know how to enable or use them for the Stone Viewer.

The corresponding DataSet for the PDF Instance is like the following. Might actually want to change the ISO_IR also, and maybe 0042,0011 (EncapsulatedDocument): Null ?

Dataset

Transfer syntax: 1.2.840.10008.1.2.1

  • 0008,0005 (SpecificCharacterSet): ISO_IR 100

  • 0008,0012 (InstanceCreationDate): 20210809

  • 0008,0013 (InstanceCreationTime): 145818.000000

  • 0008,0016 (SOPClassUID): 1.2.840.10008.5.1.4.1.1.104.1

  • 0008,0018 (SOPInstanceUID): 1.2.276.0.7230010.3.1.4.313264128.1.1628521098.38342

  • 0008,0020 (StudyDate): 20210727

  • 0008,0021 (SeriesDate): 20210809

  • 0008,0022 (AcquisitionDate): 20210809

  • 0008,0023 (ContentDate): 20210809

  • 0008,0030 (StudyTime): 083738

  • 0008,0031 (SeriesTime): 145818.000000

  • 0008,0032 (AcquisitionTime): 145818.000000

  • 0008,0033 (ContentTime): 145818.000000

  • 0008,0050 (AccessionNumber): CMACC00000003

  • 0008,0060 (Modality): OT

  • 0008,0064 (ConversionType): WSD

  • 0008,0070 (Manufacturer): REPORT

  • 0008,0090 (ReferringPhysicianName): 0001:Scotti^Stephen^Douglas

  • 0008,1030 (StudyDescription): MRI C-SPINE - WITHOUT CONTRAST

  • 0008,103e (SeriesDescription): FINAL

  • 0008,1070 (OperatorsName): 1:Stephen Douglas Scotti

  • 0010,0010 (PatientName): Person^Test1

  • 0010,0020 (PatientID): CM0000001

  • 0010,0030 (PatientBirthDate): 20010101

  • 0010,0040 (PatientSex): O

  • 0020,000d (StudyInstanceUID): 1.3.76.2.1.1.4.1.2.5388.678008258

  • 0020,000e (SeriesInstanceUID): 1.2.276.0.7230010.3.1.3.313264128.1.1628521098.38341

  • 0020,0010 (StudyID): 0004

  • 0042,0011 (EncapsulatedDocument): Null

  • 0042,0012 (MIMETypeOfEncapsulatedDocument): application/pdf

mobile_issue.png

As indicated in the Orthanc Book in the FAQ section:

https://book.orthanc-server.com/plugins/stone-webviewer.html#faq

“The internal use of Stone of Orthanc library gives us a lot of flexibility to implement new advanced features, such as 3D rendering (MPR, reslicing, image fusion…), DICOM-RT support, storage of annotations/measurements, viewer for mobile devices, internationalization (translation)… We are looking for industrial sponsors to implement such new features in the Stone Web viewer.”

mobile_issue.png

Thanks.

Is this important that 0042,0011 (EncapsulatedDocument): Null, be set to something else ?

It is set to Null on Orthanc, although I could probably set it when I attach the instance. I do that in a Python Plug-in, where Tags are set to:

query = ‘{“Tags” : {“Modality”:“SR”, “Manufacturer”: “REPORT”, “OperatorsName”:"’ + query[‘author’] + ‘“, “SeriesDescription”:”’ + query[‘title’] + ‘",“SOPClassUID”:“1.2.840.10008.5.1.4.1.1.104.1”},“Content” : "data:application/pdf;base64,’ + query[‘base64’] + ‘“, “Parent”:”’ + query[‘studyuuid’]+ ‘"}’

Does EncapsulatedDocument need to be set as well ? Also, I have Modality as SR, Structured Report. Presumably should use something else for that for a PDF, and possibly also populate the SR object. Looks like Orthanc is automatically changing SR to OT. I’ll have to read up about the SR object: http://dicom.nema.org/dicom/2013/output/chtml/part20/sect_A.3.html

“Null” is the value reported by Orthanc Explorer for tags whose value is a binary buffer. It does not mean “empty”.

Thank you.

pydicom dump:

(0042, 0011) Encapsulated Document OB: Array of 34098 elements

(0042, 0012) MIME Type of Encapsulated Document LO: ‘application/pdf’