refactored to share cohort summary template
only log the view for the patient's clinician [Finishes #72469916]