Updated code, added functions for capturing services which are not from OpenMRS(such as PatientAssignment)
Updated code for storing info to TDB