Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

ohif add auth to config

<script src="https://unpkg.com/@ohif/viewer" crossorigin></script>
  <script>
    var containerId = "root";
    var componentRenderedOrUpdatedCallback = function(){
      console.log('OHIF Viewer rendered/updated');
    }

window.config = {
  // default: '/'
  routerBasename: '/',
  extensions: [],
  showStudyList: true,
  filterQueryParam: false,
  servers: {
    dicomWeb: [
      {
        name: 'scorthanc',
        wadoUriRoot: 'https://orthanc.yyy.zzz/orthanc/wado',
        qidoRoot: 'https://orthanc.yyy.zzz/orthanc/dicom-web',
        wadoRoot: 'https://orthanc.yyy.zzz/orthanc/dicom-web',
        qidoSupportsIncludeField: true,
        imageRendering: 'wadors',
        thumbnailRendering: 'wadors',
        requestOptions: {
          auth: 'user:password',
        },
      },
    ],
  },
  cornerstoneExtensionConfig: {},
  // Following property limits number of simultaneous series metadata requests.
  // For http/1.x-only servers, set this to 5 or less to improve
  //  on first meaningful display in viewer
  // If the server is particularly slow to respond to series metadata
  //  requests as it extracts the metadata from raw files everytime,
  //  try setting this to even lower value
  // Leave it undefined for no limit, sutiable for HTTP/2 enabled servers
  // maxConcurrentMetadataRequests: 5,
};

    window.OHIFViewer.installViewer(
      window.config, containerId, componentRenderedOrUpdatedCallback);
	</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: add decimal places to number javascript 
Javascript :: javascript declaring variables 
Javascript :: how to use handlebars.registerhelper if null 
Javascript :: javascript loop through delimited string 
Javascript :: react native time set state 
Javascript :: js proxy track nested object 
Javascript :: react three fiber set cursor pointer 
Javascript :: submit form on ctrl enter 
Javascript :: js delete without changing index 
Javascript :: delete all items in an array 
Javascript :: js how to shuffle array algoritm. The Fisher-Yates algorith 
Javascript :: vite build output destination change 
Javascript :: pass mltiple valuesthorugh context in react 
Javascript :: javascript Vue Component Loading Before Vuex Data Is Set 
Javascript :: How to pass variables from one page to another with AngularJS 
Javascript :: AngularJs: Display HTML elements from string variable in JSP page 
Javascript :: How to call keyup function on textbox for every dynamic generated form in Angular8 
Javascript :: Se Chartjs horizontal 
Javascript :: Edit parameter in variable with increment/decrement box and save it 
Javascript :: What is the best way to download mulitple images using jquery 
Javascript :: typeorm-how-to-write-to-different-databases 
Javascript :: Using javascript code in Jade views - if(variable) shows undefined instead of passing 
Javascript :: morgan tiny 
Javascript :: audio js fast 
Javascript :: vanillaJS add elements to body 
Javascript :: Creating New Transaction Object for blockchain 
Javascript :: jquery ajax success function not executing 
Javascript :: Good Example: Focus moved to AJAX content with tabindex="-1" after a delay 
Javascript :: Calculate sum of last column in dynamically added rows using javascript 
Javascript :: add text to each element in an array javascript 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =