Am starting to think setting the order type to 1 or 2 is wrong because these are not guanranteed to be the primary key values unless in the changesets that inserts them these are defined as the ids. Some implementations will pre-populate the order_type table and these ids will differ. The possible solutions are:
1- Either hard code the ids for test and drug order types and use them here as 1and 2
2- Use a custom changeset that will get the order type by java_class