Filters contents based on the encounter identifier (such as the visit number, encounter number, or chart ID).