3 * ProductRegistrationRestController
6 * @link http://www.open-emr.org
7 * @author Matthew Vita <matthewvita48@gmail.com>
8 * @copyright Copyright (c) 2018 Matthew Vita <matthewvita48@gmail.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 namespace OpenEMR\RestControllers
;
15 use OpenEMR\Services\ProductRegistrationService
;
16 use OpenEMR\RestControllers\RestControllerHelper
;
18 class ProductRegistrationRestController
20 private $productRegistrationService;
22 public function __construct()
24 $this->productRegistrationService
= new ProductRegistrationService();
27 public function getOne()
29 $serviceResult = $this->productRegistrationService
->getProductStatus()->getStatusAsString();
30 return RestControllerHelper
::responseHandler($serviceResult, array("status" => $serviceResult), 200);