I want to show only coded or non coded diagnosis from only from my last encounter in the HTML Form report.. so one help me in this?

I want to show only coded or non coded diagnosis only from my last encounter in HTML Form report… so one help me in this?

Can you give some more details regarding the exact use case?

in my report i want to show the last encounter primary diagnosis it should show only the icd 10 coded or non coded diagnosis ( not the both) ( like it should show E11.90 diabetes or non coded diagnosis from the encounter diagnosis table

Do you have a mockup of what your report should look like?