Actually, the ionic equation for this is a reversible equation since codeine is a weak base. Any weak base or weak acids do not completely dissociate which makes them a reversible process. The ionic equation for this case is:
C18H21O3N + H3O+ <=> C18H21O3NH+ + H2O