i added this changeset as a response to your comment on the ticket @wluyima that says; you need to add a changeset that should check that no order has a null encounter.
were you meaning this or something else, and if it was this then do i again need to address the comment since it is requiring the same thing as does https://tickets.openmrs.org/browse/TRUNK-4283 ? 
for the case of dbms, i realised some tests were failing on upgrade and yet would pass when i included it, that's why i added it there, in case there's need for this changeset again then i can try removing it again and run mvn clean install and if passes, well and good, i remove it,