|  | @ -2561,11 +2561,12 @@ public class HcyyEntranceService {
 | 
	
		
			
				|  |  |         //处方明细
 | 
	
		
			
				|  |  |         String prescriptionItems="";
 | 
	
		
			
				|  |  |         for (int i = 0; i < infos.size(); i++) {
 | 
	
		
			
				|  |  |             String resId = UUID.randomUUID().toString();
 | 
	
		
			
				|  |  |             String prescriptionItem =
 | 
	
		
			
				|  |  |                     "        <opt_prescription_item>     \n" +
 | 
	
		
			
				|  |  |                     "           <recipe_item_id><![CDATA["+hisId+"]]></recipe_item_id>  \n" +
 | 
	
		
			
				|  |  |                     "           <recipe_id><![CDATA["+infos.get(i).getId()+"]]></recipe_id>  \n" +
 | 
	
		
			
				|  |  |                     "           <group_no><![CDATA["+infos.get(i).getGroupNo()+"]]></group_no>  \n" +
 | 
	
		
			
				|  |  |                     "           <recipe_item_id><![CDATA["+resId+"]]></recipe_item_id>  \n" +
 | 
	
		
			
				|  |  |                     "           <recipe_id><![CDATA["+hisId+"]]></recipe_id>  \n" +
 | 
	
		
			
				|  |  |                     "           <group_no><![CDATA[1]]></group_no>  \n" +
 | 
	
		
			
				|  |  |                     "           <drug_id><![CDATA["+infos.get(i).getHisCode()+"]]></drug_id>  \n" +
 | 
	
		
			
				|  |  |                     "           <drug_name><![CDATA["+infos.get(i).getDrugName()+"]]></drug_name>  \n" +
 | 
	
		
			
				|  |  |                     "           <specification><![CDATA["+infos.get(i).getSpecification()+"]]></specification>  \n" +
 | 
	
	
		
			
				|  | @ -2578,13 +2579,12 @@ public class HcyyEntranceService {
 | 
	
		
			
				|  |  |                     "           <count_unit><![CDATA["+infos.get(i).getPackQuantity()+"]]></count_unit>  \n" +
 | 
	
		
			
				|  |  |                     "           <unit_price><![CDATA["+infos.get(i).getPackRetprice()+"]]></unit_price>  \n" +
 | 
	
		
			
				|  |  |                     "           <fee_total><![CDATA["+infos.get(i).getPackQuantity() * infos.get(i).getPackRetprice()+"]]></fee_total>  \n" +
 | 
	
		
			
				|  |  |                     "           <duration><![CDATA["+infos.get(i).getUsageName()+"]]></duration>  \n" +
 | 
	
		
			
				|  |  |                     "           <duration><![CDATA["+infos.get(i).getDays()+"]]></duration>  \n" +
 | 
	
		
			
				|  |  |                     "           <preparation><![CDATA["+infos.get(i).getUnitName()+"]]></preparation>  \n" +
 | 
	
		
			
				|  |  |                     "           <approve_no><![CDATA["+infos.get(i).getPzwh()+"]]></approve_no>  \n" +
 | 
	
		
			
				|  |  |                     "           <medicare_type><![CDATA[]]></medicare_type>  \n" +
 | 
	
		
			
				|  |  |                     "           <ouvas_flag><![CDATA[]]></ouvas_flag>  \n" +
 | 
	
		
			
				|  |  |                     "           <skin_test_flag><![CDATA[]]></skin_test_flag>  \n" +
 | 
	
		
			
				|  |  |                     "           <duration><![CDATA[]]></duration>  \n" +
 | 
	
		
			
				|  |  |                     "           <special_prompt><![CDATA[]]></special_prompt>  \n" +
 | 
	
		
			
				|  |  |                     "       </opt_prescription_item>  ";
 | 
	
		
			
				|  |  |             prescriptionItems += prescriptionItem;
 | 
	
	
		
			
				|  | @ -2592,11 +2592,10 @@ public class HcyyEntranceService {
 | 
	
		
			
				|  |  |         //诊断
 | 
	
		
			
				|  |  |         String prescriptionDiagnoses="";
 | 
	
		
			
				|  |  |         for (int i = 0; i < diagnosisDOS.size(); i++) {
 | 
	
		
			
				|  |  |             String diagDate = DateUtil.dateToStrLong(diagnosisDOS.get(i).getCreateTime());
 | 
	
		
			
				|  |  |             String prescriptionDiagnose =
 | 
	
		
			
				|  |  |                     "   <opt_diagnosis>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_id><![CDATA["+diagnosisDOS.get(i).getId()+"]]></diag_id>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_date><![CDATA["+diagDate+"]]></diag_date>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_date><![CDATA["+eventTime+"]]></diag_date>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_name><![CDATA["+diagnosisDOS.get(i).getName()+"]]></diag_name>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_code><![CDATA["+diagnosisDOS.get(i).getCode()+"]]></diag_code>  \n" +
 | 
	
		
			
				|  |  |                     "       <diag_status><![CDATA[0]]></diag_status>  \n" +
 |