How do I add diagnosis (code) to superbill invoice?

How do I add diagnosis (code) to superbill invoice?

I added diagnosis code after signing the encounter note. 
Even after doing this, when I try to generate a superbill, it will not add the Dx in the form. 
Is there a way to edit the encounter or add diagnosis.. or do something to add the Dx in the superbill?