modified the lab results logic to be executed when show lab results property is true