forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProductRegistrationRestController.php
More file actions
33 lines (27 loc) · 976 Bytes
/
ProductRegistrationRestController.php
File metadata and controls
33 lines (27 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* ProductRegistrationRestController
*
* @package OpenEMR
* @link http://www.open-emr.org
* @author Matthew Vita <matthewvita48@gmail.com>
* @copyright Copyright (c) 2018 Matthew Vita <matthewvita48@gmail.com>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/
namespace OpenEMR\RestControllers;
use OpenEMR\Services\ProductRegistrationService;
use OpenEMR\RestControllers\RestControllerHelper;
class ProductRegistrationRestController
{
private $productRegistrationService;
public function __construct()
{
$this->productRegistrationService = new ProductRegistrationService();
}
public function getOne()
{
$serviceResult = $this->productRegistrationService->getProductStatus();
$serviceResult = $serviceResult['statusAsString'];
return RestControllerHelper::responseHandler($serviceResult, array("status" => $serviceResult), 200);
}
}