personalcancertoolkit / openmrs-module-patientportaltoolkit

Other
7 stars 9 forks source link

When a new surgery is a added to a patient's treatments on their medical profile, if the surgery date is left blank, the portal stops working for that patient. #510

Closed PhilipAdeoye closed 1 year ago

PhilipAdeoye commented 1 year ago

When a new surgery is created, its details are stored in obs table as 11 separate records with the same encounter_id.

The surgery date is saved with a concept_id = 162842 and in the value_datetime column in the format yyyy-mm-dd hh:mm:ss. Setting the surgery date restores portal function. However, we can't always know what the surgery date is if the patient entered a blank date.

PhilipAdeoye commented 1 year ago

Fixed in commit 86d0fca401b82a9d2db91684f3c7d8184031d44b