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.
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
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
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
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.