diff --git a/sql/7_0_1-to-7_0_2_upgrade.sql b/sql/7_0_1-to-7_0_2_upgrade.sql index 4f6385d3523..177ee53f415 100644 --- a/sql/7_0_1-to-7_0_2_upgrade.sql +++ b/sql/7_0_1-to-7_0_2_upgrade.sql @@ -236,7 +236,7 @@ INSERT INTO `list_options` (`list_id`, `option_id`, `title`) VALUES ('lists', 'r INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'fname', 'First Name', '10'); INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'mname', 'Middle Name', '20'); INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'lname', 'Last Name', '30'); -INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'dob', 'Date of Birth', '40'); +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'DOB', 'Date of Birth', '40'); #EndIf #IfNotTable recent_patients diff --git a/sql/database.sql b/sql/database.sql index fec86dee995..c180f41a463 100644 --- a/sql/database.sql +++ b/sql/database.sql @@ -13378,7 +13378,7 @@ INSERT INTO `list_options` (`list_id`, `option_id`, `title`) VALUES ('lists', 'r INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'fname', 'First Name', '10'); INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'mname', 'Middle Name', '20'); INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'lname', 'Last Name', '30'); -INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'dob', 'Date of Birth', '40'); +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('recent_patient_columns', 'DOB', 'Date of Birth', '40'); CREATE TABLE recent_patients ( user_id varchar(40) NOT NULL, diff --git a/templates/patient_finder/finder.html.twig b/templates/patient_finder/finder.html.twig index d1b05e87a9f..c93e34042c9 100644 --- a/templates/patient_finder/finder.html.twig +++ b/templates/patient_finder/finder.html.twig @@ -46,8 +46,7 @@ {% for p in rp %} {% for h in headers %} - {# Very hacky, we need a consistent manner to properly format dates far upstream #} - {% set value = (h.option_id == "DOB") ? p[h.option_id]|date() : p[h.option_id] %} + {% set value = p[h.option_id] %} {{ value|text }}