|  | @ -519,7 +519,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         archiveInfo.setHomeAddress(archive.getAdress());
 | 
	
		
			
				|  |  |         archiveInfo.setOrgId("0");
 | 
	
		
			
				|  |  |         archiveInfo.setResidence(1);
 | 
	
		
			
				|  |  |         archiveInfo.setNational(archive.getAdress());
 | 
	
		
			
				|  |  |         archiveInfo.setNational(archive.getNation());
 | 
	
		
			
				|  |  |         archiveInfo.setOrigo("350200");
 | 
	
		
			
				|  |  |         archiveInfo.setBlood(Integer.valueOf(archive.getBlood()));
 | 
	
		
			
				|  |  |         archiveInfo.setBloodRh(1);
 | 
	
	
		
			
				|  | @ -533,9 +533,6 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         json.put("TRANSFUSION","0");//   "TRANSFUSION":"既往史--输血--【0 无 1 有】(同一类别,新增时,默认选无)",
 | 
	
		
			
				|  |  |         json.put("EXPOSE_WITHOUT","1");//"EXPOSE_WITHOUT":"暴露史--无【0不勾选 1勾选】(同一类别,新增时,默认勾选)",
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         archiveInfo.setAllergic("0");
 | 
	
		
			
				|  |  |         archiveInfo.setPast("0");
 | 
	
		
			
				|  |  |         archiveInfo.setGenetic(0);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //教育程度
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getEducation())){
 | 
	
	
		
			
				|  | @ -574,6 +571,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                 if("4".equals(str)){
 | 
	
		
			
				|  |  |                     json.put("ALLERGIC_OTHER","1");//药物过敏史--其它
 | 
	
		
			
				|  |  |                     allergicStr +="4,";
 | 
	
		
			
				|  |  |                     archiveInfo.setAllergicOtherContent(archive.getDrugOtherContent());
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (allergicStr.length()>1){
 | 
	
	
		
			
				|  | @ -587,6 +585,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         //既往史
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getPastHistorys())){
 | 
	
		
			
				|  |  |             String pastStr = "";
 | 
	
		
			
				|  |  |             String pastDateStr = "";
 | 
	
		
			
				|  |  |             json.put("PAST_NONE","0");//既往史
 | 
	
		
			
				|  |  |             String phs[] = archive.getPastHistorys().split(",");
 | 
	
		
			
				|  |  |             String dates[] = archive.getPastHistoryDate().split(",");
 | 
	
	
		
			
				|  | @ -596,14 +595,14 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                     pastStr +="1,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_HYPERTENSION_DATE",dates[i]);//既往史--疾病--高血压日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastHypertensionDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else if("2".equals(phs[i])){
 | 
	
		
			
				|  |  |                     json.put("PAST_DIABETES","1");//既往史--疾病--糖尿病【0不勾选 1勾选】
 | 
	
		
			
				|  |  |                     pastStr +="2,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_DIABETES_DATE",dates[i]);//既往史--疾病--糖尿病日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastDiabetesDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | //                if("3".equals(phs[i])){
 | 
	
	
		
			
				|  | @ -617,14 +616,19 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                     pastStr +="4,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_OTHER_CONTENT_DATE",dates[i]);//既往史--疾病--高血压日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastOtherContentDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     archiveInfo.setPastOtherContent(archive.getPastHistoryContent());
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (pastStr.length()>1){
 | 
	
		
			
				|  |  |                 pastStr = pastStr.substring(0,pastStr.length()-1);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             archiveInfo.setPast(pastStr);
 | 
	
		
			
				|  |  |             if (pastDateStr.length()>1){
 | 
	
		
			
				|  |  |                 pastDateStr = pastDateStr.substring(0,pastDateStr.length()-1);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             archiveInfo.setPastDate(pastDateStr);
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             json.put("PAST_NONE","1");//既往史
 | 
	
		
			
				|  |  |             archiveInfo.setPast("0");
 | 
	
	
		
			
				|  | @ -634,7 +638,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getGeneticFlag())){
 | 
	
		
			
				|  |  |             json.put("GENETIC","1");//遗传病史【0 无 1 有】
 | 
	
		
			
				|  |  |             json.put("GENETIC_DISEASENAME",archive.getGeneticContent());//疾病名称
 | 
	
		
			
				|  |  |             archiveInfo.setGenetic(0);
 | 
	
		
			
				|  |  |             archiveInfo.setGenetic(1);
 | 
	
		
			
				|  |  |             archiveInfo.setGeneticDiseaseName(archive.getGeneticContent());
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             json.put("GENETIC","0");//遗传病史【0 无 1 有】
 | 
	
	
		
			
				|  | @ -692,7 +696,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //家族史
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getFamilyHistoryFlag())&&"1".equals(archive.getFamilyHistoryFlag())){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             archiveInfo.setFamilyNone(1);
 | 
	
		
			
				|  |  |             //父亲
 | 
	
		
			
				|  |  |             if(StringUtils.isNotBlank(archive.getFamilyFatherHistorys())){
 | 
	
		
			
				|  |  |                 String fatherStr ="";
 | 
	
	
		
			
				|  | @ -982,7 +986,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         archiveInfo.setHomeAddress(archive.getAdress());
 | 
	
		
			
				|  |  |         archiveInfo.setOrgId("0");
 | 
	
		
			
				|  |  |         archiveInfo.setResidence(1);
 | 
	
		
			
				|  |  |         archiveInfo.setNational(archive.getAdress());
 | 
	
		
			
				|  |  |         archiveInfo.setNational(archive.getNation());
 | 
	
		
			
				|  |  |         archiveInfo.setOrigo("350200");
 | 
	
		
			
				|  |  |         archiveInfo.setBlood(Integer.valueOf(archive.getBlood()));
 | 
	
		
			
				|  |  |         archiveInfo.setBloodRh(1);
 | 
	
	
		
			
				|  | @ -995,10 +999,6 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         json.put("TRANSFUSION","0");//   "TRANSFUSION":"既往史--输血--【0 无 1 有】(同一类别,新增时,默认选无)",
 | 
	
		
			
				|  |  |         json.put("EXPOSE_WITHOUT","1");//"EXPOSE_WITHOUT":"暴露史--无【0不勾选 1勾选】(同一类别,新增时,默认勾选)",
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         archiveInfo.setAllergic("0");
 | 
	
		
			
				|  |  |         archiveInfo.setPast("0");
 | 
	
		
			
				|  |  |         archiveInfo.setGenetic(0);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //教育程度
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getEducation())){
 | 
	
		
			
				|  |  |             json.put("EDUCATION",archive.getEducation()+"");//文化程度
 | 
	
	
		
			
				|  | @ -1012,7 +1012,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         //支付方式
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getPayment())){
 | 
	
		
			
				|  |  |             json.put("MEDICAL_EXPENSES",archive.getPayment()+"");//支付方式
 | 
	
		
			
				|  |  |             archiveInfo.setMedicalExpenses(Integer.getInteger(archive.getPayment()));
 | 
	
		
			
				|  |  |             archiveInfo.setMedicalExpenses(Integer.valueOf(archive.getPayment()));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //药物过敏史
 | 
	
	
		
			
				|  | @ -1036,6 +1036,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                 if("4".equals(str)){
 | 
	
		
			
				|  |  |                     json.put("ALLERGIC_OTHER","1");//药物过敏史--其它
 | 
	
		
			
				|  |  |                     allergicStr +="4,";
 | 
	
		
			
				|  |  |                     archiveInfo.setAllergicOtherContent(archive.getDrugOtherContent());
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (allergicStr.length()>1){
 | 
	
	
		
			
				|  | @ -1049,6 +1050,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |         //既往史
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getPastHistorys())){
 | 
	
		
			
				|  |  |             String pastStr = "";
 | 
	
		
			
				|  |  |             String pastDateStr = "";
 | 
	
		
			
				|  |  |             json.put("PAST_NONE","0");//既往史
 | 
	
		
			
				|  |  |             String phs[] = archive.getPastHistorys().split(",");
 | 
	
		
			
				|  |  |             String dates[] = archive.getPastHistoryDate().split(",");
 | 
	
	
		
			
				|  | @ -1058,14 +1060,14 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                     pastStr +="1,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_HYPERTENSION_DATE",dates[i]);//既往史--疾病--高血压日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastHypertensionDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else if("2".equals(phs[i])){
 | 
	
		
			
				|  |  |                     json.put("PAST_DIABETES","1");//既往史--疾病--糖尿病【0不勾选 1勾选】
 | 
	
		
			
				|  |  |                     pastStr +="2,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_DIABETES_DATE",dates[i]);//既往史--疾病--糖尿病日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastDiabetesDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | //                if("3".equals(phs[i])){
 | 
	
	
		
			
				|  | @ -1079,8 +1081,9 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                     pastStr +="4,";
 | 
	
		
			
				|  |  |                     if(!"0".equals(dates[i])){
 | 
	
		
			
				|  |  |                         json.put("PAST_OTHER_CONTENT_DATE",dates[i]);//既往史--疾病--高血压日期
 | 
	
		
			
				|  |  |                         archiveInfo.setPastOtherContentDate(dates[i]);
 | 
	
		
			
				|  |  |                         pastDateStr += dates[i]+",";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     archiveInfo.setPastOtherContent(archive.getPastHistoryContent());
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             }
 | 
	
	
		
			
				|  | @ -1088,6 +1091,10 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  |                 pastStr = pastStr.substring(0,pastStr.length()-1);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             archiveInfo.setPast(pastStr);
 | 
	
		
			
				|  |  |             if (pastDateStr.length()>1){
 | 
	
		
			
				|  |  |                 pastDateStr = pastDateStr.substring(0,pastDateStr.length()-1);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             archiveInfo.setPastDate(pastDateStr);
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             json.put("PAST_NONE","1");//既往史
 | 
	
		
			
				|  |  |             archiveInfo.setPast("0");
 | 
	
	
		
			
				|  | @ -1095,10 +1102,15 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //遗传病史
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getGeneticFlag())){
 | 
	
		
			
				|  |  |             json.put("GENETIC","1");//遗传病史【0 无 1 有】
 | 
	
		
			
				|  |  |             json.put("GENETIC_DISEASENAME",archive.getGeneticContent());//疾病名称
 | 
	
		
			
				|  |  |             archiveInfo.setGenetic(0);
 | 
	
		
			
				|  |  |             archiveInfo.setGeneticDiseaseName(archive.getGeneticContent());
 | 
	
		
			
				|  |  |             if ("1".equals(archive.getGeneticFlag())){
 | 
	
		
			
				|  |  |                 json.put("GENETIC","1");//遗传病史【0 无 1 有】
 | 
	
		
			
				|  |  |                 json.put("GENETIC_DISEASENAME",archive.getGeneticContent());//疾病名称
 | 
	
		
			
				|  |  |                 archiveInfo.setGenetic(1);
 | 
	
		
			
				|  |  |                 archiveInfo.setGeneticDiseaseName(archive.getGeneticContent());
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 json.put("GENETIC","0");//遗传病史【0 无 1 有】
 | 
	
		
			
				|  |  |                 archiveInfo.setGenetic(0);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             json.put("GENETIC","0");//遗传病史【0 无 1 有】
 | 
	
		
			
				|  |  |             archiveInfo.setGenetic(0);
 | 
	
	
		
			
				|  | @ -1155,7 +1167,7 @@ public class PatientInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //家族史
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(archive.getFamilyHistoryFlag())&&"1".equals(archive.getFamilyHistoryFlag())){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             archiveInfo.setFamilyNone(1);
 | 
	
		
			
				|  |  |             //父亲
 | 
	
		
			
				|  |  |             if(StringUtils.isNotBlank(archive.getFamilyFatherHistorys())){
 | 
	
		
			
				|  |  |                 String fatherStr ="";
 |