anchor.diff:  		 */
   		var pageStat = {
   			btnAddElem : true,
  -			focusIndex : 0
  +			focusIndex : 0,
  +			medDataTable : null,
  +			treatDataTable : null,
   		}
   
   		$(document).ready(function(){
  
positive.code: 		 * Uncheck the checkbox in the modal.
  		 */
  		var unchkModal  = function(){
  			return false;
  		}
  
  		/**
  		 * Prepare modals activities.
  		 */
  		var prepareModalActivity = function(){
  
negative.code: 			$("#instance-elem").remove();
  			row.removeAttr('id');
  
  			pageStat.medDataTable = $('#med-datatable').DataTable(); 
  			/*When click OK on product modal*/
  			$("#btn_submit_be_allergic").click(function(event) {
  				/*Get product id.*/
  				var product_id = pageStat.medDataTable.$('input[name="productModel.product_id_arr"]')
  					.serializeArray();
  
  				/**
  				 * Put into the table med list.
  