/
PatientRetrieveOffsiteDocument.php
53 lines (45 loc) · 1.29 KB
/
PatientRetrieveOffsiteDocument.php
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* PatientRetrieveOffsiteDocument
*
* @package OpenEMR
* @link http://www.open-emr.org
* @author Sherwin Gaddis <sherwingaddis@gmail.com>
* @copyright Copyright (c) 2024 Sherwin Gaddis <sherwingaddis@gmail.com>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/
namespace OpenEMR\Events\PatientDocuments;
use Symfony\Contracts\EventDispatcher\Event;
use Document;
class PatientRetrieveOffsiteDocument extends Event
{
const REMOTE_DOCUMENT_LOCATION = 'remote.document.retrieve.location';
private string $url;
private $offsiteUrl;
private Document $document;
public function __construct(string $url, ?Document $document = null)
{
$this->url = $url;
$this->document = $document;
}
/**
* Returns the OpenEMR document class that represents this document in the file system
* @return Document|null
*/
public function getOpenEMRDocument(): ?Document
{
return $this->document;
}
public function getOpenEMRDocumentUrl(): string
{
return $this->url;
}
public function setOffsiteUrl(string $offsiteUrl): void
{
$this->offsiteUrl = $offsiteUrl;
}
public function getOffsiteUrl()
{
return $this->offsiteUrl;
}
}