[OE-2589] only look for diagnoses for the current episode if the patient object is set