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>.
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!
30 "1" => xl("List box"),
32 "3" => xl("Textarea"),
33 "4" => xl("Text-date"),
34 "10" => xl("Providers"),
35 "11" => xl("Providers NPI"),
36 "12" => xl("Pharmacies"),
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);