Openemr fhir search (#4349)
[openemr.git] / src / Services / Search / FhirSearchParameterDefinition.php
blob40d610df7ade9d6fcda5e3d34707f226d25b15d1
1 <?php
3 /**
4 * FhirSearchParameterDefinition represents a field in FHIR that searches can be conducted against. It defines what fields
5 * that FHIR search field maps onto, whether that is a single OpenEMR data field or many fields (composite field). The
6 * type of field is represented in the definition.
8 * @package openemr
9 * @link http://www.open-emr.org
10 * @author Stephen Nielson <stephen@nielson.org>
11 * @copyright Copyright (c) 2021 Stephen Nielson <stephen@nielson.org>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 namespace OpenEMR\Services\Search;
17 class FhirSearchParameterDefinition
19 /**
20 * @var string
22 private $name;
24 /**
25 * @var string
27 private $type;
28 /**
29 * @var string[]
31 private $mappedFields;
33 /**
34 * @var string[]
36 private $options;
38 public function __construct($name, $type, $mappedFields, $options = array())
40 $this->name = $name;
41 $this->type = $type;
42 $this->mappedFields = $mappedFields;
43 $this->options = $options;
46 /**
47 * @return string[]
49 public function getMappedFields()
51 return $this->mappedFields;
54 /**
55 * @return string
57 public function getType()
59 return $this->type;
62 /**
63 * @return string
65 public function getName(): string
67 return $this->name;
70 public function getOptions(): array
72 return $this->options;