# Restoring Deleted Patient

**URL:** <https://community.open-emr.org/t/restoring-deleted-patient/2598>\
**Category:** Management and Administration\
**Created:** [August 24, 2016, 2:54pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598 "2016-08-24T14:54:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 24, 2016, 2:54pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598/1 "2016-08-24T14:54:18Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Wednesday, August 24, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/e43e8329/#5be3):

A patient was deleted from the system. Is there a way to restore that patient chart?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 24, 2016, 5:56pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598/2 "2016-08-24T17:56:17Z")

</div>

**[mdsupport](https://sourceforge.net/u/mdsupport/)** wrote on [Wednesday, August 24, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/e43e8329/#6a5d):

Delete process zaps it from db. Best bet is :

1. use backup to restore as a copy of the database
2. use compound all variations of pid, patient\_id, external\_id etc in --where clause of mysqldump to create a selective dump of patient records.
3. take a backup of production
4. restore the dump without drop & create table statements.
5. validate. fix. validate.

Best luck.

ps. If you find a better way - may be something in deidentification module - please share what worked for you.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 24, 2016, 5:59pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598/3 "2016-08-24T17:59:03Z")

</div>

**[mdsupport](https://sourceforge.net/u/mdsupport/)** wrote on [Wednesday, August 24, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/e43e8329/#ad54):

You could also browse through log to see if that helps…

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 25, 2016, 5:32pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598/4 "2016-08-25T17:32:38Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Thursday, August 25, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/e43e8329/#793f):

I had a bright idea to look for all the inserts for the patient that are in the log files. That should be everything that was entered for the patient.

Sadly after many hours of labor the Inserts did not yeild the entire patient record.

Still working on this one.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 26, 2016, 2:16pm UTC](https://community.open-emr.org/t/restoring-deleted-patient/2598/5 "2016-08-26T14:16:54Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Friday, August 26, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/e43e8329/#58ce):

Restoring the LBF data is the next challange
