Where can I modify display of patient list

freyafang12 wrote on Friday, June 17, 2016:

For some reason I changed patients’ DOB from date type to datetime type. But I still want to hide the time on the patient summary page (the place that navigated from the left bar “Patients”). For instance, if a patient’s DOB is 2010-01-01 12:00:00, then I just want to show the date of “2010-01-01”. I have been struggling with finding the right file to edit for more than two hours. Appreciate in advance if someone could tell me the right file to modify and solve this problem!

sunsetsystems wrote on Friday, June 17, 2016:

That page is layout-based so you want to look at library/options.inc.php for the logic that formats date fields. It’s called from many places so be careful how you do this.

Rod
http://www.sunsetsystems.com/

sunsetsystems wrote on Friday, June 17, 2016:

Oh never mind, I think you mean the patient finder. Start with interface/main/finder/dynamic_finder.php.

Rod
http://www.sunsetsystems.com/

freyafang12 wrote on Friday, June 17, 2016:

Thank you for the answer! I’ve actually looked into dynamic_finder.php for couple times but still don’t have a clue about where to do changes. I also traced down to other relavent files but then I lost track (Sufferred as a PHP beginner). Could you please suggest a more specific file I can start with?

sunsetsystems wrote on Friday, June 17, 2016:

It invokes dynamic_finder_ajax.php to get the data for the table, so that’s probably what you want.

Rod
http://www.sunsetsystems.com/

freyafang12 wrote on Friday, June 17, 2016:

Thank you so much! Finally got it fixed :slight_smile:

mrlinux wrote on Thursday, July 21, 2016:

I’m actually wondering something similar. I’m trying to change the layout so that instead of “Home Phone”, and “SSN”, we show gender and housing location. Where am I looking in that file to make those kinds of changes?

gowepp wrote on Friday, July 22, 2016:

Hi,

You can please take look into Administration-> Layouts->Demographics to make the required changes.

Thanks,
Wepp Team

harleytuck wrote on Friday, July 22, 2016:

Hello Mr Linux-

I get the impression that you would like to change the columns in the Patient Search module which by default are Full Name, Home Phone, SSN, Date of Birth, PID.

OpenEMR does provide for doing that without any special coding, as long as the data comes from the patient_data table. Basically all you do is edit the list “Patient List Columns”; details are the attached pdf.

Hope that’s helpful.

Regards- Harley
MI2