|
@@ -77,11 +77,6 @@ public class AHomePageFacade extends HomePageServiceImpl {
|
|
|
*/
|
|
|
public void executeHomePage() {
|
|
|
try {
|
|
|
-
|
|
|
- SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd HH");
|
|
|
- SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy-MM-dd HH");
|
|
|
-
|
|
|
/*PatientListRequest patientListRequest = new PatientListRequest();
|
|
|
*//*patientListRequest.setDATESTART(sdf.format(startTime));
|
|
|
patientListRequest.setDATEEND(sdf.format(endTime));*//*
|
|
@@ -140,9 +135,7 @@ public class AHomePageFacade extends HomePageServiceImpl {
|
|
|
homePage.setSex("");
|
|
|
break;
|
|
|
}
|
|
|
- if (homePageResponse.getData().getPbirthday() != null && homePageResponse.getData().getPbirthday().length() > 0) {
|
|
|
- homePage.setBirthday(sdf1.parse(homePageResponse.getData().getPbirthday()));
|
|
|
- }
|
|
|
+ homePage.setBirthday(ShaoyfDateUtil.parseDateTime(homePageResponse.getData().getPbirthday()));
|
|
|
homePage.setAge(homePageResponse.getData().getAge());
|
|
|
homePage.setAgeUnit(homePageResponse.getData().getAgeunit());
|
|
|
homePage.setNationality(homePageResponse.getData().getCitizenship());
|
|
@@ -168,25 +161,13 @@ public class AHomePageFacade extends HomePageServiceImpl {
|
|
|
homePage.setContactAddress(homePageResponse.getData().getConcatperson_adress());
|
|
|
homePage.setContactPhone(homePageResponse.getData().getConcatperson_phone());
|
|
|
homePage.setBehospitalWay(homePageResponse.getData().getInhos_way());
|
|
|
- if (homePageResponse.getData().getAdmid() != null && homePageResponse.getData().getAdmid().length() > 0) {
|
|
|
- if (homePageResponse.getData().getAdmid().indexOf("-") != -1) {
|
|
|
- homePage.setBehospitalDate(sdf3.parse(homePageResponse.getData().getAdmid()));
|
|
|
- } else if (homePageResponse.getData().getAdmid().indexOf("/") != -1) {
|
|
|
- homePage.setBehospitalDate(sdf2.parse(homePageResponse.getData().getAdmid()));
|
|
|
- }
|
|
|
- }
|
|
|
+ homePage.setBehospitalDate(ShaoyfDateUtil.parseDateTime(homePageResponse.getData().getAdmid()));
|
|
|
homePage.setBehospitalDept(homePageResponse.getData().getInhosdept());
|
|
|
homePage.setBehospitalWard(homePageResponse.getData().getInhosward());
|
|
|
homePage.setBehospitalBedCode(homePageResponse.getData().getBedid_in());
|
|
|
homePage.setChangeDept(homePageResponse.getData().getTransferdept());
|
|
|
- if (homePageResponse.getData().getDiscd() != null && homePageResponse.getData().getDiscd().length() > 0) {
|
|
|
- if (homePageResponse.getData().getDiscd().indexOf("-") != -1) {
|
|
|
- homePage.setLeaveHospitalDate(sdf3.parse(homePageResponse.getData().getDiscd()));
|
|
|
- } else if (homePageResponse.getData().getDiscd().indexOf("/") != -1) {
|
|
|
- homePage.setLeaveHospitalDate(sdf2.parse(homePageResponse.getData().getDiscd()));
|
|
|
- }
|
|
|
+ homePage.setLeaveHospitalDate(ShaoyfDateUtil.parseDateTime(homePageResponse.getData().getDiscd()));
|
|
|
|
|
|
- }
|
|
|
homePage.setLeaveHospitalDept(homePageResponse.getData().getOuthosdept());
|
|
|
homePage.setLeaveHospitalWard(homePageResponse.getData().getOuthosward());
|
|
|
homePage.setBehospitalDayNum(homePageResponse.getData().getInhosday());
|
|
@@ -210,9 +191,7 @@ public class AHomePageFacade extends HomePageServiceImpl {
|
|
|
homePage.setHomePageQuality(homePageResponse.getData().getMedical_quality());
|
|
|
homePage.setQcDoctor(homePageResponse.getData().getQc_doctor());
|
|
|
homePage.setQcNurse(homePageResponse.getData().getQc_nurse());
|
|
|
- if (homePageResponse.getData().getQc_date() != null && homePageResponse.getData().getQc_date().length() > 0) {
|
|
|
- homePage.setQcDate(sdf1.parse(homePageResponse.getData().getQc_date()));
|
|
|
- }
|
|
|
+ homePage.setQcDate(ShaoyfDateUtil.parseDateTime(homePageResponse.getData().getQc_date()));
|
|
|
homePage.setLeaveHospitalType(homePageResponse.getData().getLeavehos_type());
|
|
|
homePage.setAcceptOrgCode(homePageResponse.getData().getAcceptOrgCode());
|
|
|
homePage.setAgainBehospitalPlan(homePageResponse.getData().getAgaininhosplan());
|