styling adjustments (#822)
[openemr.git] / interface / forms / ros / report.php
blobe35f53863e88133739e4f61f3f773ea3adc4e67c
1 <?php
2 //------------Forms generated from formsWiz
3 include_once(dirname(__FILE__).'/../../globals.php');
4 include_once($GLOBALS["srcdir"]."/api.inc");
6 function ros_report( $pid, $encounter, $cols, $id) {
8 $count = 0;
10 $data = formFetch("form_ros", $id);
12 if ($data) {
13 $cmap = array(
14 "id" => '',
15 "pid" => '',
16 "user" => '',
17 "groupname" => '',
18 "activity" => '',
19 "authorized" => '',
20 "date" => '',
22 // This maps a label to custom text. For example "glaucoma_history" should be
23 // displayed as "Glaucoma Family History". If this wasn't specified, the code
24 // will display it as "Glaucoma History" due to some clever string manipulation.
25 // Acronyms are handled in this map as well.
26 "glaucoma_history" => "Glaucoma Family History",
27 "irritation" => "Eye Irritation",
28 "redness" => "Eye Redness",
29 "discharge" => "ENT Discharge",
30 "pain" => "ENT Pain",
31 "biopsy" => "Breast Biopsy",
32 "hemoptsyis" => "Hemoptysis",
33 "copd" => "COPD",
34 "pnd" => "PND",
35 "doe" => "DOE",
36 "peripheal" => "Peripheral",
37 "legpain_cramping" => "Leg Pain/Cramping",
38 "frequency" => "Urine Frequency",
39 "urgency" => "Urine Urgency",
40 "utis" => "UTIs",
41 "hesitancy" => "Urine Hesitancy",
42 "dribbling" => "Urine Dribbling",
43 "stream" => "Urine Stream",
44 "g" => "Female G",
45 "p" => "Female P",
46 "lc" => "Female LC",
47 "ap" => "Female AP",
48 "mearche" => "Menarche",
49 "lmp" => "LMP",
50 "f_frequency" => "Menstrual Frequency",
51 "f_flow" => "Menstrual Flow",
52 "f_symptoms" => "Female Symptoms",
53 "f_hirsutism" => "Hirsutism/Striae",
54 "swelling" => "Musc Swelling",
55 "m_redness" => "Musc Redness",
56 "m_warm" => "Musc Warm",
57 "m_stiffness" => "Musc Stiffness",
58 "m_aches" => "Musc Aches",
59 "fms" => "FMS",
60 "loc" => "LOC",
61 "tia" => "TIA",
62 "n_numbness" => "Neuro Numbness",
63 "n_weakness" => "Neuro Weakness",
64 "n_headache" => "Headache",
65 "s_cancer" => "Skin Cancer",
66 "s_acne" => "Acne",
67 "s_other" => "Skin Other",
68 "s_disease" => "Skin Disease",
69 "p_diagnosis" => "Psych Diagnosis",
70 "p_medication" => "Psych Medication",
71 "abnormal_blood" => "Endo Abnormal Blood",
72 "fh_blood_problems" => "FH Blood Problems",
73 "hiv" => "HIV",
74 "hai_status" => "HAI Status",
77 print "<div id='form_ros_values'><table class='report_results'><tr>";
79 foreach($data as $key => $value) {
80 if (isset($cmap[$key])) {
81 if ($cmap[$key] == '') continue;
82 $key = $cmap[$key];
83 } else {
84 $key = ucwords(str_replace("_"," ",$key));
87 // skip the N/A values -- cfapress, Jan 2009 OR blank or zero date values
88 if ($value == "N/A" || $value == "" ||
89 $value == "0000-00-00" || $value == "0000-00-00 00:00:00") continue;
91 if ($value == "on") { $value = "yes"; }
93 printf ("<td><span class=bold>%s: </span><span class=text>%s</span></td>"
94 , xl($key), xl($value));
95 $count++;
97 if ($count == $cols) {
98 $count = 0;
99 print "</tr><tr>\n";
103 print "</tr></table></div>";