<?php

	
  $url = '../Common/statistic/get_eodacs_data.php';

  $create_json = false;

  if(isset($_GET['connector_eoqual_dacs_proxy']) && $_GET['connector_eoqual_dacs_proxy'] != '')
  {
      $create_json = true;
      $url = $_GET['connector_eoqual_dacs_proxy'];
  }

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_nstudybymodality';
  $chartobj->label = 'Nombre d\\\'études par modalité';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_dapbystudy';
  $chartobj->label = '50eme percentile DAP (mgy.cm²) par étude';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 0;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_fluorobystudy';
  $chartobj->label = '50eme percentile Fluoro (sec) par étude';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 0;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_dlpbystudy';
  $chartobj->label = '50eme percentile DLP par étude';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 0;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_ctdibystudy';
  $chartobj->label = '50eme percentile CTDIvol par étude';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 0;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_nstudybysite';
  $chartobj->label = 'Examens sur période';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;



  $chartobj = new StdClass();
  $chartobj->id = 'dacs_nstudymgbyage';
  $chartobj->label = 'Examens mammographiques selon âge';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;

  $chartobj = new StdClass();
  $chartobj->id = 'dacs_nstudybyage';
  $chartobj->label = 'Examen selon âge';
  $chartobj->stylebar = 0;
  $chartobj->stylebarstacked = 1;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;
  
    $chartobj = new StdClass();
  $chartobj->id = 'dacs_50-75percentilbytime';
  $chartobj->label = 'Percentile 50/75 DAP selon le temps';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;
  
 
  
      $chartobj = new StdClass();
  $chartobj->id = 'dacs_50-75percentilctdibytime';
  $chartobj->label = 'Percentile 50/75 CTDIvol selon le temps';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;
  

  
      $chartobj = new StdClass();
  $chartobj->id = 'dacs_50-75percentildlpbytime';
  $chartobj->label = 'Percentile 50/75 DLP selon le temps';
  $chartobj->stylebar = 1;
  $chartobj->stylebarstacked = 0;
  $chartobj->stylepie = 0;
  $chartobj->styleline = 1;
  $chartobj->stylelinestacked = 0;
  $chartobj->url = $url;
  $chartlist[] = $chartobj;
  



  if($create_json == true)
  {
    header('Content-Type: application/json');
    echo json_encode($chartlist);
  }
?>
