2 /* +-----------------------------------------------------------------------------+
3 * OpenEMR - Open Source Electronic Medical Record
4 * Copyright (C) 2014 Z&H Consultancy Services Private Limited <sam@zhservices.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * @author Vinish K <vinish@zhservices.com>
20 * +------------------------------------------------------------------------------+
22 namespace Carecoordination\Controller
;
24 use Zend\Mvc\Controller\AbstractActionController
;
25 use Zend\View\Model\ViewModel
;
26 use Zend\Filter\Compress\Zip
;
27 use Carecoordination\Form\ModuleconfigForm
;
29 class ModuleconfigController
extends AbstractActionController
31 protected $inputFilter;
33 public function __construct()
37 public function indexAction()
39 $form = new ModuleconfigForm();
40 $form->get('hie_author_id')->setAttribute('options', array('user 1','user 2'));
42 $view = new ViewModel(array(
48 public function exchangeArray($data)
51 public function getArrayCopy()
53 return get_object_vars($this);
55 public function setInputFilter(InputFilterInterface
$inputFilter)
57 throw new \
Exception("Not used");
60 public function getInputFilter()
62 if (!$this->inputFilter
) {
63 $inputFilter = new InputFilter();
64 $factory = new InputFactory();
67 $this->inputFilter
= $inputFilter;
70 return $this->inputFilter
;
73 public function getHookConfig()
75 //SOECIFY HOOKS DETAILS OF A MODULE IN AN ARRAY, WITH MODULE NAME AS KEY
76 //SHOULD SPECIFY THE CONTROLLER AND ITS ACTION IN THE PATH, INCLUDING INDEX ACTION
79 'name' => "send_to_hie",
80 'title' => "Send To HIE",
81 'path' => "encountermanager",
88 public function getDependedModulesConfig()
90 $dependedModules = array('Ccr','Immunization','Syndromicsurveillance');
91 return $dependedModules;
94 public function getAclConfig()
98 'section_id' => 'send_to_hie',
99 'section_name' => 'Send To HIE',
100 'parent_section' => 'carecoordination',