|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
import com.diagbot.client.AIServiceClient;
|
|
import com.diagbot.client.AIServiceClient;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
|
|
+import com.diagbot.entity.InputInfo;
|
|
import com.diagbot.entity.PatientInfo;
|
|
import com.diagbot.entity.PatientInfo;
|
|
import com.diagbot.service.impl.PatientInfoServiceImpl;
|
|
import com.diagbot.service.impl.PatientInfoServiceImpl;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.BeanUtil;
|
|
@@ -37,6 +38,9 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private AIServiceClient aiServiceClient;
|
|
private AIServiceClient aiServiceClient;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private InputInfoFacade inputInfoFacade;
|
|
|
|
|
|
public PatientInfoDTO savePatientInfo(PatientInfoVO patientInfoVO){
|
|
public PatientInfoDTO savePatientInfo(PatientInfoVO patientInfoVO){
|
|
PatientInfoDTO patientInfoDTO=baseMapper.getPatientInfos(patientInfoVO.getPatientCode(), patientInfoVO.getHospitalCode());
|
|
PatientInfoDTO patientInfoDTO=baseMapper.getPatientInfos(patientInfoVO.getPatientCode(), patientInfoVO.getHospitalCode());
|
|
@@ -114,6 +118,20 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
getTopPatientInfoDTO.setSystemTime(DateUtil.now());
|
|
getTopPatientInfoDTO.setSystemTime(DateUtil.now());
|
|
getTopPatientInfoDTO.setRecordId(getTopPatientInfoVO.getRecordId());
|
|
getTopPatientInfoDTO.setRecordId(getTopPatientInfoVO.getRecordId());
|
|
getTopPatientInfoDTO.setPatientAge(DateUtil.yearCompare(getTopPatientInfoDTO.getBirthday(), DateUtil.now()));
|
|
getTopPatientInfoDTO.setPatientAge(DateUtil.yearCompare(getTopPatientInfoDTO.getBirthday(), DateUtil.now()));
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ InputInfo inputInfo=new InputInfo();
|
|
|
|
+ inputInfo.setHospitalId(getTopPatientInfoDTO.getHospitalCode());
|
|
|
|
+ inputInfo.setDeptId(getTopPatientInfoDTO.getHospitalDeptCode());
|
|
|
|
+ inputInfo.setDoctorId(getTopPatientInfoDTO.getDoctorCode());
|
|
|
|
+ inputInfo.setPatientId(getTopPatientInfoDTO.getPatientCode());
|
|
|
|
+ inputInfo.setRecordId(getTopPatientInfoDTO.getRecordId());
|
|
|
|
+ inputInfo.setAge(Integer.toString(getTopPatientInfoDTO.getPatientAge()));
|
|
|
|
+ inputInfo.setSexType(getTopPatientInfoDTO.getPatientSex());
|
|
|
|
+ inputInfo.setTransTime(new Date());
|
|
|
|
+ inputInfoFacade.save(inputInfo);
|
|
|
|
+ */
|
|
|
|
+
|
|
return getTopPatientInfoDTO;
|
|
return getTopPatientInfoDTO;
|
|
}
|
|
}
|
|
|
|
|