|
|
|
@ -1,28 +1,18 @@
|
|
|
|
|
package com.ann.demo.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
|
|
import com.ann.demo.entity.constant.AliasName;
|
|
|
|
|
import com.ann.demo.entity.constant.InterfaceName;
|
|
|
|
|
import com.ann.demo.entity.constant.WebserviceId;
|
|
|
|
|
import com.ann.demo.entity.filing.MessageSubordinate;
|
|
|
|
|
import com.ann.demo.entity.filing.dto.MessageDto;
|
|
|
|
|
import com.ann.demo.entity.filing.dto.PatientMainDto;
|
|
|
|
|
import com.ann.demo.entity.interfaceEntity.ArchiveMaster;
|
|
|
|
|
import com.ann.demo.entity.interfaceEntity.ExamApply;
|
|
|
|
|
import com.ann.demo.entity.interfaceEntity.MessageLog;
|
|
|
|
|
import com.ann.demo.entity.normalEntity.MedicalRecordHomepage;
|
|
|
|
|
import com.ann.demo.entity.normalEntity.MedicalRecordHomepageCache;
|
|
|
|
|
import com.ann.demo.entity.normalEntity.OutPara;
|
|
|
|
|
import com.ann.demo.service.*;
|
|
|
|
|
import com.ann.demo.utils.XMLUtils;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -72,7 +62,7 @@ public class AnalysisService {
|
|
|
|
|
if (Objects.equals(messageDto.getEntity(), ArchiveMaster.class.getName())) { // 患者信息
|
|
|
|
|
ArchiveMaster archiveMaster = JSON.parseObject(messageDto.getObject().toString(), ArchiveMaster.class);
|
|
|
|
|
//查询患者是否存在
|
|
|
|
|
archiveMasterId = archiveMasterService.findArchiveMasterId( archiveMaster.getVisitId(), archiveMaster.getPatientId());
|
|
|
|
|
archiveMasterId = archiveMasterService.findArchiveMasterId( archiveMaster.getVisitId(), archiveMaster.getPatientId(),archiveMaster.getInpNo());
|
|
|
|
|
if (archiveMasterId != null) {
|
|
|
|
|
// 如果不是新增 都会查询id
|
|
|
|
|
archiveMaster.setId(archiveMasterId);
|
|
|
|
|