|
@@ -8,6 +8,7 @@ import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.data.AHomePageDTO;
|
|
import com.diagbot.dto.data.AHomePageDTO;
|
|
import com.diagbot.entity.HomePage;
|
|
import com.diagbot.entity.HomePage;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
|
+import com.diagbot.enums.data.*;
|
|
import com.diagbot.facade.BehospitalInfoFacade;
|
|
import com.diagbot.facade.BehospitalInfoFacade;
|
|
import com.diagbot.service.impl.HomePageServiceImpl;
|
|
import com.diagbot.service.impl.HomePageServiceImpl;
|
|
import com.diagbot.util.*;
|
|
import com.diagbot.util.*;
|
|
@@ -128,12 +129,65 @@ public class AHomePageFacade extends HomePageServiceImpl{
|
|
HomePage homePage=new HomePage();
|
|
HomePage homePage=new HomePage();
|
|
BeanUtil.copyProperties(s,homePage);
|
|
BeanUtil.copyProperties(s,homePage);
|
|
if(StringUtil.isNotBlank(s.getSex())){
|
|
if(StringUtil.isNotBlank(s.getSex())){
|
|
- if(s.getSex().equals("1")){
|
|
|
|
- homePage.setSex("男");
|
|
|
|
- }else if(s.getSex().equals("2")){
|
|
|
|
- homePage.setSex("女");
|
|
|
|
- }
|
|
|
|
|
|
+ //性别,1:男,2:女
|
|
|
|
+ homePage.setSex(SexEnum.getName(s.getSex()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getMarriage())){
|
|
|
|
+ //婚姻,1:未婚,2:已婚,3:丧偶,4:离婚,9:其他
|
|
|
|
+ homePage.setMarriage(MarriageEnum.getName(s.getMarriage()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsMedAllergy())){
|
|
|
|
+ //过敏史,1:无,2:有
|
|
|
|
+ homePage.setIsMedAllergy(IsMedAllergyEnum.getName(s.getIsMedAllergy()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getBehospitalWay())){
|
|
|
|
+ //入院途径,1:急诊,2:门诊,3:其他医疗机构,9:其他
|
|
|
|
+ homePage.setBehospitalWay(BehospitalWayEnum.getName(s.getBehospitalWay()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getAutopsy())){
|
|
|
|
+ //死亡患者尸检,1:是,2:否
|
|
|
|
+ homePage.setAutopsy(AutopsyEnum.getName(s.getAutopsy()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getBloodType())){
|
|
|
|
+ //血型,1:A,2:B,3:O,4:AB,5:不详,6:未查
|
|
|
|
+ homePage.setBloodType(BloodTypeEnum.getName(s.getBloodType()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getRh())){
|
|
|
|
+ //RH,1:阴,2:阳,3,不详,4,未查
|
|
|
|
+ homePage.setRh(RHEnum.getName(s.getRh()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getLeaveHospitalType())){
|
|
|
|
+ //离院方式,1:医院离院,2:医嘱转院,3:医嘱转社区卫生服务机构/乡镇卫生院,4:非医嘱离院,5:死亡,9:其他
|
|
|
|
+ homePage.setLeaveHospitalType(LeaveHospitalTypeEnum.getName(s.getLeaveHospitalType()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getSingleDiagManage())){
|
|
|
|
+ //单病种管理:1:有,2:无
|
|
|
|
+ homePage.setSingleDiagManage(SingleDiagManageEnum.getName(s.getSingleDiagManage()));
|
|
}
|
|
}
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getClinicPathwayManage())){
|
|
|
|
+ //临床路径管理,1:完成,2:变异,3:退出,4:未入
|
|
|
|
+ homePage.setClinicPathwayManage(ClinicPathwayManageEnum.getName(s.getClinicPathwayManage()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getReturnToType())){
|
|
|
|
+ //转归情况,1:治愈,2:好转,3:未愈,4:死亡,9:其他
|
|
|
|
+ homePage.setReturnToType(ReturnToTypeEnum.getName(s.getReturnToType()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsOutpatientBehospital())){
|
|
|
|
+ homePage.setIsOutpatientBehospital(DiagnoseTypeEnum.getName(s.getIsOutpatientBehospital()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsLeaveBehospital())){
|
|
|
|
+ homePage.setIsLeaveBehospital(DiagnoseTypeEnum.getName(s.getIsLeaveBehospital()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsOperationBeforeAfter())){
|
|
|
|
+ homePage.setIsOperationBeforeAfter(DiagnoseTypeEnum.getName(s.getIsOperationBeforeAfter()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsClinicPathology())){
|
|
|
|
+ homePage.setIsClinicPathology(DiagnoseTypeEnum.getName(s.getIsClinicPathology()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(s.getIsRadiatePathology())){
|
|
|
|
+ homePage.setIsRadiatePathology(DiagnoseTypeEnum.getName(s.getIsRadiatePathology()));
|
|
|
|
+ }
|
|
|
|
+
|
|
if(StringUtil.isNotBlank(s.getBirthday())){
|
|
if(StringUtil.isNotBlank(s.getBirthday())){
|
|
homePage.setBirthday(DateUtil.parseDateTime(DateUtil.formatDateTime(DateUtil.parseDate(s.getBirthday(),"yyyy/MM/dd"))));
|
|
homePage.setBirthday(DateUtil.parseDateTime(DateUtil.formatDateTime(DateUtil.parseDate(s.getBirthday(),"yyyy/MM/dd"))));
|
|
}
|
|
}
|