fix: Update patient_tracker.php (#6595)
[openemr.git] / library / layout.inc.php
blob11e54b9feb13c95b6111184019f7de715b6033cb
1 <?php
3 /**
4 * Sql functions/classes for OpenEMR.
6 * Things related to layout based forms in general.
8 * Copyright (C) 2017-2021 Rod Roark <rod@sunsetsystems.com>
9 * Copyright (c) 2022 Stephen Nielson <snielson@discoverandchange.com>
10 * Copyright (c) 2022 David Eschelbacher <psoas@tampabay.rr.com>
12 * LICENSE: This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>.
23 * @package OpenEMR
24 * @link http://www.open-emr.org
27 // array of the data_types of the fields
28 // TODO: Move these all to a statically typed class with constants that can be referenced throughout the codebase!
29 $datatypes = array(
30 "1" => xl("List box"),
31 "2" => xl("Textbox"),
32 "3" => xl("Textarea"),
33 "4" => xl("Text-date"),
34 "10" => xl("Providers"),
35 "11" => xl("Providers NPI"),
36 "12" => xl("Pharmacies"),
37 "13" => xl("Squads"),
38 "14" => xl("Organizations"),
39 "15" => xl("Billing codes"),
40 "16" => xl("Insurances"),
41 "18" => xl("Visit Categories"),
42 "21" => xl("Checkbox(es)"),
43 "22" => xl("Textbox list"),
44 "23" => xl("Exam results"),
45 "24" => xl("Patient allergies"),
46 "25" => xl("Checkboxes w/text"),
47 "26" => xl("List box w/add"),
48 "27" => xl("Radio buttons"),
49 "28" => xl("Lifestyle status"),
50 "31" => xl("Static Text"),
51 "32" => xl("Smoking Status"),
52 "33" => xl("Race/Ethnicity"),
53 "34" => xl("NationNotes"),
54 "35" => xl("Facilities"),
55 "36" => xl("Multiple Select List"),
56 "37" => xl("Lab Results"),
57 "40" => xl("Image canvas"),
58 "41" => xl("Patient Signature"),
59 "42" => xl("User Signature"),
60 "43" => xl("List box w/search"),
61 "44" => xl("Multi-Select Facilties"),
62 "45" => xl("Multi-Select Provider"),
63 "46" => xl("List box w/comment"),
64 "51" => xl("Patient"),
65 "52" => xl("Previous Names"),
66 "53" => xl("Patient Encounters List"),
67 "54" => xl("Address List")
70 // These are the data types that can reference a list.
71 $typesUsingList = array(1, 21, 22, 23, 25, 26, 27, 32, 33, 34, 36, 37, 43, 46);
73 $sources = array(
74 'F' => xl('Form'),
75 'D' => xl('Patient'),
76 'H' => xl('History'),
77 'E' => xl('Visit'),
78 'V' => xl('VisForm'),
81 $UOR = array(
82 0 => xl('Unused'),
83 1 => xl('Optional'),
84 2 => xl('Required'),