Death Tracking

bradymiller wrote on Thursday, May 05, 2011:

Added mechanism to record patient death (can record date and reason).
    -Placed in the Misc section of patient demographics.
    -If patient is deceased then a prominent indicator will show up in the patient summary.
    -Function is_patient_deceased() in library/patient.inc created to check if patient is deceased.
      (this function can be used by CDR and reporting mechanism)
    -Incorporated the is_patient_deceased() into the CDR engine to not give reminders for dead people.

Github branch is here:
http://github.com/bradymiller/openemr/commits/deceased

Will give time for review before committing.
-brady

bradymiller wrote on Friday, May 06, 2011:

Just committed this feature to sourceforge:
http://openemr.git.sourceforge.net/git/gitweb.cgi?p=openemr/openemr;a=commitdiff;h=94aab9b0aae25612d0bf5e65f838a7bde30d87cc
-brady

arnabnaha wrote on Saturday, May 07, 2011:

Hi Brady…
Problems in tracking death and deceased…
When adding the death date and the reason, it is shown in the misc section of the demographics, but there is no prominent indicator in the patient summary. The log file of apache is showing the following error:

   PHP Warning:  Missing argument 2 for is_patient_deceased(), called in C:\\xampp\\htdocs\\openemr\\interface\\patient_file\\summary\\demographics.php on line 353 and defined in C:\\xampp\\htdocs\\openemr\\library\\patient.inc on line 1479, referer: http://localhost/openemr/interface/main/left_nav.php
   PHP Warning:  DOMDocument::save(generatedXml/ccrForCCD.xml) : failed to open stream: No such file or directory in C:\\xampp\\htdocs\\openemr\\ccr\\createCCR.php on line 165, referer: http://localhost/openemr/interface/patient_file/report/patient_report.php
   PHP Warning:  DOMDocument::save(generatedXml/ccdDebug.xml) : failed to open stream: No such file or directory in C:\\xampp\\htdocs\\openemr\\ccr\\createCCR.php on line 192, referer: http://localhost/openemr/interface/patient_file/report/patient_report.php
   PHP Warning:  Missing argument 2 for is_patient_deceased(), called in C:\\xampp\\htdocs\\openemr\\interface\\patient_file\\summary\\demographics.php on line 353 and defined in C:\\xampp\\htdocs\\openemr\\library\\patient.inc on line 1479, referer: http://localhost/openemr/interface/main/left_nav.php
   PHP Warning:  DOMDocument::save(generatedXml/ccrDebug.xml) : failed to open stream: No such file or directory in C:\\xampp\\htdocs\\openemr\\ccr\\createCCR.php on line 134, referer: http://localhost/openemr/interface/patient_file/report/patient_report.php

Please check…i am using windows 7 and xampp 1.7.1

arnabnaha wrote on Saturday, May 07, 2011:

Sat May 07 10:26:41 2011]   PHP Warning:  Missing argument 2 for is_patient_deceased(), called in C:\\xampp\\htdocs\\openemr\\interface\\patient_file\\summary\\demographics.php on line 353 and defined in C:\\xampp\\htdocs\\openemr\\library\\patient.inc on line 1479, referer: http://localhost/openemr/interface/main/finder/patient_select.php
   PHP Warning:  Missing argument 2 for is_patient_deceased(), called in C:\\xampp\\htdocs\\openemr\\interface\\patient_file\\summary\\demographics.php on line 353 and defined in C:\\xampp\\htdocs\\openemr\\library\\patient.inc on line 1479, referer: http://localhost/openemr/interface/patient_file/summary/demographics_full.php

arnabnaha wrote on Saturday, May 07, 2011:

Hi Brady…
Any help on this???

bradymiller wrote on Saturday, May 07, 2011:

Hi,
Is it not working? The warnings should not break it. I’ll figure out a way to not trigger them, but again these are benign.
-brady

bradymiller wrote on Saturday, May 07, 2011:

Hi,
Just noted your previous message. What date did you make the death; if you made it today, then it’s a bit buggy still. What happens if you make the death a week ago (a day ago). Note you will See the words DECEASED to the right of the patient name in the patient summary.
-brady

arnabnaha wrote on Saturday, May 07, 2011:

No… looking at the code, if a patient is deceased, the  system should return the number of days the patient has been deceased and there should be a prominent indicator in the summary of the patient. No such thing. it still shows the same old summary page.

arnabnaha wrote on Saturday, May 07, 2011:

Hi Brady….
You are right…made the death date today…its not showing…
Just now edited the date 16 days back and it shows nicely…