New patient duplication check

cfapress wrote on Friday, May 08, 2009:

A new AJAX call has been added to the <oemr>/interface/new/new_comprehensive.php code. It will check for data duplication based on simple demographic information: first, middle, last, DOB, sex, and SSN. If a duplicate is found when the user presses the CREATE button, they are warned and offered a change to stop the creation.

This is an easy feature to disable. But, I think it provides some value to the new-patient process acting as a guardian against accidental duplication.

Jason

rmehenda wrote on Thursday, May 21, 2009:

Is there anyway to add this to the current stable version. 3.0.1 released on 3/15/09.

cfapress wrote on Friday, May 22, 2009:

Ramkrishna,

It’s been a few weeks since I committed the changes but I believe you only need these files from the CVS tree:
<oemr>/interface/new/new_comprehensive.php
<oemr>/library/ajax/find_patients.php

You can download them from the CVS Code Browser:
http://openemr.cvs.sourceforge.net/openemr/

Jason

rmehenda wrote on Sunday, May 24, 2009:

Thanks for the reply.  I just tried what you suggested and attempting to add a patient also asked for the new_comprehensive_save.php. I added that file also to interface/new. I have renamed new_comprehensive.php to new.php so that it can be accessed from the left panel radio-buttons.
Now an add attempt produces:

[Internal error: Attempt to change patient data with pid = ‘’ when current pid is ‘47’ for id ‘’]

(squarebrackets added by me). I was trying to add a patient with the same name as before.

Any ideas as to how I should proceed from here?
I am familiar with Linux and permissions but not with PHP and MySQL

Thanks again and what a wonderful project this is.

Raam