CCDA server fixups (#4356)
[openemr.git] / library / layout.inc.php
blobcce5862c5549bb89549fed1ddf6f42eddefca36d
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 $datatypes = array(
27 "1" => xl("List box"),
28 "2" => xl("Textbox"),
29 "3" => xl("Textarea"),
30 "4" => xl("Text-date"),
31 "10" => xl("Providers"),
32 "11" => xl("Providers NPI"),
33 "12" => xl("Pharmacies"),
34 "13" => xl("Squads"),
35 "14" => xl("Organizations"),
36 "15" => xl("Billing codes"),
37 "16" => xl("Insurances"),
38 "18" => xl("Visit Categories"),
39 "21" => xl("Checkbox(es)"),
40 "22" => xl("Textbox list"),
41 "23" => xl("Exam results"),
42 "24" => xl("Patient allergies"),
43 "25" => xl("Checkboxes w/text"),
44 "26" => xl("List box w/add"),
45 "27" => xl("Radio buttons"),
46 "28" => xl("Lifestyle status"),
47 "31" => xl("Static Text"),
48 "32" => xl("Smoking Status"),
49 "33" => xl("Race/Ethnicity"),
50 "34" => xl("NationNotes"),
51 "35" => xl("Facilities"),
52 "36" => xl("Multiple Select List"),
53 "37" => xl("Lab Results"),
54 "40" => xl("Image canvas"),
55 "41" => xl("Patient Signature"),
56 "42" => xl("User Signature"),
57 "43" => xl("List box w/search"),
58 "44" => xl("Multi-Select Facilties"),
59 "45" => xl("Multi-Select Provider"),
60 "46" => xl("List box w/comment"),
61 "51" => xl("Patient"),
64 // These are the data types that can reference a list.
65 $typesUsingList = array(1, 21, 22, 23, 25, 26, 27, 32, 33, 34, 36, 37, 43, 46);
67 $sources = array(
68 'F' => xl('Form'),
69 'D' => xl('Patient'),
70 'H' => xl('History'),
71 'E' => xl('Visit'),
72 'V' => xl('VisForm'),
75 $UOR = array(
76 0 => xl('Unused'),
77 1 => xl('Optional'),
78 2 => xl('Required'),