encounter transaction api - WIP