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