Refactored SamplePatientOrder to move stuff out of the heap and added TableIdService