Re: Find ID with Highest Id on the top

ahmed159 wrote on Wednesday, March 18, 2015:

Hi Team,

In Openemr Left hand side Corner below there is search-Find Box to search patient by different ways, Ex ID, Name and DOB

In the Find Box if i click ID it shows the entire ID from Lower ID Number to higher ID Number.

Is it possible if I click ID it should show me from the Highest ID number first?

Thanks for all the support

visolveemr wrote on Wednesday, March 18, 2015:

Hello Ahmed,

To achieve this you need to change the file /interface/main/finder/patient_select.php on line no.238(as of OpenEMR4.2.0)

Change

$result = getPatientId(“$patient”, $given, "id ASC, ".$orderby, $sqllimit, $fstart);

with

$result = getPatientId(“$patient”, $given, "id DESC, ".$orderby, $sqllimit, $fstart);

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

ahmed159 wrote on Wednesday, March 18, 2015:

Thank you so much visolve.

Sent from my iPhone

On Mar 18, 2015, at 3:19 PM, “ViSolve” visolveemr@users.sf.net wrote:

Hello Ahmed,

To achieve this you need to change the file /interface/main/finder/patient_select.php on line no.238(as of OpenEMR4.2.0)

Change

$result = getPatientId(“$patient”, $given, "id ASC, ".$orderby, $sqllimit, $fstart);

with

$result = getPatientId(“$patient”, $given, "id DESC, ".$orderby, $sqllimit, $fstart);

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

Re: Find ID with Highest Id on the top

Sent from sourceforge.net because you indicated interest in OpenEMR / Discussion / OpenEMR Users

To unsubscribe from further messages, please visit SourceForge.net: Log In to SourceForge.net