Clearly the change made just before due date did not solve for all cases. When testing I apparently was always using patients with at least one diagnosis. The bug was for when a patient had no diagnoses. Here's the TODO:
[x] Fix logic such that addLabOrderButton is always enabled unless a "final" diagnosis has been entered.
[ ] Verify that all the buttons are enabled with the following logic:
If final diagnosis has been entered (all buttons but close are disabled)
Clearly the change made just before due date did not solve for all cases. When testing I apparently was always using patients with at least one diagnosis. The bug was for when a patient had no diagnoses. Here's the TODO:
If final diagnosis has been entered (all buttons but close are disabled)
If all lab tests are complete: