* Instance metadata plus metadata provider overhaul. Fix consumption of wado-uri urls fallbacks + datatype agnosticism. WIP DICOMify things. fix various issues with naturalized variable naming migration. Remove metadata provider. Fix consumption of multiframe images and addition of CWIL metadata. Fix strange build issues. Fix CWIL style windowWidth to array from naturalized DICOM. Fix PT, CT, CR and DX issues for cornerstone + DX issues for vtkjs. Move color palette fetching down to the natuaralized JSON level. Remove unused StudyMetadataSummary Remove redundant dicom metadata dictionary. Working local + json routes. Fix SR read. Finished first round of testing + cleaned up debugging etc. * data => metadata for instance naturalizedJSON * Update dcmjs version * Correct github isssues. * Fix erroneously replaced files. * Danny's recommended changes. * Instance metadata plus metadata provider overhaul. Fix consumption of wado-uri urls fallbacks + datatype agnosticism. WIP DICOMify things. fix various issues with naturalized variable naming migration. Remove metadata provider. Fix consumption of multiframe images and addition of CWIL metadata. Fix strange build issues. Fix CWIL style windowWidth to array from naturalized DICOM. Fix PT, CT, CR and DX issues for cornerstone + DX issues for vtkjs. Move color palette fetching down to the natuaralized JSON level. Remove unused StudyMetadataSummary Remove redundant dicom metadata dictionary. Working local + json routes. Fix SR read. Finished first round of testing + cleaned up debugging etc. * data => metadata for instance naturalizedJSON * Update dcmjs version * Correct github isssues. * Fix erroneously replaced files. * Danny's recommended changes. * Update JSON CI * Update casing of import. * Fix jump for SR. * Fix unit tests for measurements service * Fix json CI test. * fix: update yarn lock * Fix local non-encapsulated pdf view * CI updated to new sucess message. Co-authored-by: Danny <danny.ri.brown@gmail.com>
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { withRouter } from 'react-router-dom';
|
|
import ConnectedViewerRetrieveStudyData from '../connectedComponents/ConnectedViewerRetrieveStudyData.js';
|
|
import OHIF from '@ohif/core';
|
|
const { urlUtil: UrlUtil } = OHIF.utils;
|
|
|
|
function IHEInvokeImageDisplay({ location }) {
|
|
const {
|
|
// patientID,
|
|
requestType,
|
|
studyUID,
|
|
} = UrlUtil.parse(location.search);
|
|
|
|
switch (requestType) {
|
|
case 'STUDY':
|
|
return (
|
|
<ConnectedViewerRetrieveStudyData
|
|
studyInstanceUIDs={studyUID.split(';')}
|
|
/>
|
|
);
|
|
|
|
case 'STUDYBASE64':
|
|
return (
|
|
<ConnectedViewerRetrieveStudyData
|
|
studyInstanceUIDs={UrlUtil.paramString.parseParam(studyUID)}
|
|
/>
|
|
);
|
|
|
|
case 'PATIENT':
|
|
// TODO: connect this to the StudyList when we have the filter parameters set up
|
|
// return <StudyList patientUIDs={patientID.split(';')} />;
|
|
return '';
|
|
|
|
default:
|
|
// TODO: Figure out what to do here, this won't work because StudyList expects studies
|
|
// return <StudyList />;
|
|
return '';
|
|
}
|
|
}
|
|
|
|
IHEInvokeImageDisplay.propTypes = {
|
|
location: PropTypes.shape({
|
|
search: PropTypes.string,
|
|
}).isRequired,
|
|
};
|
|
|
|
export default withRouter(IHEInvokeImageDisplay);
|