Openemr fhir search (#4349)
[openemr.git] / src / Services / Search / SearchFieldType.php
blob6dd9f29f67951cb8aa4d81cdee0fa0141b27f7e7
1 <?php
3 /**
4 * SearchFieldType represents the different parameter types that search parameters can be. Each parameter
5 * type has a different way they should be handled per the FHIR search specification.
6 * @see https://www.hl7.org/fhir/search.html for more information
7 * @package openemr
8 * @link http://www.open-emr.org
9 * @author Stephen Nielson <stephen@nielson.org>
10 * @copyright Copyright (c) 2021 Stephen Nielson <stephen@nielson.org>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 namespace OpenEMR\Services\Search;
16 class SearchFieldType
18 /**
19 * @see https://www.hl7.org/fhir/search.html#table
21 const TOKEN = 'token';
22 const DATE = 'date';
23 const URI = 'uri';
24 const STRING = 'string';
25 const NUMBER = 'number';
26 const COMPOSITE = "composite";
28 // we added datetime so we could better distinguish between types of dates here.
29 const DATETIME = 'datetime';
31 const REFERENCE = 'reference';