Delete or hide and change Recall Board columns

There are 3 columns on the Recall Board we never use… Postcards, Labels and Office Phone. I would like to hide them so we can make the Recall column and Notes column wider.

I know the place to start is Library/MedEx/API.php but I’m not sure on the best way to approach the issue.

Any help would really be appreciated.

In the file library/MedEx/API.php inside function display_recalls after:

$(function () {
show_this();

Add this:

        $("th:contains('Postcard')").css({"display": "none"});
        $("th:contains('Labels')").css({"display": "none"});
        $("th:contains('Office: Phone')").css({"display": "none"});
        $(".postcards").hide();
        $(".labels").hide();
        $(".msg_manual").hide();

Thank you. I tried it but it was not successful. It just changed the layout - made colums different sizes and moved data into incorrect columns. Here;'s what I did…

        function toggleRcbSelectors() {
            if ($("#rcb_selectors").css('display') === 'none') {
                $.post( "<?php echo $GLOBALS['webroot']."/interface/main/messages/messages.php"; ?>", {
                    'rcb_selectors' : 'block',
                    success: function (data) {
                        $("#rcb_selectors").slideToggle();
                        $("#rcb_caret").css('color','#000');
                    }
                });
            } else {
                $.post( "<?php echo $GLOBALS['webroot']."/interface/main/messages/messages.php"; ?>", {
                    'rcb_selectors' : 'none',
                    success: function (data) {
                        $("#rcb_selectors").slideToggle();
                        $("#rcb_caret").css('color','red');
                    }
                });
            }
            $("#print_caret").toggleClass('fa-caret-up').toggleClass('fa-caret-down');
        }

        /**
         * @return {boolean}
         */
        function SMS_bot(pid) {
            top.restoreSession();
            pid = pid.replace('recall_','');
            window.open('<?php echo $GLOBALS['webroot']; ?>/interface/main/messages/messages.php?nomenu=1&go=SMS_bot&pid=' + pid,'SMS_bot', 'width=370,height=600,resizable=0');
            return false;
        }
        $(function() {
            show_this();

$(“th:contains(‘Postcard’)”).css({“display”: “none”});
$(“th:contains(‘Labels’)”).css({“display”: “none”});
$(“th:contains(‘Office: Phone’)”).css({“display”: “none”});
$(".postcards").hide();
$(".labels").hide();
$(".msg_manual").hide();

            $('.datepicker').datetimepicker({
                <?php $datetimepicker_timepicker = false; ?>
                <?php $datetimepicker_showseconds = false; ?>
                <?php $datetimepicker_formatInput = true; ?>
                <?php require($GLOBALS['srcdir'] . '/js/xl/jquery-datetimepicker-2-5-4.js.php'); ?>
                <?php // can add any additional javascript settings to datetimepicker here; need to prepend first setting with a comma ?>
            });
        });
        </script>

Not sure why it works here and not there. Your other option is

  1. remove the new lines above
  2. delete the code directly in the file API.php:
  • The column titles are in function display_recalls
  • The patient cells containing this data is in private function recall_board_process