Various changes and fixes (#7424)
[openemr.git] / ccr / uuid.php
blob7ac6d4de069241c7431e81e661edeb876d9f74ea
1 <?php
3 /*
4 * This will return an instance of Ramsey\Uuid\Rfc4122\UuidV4.
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author stephen waite <stephen.waite@cmsvt.com>
9 * @copyright Copyright (c) 2020 stephen waite <stephen.waite@cmsvt.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 use Ramsey\Uuid\Uuid;
15 /**
16 * This will return an instance of Ramsey\Uuid\Rfc4122\UuidV4.
18 * @return string A UUID, made up of 32 hex digits and 4 hyphens.
21 function getUuid()
23 $uuid = Uuid::uuid4();
24 return $uuid->toString();