-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIHEInvokeImageDisplay.bundle.e677c4e6ecefbd6851fd.js.map
1 lines (1 loc) · 2.11 KB
/
IHEInvokeImageDisplay.bundle.e677c4e6ecefbd6851fd.js.map
1
{"version":3,"sources":["webpack:///./routes/IHEInvokeImageDisplay.js"],"names":["UrlUtil","OHIF","utils","urlUtil","IHEInvokeImageDisplay","location","parse","search","requestType","studyUID","studyInstanceUIDs","split","paramString","parseParam","propTypes","PropTypes","shape","string","isRequired","withRouter"],"mappings":"0FAAA,6DAKiBA,EALjB,MAK6BC,EAAKC,MAA1BC,QAER,SAASC,EAAT,GAA6C,IAAZC,EAAY,EAAZA,SAAY,EAKvCL,EAAQM,MAAMD,EAASE,QAFzBC,EAHyC,EAGzCA,YACAC,EAJyC,EAIzCA,SAGF,OAAQD,GACN,IAAK,QACH,OACE,kBAAC,IAAD,CACEE,kBAAmBD,EAASE,MAAM,OAIxC,IAAK,cACH,OACE,kBAAC,IAAD,CACED,kBAAmBV,EAAQY,YAAYC,WAAWJ,KAIxD,IAAK,UAKL,QAGE,MAAO,IAIbL,EAAsBU,UAAY,CAChCT,SAAUU,IAAUC,MAAM,CACxBT,OAAQQ,IAAUE,SACjBC,YAGUC,sBAAWf","file":"IHEInvokeImageDisplay.bundle.e677c4e6ecefbd6851fd.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withRouter } from 'react-router-dom';\nimport ConnectedViewerRetrieveStudyData from '../connectedComponents/ConnectedViewerRetrieveStudyData.js';\nimport OHIF from '@ohif/core';\nconst { urlUtil: UrlUtil } = OHIF.utils;\n\nfunction IHEInvokeImageDisplay({ location }) {\n const {\n // patientID,\n requestType,\n studyUID,\n } = UrlUtil.parse(location.search);\n\n switch (requestType) {\n case 'STUDY':\n return (\n <ConnectedViewerRetrieveStudyData\n studyInstanceUIDs={studyUID.split(';')}\n />\n );\n\n case 'STUDYBASE64':\n return (\n <ConnectedViewerRetrieveStudyData\n studyInstanceUIDs={UrlUtil.paramString.parseParam(studyUID)}\n />\n );\n\n case 'PATIENT':\n // TODO: connect this to the StudyList when we have the filter parameters set up\n // return <StudyList patientUIDs={patientID.split(';')} />;\n return '';\n\n default:\n // TODO: Figure out what to do here, this won't work because StudyList expects studies\n // return <StudyList />;\n return '';\n }\n}\n\nIHEInvokeImageDisplay.propTypes = {\n location: PropTypes.shape({\n search: PropTypes.string,\n }).isRequired,\n};\n\nexport default withRouter(IHEInvokeImageDisplay);\n"],"sourceRoot":""}