encounter transaction api - implemented order update WIP
encounter transaction api - minor refactoring