Delete patient notes

cfapress wrote on Friday, April 03, 2009:

I’ve just updated the CVS code with a new feature:
patient notes can now be deleted.

Patient Notes are not Encounter Notes or Office Notes. I’m referring to the notes that appear based on records in the ‘pnotes’ database table. They show up when you view a patient.

In order to delete a note the user must either be an Administrator or the author of the note. A warning appears to make the user pause and consider the deletion before commiting the action.

When a note is deleted it is not erased from the database. It is simply marked as deleted. It cannot be accessed from any of the OpenEMR screens but can be pulled up directly through phpMyAdmin or another MySQL tool. So it could be ‘undeleted’ at some point if necessary.

Also, the delete action is logged with the user name and MySQL record ID of the note.

I added this feature after a discussion in the Users forum:
https://sourceforge.net/forum/forum.php?thread_id=3134528&forum_id=202504

In order to make this function as desired, I needed to add a new field to the pnotes table. So there is a change to the sql/database.sql file **and** I created a new file for those who will upgrade in the future, sql/3_0_0-to-3_0_2_upgrade.sql

I just took a guess at the revision stepping. Since we are already at v3.0.1 I figured the next release would be 3.0.2. Maybe I should have gone with v3.1.0 ??

Jason