modify display of encounter details so that if a custom encounter details display template is configured for an encounter with an html form, that custom template overrides the html form display