I tried, but I’m not an expert in javascript, but I need your help, I searched the code, but so far unable to find it, to hide certain elements and add buttons.
For example, here I need to hide the contents inside the red rectangles.
and in demographics to the side where it says “interconsulta” create a button that directs me to “History” and next to this other button to “Documents”
Hi.
You can hide menu using css in file -> interface/themes/style_light.css
table.subnav {
display: none;
}
For adding buttons to demographics you can add JS to interface/patient_file/summary/demographics.php
and to interface/patient_file/history/encounters.php for buttons in encounter list.
I would recommend not changing the CSS file directly; instead create a CSS file inside of /interface/themes/ (It can be called anything as long as it starts with style_
Inside of that file the first line should be
@import url(“./style_light.css);
Add any custom styling beneath and change your theme to that from Appearance —> Globals
This extends a theme and allows better customization.
This helps avoid upgrade conflict. If you change the style_light CSS directly, you’ll lose any changes if you do an upgrade. Same applies to any JS. I recommend creating a separate JavaScript file and including it as needed to ensure minimum upgrade troubles.