| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | //出院数据 |
| | | //入院数据 |
| | | public class ADT_A01 { |
| | | //解析PID |
| | | public List<Object> explainPID(Message message, String dataInfo) throws HL7Exception { |
| | |
| | | //数据入库 |
| | | HospitalRecord hospitalRecord = new HospitalRecord(); |
| | | hospitalRecord.setCreateTime(new Date()); |
| | | hospitalRecord.setPatientID(patientID); |
| | | // hospitalRecord.setPatientID(patientID); |
| | | hospitalRecord.setPatientID(id1); |
| | | hospitalRecord.setOpreationTime(new Date()); |
| | | //就诊号 |
| | | hospitalRecord.setOutMedNO(id1); |
| | | //就诊类型描述(门诊、住院...) |
| | | hospitalRecord.setAdmTypeDesc(AdmTypeEnum.getDescByCode(patientClass)); |
| | | //入院状态(就诊中、结束就诊...) |
| | | hospitalRecord.setAdmStatus(LevelHospEnum.getDescByCode(pv136_dischargeDisposition)); |
| | | //IMP 住院 |
| | | hospitalRecord.setAdmTypeCode("IMP"); |
| | | hospitalRecord.setAdmStatus("患者入院"); |
| | | hospitalRecord.setEncOuthostype(LevelHospEnum.getDescByCode(pv136_dischargeDisposition)); |
| | | hospitalRecord.setAdmDate(dischargeDateTime); |
| | | hospitalRecord.setEncPatName(patientName); |
| | | if (StringUtils.isNotEmpty(xb)) { |
| | |
| | | |
| | | HospitalUserinfo hospitalUserinfo = new HospitalUserinfo(); |
| | | // hospitalUserinfo.setCreateTime(null); |
| | | hospitalUserinfo.setPatientID(patientID); |
| | | // hospitalUserinfo.setPatientID(patientID); |
| | | hospitalUserinfo.setPatientID(id1); |
| | | hospitalUserinfo.setRegDate(rkdate); |
| | | hospitalUserinfo.setIdentityID(SSNNumberPatient); |
| | | hospitalUserinfo.setPatName(patientName); |