|
@@ -10,17 +10,16 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.constants.EmrType;
|
|
|
+import thyyxxk.webserver.dao.his.LoginDao;
|
|
|
import thyyxxk.webserver.dao.his.zhuyuanyisheng.EmrPatientDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
+import thyyxxk.webserver.entity.dictionary.CodeName;
|
|
|
import thyyxxk.webserver.entity.drg.AuxiliaryFillingOfDiagnosis;
|
|
|
-import thyyxxk.webserver.entity.inpatient.patient.Patient;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.EmrDataElement;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.EmrDataExtract;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.EmrPatientData;
|
|
|
import thyyxxk.webserver.service.PublicServer;
|
|
|
import thyyxxk.webserver.service.externalhttp.emr.EmrEditor;
|
|
|
-import thyyxxk.webserver.service.inpatient.PatientService;
|
|
|
-import thyyxxk.webserver.service.redislike.RedisLikeService;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
|
|
|
import java.util.*;
|
|
@@ -35,15 +34,13 @@ public class EmrServer {
|
|
|
private final EmrPatientDao dao;
|
|
|
private final EmrEditor emr;
|
|
|
private final PublicServer publicServer;
|
|
|
- private final PatientService patientService;
|
|
|
- private final RedisLikeService realtimeService;
|
|
|
+ private final LoginDao loginDao;
|
|
|
|
|
|
- public EmrServer(EmrPatientDao dao, EmrEditor emr, PublicServer publicServer, PatientService patientService, RedisLikeService realtimeService) {
|
|
|
+ public EmrServer(EmrPatientDao dao, EmrEditor emr, PublicServer publicServer, LoginDao loginDao) {
|
|
|
this.dao = dao;
|
|
|
this.emr = emr;
|
|
|
this.publicServer = publicServer;
|
|
|
- this.patientService = patientService;
|
|
|
- this.realtimeService = realtimeService;
|
|
|
+ this.loginDao = loginDao;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -369,5 +366,8 @@ public class EmrServer {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<List<CodeName>> getAllWards() {
|
|
|
+ return ResultVoUtil.success(loginDao.getAllWards());
|
|
|
+ }
|
|
|
|
|
|
}
|