Describe the Bug
OHIF will throw a Warning when trying to access encapsulated PDF from google healthcare api
Console shows as follow :
Unable to retrieve EncapsulatedDocument from proxy :
{ "_vrMap": {}, "FileMetaInformationVersion": { "BulkDataURI": "https://healthcare.googleapis.com/v1/projects/project/locations/location/datasets/dataset/dicomStores/datastore/dicomWeb/studies/1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315/series/1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315/instances/1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315/bulkdata/00020001" }, "MediaStorageSOPClassUID": "1.2.840.10008.5.1.4.1.1.104.1", "MediaStorageSOPInstanceUID": "1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315", "TransferSyntaxUID": "1.2.840.10008.1.2.1", "ImplementationClassUID": "1.2.276.0.7230010.3.0.3.6.6", "ImplementationVersionName": "OFFIS_DCMTK_366", "SourceApplicationEntityTitle": "clinic", "SpecificCharacterSet": "ISO_IR 100", "InstanceCreationDate": "20250805", "InstanceCreationTime": "111211", "SOPClassUID": "1.2.840.10008.5.1.4.1.1.104.1", "SOPInstanceUID": "1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315", "StudyDate": "20250722", "ContentDate": "20250722", "AcquisitionDateTime": null, "StudyTime": "150606", "ContentTime": "150606", "AccessionNumber": null, "Modality": "DOC", "ConversionType": "WSD", "Manufacturer": "OCULUS Optikgeraete GmbH", "InstitutionName": "Annon", "InstitutionAddress": "Binary avenue 10, 10111 Seattle", "ReferringPhysicianName": null, "CodingSchemeIdentificationSequence": [ { "_vrMap": {}, "CodingSchemeDesignator": "99OCULUS", "CodingSchemeUID": "1.3.6.1.4.1.34714.3.0.0.20230118", "CodingSchemeName": "OCULUS Coding Scheme", "CodingSchemeResponsibleOrganization": "OCULUS Optikgeraete GmbH" } ], "StationName": "Station One", "StudyDescription": null, "InstitutionalDepartmentName": "Ophthalmology", "NameOfPhysiciansReadingStudy": null, "ManufacturerModelName": "Pentacam", "PatientName": [ { "Alphabetic": "Annon" } ], "PatientID": "Annon", "PatientBirthDate": "Annon", "PatientSex": null, "DeviceSerialNumber": "7090049274290", "SecondaryCaptureDeviceID": null, "SecondaryCaptureDeviceManufacturer": "OCULUS Optikgeraete GmbH", "SecondaryCaptureDeviceManufacturerModelName": "Pentacam", "SoftwareVersions": [ "1.33r02", "1.33r02" ], "StudyInstanceUID": "1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315", "SeriesInstanceUID": "1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315", "StudyID": null, "SeriesNumber": 88, "InstanceNumber": 1, "Laterality": "L", "ImageLaterality": "L", "BurnedInAnnotation": "YES", "00290010": "OCULUS Optikgeraete GmbH", "00291010": { "BulkDataURI": "https://healthcare.googleapis.com/v1/projects/project/locations/location1/datasets/dataset/dicomStores/datastore/dicomWeb/studies/1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315/series/1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315/instances/1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315/bulkdata/00291010" }, "00291012": 38400, "00291020": { "BulkDataURI": "https://healthcare.googleapis.com/v1/projects/project/locations/location/datasets/dataset/dicomStores/datastore/dicomWeb/studies/1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315/series/1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315/instances/1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315/bulkdata/00291020" }, "00291022": 4860678, "PerformedProcedureStepStartDate": "20250722", "PerformedProcedureStepStartTime": "150606", "PerformedProcedureStepID": "12345678", "PerformedProcedureStepDescription": "General Overview", "PerformedProtocolCodeSequence": [ ( ... Removed Data to shorten this text) ], "DocumentTitle": "Pentacam-Screenshot.pdf", "EncapsulatedDocument": { "BulkDataURI": "https://healthcare.googleapis.com/v1/projects/project/locations/location/datasets/dataset/dicomStores/datastore/dicomWeb/studies/1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315/series/1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315/instances/1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315/bulkdata/00420011" }, "MIMETypeOfEncapsulatedDocument": "application/pdf", "EncapsulatedDocumentLength": 388460, "imageId": "wadors:https://healthcare.googleapis.com/v1/projects/project/locations/location/datasets/dataset/dicomStores/datastore/dicomWeb/studies/1.3.6.1.4.1.34714.49274290.0.0.0.20250805111202315/series/1.3.6.1.4.1.34714.7090049274290.1.1.88.20250722150606315/instances/1.3.6.1.4.1.34714.7090049274290.12.1.88.20250722150606315/frames/1", "wadoRoot": "https://healthcare.googleapis.com/v1/projects/project/locations/location/datasets/dataset/dicomStores/datastore/dicomWeb" }
-
To mention that I do Have the
bulkDataURI: { enabled: true, relativeResolution: 'series', }
in my google.js . -
All Other files within the same study Loads perfectly fine without any errors .
*** I Also Trying a simple pdf which I encapsulated using dcmtk pdf2dcm and same result .**
Steps to Reproduce
Try to View encapsulated PDFs from google healthcare api
The current behavior
PDF does not load at all
same as it was in older versions : [Bug] PDF appear dark (wont properly load) · Issue #4118 · OHIF/Viewers · GitHub
The expected behavior
To be able to open this PDF , Exactly how it works when I try to upload it on OHIF Viewer which opens the pdf perfectly as it should
OS
Windows 11
Node version
20.17.1
Browser
Chrome latest Version