Blank fee sheet on openemr 5.0.0

Fixed it by deleting all the encounters with “in office” in the database. Worked perfectly afterwards.

nice, thank you for sharing your experience as we work to fix the bugs that will help the community upgrade their systems

might want to fix the date/time on the system since it can affect openemr as well as other services, http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/

Done.

Thanks for the suggestion!

Regards,

I also faced the same issue in openemr 7.0.2.
I traced the php logs and found out that because i disabled the field DOB from Admin > Forms > Layout > Demographics
This was causing null pointer exception in two php files:

openmer/library/FeeSheet.class.php > method getAge()
I resolved this by adding this line as first line in getAge() method
if($dob == null) return 0;

Second file which causing the issue was

openmer/library/clinical_rules.php > methods
$patientAgeYears = convertDobtoAgeYearDecimal($patientData[‘DOB_TS’], $dateTarget);
$patientAgeMonths = convertDobtoAgeMonthDecimal($patientData[‘DOB_TS’], $dateTarget);

I fixed it by replacing these two lines with this code:
$patientAgeYears = 0;
$patientAgeMonths = 0;
if($patientData[‘DOB_TS’] != null) {
$patientAgeYears = convertDobtoAgeYearDecimal($patientData[‘DOB_TS’], $dateTarget);
$patientAgeMonths = convertDobtoAgeMonthDecimal($patientData[‘DOB_TS’], $dateTarget);
}

I think this fix should be added as hotfix patch asap in production.

Found another file which was causing a php warning.

openmer/src/Reminder/BirthdayReminder.php
method > isDisplayBirthdayAlert() At Line 52

This is because $res[‘DOB’] is null.

To fix this, add these lines after $res = sqlQuery($sql, array($this->pid));

if($res[‘DOB’] == null) {
return false;
}

1 Like