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 (
);
case 'STUDYBASE64':
return (
);
case 'PATIENT':
// TODO: connect this to the StudyList when we have the filter parameters set up
// return ;
return '';
default:
// TODO: Figure out what to do here, this won't work because StudyList expects studies
// return ;
return '';
}
}
IHEInvokeImageDisplay.propTypes = {
location: PropTypes.shape({
search: PropTypes.string,
}).isRequired,
};
export default withRouter(IHEInvokeImageDisplay);