deployed on dicomv.aplikasi.web.id: work pdf and others

This commit is contained in:
mario
2025-05-23 11:38:43 +07:00
parent 0bb6d19e92
commit 305eaf11ee
4 changed files with 10 additions and 10 deletions

View File

@@ -6,8 +6,8 @@ function OHIFCornerstonePdfViewport({ displaySets }) {
var [url, setUrl] = useState(null); var [url, setUrl] = useState(null);
const sopInstanceUid = displaySets[0].SOPInstanceUID; const sopInstanceUid = displaySets[0].SOPInstanceUID;
url = `http://${window.config.pacs_document_host}:${window.config.pacs_document_port}/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`; url = `${window.config.pacs_document_host}:${window.config.pacs_document_port}/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`;
console.log("URL PDF", url); console.log('URL PDF', url);
useEffect(() => { useEffect(() => {
document.body.addEventListener('drag', makePdfDropTarget); document.body.addEventListener('drag', makePdfDropTarget);

View File

@@ -1,8 +1,8 @@
/** @type {AppTypes.Config} */ /** @type {AppTypes.Config} */
window.config = { window.config = {
routerBasename: '/', routerBasename: '/',
pacs_document_host: `${window.location.hostname}`, pacs_document_host: `https://${window.location.hostname}`,
pacs_document_port: 8080, pacs_document_port: 8585,
expertise: false, //* Tambahan untuk enable expertise (CustomizableViewportOverlay) expertise: false, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
expertise_host: `https://devone.aplikasi.web.id/one-api/mockup/pacsmwl/Workorder/get_dummy_expertise`, //* Tambahan untuk fetch data Expertise) expertise_host: `https://devone.aplikasi.web.id/one-api/mockup/pacsmwl/Workorder/get_dummy_expertise`, //* Tambahan untuk fetch data Expertise)
enableGoogleCloudAdapter: false, enableGoogleCloudAdapter: false,
@@ -13,7 +13,7 @@ window.config = {
strictZSpacingForVolumeViewport: true, strictZSpacingForVolumeViewport: true,
extensions: [], extensions: [],
modes: [], modes: [],
showStudyList: true, showStudyList: false,
// filterQueryParam: false, // filterQueryParam: false,
defaultDataSourceName: 'dicomweb', defaultDataSourceName: 'dicomweb',
dataSources: [ dataSources: [
@@ -23,9 +23,9 @@ window.config = {
configuration: { configuration: {
friendlyName: 'dcmjs DICOMWeb Server', friendlyName: 'dcmjs DICOMWeb Server',
name: 'GCP', name: 'GCP',
wadoUriRoot: `http://${window.location.hostname}:5555/dicomWeb`, wadoUriRoot: `https://${window.location.hostname}:5555/dicomWeb`,
qidoRoot: `http://${window.location.hostname}:5555/dicomWeb`, qidoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
wadoRoot: `http://${window.location.hostname}:5555/dicomWeb`, wadoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
qidoSupportsIncludeField: true, qidoSupportsIncludeField: true,
imageRendering: 'wadors', imageRendering: 'wadors',
thumbnailRendering: 'wadors', thumbnailRendering: 'wadors',

View File

@@ -31,7 +31,7 @@ const Login = () => {
try { try {
// Use window.config.goProxyHost for authentication endpoint // Use window.config.goProxyHost for authentication endpoint
const proxyHost = window.config?.goProxyHost || `http://${window.location.hostname}:5555`; const proxyHost = window.config?.goProxyHost || `https://${window.location.hostname}:5555`;
const authEndpoint = `${proxyHost}/auth/login`; const authEndpoint = `${proxyHost}/auth/login`;
// Call go-ohif-proxy login endpoint // Call go-ohif-proxy login endpoint

View File

@@ -35,7 +35,7 @@ const ShortlinkLogin = () => {
try { try {
// Use window.config.goProxyHost for authentication endpoint // Use window.config.goProxyHost for authentication endpoint
const proxyHost = window.config?.goProxyHost || `http://${window.location.hostname}:5555`; const proxyHost = window.config?.goProxyHost || `https://${window.location.hostname}:5555`;
const authEndpoint = `${proxyHost}/auth/shortlink`; const authEndpoint = `${proxyHost}/auth/shortlink`;
// Call the shortlink authentication endpoint // Call the shortlink authentication endpoint