Possible defect: Invoice reminders printing deceased patients

It looks like we had an instance today where the invoice reminders printed with a deceased patient. I'll disable them for now. Sending data now w/ the following in invoice.jrxml:

 <dataSourceExpression><![CDATA[$P{dataSource}.getExpressionDataSource("reminder:getReminders(., 1, 'YEARS')")]]></dataSourceExpression>

Any ideas?

Cheers, Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Possible defect: Invoice reminders printing deceased ...

Follow-on information. The patient was marked deceased but not automatically marked deceased. The staff marked deceased as true, but didn't marke active as false. I'm guessing the logic today is looking at the active flag and not the deceased flag.

Cheers, Paul

Re: Possible defect: Invoice reminders printing deceased ...

Thats correct - the active flag is all that is used to locate patients with reminders.

In 1.8 there is a change to the patient editor that marks the patient inactive if it is deceased. This will help prevent the situation you describe. More details here: OVPMS-1543

Re: Possible defect: Invoice reminders printing deceased ...

Thanks Tim. Out of curiosity, is the same logic applied when generating reminders normally? Hoping we haven't been sending out lots of reminders for deceased patients.

Thanks, Paul

Re: Possible defect: Invoice reminders printing deceased ...

Yes. The operation to detect if a patient is deceased is more resource/time consuming, so the code relies on the active flag being set.

Re: Possible defect: Invoice reminders printing deceased ...

Understood. Thanks Tim.

Syndicate content