mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Streamline\Services;
|
||||
|
||||
use Streamline\Models\StreamlineSetupStep;
|
||||
|
||||
class StreamlineSetupService implements StreamlineSetupServiceInterface
|
||||
{
|
||||
public function __construct(){}
|
||||
|
||||
public function saveStep($name, $status): bool
|
||||
{
|
||||
$streamline_setup = new StreamlineSetupStep;
|
||||
$streamline_setup->step = "clinics registration";
|
||||
$streamline_setup->completion_status = 1;
|
||||
|
||||
try {
|
||||
$streamline_setup->save();
|
||||
return true;
|
||||
} catch (\Exception $exception) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user