/**
  * Returns the total of Cases with Completed time with the selected periodicity
  *
  * @param string $indicator_uid {@from path}
  * @param string $measure_date {@from path}
  * @param string $compare_date {@from path}
  * @param string $language {@from path}
  * @return array
  *
  * @url GET /general-indicator-data
  */
 public function doGetGeneralIndicatorData ($indicator_uid, $init_date, $end_date, $language)
 {
     try {
         $indicatorsObj = new \ProcessMaker\BusinessModel\ReportingIndicators();
         $response = $indicatorsObj->getGeneralIndicatorStatistics
             ($indicator_uid,
             new \DateTime($init_date),
             new \DateTime($end_date),
             $language);
         return $response;
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
 }